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.4  christos # Generated by GNU Autoconf 2.65 for Concurrent Versions System (CVS) 1.12.13.
      4  1.1  christos #
      5  1.1  christos # Report bugs to <bug-cvs (at] nongnu.org>.
      6  1.1  christos #
      7  1.1  christos # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
      8  1.1  christos #               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
      9  1.1  christos #               Free Software Foundation, Inc.
     10  1.1  christos #
     11  1.1  christos # This program is free software; you can redistribute it and/or modify
     12  1.1  christos # it under the terms of the GNU General Public License as published by
     13  1.1  christos # the Free Software Foundation; either version 2, or (at your option)
     14  1.1  christos # any later version.
     15  1.1  christos #
     16  1.1  christos # This program is distributed in the hope that it will be useful,
     17  1.1  christos # but WITHOUT ANY WARRANTY; without even the implied warranty of
     18  1.1  christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19  1.1  christos # GNU General Public License for more details.
     20  1.1  christos #
     21  1.4  christos #
     22  1.3  christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     23  1.4  christos # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
     24  1.4  christos # Inc.
     25  1.4  christos #
     26  1.4  christos #
     27  1.1  christos # This configure script is free software; the Free Software Foundation
     28  1.1  christos # gives unlimited permission to copy, distribute and modify it.
     29  1.4  christos ## -------------------- ##
     30  1.4  christos ## M4sh Initialization. ##
     31  1.4  christos ## -------------------- ##
     32  1.1  christos 
     33  1.3  christos # Be more Bourne compatible
     34  1.3  christos DUALCASE=1; export DUALCASE # for MKS sh
     35  1.4  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     36  1.1  christos   emulate sh
     37  1.1  christos   NULLCMD=:
     38  1.3  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     39  1.1  christos   # is contrary to our usage.  Disable this feature.
     40  1.1  christos   alias -g '${1+"$@"}'='"$@"'
     41  1.3  christos   setopt NO_GLOB_SUBST
     42  1.3  christos else
     43  1.4  christos   case `(set -o) 2>/dev/null` in #(
     44  1.4  christos   *posix*) :
     45  1.4  christos     set -o posix ;; #(
     46  1.4  christos   *) :
     47  1.4  christos      ;;
     48  1.3  christos esac
     49  1.3  christos fi
     50  1.3  christos 
     51  1.3  christos 
     52  1.3  christos as_nl='
     53  1.3  christos '
     54  1.3  christos export as_nl
     55  1.3  christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
     56  1.3  christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     57  1.3  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     58  1.3  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     59  1.4  christos # Prefer a ksh shell builtin over an external printf program on Solaris,
     60  1.4  christos # but without wasting forks for bash or zsh.
     61  1.4  christos if test -z "$BASH_VERSION$ZSH_VERSION" \
     62  1.4  christos     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     63  1.4  christos   as_echo='print -r --'
     64  1.4  christos   as_echo_n='print -rn --'
     65  1.4  christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     66  1.3  christos   as_echo='printf %s\n'
     67  1.3  christos   as_echo_n='printf %s'
     68  1.3  christos else
     69  1.3  christos   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     70  1.3  christos     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     71  1.3  christos     as_echo_n='/usr/ucb/echo -n'
     72  1.3  christos   else
     73  1.3  christos     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     74  1.3  christos     as_echo_n_body='eval
     75  1.3  christos       arg=$1;
     76  1.4  christos       case $arg in #(
     77  1.3  christos       *"$as_nl"*)
     78  1.3  christos 	expr "X$arg" : "X\\(.*\\)$as_nl";
     79  1.3  christos 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     80  1.3  christos       esac;
     81  1.3  christos       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     82  1.3  christos     '
     83  1.3  christos     export as_echo_n_body
     84  1.3  christos     as_echo_n='sh -c $as_echo_n_body as_echo'
     85  1.3  christos   fi
     86  1.3  christos   export as_echo_body
     87  1.3  christos   as_echo='sh -c $as_echo_body as_echo'
     88  1.3  christos fi
     89  1.3  christos 
     90  1.3  christos # The user is always right.
     91  1.3  christos if test "${PATH_SEPARATOR+set}" != set; then
     92  1.3  christos   PATH_SEPARATOR=:
     93  1.3  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     94  1.3  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     95  1.3  christos       PATH_SEPARATOR=';'
     96  1.3  christos   }
     97  1.1  christos fi
     98  1.1  christos 
     99  1.1  christos 
    100  1.3  christos # IFS
    101  1.3  christos # We need space, tab and new line, in precisely that order.  Quoting is
    102  1.3  christos # there to prevent editors from complaining about space-tab.
    103  1.3  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    104  1.3  christos # splitting by setting IFS to empty value.)
    105  1.3  christos IFS=" ""	$as_nl"
    106  1.3  christos 
    107  1.3  christos # Find who we are.  Look in the path if we contain no directory separator.
    108  1.4  christos case $0 in #((
    109  1.3  christos   *[\\/]* ) as_myself=$0 ;;
    110  1.3  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    111  1.3  christos for as_dir in $PATH
    112  1.3  christos do
    113  1.3  christos   IFS=$as_save_IFS
    114  1.3  christos   test -z "$as_dir" && as_dir=.
    115  1.4  christos     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    116  1.4  christos   done
    117  1.3  christos IFS=$as_save_IFS
    118  1.3  christos 
    119  1.3  christos      ;;
    120  1.3  christos esac
    121  1.3  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
    122  1.3  christos # in which case we are not to be found in the path.
    123  1.3  christos if test "x$as_myself" = x; then
    124  1.3  christos   as_myself=$0
    125  1.3  christos fi
    126  1.3  christos if test ! -f "$as_myself"; then
    127  1.3  christos   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    128  1.4  christos   exit 1
    129  1.3  christos fi
    130  1.3  christos 
    131  1.4  christos # Unset variables that we do not need and which cause bugs (e.g. in
    132  1.4  christos # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    133  1.4  christos # suppresses any "Segmentation fault" message there.  '((' could
    134  1.4  christos # trigger a bug in pdksh 5.2.14.
    135  1.4  christos for as_var in BASH_ENV ENV MAIL MAILPATH
    136  1.4  christos do eval test x\${$as_var+set} = xset \
    137  1.4  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    138  1.3  christos done
    139  1.1  christos PS1='$ '
    140  1.1  christos PS2='> '
    141  1.1  christos PS4='+ '
    142  1.1  christos 
    143  1.1  christos # NLS nuisances.
    144  1.3  christos LC_ALL=C
    145  1.3  christos export LC_ALL
    146  1.3  christos LANGUAGE=C
    147  1.3  christos export LANGUAGE
    148  1.1  christos 
    149  1.3  christos # CDPATH.
    150  1.4  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    151  1.3  christos 
    152  1.3  christos if test "x$CONFIG_SHELL" = x; then
    153  1.4  christos   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    154  1.4  christos   emulate sh
    155  1.4  christos   NULLCMD=:
    156  1.4  christos   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    157  1.4  christos   # is contrary to our usage.  Disable this feature.
    158  1.4  christos   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    159  1.4  christos   setopt NO_GLOB_SUBST
    160  1.3  christos else
    161  1.4  christos   case \`(set -o) 2>/dev/null\` in #(
    162  1.4  christos   *posix*) :
    163  1.4  christos     set -o posix ;; #(
    164  1.4  christos   *) :
    165  1.4  christos      ;;
    166  1.4  christos esac
    167  1.3  christos fi
    168  1.4  christos "
    169  1.4  christos   as_required="as_fn_return () { (exit \$1); }
    170  1.4  christos as_fn_success () { as_fn_return 0; }
    171  1.4  christos as_fn_failure () { as_fn_return 1; }
    172  1.4  christos as_fn_ret_success () { return 0; }
    173  1.4  christos as_fn_ret_failure () { return 1; }
    174  1.3  christos 
    175  1.3  christos exitcode=0
    176  1.4  christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    177  1.4  christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    178  1.4  christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    179  1.4  christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    180  1.4  christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    181  1.4  christos 
    182  1.4  christos else
    183  1.4  christos   exitcode=1; echo positional parameters were not saved.
    184  1.4  christos fi
    185  1.4  christos test x\$exitcode = x0 || exit 1"
    186  1.4  christos   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    187  1.4  christos   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    188  1.4  christos   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    189  1.4  christos   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    190  1.4  christos test \$(( 1 + 1 )) = 2 || exit 1"
    191  1.4  christos   if (eval "$as_required") 2>/dev/null; then :
    192  1.4  christos   as_have_required=yes
    193  1.3  christos else
    194  1.4  christos   as_have_required=no
    195  1.3  christos fi
    196  1.4  christos   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    197  1.1  christos 
    198  1.3  christos else
    199  1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    200  1.4  christos as_found=false
    201  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    202  1.1  christos do
    203  1.1  christos   IFS=$as_save_IFS
    204  1.1  christos   test -z "$as_dir" && as_dir=.
    205  1.4  christos   as_found=:
    206  1.4  christos   case $as_dir in #(
    207  1.1  christos 	 /*)
    208  1.3  christos 	   for as_base in sh bash ksh sh5; do
    209  1.4  christos 	     # Try only shells that exist, to save several forks.
    210  1.4  christos 	     as_shell=$as_dir/$as_base
    211  1.4  christos 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    212  1.4  christos 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    213  1.4  christos   CONFIG_SHELL=$as_shell as_have_required=yes
    214  1.4  christos 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    215  1.4  christos   break 2
    216  1.4  christos fi
    217  1.4  christos fi
    218  1.3  christos 	   done;;
    219  1.3  christos        esac
    220  1.4  christos   as_found=false
    221  1.3  christos done
    222  1.4  christos $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    223  1.4  christos 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    224  1.4  christos   CONFIG_SHELL=$SHELL as_have_required=yes
    225  1.4  christos fi; }
    226  1.3  christos IFS=$as_save_IFS
    227  1.3  christos 
    228  1.3  christos 
    229  1.4  christos       if test "x$CONFIG_SHELL" != x; then :
    230  1.4  christos   # We cannot yet assume a decent shell, so we have to provide a
    231  1.4  christos 	# neutralization value for shells without unset; and this also
    232  1.4  christos 	# works around shells that cannot unset nonexistent variables.
    233  1.4  christos 	BASH_ENV=/dev/null
    234  1.4  christos 	ENV=/dev/null
    235  1.4  christos 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    236  1.4  christos 	export CONFIG_SHELL
    237  1.4  christos 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    238  1.4  christos fi
    239  1.3  christos 
    240  1.4  christos     if test x$as_have_required = xno; then :
    241  1.4  christos   $as_echo "$0: This script requires a shell more modern than all"
    242  1.4  christos   $as_echo "$0: the shells that I found on your system."
    243  1.4  christos   if test x${ZSH_VERSION+set} = xset ; then
    244  1.4  christos     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    245  1.4  christos     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    246  1.4  christos   else
    247  1.4  christos     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and bug-cvs (at] nongnu.org
    248  1.4  christos $0: about your system, including any error possibly output
    249  1.4  christos $0: before this message. Then install a modern shell, or
    250  1.4  christos $0: manually run the script under such a shell if you do
    251  1.4  christos $0: have one."
    252  1.4  christos   fi
    253  1.4  christos   exit 1
    254  1.4  christos fi
    255  1.3  christos fi
    256  1.3  christos fi
    257  1.4  christos SHELL=${CONFIG_SHELL-/bin/sh}
    258  1.4  christos export SHELL
    259  1.4  christos # Unset more variables known to interfere with behavior of common tools.
    260  1.4  christos CLICOLOR_FORCE= GREP_OPTIONS=
    261  1.4  christos unset CLICOLOR_FORCE GREP_OPTIONS
    262  1.3  christos 
    263  1.4  christos ## --------------------- ##
    264  1.4  christos ## M4sh Shell Functions. ##
    265  1.4  christos ## --------------------- ##
    266  1.4  christos # as_fn_unset VAR
    267  1.4  christos # ---------------
    268  1.4  christos # Portably unset VAR.
    269  1.4  christos as_fn_unset ()
    270  1.4  christos {
    271  1.4  christos   { eval $1=; unset $1;}
    272  1.4  christos }
    273  1.4  christos as_unset=as_fn_unset
    274  1.4  christos 
    275  1.4  christos # as_fn_set_status STATUS
    276  1.4  christos # -----------------------
    277  1.4  christos # Set $? to STATUS, without forking.
    278  1.4  christos as_fn_set_status ()
    279  1.4  christos {
    280  1.4  christos   return $1
    281  1.4  christos } # as_fn_set_status
    282  1.4  christos 
    283  1.4  christos # as_fn_exit STATUS
    284  1.4  christos # -----------------
    285  1.4  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    286  1.4  christos as_fn_exit ()
    287  1.4  christos {
    288  1.4  christos   set +e
    289  1.4  christos   as_fn_set_status $1
    290  1.4  christos   exit $1
    291  1.4  christos } # as_fn_exit
    292  1.4  christos 
    293  1.4  christos # as_fn_mkdir_p
    294  1.4  christos # -------------
    295  1.4  christos # Create "$as_dir" as a directory, including parents if necessary.
    296  1.4  christos as_fn_mkdir_p ()
    297  1.4  christos {
    298  1.3  christos 
    299  1.4  christos   case $as_dir in #(
    300  1.4  christos   -*) as_dir=./$as_dir;;
    301  1.4  christos   esac
    302  1.4  christos   test -d "$as_dir" || eval $as_mkdir_p || {
    303  1.4  christos     as_dirs=
    304  1.4  christos     while :; do
    305  1.4  christos       case $as_dir in #(
    306  1.4  christos       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    307  1.4  christos       *) as_qdir=$as_dir;;
    308  1.4  christos       esac
    309  1.4  christos       as_dirs="'$as_qdir' $as_dirs"
    310  1.4  christos       as_dir=`$as_dirname -- "$as_dir" ||
    311  1.4  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    312  1.4  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    313  1.4  christos 	 X"$as_dir" : 'X\(//\)$' \| \
    314  1.4  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    315  1.4  christos $as_echo X"$as_dir" |
    316  1.4  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    317  1.4  christos 	    s//\1/
    318  1.4  christos 	    q
    319  1.4  christos 	  }
    320  1.4  christos 	  /^X\(\/\/\)[^/].*/{
    321  1.4  christos 	    s//\1/
    322  1.4  christos 	    q
    323  1.4  christos 	  }
    324  1.4  christos 	  /^X\(\/\/\)$/{
    325  1.4  christos 	    s//\1/
    326  1.4  christos 	    q
    327  1.4  christos 	  }
    328  1.4  christos 	  /^X\(\/\).*/{
    329  1.4  christos 	    s//\1/
    330  1.4  christos 	    q
    331  1.4  christos 	  }
    332  1.4  christos 	  s/.*/./; q'`
    333  1.4  christos       test -d "$as_dir" && break
    334  1.4  christos     done
    335  1.4  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
    336  1.4  christos   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    337  1.3  christos 
    338  1.3  christos 
    339  1.4  christos } # as_fn_mkdir_p
    340  1.4  christos # as_fn_append VAR VALUE
    341  1.4  christos # ----------------------
    342  1.4  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
    343  1.4  christos # advantage of any shell optimizations that allow amortized linear growth over
    344  1.4  christos # repeated appends, instead of the typical quadratic growth present in naive
    345  1.4  christos # implementations.
    346  1.4  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    347  1.4  christos   eval 'as_fn_append ()
    348  1.4  christos   {
    349  1.4  christos     eval $1+=\$2
    350  1.4  christos   }'
    351  1.3  christos else
    352  1.4  christos   as_fn_append ()
    353  1.4  christos   {
    354  1.4  christos     eval $1=\$$1\$2
    355  1.4  christos   }
    356  1.4  christos fi # as_fn_append
    357  1.3  christos 
    358  1.4  christos # as_fn_arith ARG...
    359  1.4  christos # ------------------
    360  1.4  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
    361  1.4  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
    362  1.4  christos # must be portable across $(()) and expr.
    363  1.4  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    364  1.4  christos   eval 'as_fn_arith ()
    365  1.4  christos   {
    366  1.4  christos     as_val=$(( $* ))
    367  1.4  christos   }'
    368  1.3  christos else
    369  1.4  christos   as_fn_arith ()
    370  1.4  christos   {
    371  1.4  christos     as_val=`expr "$@" || test $? -eq 1`
    372  1.4  christos   }
    373  1.4  christos fi # as_fn_arith
    374  1.3  christos 
    375  1.3  christos 
    376  1.4  christos # as_fn_error ERROR [LINENO LOG_FD]
    377  1.4  christos # ---------------------------------
    378  1.4  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    379  1.4  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    380  1.4  christos # script with status $?, using 1 if that was 0.
    381  1.4  christos as_fn_error ()
    382  1.4  christos {
    383  1.4  christos   as_status=$?; test $as_status -eq 0 && as_status=1
    384  1.4  christos   if test "$3"; then
    385  1.4  christos     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    386  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    387  1.4  christos   fi
    388  1.4  christos   $as_echo "$as_me: error: $1" >&2
    389  1.4  christos   as_fn_exit $as_status
    390  1.4  christos } # as_fn_error
    391  1.3  christos 
    392  1.4  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    393  1.4  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    394  1.4  christos   as_expr=expr
    395  1.3  christos else
    396  1.4  christos   as_expr=false
    397  1.3  christos fi
    398  1.3  christos 
    399  1.4  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    400  1.4  christos   as_basename=basename
    401  1.3  christos else
    402  1.4  christos   as_basename=false
    403  1.3  christos fi
    404  1.3  christos 
    405  1.4  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    406  1.4  christos   as_dirname=dirname
    407  1.3  christos else
    408  1.4  christos   as_dirname=false
    409  1.3  christos fi
    410  1.3  christos 
    411  1.4  christos as_me=`$as_basename -- "$0" ||
    412  1.4  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    413  1.4  christos 	 X"$0" : 'X\(//\)$' \| \
    414  1.4  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    415  1.4  christos $as_echo X/"$0" |
    416  1.4  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
    417  1.4  christos 	    s//\1/
    418  1.4  christos 	    q
    419  1.4  christos 	  }
    420  1.4  christos 	  /^X\/\(\/\/\)$/{
    421  1.4  christos 	    s//\1/
    422  1.4  christos 	    q
    423  1.4  christos 	  }
    424  1.4  christos 	  /^X\/\(\/\).*/{
    425  1.4  christos 	    s//\1/
    426  1.4  christos 	    q
    427  1.4  christos 	  }
    428  1.4  christos 	  s/.*/./; q'`
    429  1.3  christos 
    430  1.4  christos # Avoid depending upon Character Ranges.
    431  1.4  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    432  1.4  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    433  1.4  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    434  1.4  christos as_cr_digits='0123456789'
    435  1.4  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
    436  1.3  christos 
    437  1.3  christos 
    438  1.4  christos   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    439  1.4  christos   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    440  1.4  christos   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    441  1.4  christos   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    442  1.4  christos   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    443  1.3  christos   sed -n '
    444  1.3  christos     p
    445  1.3  christos     /[$]LINENO/=
    446  1.3  christos   ' <$as_myself |
    447  1.1  christos     sed '
    448  1.3  christos       s/[$]LINENO.*/&-/
    449  1.3  christos       t lineno
    450  1.3  christos       b
    451  1.3  christos       :lineno
    452  1.1  christos       N
    453  1.3  christos       :loop
    454  1.3  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    455  1.1  christos       t loop
    456  1.3  christos       s/-\n.*//
    457  1.1  christos     ' >$as_me.lineno &&
    458  1.3  christos   chmod +x "$as_me.lineno" ||
    459  1.4  christos     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    460  1.1  christos 
    461  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    462  1.1  christos   # (the dirname of $[0] is not the place where we might find the
    463  1.3  christos   # original and so on.  Autoconf is especially sensitive to this).
    464  1.3  christos   . "./$as_me.lineno"
    465  1.1  christos   # Exit status is that of the last command.
    466  1.1  christos   exit
    467  1.1  christos }
    468  1.1  christos 
    469  1.4  christos ECHO_C= ECHO_N= ECHO_T=
    470  1.4  christos case `echo -n x` in #(((((
    471  1.4  christos -n*)
    472  1.4  christos   case `echo 'xy\c'` in
    473  1.4  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    474  1.4  christos   xy)  ECHO_C='\c';;
    475  1.4  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    476  1.4  christos        ECHO_T='	';;
    477  1.3  christos   esac;;
    478  1.3  christos *)
    479  1.3  christos   ECHO_N='-n';;
    480  1.1  christos esac
    481  1.1  christos 
    482  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    483  1.3  christos if test -d conf$$.dir; then
    484  1.3  christos   rm -f conf$$.dir/conf$$.file
    485  1.3  christos else
    486  1.3  christos   rm -f conf$$.dir
    487  1.3  christos   mkdir conf$$.dir 2>/dev/null
    488  1.3  christos fi
    489  1.3  christos if (echo >conf$$.file) 2>/dev/null; then
    490  1.3  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
    491  1.3  christos     as_ln_s='ln -s'
    492  1.3  christos     # ... but there are two gotchas:
    493  1.3  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    494  1.3  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    495  1.3  christos     # In both cases, we have to default to `cp -p'.
    496  1.3  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    497  1.3  christos       as_ln_s='cp -p'
    498  1.3  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
    499  1.3  christos     as_ln_s=ln
    500  1.3  christos   else
    501  1.1  christos     as_ln_s='cp -p'
    502  1.1  christos   fi
    503  1.1  christos else
    504  1.1  christos   as_ln_s='cp -p'
    505  1.1  christos fi
    506  1.3  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    507  1.3  christos rmdir conf$$.dir 2>/dev/null
    508  1.1  christos 
    509  1.1  christos if mkdir -p . 2>/dev/null; then
    510  1.4  christos   as_mkdir_p='mkdir -p "$as_dir"'
    511  1.1  christos else
    512  1.1  christos   test -d ./-p && rmdir ./-p
    513  1.1  christos   as_mkdir_p=false
    514  1.1  christos fi
    515  1.1  christos 
    516  1.3  christos if test -x / >/dev/null 2>&1; then
    517  1.3  christos   as_test_x='test -x'
    518  1.3  christos else
    519  1.3  christos   if ls -dL / >/dev/null 2>&1; then
    520  1.3  christos     as_ls_L_option=L
    521  1.3  christos   else
    522  1.3  christos     as_ls_L_option=
    523  1.3  christos   fi
    524  1.3  christos   as_test_x='
    525  1.3  christos     eval sh -c '\''
    526  1.3  christos       if test -d "$1"; then
    527  1.3  christos 	test -d "$1/.";
    528  1.3  christos       else
    529  1.4  christos 	case $1 in #(
    530  1.3  christos 	-*)set "./$1";;
    531  1.3  christos 	esac;
    532  1.4  christos 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    533  1.3  christos 	???[sx]*):;;*)false;;esac;fi
    534  1.3  christos     '\'' sh
    535  1.3  christos   '
    536  1.3  christos fi
    537  1.3  christos as_executable_p=$as_test_x
    538  1.1  christos 
    539  1.1  christos # Sed expression to map a string onto a valid CPP name.
    540  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    541  1.1  christos 
    542  1.1  christos # Sed expression to map a string onto a valid variable name.
    543  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    544  1.1  christos 
    545  1.1  christos 
    546  1.4  christos test -n "$DJDIR" || exec 7<&0 </dev/null
    547  1.4  christos exec 6>&1
    548  1.1  christos 
    549  1.1  christos # Name of the host.
    550  1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    551  1.1  christos # so uname gets run too.
    552  1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    553  1.1  christos 
    554  1.1  christos #
    555  1.1  christos # Initializations.
    556  1.1  christos #
    557  1.1  christos ac_default_prefix=/usr/local
    558  1.3  christos ac_clean_files=
    559  1.1  christos ac_config_libobj_dir=.
    560  1.3  christos LIBOBJS=
    561  1.1  christos cross_compiling=no
    562  1.1  christos subdirs=
    563  1.1  christos MFLAGS=
    564  1.1  christos MAKEFLAGS=
    565  1.1  christos 
    566  1.1  christos # Identity of this package.
    567  1.1  christos PACKAGE_NAME='Concurrent Versions System (CVS)'
    568  1.1  christos PACKAGE_TARNAME='cvs'
    569  1.1  christos PACKAGE_VERSION='1.12.13'
    570  1.1  christos PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.13'
    571  1.1  christos PACKAGE_BUGREPORT='bug-cvs@nongnu.org'
    572  1.4  christos PACKAGE_URL=''
    573  1.1  christos 
    574  1.1  christos ac_unique_file="src/cvs.h"
    575  1.1  christos # Factoring default headers for most tests.
    576  1.1  christos ac_includes_default="\
    577  1.1  christos #include <stdio.h>
    578  1.3  christos #ifdef HAVE_SYS_TYPES_H
    579  1.1  christos # include <sys/types.h>
    580  1.1  christos #endif
    581  1.3  christos #ifdef HAVE_SYS_STAT_H
    582  1.1  christos # include <sys/stat.h>
    583  1.1  christos #endif
    584  1.3  christos #ifdef STDC_HEADERS
    585  1.1  christos # include <stdlib.h>
    586  1.1  christos # include <stddef.h>
    587  1.1  christos #else
    588  1.3  christos # ifdef HAVE_STDLIB_H
    589  1.1  christos #  include <stdlib.h>
    590  1.1  christos # endif
    591  1.1  christos #endif
    592  1.3  christos #ifdef HAVE_STRING_H
    593  1.3  christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    594  1.1  christos #  include <memory.h>
    595  1.1  christos # endif
    596  1.1  christos # include <string.h>
    597  1.1  christos #endif
    598  1.3  christos #ifdef HAVE_STRINGS_H
    599  1.1  christos # include <strings.h>
    600  1.1  christos #endif
    601  1.3  christos #ifdef HAVE_INTTYPES_H
    602  1.1  christos # include <inttypes.h>
    603  1.1  christos #endif
    604  1.3  christos #ifdef HAVE_STDINT_H
    605  1.3  christos # include <stdint.h>
    606  1.3  christos #endif
    607  1.3  christos #ifdef HAVE_UNISTD_H
    608  1.1  christos # include <unistd.h>
    609  1.1  christos #endif"
    610  1.1  christos 
    611  1.1  christos gl_func_list=
    612  1.1  christos gl_header_list=
    613  1.4  christos ac_subst_vars='am__EXEEXT_FALSE
    614  1.4  christos am__EXEEXT_TRUE
    615  1.4  christos LTLIBOBJS
    616  1.3  christos EDITOR
    617  1.3  christos RSH_DFLT
    618  1.3  christos with_default_rsh
    619  1.3  christos KRB4
    620  1.3  christos cvs_client_objects
    621  1.3  christos EOVERFLOW
    622  1.3  christos STDINT_H
    623  1.3  christos HAVE_LONG_LONG_64BIT
    624  1.3  christos HAVE_LONG_64BIT
    625  1.3  christos LIB_NANOSLEEP
    626  1.3  christos GLOB_H
    627  1.3  christos GETOPT_H
    628  1.3  christos LIB_CLOCK_GETTIME
    629  1.3  christos YFLAGS
    630  1.3  christos YACC
    631  1.3  christos FNMATCH_H
    632  1.3  christos HAVE__BOOL
    633  1.3  christos STDBOOL_H
    634  1.3  christos ALLOCA_H
    635  1.3  christos ALLOCA
    636  1.3  christos LIBOBJS
    637  1.3  christos MAKE_TARGETS_IN_VPATH_FALSE
    638  1.3  christos MAKE_TARGETS_IN_VPATH_TRUE
    639  1.3  christos TEXI2DVI
    640  1.3  christos PS2PDF
    641  1.3  christos ROFF
    642  1.3  christos PR
    643  1.3  christos SENDMAIL
    644  1.3  christos MKTEMP
    645  1.3  christos CSH
    646  1.3  christos PERL
    647  1.3  christos LN_S
    648  1.3  christos RANLIB
    649  1.3  christos EGREP
    650  1.3  christos GREP
    651  1.3  christos CPP
    652  1.3  christos am__fastdepCC_FALSE
    653  1.3  christos am__fastdepCC_TRUE
    654  1.3  christos CCDEPMODE
    655  1.3  christos AMDEPBACKSLASH
    656  1.3  christos AMDEP_FALSE
    657  1.3  christos AMDEP_TRUE
    658  1.3  christos am__quote
    659  1.3  christos am__include
    660  1.3  christos DEPDIR
    661  1.3  christos OBJEXT
    662  1.3  christos EXEEXT
    663  1.3  christos ac_ct_CC
    664  1.3  christos CPPFLAGS
    665  1.3  christos LDFLAGS
    666  1.3  christos CFLAGS
    667  1.3  christos CC
    668  1.3  christos MAINT
    669  1.3  christos MAINTAINER_MODE_FALSE
    670  1.3  christos MAINTAINER_MODE_TRUE
    671  1.3  christos ac_prefix_program
    672  1.3  christos am__untar
    673  1.3  christos am__tar
    674  1.3  christos AMTAR
    675  1.3  christos am__leading_dot
    676  1.3  christos SET_MAKE
    677  1.3  christos AWK
    678  1.3  christos mkdir_p
    679  1.3  christos MKDIR_P
    680  1.3  christos INSTALL_STRIP_PROGRAM
    681  1.3  christos STRIP
    682  1.3  christos install_sh
    683  1.3  christos MAKEINFO
    684  1.3  christos AUTOHEADER
    685  1.3  christos AUTOMAKE
    686  1.3  christos AUTOCONF
    687  1.3  christos ACLOCAL
    688  1.3  christos VERSION
    689  1.3  christos PACKAGE
    690  1.3  christos CYGPATH_W
    691  1.3  christos am__isrc
    692  1.3  christos INSTALL_DATA
    693  1.3  christos INSTALL_SCRIPT
    694  1.3  christos INSTALL_PROGRAM
    695  1.3  christos target_alias
    696  1.3  christos host_alias
    697  1.3  christos build_alias
    698  1.3  christos LIBS
    699  1.3  christos ECHO_T
    700  1.3  christos ECHO_N
    701  1.3  christos ECHO_C
    702  1.3  christos DEFS
    703  1.3  christos mandir
    704  1.3  christos localedir
    705  1.3  christos libdir
    706  1.3  christos psdir
    707  1.3  christos pdfdir
    708  1.3  christos dvidir
    709  1.3  christos htmldir
    710  1.3  christos infodir
    711  1.3  christos docdir
    712  1.3  christos oldincludedir
    713  1.3  christos includedir
    714  1.3  christos localstatedir
    715  1.3  christos sharedstatedir
    716  1.3  christos sysconfdir
    717  1.3  christos datadir
    718  1.3  christos datarootdir
    719  1.3  christos libexecdir
    720  1.3  christos sbindir
    721  1.3  christos bindir
    722  1.3  christos program_transform_name
    723  1.3  christos prefix
    724  1.3  christos exec_prefix
    725  1.4  christos PACKAGE_URL
    726  1.3  christos PACKAGE_BUGREPORT
    727  1.3  christos PACKAGE_STRING
    728  1.3  christos PACKAGE_VERSION
    729  1.3  christos PACKAGE_TARNAME
    730  1.3  christos PACKAGE_NAME
    731  1.3  christos PATH_SEPARATOR
    732  1.3  christos SHELL'
    733  1.1  christos ac_subst_files='MKTEMP_SH_FUNCTION'
    734  1.3  christos ac_user_opts='
    735  1.3  christos enable_option_checking
    736  1.3  christos enable_maintainer_mode
    737  1.3  christos enable_dependency_tracking
    738  1.3  christos enable_largefile
    739  1.3  christos with_included_regex
    740  1.3  christos with_krb4
    741  1.3  christos with_gssapi
    742  1.3  christos with_rsh
    743  1.3  christos with_editor
    744  1.3  christos with_hardcoded_pam_service_name
    745  1.3  christos with_tmpdir
    746  1.3  christos with_umask
    747  1.3  christos with_cvs_admin_group
    748  1.3  christos enable_cvs_ndbm
    749  1.3  christos enable_client
    750  1.3  christos enable_password_authenticated_client
    751  1.3  christos enable_server
    752  1.3  christos enable_server_flow_control
    753  1.3  christos enable_proxy
    754  1.3  christos enable_pam
    755  1.3  christos enable_case_sensitivity
    756  1.3  christos enable_encryption
    757  1.3  christos enable_force_editor
    758  1.3  christos enable_lock_compatibility
    759  1.3  christos enable_rootcommit
    760  1.3  christos enable_old_info_support
    761  1.3  christos enable_config_override
    762  1.3  christos '
    763  1.3  christos       ac_precious_vars='build_alias
    764  1.3  christos host_alias
    765  1.3  christos target_alias
    766  1.3  christos CC
    767  1.3  christos CFLAGS
    768  1.3  christos LDFLAGS
    769  1.3  christos LIBS
    770  1.3  christos CPPFLAGS
    771  1.3  christos CPP
    772  1.3  christos YACC
    773  1.3  christos YFLAGS
    774  1.3  christos EDITOR'
    775  1.3  christos 
    776  1.1  christos 
    777  1.1  christos # Initialize some variables set by options.
    778  1.1  christos ac_init_help=
    779  1.1  christos ac_init_version=false
    780  1.3  christos ac_unrecognized_opts=
    781  1.3  christos ac_unrecognized_sep=
    782  1.1  christos # The variables have the same names as the options, with
    783  1.1  christos # dashes changed to underlines.
    784  1.1  christos cache_file=/dev/null
    785  1.1  christos exec_prefix=NONE
    786  1.1  christos no_create=
    787  1.1  christos no_recursion=
    788  1.1  christos prefix=NONE
    789  1.1  christos program_prefix=NONE
    790  1.1  christos program_suffix=NONE
    791  1.1  christos program_transform_name=s,x,x,
    792  1.1  christos silent=
    793  1.1  christos site=
    794  1.1  christos srcdir=
    795  1.1  christos verbose=
    796  1.1  christos x_includes=NONE
    797  1.1  christos x_libraries=NONE
    798  1.1  christos 
    799  1.1  christos # Installation directory options.
    800  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    801  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    802  1.1  christos # by default will actually change.
    803  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    804  1.3  christos # (The list follows the same order as the GNU Coding Standards.)
    805  1.1  christos bindir='${exec_prefix}/bin'
    806  1.1  christos sbindir='${exec_prefix}/sbin'
    807  1.1  christos libexecdir='${exec_prefix}/libexec'
    808  1.3  christos datarootdir='${prefix}/share'
    809  1.3  christos datadir='${datarootdir}'
    810  1.1  christos sysconfdir='${prefix}/etc'
    811  1.1  christos sharedstatedir='${prefix}/com'
    812  1.1  christos localstatedir='${prefix}/var'
    813  1.1  christos includedir='${prefix}/include'
    814  1.1  christos oldincludedir='/usr/include'
    815  1.3  christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    816  1.3  christos infodir='${datarootdir}/info'
    817  1.3  christos htmldir='${docdir}'
    818  1.3  christos dvidir='${docdir}'
    819  1.3  christos pdfdir='${docdir}'
    820  1.3  christos psdir='${docdir}'
    821  1.3  christos libdir='${exec_prefix}/lib'
    822  1.3  christos localedir='${datarootdir}/locale'
    823  1.3  christos mandir='${datarootdir}/man'
    824  1.1  christos 
    825  1.1  christos ac_prev=
    826  1.3  christos ac_dashdash=
    827  1.1  christos for ac_option
    828  1.1  christos do
    829  1.1  christos   # If the previous option needs an argument, assign it.
    830  1.1  christos   if test -n "$ac_prev"; then
    831  1.3  christos     eval $ac_prev=\$ac_option
    832  1.1  christos     ac_prev=
    833  1.1  christos     continue
    834  1.1  christos   fi
    835  1.1  christos 
    836  1.3  christos   case $ac_option in
    837  1.3  christos   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    838  1.3  christos   *)	ac_optarg=yes ;;
    839  1.3  christos   esac
    840  1.1  christos 
    841  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    842  1.1  christos 
    843  1.3  christos   case $ac_dashdash$ac_option in
    844  1.3  christos   --)
    845  1.3  christos     ac_dashdash=yes ;;
    846  1.1  christos 
    847  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    848  1.1  christos     ac_prev=bindir ;;
    849  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    850  1.1  christos     bindir=$ac_optarg ;;
    851  1.1  christos 
    852  1.1  christos   -build | --build | --buil | --bui | --bu)
    853  1.1  christos     ac_prev=build_alias ;;
    854  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    855  1.1  christos     build_alias=$ac_optarg ;;
    856  1.1  christos 
    857  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    858  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    859  1.1  christos     ac_prev=cache_file ;;
    860  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    861  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    862  1.1  christos     cache_file=$ac_optarg ;;
    863  1.1  christos 
    864  1.1  christos   --config-cache | -C)
    865  1.1  christos     cache_file=config.cache ;;
    866  1.1  christos 
    867  1.3  christos   -datadir | --datadir | --datadi | --datad)
    868  1.1  christos     ac_prev=datadir ;;
    869  1.3  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    870  1.1  christos     datadir=$ac_optarg ;;
    871  1.1  christos 
    872  1.3  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    873  1.3  christos   | --dataroo | --dataro | --datar)
    874  1.3  christos     ac_prev=datarootdir ;;
    875  1.3  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    876  1.3  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    877  1.3  christos     datarootdir=$ac_optarg ;;
    878  1.3  christos 
    879  1.1  christos   -disable-* | --disable-*)
    880  1.3  christos     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    881  1.1  christos     # Reject names that are not valid shell variable names.
    882  1.3  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    883  1.4  christos       as_fn_error "invalid feature name: $ac_useropt"
    884  1.3  christos     ac_useropt_orig=$ac_useropt
    885  1.3  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    886  1.3  christos     case $ac_user_opts in
    887  1.3  christos       *"
    888  1.3  christos "enable_$ac_useropt"
    889  1.3  christos "*) ;;
    890  1.3  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    891  1.3  christos 	 ac_unrecognized_sep=', ';;
    892  1.3  christos     esac
    893  1.3  christos     eval enable_$ac_useropt=no ;;
    894  1.3  christos 
    895  1.3  christos   -docdir | --docdir | --docdi | --doc | --do)
    896  1.3  christos     ac_prev=docdir ;;
    897  1.3  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    898  1.3  christos     docdir=$ac_optarg ;;
    899  1.3  christos 
    900  1.3  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    901  1.3  christos     ac_prev=dvidir ;;
    902  1.3  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    903  1.3  christos     dvidir=$ac_optarg ;;
    904  1.1  christos 
    905  1.1  christos   -enable-* | --enable-*)
    906  1.3  christos     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    907  1.1  christos     # Reject names that are not valid shell variable names.
    908  1.3  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    909  1.4  christos       as_fn_error "invalid feature name: $ac_useropt"
    910  1.3  christos     ac_useropt_orig=$ac_useropt
    911  1.3  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    912  1.3  christos     case $ac_user_opts in
    913  1.3  christos       *"
    914  1.3  christos "enable_$ac_useropt"
    915  1.3  christos "*) ;;
    916  1.3  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    917  1.3  christos 	 ac_unrecognized_sep=', ';;
    918  1.1  christos     esac
    919  1.3  christos     eval enable_$ac_useropt=\$ac_optarg ;;
    920  1.1  christos 
    921  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    922  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    923  1.1  christos   | --exec | --exe | --ex)
    924  1.1  christos     ac_prev=exec_prefix ;;
    925  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    926  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    927  1.1  christos   | --exec=* | --exe=* | --ex=*)
    928  1.1  christos     exec_prefix=$ac_optarg ;;
    929  1.1  christos 
    930  1.1  christos   -gas | --gas | --ga | --g)
    931  1.1  christos     # Obsolete; use --with-gas.
    932  1.1  christos     with_gas=yes ;;
    933  1.1  christos 
    934  1.1  christos   -help | --help | --hel | --he | -h)
    935  1.1  christos     ac_init_help=long ;;
    936  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    937  1.1  christos     ac_init_help=recursive ;;
    938  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    939  1.1  christos     ac_init_help=short ;;
    940  1.1  christos 
    941  1.1  christos   -host | --host | --hos | --ho)
    942  1.1  christos     ac_prev=host_alias ;;
    943  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    944  1.1  christos     host_alias=$ac_optarg ;;
    945  1.1  christos 
    946  1.3  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    947  1.3  christos     ac_prev=htmldir ;;
    948  1.3  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    949  1.3  christos   | --ht=*)
    950  1.3  christos     htmldir=$ac_optarg ;;
    951  1.3  christos 
    952  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    953  1.1  christos   | --includ | --inclu | --incl | --inc)
    954  1.1  christos     ac_prev=includedir ;;
    955  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    956  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    957  1.1  christos     includedir=$ac_optarg ;;
    958  1.1  christos 
    959  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    960  1.1  christos     ac_prev=infodir ;;
    961  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    962  1.1  christos     infodir=$ac_optarg ;;
    963  1.1  christos 
    964  1.1  christos   -libdir | --libdir | --libdi | --libd)
    965  1.1  christos     ac_prev=libdir ;;
    966  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    967  1.1  christos     libdir=$ac_optarg ;;
    968  1.1  christos 
    969  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    970  1.1  christos   | --libexe | --libex | --libe)
    971  1.1  christos     ac_prev=libexecdir ;;
    972  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    973  1.1  christos   | --libexe=* | --libex=* | --libe=*)
    974  1.1  christos     libexecdir=$ac_optarg ;;
    975  1.1  christos 
    976  1.3  christos   -localedir | --localedir | --localedi | --localed | --locale)
    977  1.3  christos     ac_prev=localedir ;;
    978  1.3  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    979  1.3  christos     localedir=$ac_optarg ;;
    980  1.3  christos 
    981  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    982  1.3  christos   | --localstate | --localstat | --localsta | --localst | --locals)
    983  1.1  christos     ac_prev=localstatedir ;;
    984  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    985  1.3  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    986  1.1  christos     localstatedir=$ac_optarg ;;
    987  1.1  christos 
    988  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    989  1.1  christos     ac_prev=mandir ;;
    990  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    991  1.1  christos     mandir=$ac_optarg ;;
    992  1.1  christos 
    993  1.1  christos   -nfp | --nfp | --nf)
    994  1.1  christos     # Obsolete; use --without-fp.
    995  1.1  christos     with_fp=no ;;
    996  1.1  christos 
    997  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    998  1.1  christos   | --no-cr | --no-c | -n)
    999  1.1  christos     no_create=yes ;;
   1000  1.1  christos 
   1001  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1002  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1003  1.1  christos     no_recursion=yes ;;
   1004  1.1  christos 
   1005  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1006  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1007  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
   1008  1.1  christos     ac_prev=oldincludedir ;;
   1009  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1010  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1011  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1012  1.1  christos     oldincludedir=$ac_optarg ;;
   1013  1.1  christos 
   1014  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1015  1.1  christos     ac_prev=prefix ;;
   1016  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1017  1.1  christos     prefix=$ac_optarg ;;
   1018  1.1  christos 
   1019  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1020  1.1  christos   | --program-pre | --program-pr | --program-p)
   1021  1.1  christos     ac_prev=program_prefix ;;
   1022  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1023  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1024  1.1  christos     program_prefix=$ac_optarg ;;
   1025  1.1  christos 
   1026  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1027  1.1  christos   | --program-suf | --program-su | --program-s)
   1028  1.1  christos     ac_prev=program_suffix ;;
   1029  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1030  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1031  1.1  christos     program_suffix=$ac_optarg ;;
   1032  1.1  christos 
   1033  1.1  christos   -program-transform-name | --program-transform-name \
   1034  1.1  christos   | --program-transform-nam | --program-transform-na \
   1035  1.1  christos   | --program-transform-n | --program-transform- \
   1036  1.1  christos   | --program-transform | --program-transfor \
   1037  1.1  christos   | --program-transfo | --program-transf \
   1038  1.1  christos   | --program-trans | --program-tran \
   1039  1.1  christos   | --progr-tra | --program-tr | --program-t)
   1040  1.1  christos     ac_prev=program_transform_name ;;
   1041  1.1  christos   -program-transform-name=* | --program-transform-name=* \
   1042  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
   1043  1.1  christos   | --program-transform-n=* | --program-transform-=* \
   1044  1.1  christos   | --program-transform=* | --program-transfor=* \
   1045  1.1  christos   | --program-transfo=* | --program-transf=* \
   1046  1.1  christos   | --program-trans=* | --program-tran=* \
   1047  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
   1048  1.1  christos     program_transform_name=$ac_optarg ;;
   1049  1.1  christos 
   1050  1.3  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1051  1.3  christos     ac_prev=pdfdir ;;
   1052  1.3  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1053  1.3  christos     pdfdir=$ac_optarg ;;
   1054  1.3  christos 
   1055  1.3  christos   -psdir | --psdir | --psdi | --psd | --ps)
   1056  1.3  christos     ac_prev=psdir ;;
   1057  1.3  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1058  1.3  christos     psdir=$ac_optarg ;;
   1059  1.3  christos 
   1060  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1061  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
   1062  1.1  christos     silent=yes ;;
   1063  1.1  christos 
   1064  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1065  1.1  christos     ac_prev=sbindir ;;
   1066  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1067  1.1  christos   | --sbi=* | --sb=*)
   1068  1.1  christos     sbindir=$ac_optarg ;;
   1069  1.1  christos 
   1070  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1071  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1072  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
   1073  1.1  christos   | --sha | --sh)
   1074  1.1  christos     ac_prev=sharedstatedir ;;
   1075  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1076  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1077  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1078  1.1  christos   | --sha=* | --sh=*)
   1079  1.1  christos     sharedstatedir=$ac_optarg ;;
   1080  1.1  christos 
   1081  1.1  christos   -site | --site | --sit)
   1082  1.1  christos     ac_prev=site ;;
   1083  1.1  christos   -site=* | --site=* | --sit=*)
   1084  1.1  christos     site=$ac_optarg ;;
   1085  1.1  christos 
   1086  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1087  1.1  christos     ac_prev=srcdir ;;
   1088  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1089  1.1  christos     srcdir=$ac_optarg ;;
   1090  1.1  christos 
   1091  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1092  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
   1093  1.1  christos     ac_prev=sysconfdir ;;
   1094  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1095  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1096  1.1  christos     sysconfdir=$ac_optarg ;;
   1097  1.1  christos 
   1098  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
   1099  1.1  christos     ac_prev=target_alias ;;
   1100  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1101  1.1  christos     target_alias=$ac_optarg ;;
   1102  1.1  christos 
   1103  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1104  1.1  christos     verbose=yes ;;
   1105  1.1  christos 
   1106  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
   1107  1.1  christos     ac_init_version=: ;;
   1108  1.1  christos 
   1109  1.1  christos   -with-* | --with-*)
   1110  1.3  christos     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1111  1.1  christos     # Reject names that are not valid shell variable names.
   1112  1.3  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1113  1.4  christos       as_fn_error "invalid package name: $ac_useropt"
   1114  1.3  christos     ac_useropt_orig=$ac_useropt
   1115  1.3  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1116  1.3  christos     case $ac_user_opts in
   1117  1.3  christos       *"
   1118  1.3  christos "with_$ac_useropt"
   1119  1.3  christos "*) ;;
   1120  1.3  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1121  1.3  christos 	 ac_unrecognized_sep=', ';;
   1122  1.1  christos     esac
   1123  1.3  christos     eval with_$ac_useropt=\$ac_optarg ;;
   1124  1.1  christos 
   1125  1.1  christos   -without-* | --without-*)
   1126  1.3  christos     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1127  1.1  christos     # Reject names that are not valid shell variable names.
   1128  1.3  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1129  1.4  christos       as_fn_error "invalid package name: $ac_useropt"
   1130  1.3  christos     ac_useropt_orig=$ac_useropt
   1131  1.3  christos     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1132  1.3  christos     case $ac_user_opts in
   1133  1.3  christos       *"
   1134  1.3  christos "with_$ac_useropt"
   1135  1.3  christos "*) ;;
   1136  1.3  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1137  1.3  christos 	 ac_unrecognized_sep=', ';;
   1138  1.3  christos     esac
   1139  1.3  christos     eval with_$ac_useropt=no ;;
   1140  1.1  christos 
   1141  1.1  christos   --x)
   1142  1.1  christos     # Obsolete; use --with-x.
   1143  1.1  christos     with_x=yes ;;
   1144  1.1  christos 
   1145  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1146  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
   1147  1.1  christos     ac_prev=x_includes ;;
   1148  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1149  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1150  1.1  christos     x_includes=$ac_optarg ;;
   1151  1.1  christos 
   1152  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1153  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1154  1.1  christos     ac_prev=x_libraries ;;
   1155  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1156  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1157  1.1  christos     x_libraries=$ac_optarg ;;
   1158  1.1  christos 
   1159  1.4  christos   -*) as_fn_error "unrecognized option: \`$ac_option'
   1160  1.4  christos Try \`$0 --help' for more information."
   1161  1.1  christos     ;;
   1162  1.1  christos 
   1163  1.1  christos   *=*)
   1164  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1165  1.1  christos     # Reject names that are not valid shell variable names.
   1166  1.4  christos     case $ac_envvar in #(
   1167  1.4  christos       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1168  1.4  christos       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1169  1.4  christos     esac
   1170  1.3  christos     eval $ac_envvar=\$ac_optarg
   1171  1.1  christos     export $ac_envvar ;;
   1172  1.1  christos 
   1173  1.1  christos   *)
   1174  1.1  christos     # FIXME: should be removed in autoconf 3.0.
   1175  1.3  christos     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1176  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1177  1.3  christos       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1178  1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1179  1.1  christos     ;;
   1180  1.1  christos 
   1181  1.1  christos   esac
   1182  1.1  christos done
   1183  1.1  christos 
   1184  1.1  christos if test -n "$ac_prev"; then
   1185  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1186  1.4  christos   as_fn_error "missing argument to $ac_option"
   1187  1.1  christos fi
   1188  1.1  christos 
   1189  1.3  christos if test -n "$ac_unrecognized_opts"; then
   1190  1.3  christos   case $enable_option_checking in
   1191  1.3  christos     no) ;;
   1192  1.4  christos     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1193  1.3  christos     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1194  1.1  christos   esac
   1195  1.3  christos fi
   1196  1.1  christos 
   1197  1.3  christos # Check all directory arguments for consistency.
   1198  1.3  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1199  1.3  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1200  1.3  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1201  1.3  christos 		libdir localedir mandir
   1202  1.1  christos do
   1203  1.3  christos   eval ac_val=\$$ac_var
   1204  1.3  christos   # Remove trailing slashes.
   1205  1.1  christos   case $ac_val in
   1206  1.3  christos     */ )
   1207  1.3  christos       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1208  1.3  christos       eval $ac_var=\$ac_val;;
   1209  1.1  christos   esac
   1210  1.3  christos   # Be sure to have absolute directory names.
   1211  1.3  christos   case $ac_val in
   1212  1.3  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1213  1.3  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1214  1.3  christos   esac
   1215  1.4  christos   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1216  1.1  christos done
   1217  1.1  christos 
   1218  1.1  christos # There might be people who depend on the old broken behavior: `$host'
   1219  1.1  christos # used to hold the argument of --host etc.
   1220  1.1  christos # FIXME: To remove some day.
   1221  1.1  christos build=$build_alias
   1222  1.1  christos host=$host_alias
   1223  1.1  christos target=$target_alias
   1224  1.1  christos 
   1225  1.1  christos # FIXME: To remove some day.
   1226  1.1  christos if test "x$host_alias" != x; then
   1227  1.1  christos   if test "x$build_alias" = x; then
   1228  1.1  christos     cross_compiling=maybe
   1229  1.3  christos     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1230  1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
   1231  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
   1232  1.1  christos     cross_compiling=yes
   1233  1.1  christos   fi
   1234  1.1  christos fi
   1235  1.1  christos 
   1236  1.1  christos ac_tool_prefix=
   1237  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1238  1.1  christos 
   1239  1.1  christos test "$silent" = yes && exec 6>/dev/null
   1240  1.1  christos 
   1241  1.1  christos 
   1242  1.3  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1243  1.3  christos ac_ls_di=`ls -di .` &&
   1244  1.3  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1245  1.4  christos   as_fn_error "working directory cannot be determined"
   1246  1.3  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1247  1.4  christos   as_fn_error "pwd does not report name of working directory"
   1248  1.3  christos 
   1249  1.3  christos 
   1250  1.1  christos # Find the source files, if location was not specified.
   1251  1.1  christos if test -z "$srcdir"; then
   1252  1.1  christos   ac_srcdir_defaulted=yes
   1253  1.3  christos   # Try the directory containing this script, then the parent directory.
   1254  1.3  christos   ac_confdir=`$as_dirname -- "$as_myself" ||
   1255  1.3  christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1256  1.3  christos 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1257  1.3  christos 	 X"$as_myself" : 'X\(//\)$' \| \
   1258  1.3  christos 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1259  1.3  christos $as_echo X"$as_myself" |
   1260  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1261  1.3  christos 	    s//\1/
   1262  1.3  christos 	    q
   1263  1.3  christos 	  }
   1264  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   1265  1.3  christos 	    s//\1/
   1266  1.3  christos 	    q
   1267  1.3  christos 	  }
   1268  1.3  christos 	  /^X\(\/\/\)$/{
   1269  1.3  christos 	    s//\1/
   1270  1.3  christos 	    q
   1271  1.3  christos 	  }
   1272  1.3  christos 	  /^X\(\/\).*/{
   1273  1.3  christos 	    s//\1/
   1274  1.3  christos 	    q
   1275  1.3  christos 	  }
   1276  1.3  christos 	  s/.*/./; q'`
   1277  1.1  christos   srcdir=$ac_confdir
   1278  1.3  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1279  1.1  christos     srcdir=..
   1280  1.1  christos   fi
   1281  1.1  christos else
   1282  1.1  christos   ac_srcdir_defaulted=no
   1283  1.1  christos fi
   1284  1.3  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1285  1.3  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1286  1.4  christos   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1287  1.1  christos fi
   1288  1.3  christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1289  1.3  christos ac_abs_confdir=`(
   1290  1.4  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1291  1.3  christos 	pwd)`
   1292  1.3  christos # When building in place, set srcdir=.
   1293  1.3  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1294  1.3  christos   srcdir=.
   1295  1.3  christos fi
   1296  1.3  christos # Remove unnecessary trailing slashes from srcdir.
   1297  1.3  christos # Double slashes in file names in object file debugging info
   1298  1.3  christos # mess up M-x gdb in Emacs.
   1299  1.3  christos case $srcdir in
   1300  1.3  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1301  1.3  christos esac
   1302  1.3  christos for ac_var in $ac_precious_vars; do
   1303  1.3  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1304  1.3  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1305  1.3  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1306  1.3  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1307  1.3  christos done
   1308  1.1  christos 
   1309  1.1  christos #
   1310  1.1  christos # Report the --help message.
   1311  1.1  christos #
   1312  1.1  christos if test "$ac_init_help" = "long"; then
   1313  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1314  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1315  1.1  christos   cat <<_ACEOF
   1316  1.1  christos \`configure' configures Concurrent Versions System (CVS) 1.12.13 to adapt to many kinds of systems.
   1317  1.1  christos 
   1318  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1319  1.1  christos 
   1320  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1321  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1322  1.1  christos 
   1323  1.1  christos Defaults for the options are specified in brackets.
   1324  1.1  christos 
   1325  1.1  christos Configuration:
   1326  1.1  christos   -h, --help              display this help and exit
   1327  1.1  christos       --help=short        display options specific to this package
   1328  1.1  christos       --help=recursive    display the short help of all the included packages
   1329  1.1  christos   -V, --version           display version information and exit
   1330  1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
   1331  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1332  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1333  1.1  christos   -n, --no-create         do not create output files
   1334  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1335  1.1  christos 
   1336  1.1  christos Installation directories:
   1337  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1338  1.3  christos                           [$ac_default_prefix]
   1339  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1340  1.3  christos                           [PREFIX]
   1341  1.1  christos 
   1342  1.1  christos By default, \`make install' will install all the files in
   1343  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1344  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1345  1.1  christos for instance \`--prefix=\$HOME'.
   1346  1.1  christos 
   1347  1.1  christos For better control, use the options below.
   1348  1.1  christos 
   1349  1.1  christos Fine tuning of the installation directories:
   1350  1.3  christos   --bindir=DIR            user executables [EPREFIX/bin]
   1351  1.3  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1352  1.3  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1353  1.3  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1354  1.3  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1355  1.3  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1356  1.3  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
   1357  1.3  christos   --includedir=DIR        C header files [PREFIX/include]
   1358  1.3  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1359  1.3  christos   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1360  1.3  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1361  1.3  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1362  1.3  christos   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1363  1.3  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1364  1.3  christos   --docdir=DIR            documentation root [DATAROOTDIR/doc/cvs]
   1365  1.3  christos   --htmldir=DIR           html documentation [DOCDIR]
   1366  1.3  christos   --dvidir=DIR            dvi documentation [DOCDIR]
   1367  1.3  christos   --pdfdir=DIR            pdf documentation [DOCDIR]
   1368  1.3  christos   --psdir=DIR             ps documentation [DOCDIR]
   1369  1.1  christos _ACEOF
   1370  1.1  christos 
   1371  1.1  christos   cat <<\_ACEOF
   1372  1.1  christos 
   1373  1.1  christos Program names:
   1374  1.1  christos   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1375  1.1  christos   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1376  1.1  christos   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1377  1.1  christos _ACEOF
   1378  1.1  christos fi
   1379  1.1  christos 
   1380  1.1  christos if test -n "$ac_init_help"; then
   1381  1.1  christos   case $ac_init_help in
   1382  1.1  christos      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.13:";;
   1383  1.1  christos    esac
   1384  1.1  christos   cat <<\_ACEOF
   1385  1.1  christos 
   1386  1.1  christos Optional Features:
   1387  1.3  christos   --disable-option-checking  ignore unrecognized --enable/--with options
   1388  1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1389  1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1390  1.1  christos   --enable-maintainer-mode  enable make rules and dependencies not useful
   1391  1.1  christos 			  (and sometimes confusing) to the casual installer
   1392  1.1  christos   --disable-dependency-tracking  speeds up one-time build
   1393  1.1  christos   --enable-dependency-tracking   do not reject slow dependency extractors
   1394  1.1  christos   --disable-largefile     omit support for large files
   1395  1.1  christos   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
   1396  1.1  christos                           than attempting to use a system NDBM library.
   1397  1.1  christos                           Disabling this may not work. (default)
   1398  1.1  christos   --enable-client         Include code for running as a remote client
   1399  1.1  christos                           (default)
   1400  1.1  christos   --enable-password-authenticated-client
   1401  1.1  christos                           Enable pserver as a remote access method in the CVS
   1402  1.1  christos                           client (default)
   1403  1.1  christos   --enable-server         Include code for running as a server (default)
   1404  1.1  christos   --enable-server-flow-control
   1405  1.1  christos                           If you are working with a large remote repository
   1406  1.1  christos                           and a 'cvs checkout' is swamping your network and
   1407  1.1  christos                           memory, define these to enable flow control. You may
   1408  1.1  christos                           optionally pass a low water mark in bytes and a high
   1409  1.1  christos                           water mark in bytes, separated by commas. (default
   1410  1.1  christos                           is enabled 1M,2M)
   1411  1.1  christos   --enable-proxy          Include code for running as a transparent proxy
   1412  1.1  christos                           server. Disabling this may produce a slight
   1413  1.1  christos                           performance gain on some systems, at the expense of
   1414  1.1  christos                           write proxy support. (default)
   1415  1.1  christos   --enable-pam            Use to enable system authentication with PAM instead
   1416  1.1  christos                           of using the simple getpwnam interface. This allows
   1417  1.1  christos                           authentication (in theory) with any PAM module, e.g.
   1418  1.1  christos                           on systems with shadow passwords or via LDAP
   1419  1.1  christos   --enable-case-sensitivity
   1420  1.1  christos                           Force CVS to expect a case sensitive file system.
   1421  1.1  christos                           Enabling this on a case insensitive system should
   1422  1.1  christos                           have little effect on the server or client
   1423  1.1  christos                           operation, though client users may ocassionally be
   1424  1.1  christos                           suprised that the CVS server appears to be case
   1425  1.1  christos                           sensitive. Disabling this for a case sensitive
   1426  1.1  christos                           server disables server support for case insensitive
   1427  1.1  christos                           clients, which can confuse all users of case
   1428  1.1  christos                           insensitive clients contacting the server. Disabling
   1429  1.1  christos                           this for a case sensitive client will cause the
   1430  1.1  christos                           client to ask servers to behave case insensitively,
   1431  1.1  christos                           which could cause confusion for users, but also
   1432  1.1  christos                           probably no real harm. (default autoselects based on
   1433  1.1  christos                           the case sensitivity of the file system containing
   1434  1.1  christos                           the current working directory)
   1435  1.1  christos   --enable-encryption     Enable encryption support (disabled by default)
   1436  1.1  christos   --enable-force-editor   When committing or importing files, you must enter a
   1437  1.1  christos                           log message. Normally, you can do this either via
   1438  1.1  christos                           the -m flag on the command line, the -F flag on the
   1439  1.1  christos                           command line, or an editor will be started for you.
   1440  1.1  christos                           If you like to use logging templates (the rcsinfo
   1441  1.1  christos                           file within the $CVSROOT/CVSROOT directory), you
   1442  1.1  christos                           might want to force people to use the editor even if
   1443  1.1  christos                           they specify a message with -m or -F.
   1444  1.1  christos                           --enable-force-editor will cause the -m or -F
   1445  1.1  christos                           message to be appended to the temp file when the
   1446  1.1  christos                           editor is started. (disabled by default)
   1447  1.1  christos   --enable-lock-compatibility
   1448  1.1  christos                           Include locking code which prevents versions of CVS
   1449  1.1  christos                           earlier than 1.12.4 directly accessing the same
   1450  1.1  christos                           repositiory as this executable from ignoring this
   1451  1.1  christos                           executable's promotable read locks. If only CVS
   1452  1.1  christos                           versions 1.12.4 and later will be accessing your
   1453  1.1  christos                           repository directly (as a server or locally), you
   1454  1.1  christos                           can safely disable this option in return for fewer
   1455  1.1  christos                           disk accesses and a small speed increase. Disabling
   1456  1.1  christos                           this option when versions of CVS earlier than 1,12,4
   1457  1.1  christos                           _will_ be accessing your repository, however, is
   1458  1.1  christos                           *VERY* *VERY* *VERY* dangerous and could result in
   1459  1.1  christos                           data loss. (enabled by default)
   1460  1.1  christos   --enable-rootcommit     Allow the root user to commit files (disabled by
   1461  1.1  christos                           default)
   1462  1.1  christos   --enable-old-info-format-support
   1463  1.1  christos                           Enable support for the pre 1.12.1 *info scripting
   1464  1.1  christos                           hook format strings. Disable this option for a
   1465  1.1  christos                           smaller executable once your scripting hooks have
   1466  1.1  christos                           been updated to use the new *info format strings
   1467  1.1  christos                           (default).
   1468  1.1  christos   --enable-config-override
   1469  1.1  christos                           Set to a comma-seperated list of paths to
   1470  1.1  christos                           directories (designated by trailing `/') and files,
   1471  1.1  christos                           specifies the path prefixes (for directories) and
   1472  1.1  christos                           paths to files the CVS server commands will allow
   1473  1.1  christos                           configuration to be read from. Specify
   1474  1.1  christos                           `--enable-config-override=no' to disable config file
   1475  1.1  christos                           overrides completely and
   1476  1.1  christos                           `--enable-config-override=/' or simply
   1477  1.1  christos                           `--enable-config-override' to allow all paths.
   1478  1.1  christos                           (Defaults to `SYSCONFDIR/cvs.conf,SYSCONFDIR/cvs/')
   1479  1.1  christos 
   1480  1.1  christos Optional Packages:
   1481  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1482  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1483  1.1  christos   --without-included-regex
   1484  1.1  christos                           don't compile regex; this is the default on systems
   1485  1.1  christos                           with recent-enough versions of the GNU C Library
   1486  1.1  christos                           (use with caution on other systems)
   1487  1.1  christos   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
   1488  1.1  christos   --with-gssapi           GSSAPI directory (default autoselects)
   1489  1.1  christos   --with-rsh              The default remote shell CVS will use for :ext:
   1490  1.1  christos                           transport (default ssh)
   1491  1.1  christos   --with-editor           The default text editor CVS should use for log
   1492  1.1  christos                           messages (default autoselects)
   1493  1.1  christos   --with-hardcoded-pam-service-name
   1494  1.1  christos                           Use this to hard code a service name for PAM CVS
   1495  1.1  christos                           authentication. The special name, `program_name',
   1496  1.1  christos                           will cause CVS to use whatever name it was invoked
   1497  1.1  christos                           as as the service name. (defaults to `cvs')
   1498  1.1  christos   --with-tmpdir           The temporary directory CVS should use as a default
   1499  1.1  christos                           (default autoselects)
   1500  1.1  christos   --with-umask            Set the umask CVS will use by default in the
   1501  1.1  christos                           repository (default 002)
   1502  1.1  christos   --with-cvs-admin-group=GROUP
   1503  1.1  christos                           The CVS admin command is restricted to the members
   1504  1.1  christos                           of this group. If this group does not exist, all
   1505  1.1  christos                           users are allowed to run CVS admin. To disable the
   1506  1.1  christos                           CVS admin command for all users, create an empty
   1507  1.1  christos                           group by specifying the --with-cvs-admin-group=
   1508  1.1  christos                           option. To disable access control for CVS admin, run
   1509  1.1  christos                           configure with the --without-cvs-admin-group option.
   1510  1.1  christos                           (default 'cvsadmin')
   1511  1.1  christos 
   1512  1.1  christos Some influential environment variables:
   1513  1.1  christos   CC          C compiler command
   1514  1.1  christos   CFLAGS      C compiler flags
   1515  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1516  1.1  christos               nonstandard directory <lib dir>
   1517  1.3  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1518  1.4  christos   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1519  1.3  christos               you have headers in a nonstandard directory <include dir>
   1520  1.1  christos   CPP         C preprocessor
   1521  1.1  christos   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
   1522  1.1  christos               `bison -y'. Values other than `bison -y' will most likely break
   1523  1.1  christos               on most systems.
   1524  1.1  christos   YFLAGS      YFLAGS contains the list arguments that will be passed by
   1525  1.1  christos               default to Bison. This script will default YFLAGS to the empty
   1526  1.1  christos               string to avoid a default value of `-d' given by some make
   1527  1.1  christos               applications.
   1528  1.1  christos   EDITOR      The text editor CVS will use by default for log messages.
   1529  1.1  christos 
   1530  1.1  christos Use these variables to override the choices made by `configure' or to help
   1531  1.1  christos it to find libraries and programs with nonstandard names/locations.
   1532  1.1  christos 
   1533  1.1  christos Report bugs to <bug-cvs (at] nongnu.org>.
   1534  1.1  christos _ACEOF
   1535  1.3  christos ac_status=$?
   1536  1.1  christos fi
   1537  1.1  christos 
   1538  1.1  christos if test "$ac_init_help" = "recursive"; then
   1539  1.1  christos   # If there are subdirs, report their specific --help.
   1540  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1541  1.3  christos     test -d "$ac_dir" ||
   1542  1.3  christos       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1543  1.3  christos       continue
   1544  1.1  christos     ac_builddir=.
   1545  1.1  christos 
   1546  1.3  christos case "$ac_dir" in
   1547  1.3  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1548  1.3  christos *)
   1549  1.3  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1550  1.3  christos   # A ".." for each directory in $ac_dir_suffix.
   1551  1.3  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1552  1.3  christos   case $ac_top_builddir_sub in
   1553  1.3  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1554  1.3  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1555  1.3  christos   esac ;;
   1556  1.3  christos esac
   1557  1.3  christos ac_abs_top_builddir=$ac_pwd
   1558  1.3  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1559  1.3  christos # for backward compatibility:
   1560  1.3  christos ac_top_builddir=$ac_top_build_prefix
   1561  1.1  christos 
   1562  1.1  christos case $srcdir in
   1563  1.3  christos   .)  # We are building in place.
   1564  1.1  christos     ac_srcdir=.
   1565  1.3  christos     ac_top_srcdir=$ac_top_builddir_sub
   1566  1.3  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1567  1.3  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1568  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1569  1.3  christos     ac_top_srcdir=$srcdir
   1570  1.3  christos     ac_abs_top_srcdir=$srcdir ;;
   1571  1.3  christos   *) # Relative name.
   1572  1.3  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1573  1.3  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1574  1.3  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1575  1.3  christos esac
   1576  1.3  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1577  1.3  christos 
   1578  1.3  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1579  1.3  christos     # Check for guested configure.
   1580  1.3  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1581  1.3  christos       echo &&
   1582  1.3  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1583  1.3  christos     elif test -f "$ac_srcdir/configure"; then
   1584  1.3  christos       echo &&
   1585  1.3  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1586  1.1  christos     else
   1587  1.3  christos       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1588  1.3  christos     fi || ac_status=$?
   1589  1.3  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1590  1.1  christos   done
   1591  1.1  christos fi
   1592  1.1  christos 
   1593  1.3  christos test -n "$ac_init_help" && exit $ac_status
   1594  1.1  christos if $ac_init_version; then
   1595  1.1  christos   cat <<\_ACEOF
   1596  1.1  christos Concurrent Versions System (CVS) configure 1.12.13
   1597  1.4  christos generated by GNU Autoconf 2.65
   1598  1.1  christos 
   1599  1.4  christos Copyright (C) 2009 Free Software Foundation, Inc.
   1600  1.1  christos This configure script is free software; the Free Software Foundation
   1601  1.1  christos gives unlimited permission to copy, distribute and modify it.
   1602  1.1  christos 
   1603  1.1  christos Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
   1604  1.1  christos               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
   1605  1.1  christos               Free Software Foundation, Inc.
   1606  1.1  christos 
   1607  1.1  christos This program is free software; you can redistribute it and/or modify
   1608  1.1  christos it under the terms of the GNU General Public License as published by
   1609  1.1  christos the Free Software Foundation; either version 2, or (at your option)
   1610  1.1  christos any later version.
   1611  1.1  christos 
   1612  1.1  christos This program is distributed in the hope that it will be useful,
   1613  1.1  christos but WITHOUT ANY WARRANTY; without even the implied warranty of
   1614  1.1  christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1615  1.1  christos GNU General Public License for more details.
   1616  1.1  christos _ACEOF
   1617  1.3  christos   exit
   1618  1.1  christos fi
   1619  1.1  christos 
   1620  1.4  christos ## ------------------------ ##
   1621  1.4  christos ## Autoconf initialization. ##
   1622  1.4  christos ## ------------------------ ##
   1623  1.4  christos 
   1624  1.4  christos # ac_fn_c_try_compile LINENO
   1625  1.4  christos # --------------------------
   1626  1.4  christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1627  1.4  christos ac_fn_c_try_compile ()
   1628  1.4  christos {
   1629  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1630  1.4  christos   rm -f conftest.$ac_objext
   1631  1.4  christos   if { { ac_try="$ac_compile"
   1632  1.4  christos case "(($ac_try" in
   1633  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1634  1.4  christos   *) ac_try_echo=$ac_try;;
   1635  1.4  christos esac
   1636  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1637  1.4  christos $as_echo "$ac_try_echo"; } >&5
   1638  1.4  christos   (eval "$ac_compile") 2>conftest.err
   1639  1.4  christos   ac_status=$?
   1640  1.4  christos   if test -s conftest.err; then
   1641  1.4  christos     grep -v '^ *+' conftest.err >conftest.er1
   1642  1.4  christos     cat conftest.er1 >&5
   1643  1.4  christos     mv -f conftest.er1 conftest.err
   1644  1.4  christos   fi
   1645  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1646  1.4  christos   test $ac_status = 0; } && {
   1647  1.4  christos 	 test -z "$ac_c_werror_flag" ||
   1648  1.4  christos 	 test ! -s conftest.err
   1649  1.4  christos        } && test -s conftest.$ac_objext; then :
   1650  1.4  christos   ac_retval=0
   1651  1.4  christos else
   1652  1.4  christos   $as_echo "$as_me: failed program was:" >&5
   1653  1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1654  1.4  christos 
   1655  1.4  christos 	ac_retval=1
   1656  1.4  christos fi
   1657  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1658  1.4  christos   as_fn_set_status $ac_retval
   1659  1.1  christos 
   1660  1.4  christos } # ac_fn_c_try_compile
   1661  1.1  christos 
   1662  1.4  christos # ac_fn_c_try_cpp LINENO
   1663  1.4  christos # ----------------------
   1664  1.4  christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1665  1.4  christos ac_fn_c_try_cpp ()
   1666  1.1  christos {
   1667  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1668  1.4  christos   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1669  1.4  christos case "(($ac_try" in
   1670  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1671  1.4  christos   *) ac_try_echo=$ac_try;;
   1672  1.4  christos esac
   1673  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1674  1.4  christos $as_echo "$ac_try_echo"; } >&5
   1675  1.4  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1676  1.4  christos   ac_status=$?
   1677  1.4  christos   if test -s conftest.err; then
   1678  1.4  christos     grep -v '^ *+' conftest.err >conftest.er1
   1679  1.4  christos     cat conftest.er1 >&5
   1680  1.4  christos     mv -f conftest.er1 conftest.err
   1681  1.4  christos   fi
   1682  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1683  1.4  christos   test $ac_status = 0; } >/dev/null && {
   1684  1.4  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1685  1.4  christos 	 test ! -s conftest.err
   1686  1.4  christos        }; then :
   1687  1.4  christos   ac_retval=0
   1688  1.4  christos else
   1689  1.4  christos   $as_echo "$as_me: failed program was:" >&5
   1690  1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1691  1.1  christos 
   1692  1.4  christos     ac_retval=1
   1693  1.4  christos fi
   1694  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1695  1.4  christos   as_fn_set_status $ac_retval
   1696  1.1  christos 
   1697  1.4  christos } # ac_fn_c_try_cpp
   1698  1.1  christos 
   1699  1.4  christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1700  1.4  christos # -------------------------------------------------------
   1701  1.4  christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1702  1.4  christos # the include files in INCLUDES and setting the cache variable VAR
   1703  1.4  christos # accordingly.
   1704  1.4  christos ac_fn_c_check_header_mongrel ()
   1705  1.4  christos {
   1706  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1707  1.4  christos   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1708  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1709  1.4  christos $as_echo_n "checking for $2... " >&6; }
   1710  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1711  1.4  christos   $as_echo_n "(cached) " >&6
   1712  1.4  christos fi
   1713  1.4  christos eval ac_res=\$$3
   1714  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1715  1.4  christos $as_echo "$ac_res" >&6; }
   1716  1.4  christos else
   1717  1.4  christos   # Is the header compilable?
   1718  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1719  1.4  christos $as_echo_n "checking $2 usability... " >&6; }
   1720  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1721  1.4  christos /* end confdefs.h.  */
   1722  1.4  christos $4
   1723  1.4  christos #include <$2>
   1724  1.4  christos _ACEOF
   1725  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   1726  1.4  christos   ac_header_compiler=yes
   1727  1.4  christos else
   1728  1.4  christos   ac_header_compiler=no
   1729  1.4  christos fi
   1730  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1731  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1732  1.4  christos $as_echo "$ac_header_compiler" >&6; }
   1733  1.1  christos 
   1734  1.4  christos # Is the header present?
   1735  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1736  1.4  christos $as_echo_n "checking $2 presence... " >&6; }
   1737  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1738  1.4  christos /* end confdefs.h.  */
   1739  1.4  christos #include <$2>
   1740  1.4  christos _ACEOF
   1741  1.4  christos if ac_fn_c_try_cpp "$LINENO"; then :
   1742  1.4  christos   ac_header_preproc=yes
   1743  1.4  christos else
   1744  1.4  christos   ac_header_preproc=no
   1745  1.4  christos fi
   1746  1.4  christos rm -f conftest.err conftest.$ac_ext
   1747  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1748  1.4  christos $as_echo "$ac_header_preproc" >&6; }
   1749  1.1  christos 
   1750  1.4  christos # So?  What about this header?
   1751  1.4  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1752  1.4  christos   yes:no: )
   1753  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1754  1.4  christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1755  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1756  1.4  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1757  1.4  christos     ;;
   1758  1.4  christos   no:yes:* )
   1759  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1760  1.4  christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1761  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1762  1.4  christos $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1763  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1764  1.4  christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1765  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1766  1.4  christos $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1767  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1768  1.4  christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1769  1.4  christos ( cat <<\_ASBOX
   1770  1.4  christos ## --------------------------------- ##
   1771  1.4  christos ## Report this to bug-cvs (at] nongnu.org ##
   1772  1.4  christos ## --------------------------------- ##
   1773  1.4  christos _ASBOX
   1774  1.4  christos      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1775  1.4  christos     ;;
   1776  1.4  christos esac
   1777  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1778  1.4  christos $as_echo_n "checking for $2... " >&6; }
   1779  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1780  1.4  christos   $as_echo_n "(cached) " >&6
   1781  1.4  christos else
   1782  1.4  christos   eval "$3=\$ac_header_compiler"
   1783  1.4  christos fi
   1784  1.4  christos eval ac_res=\$$3
   1785  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1786  1.4  christos $as_echo "$ac_res" >&6; }
   1787  1.4  christos fi
   1788  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1789  1.1  christos 
   1790  1.4  christos } # ac_fn_c_check_header_mongrel
   1791  1.1  christos 
   1792  1.4  christos # ac_fn_c_try_run LINENO
   1793  1.4  christos # ----------------------
   1794  1.4  christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1795  1.4  christos # that executables *can* be run.
   1796  1.4  christos ac_fn_c_try_run ()
   1797  1.4  christos {
   1798  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1799  1.4  christos   if { { ac_try="$ac_link"
   1800  1.4  christos case "(($ac_try" in
   1801  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1802  1.4  christos   *) ac_try_echo=$ac_try;;
   1803  1.4  christos esac
   1804  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1805  1.4  christos $as_echo "$ac_try_echo"; } >&5
   1806  1.4  christos   (eval "$ac_link") 2>&5
   1807  1.4  christos   ac_status=$?
   1808  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1809  1.4  christos   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1810  1.4  christos   { { case "(($ac_try" in
   1811  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1812  1.4  christos   *) ac_try_echo=$ac_try;;
   1813  1.4  christos esac
   1814  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1815  1.4  christos $as_echo "$ac_try_echo"; } >&5
   1816  1.4  christos   (eval "$ac_try") 2>&5
   1817  1.4  christos   ac_status=$?
   1818  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1819  1.4  christos   test $ac_status = 0; }; }; then :
   1820  1.4  christos   ac_retval=0
   1821  1.4  christos else
   1822  1.4  christos   $as_echo "$as_me: program exited with status $ac_status" >&5
   1823  1.4  christos        $as_echo "$as_me: failed program was:" >&5
   1824  1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1825  1.1  christos 
   1826  1.4  christos        ac_retval=$ac_status
   1827  1.4  christos fi
   1828  1.4  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1829  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1830  1.4  christos   as_fn_set_status $ac_retval
   1831  1.1  christos 
   1832  1.4  christos } # ac_fn_c_try_run
   1833  1.1  christos 
   1834  1.4  christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1835  1.4  christos # -------------------------------------------------------
   1836  1.4  christos # Tests whether HEADER exists and can be compiled using the include files in
   1837  1.4  christos # INCLUDES, setting the cache variable VAR accordingly.
   1838  1.4  christos ac_fn_c_check_header_compile ()
   1839  1.4  christos {
   1840  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1841  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1842  1.4  christos $as_echo_n "checking for $2... " >&6; }
   1843  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1844  1.4  christos   $as_echo_n "(cached) " >&6
   1845  1.4  christos else
   1846  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1847  1.4  christos /* end confdefs.h.  */
   1848  1.4  christos $4
   1849  1.4  christos #include <$2>
   1850  1.1  christos _ACEOF
   1851  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   1852  1.4  christos   eval "$3=yes"
   1853  1.4  christos else
   1854  1.4  christos   eval "$3=no"
   1855  1.4  christos fi
   1856  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1857  1.4  christos fi
   1858  1.4  christos eval ac_res=\$$3
   1859  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1860  1.4  christos $as_echo "$ac_res" >&6; }
   1861  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1862  1.1  christos 
   1863  1.4  christos } # ac_fn_c_check_header_compile
   1864  1.1  christos 
   1865  1.4  christos # ac_fn_c_try_link LINENO
   1866  1.4  christos # -----------------------
   1867  1.4  christos # Try to link conftest.$ac_ext, and return whether this succeeded.
   1868  1.4  christos ac_fn_c_try_link ()
   1869  1.4  christos {
   1870  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1871  1.4  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   1872  1.4  christos   if { { ac_try="$ac_link"
   1873  1.4  christos case "(($ac_try" in
   1874  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1875  1.4  christos   *) ac_try_echo=$ac_try;;
   1876  1.4  christos esac
   1877  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1878  1.4  christos $as_echo "$ac_try_echo"; } >&5
   1879  1.4  christos   (eval "$ac_link") 2>conftest.err
   1880  1.4  christos   ac_status=$?
   1881  1.4  christos   if test -s conftest.err; then
   1882  1.4  christos     grep -v '^ *+' conftest.err >conftest.er1
   1883  1.4  christos     cat conftest.er1 >&5
   1884  1.4  christos     mv -f conftest.er1 conftest.err
   1885  1.4  christos   fi
   1886  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1887  1.4  christos   test $ac_status = 0; } && {
   1888  1.4  christos 	 test -z "$ac_c_werror_flag" ||
   1889  1.4  christos 	 test ! -s conftest.err
   1890  1.4  christos        } && test -s conftest$ac_exeext && {
   1891  1.4  christos 	 test "$cross_compiling" = yes ||
   1892  1.4  christos 	 $as_test_x conftest$ac_exeext
   1893  1.4  christos        }; then :
   1894  1.4  christos   ac_retval=0
   1895  1.4  christos else
   1896  1.4  christos   $as_echo "$as_me: failed program was:" >&5
   1897  1.4  christos sed 's/^/| /' conftest.$ac_ext >&5
   1898  1.1  christos 
   1899  1.4  christos 	ac_retval=1
   1900  1.4  christos fi
   1901  1.4  christos   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1902  1.4  christos   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1903  1.4  christos   # interfere with the next link command; also delete a directory that is
   1904  1.4  christos   # left behind by Apple's compiler.  We do this before executing the actions.
   1905  1.4  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1906  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1907  1.4  christos   as_fn_set_status $ac_retval
   1908  1.1  christos 
   1909  1.4  christos } # ac_fn_c_try_link
   1910  1.1  christos 
   1911  1.4  christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1912  1.4  christos # -------------------------------------------
   1913  1.4  christos # Tests whether TYPE exists after having included INCLUDES, setting cache
   1914  1.4  christos # variable VAR accordingly.
   1915  1.4  christos ac_fn_c_check_type ()
   1916  1.4  christos {
   1917  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1918  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1919  1.4  christos $as_echo_n "checking for $2... " >&6; }
   1920  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1921  1.4  christos   $as_echo_n "(cached) " >&6
   1922  1.4  christos else
   1923  1.4  christos   eval "$3=no"
   1924  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1925  1.4  christos /* end confdefs.h.  */
   1926  1.4  christos $4
   1927  1.4  christos int
   1928  1.4  christos main ()
   1929  1.4  christos {
   1930  1.4  christos if (sizeof ($2))
   1931  1.4  christos 	 return 0;
   1932  1.4  christos   ;
   1933  1.4  christos   return 0;
   1934  1.4  christos }
   1935  1.4  christos _ACEOF
   1936  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   1937  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1938  1.4  christos /* end confdefs.h.  */
   1939  1.4  christos $4
   1940  1.4  christos int
   1941  1.4  christos main ()
   1942  1.4  christos {
   1943  1.4  christos if (sizeof (($2)))
   1944  1.4  christos 	    return 0;
   1945  1.4  christos   ;
   1946  1.4  christos   return 0;
   1947  1.4  christos }
   1948  1.4  christos _ACEOF
   1949  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   1950  1.4  christos 
   1951  1.4  christos else
   1952  1.4  christos   eval "$3=yes"
   1953  1.4  christos fi
   1954  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1955  1.4  christos fi
   1956  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1957  1.4  christos fi
   1958  1.4  christos eval ac_res=\$$3
   1959  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1960  1.4  christos $as_echo "$ac_res" >&6; }
   1961  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1962  1.1  christos 
   1963  1.4  christos } # ac_fn_c_check_type
   1964  1.1  christos 
   1965  1.4  christos # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   1966  1.4  christos # ----------------------------------------------------
   1967  1.4  christos # Tries to find if the field MEMBER exists in type AGGR, after including
   1968  1.4  christos # INCLUDES, setting cache variable VAR accordingly.
   1969  1.4  christos ac_fn_c_check_member ()
   1970  1.4  christos {
   1971  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1972  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   1973  1.4  christos $as_echo_n "checking for $2.$3... " >&6; }
   1974  1.4  christos if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
   1975  1.4  christos   $as_echo_n "(cached) " >&6
   1976  1.4  christos else
   1977  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1978  1.4  christos /* end confdefs.h.  */
   1979  1.4  christos $5
   1980  1.4  christos int
   1981  1.4  christos main ()
   1982  1.4  christos {
   1983  1.4  christos static $2 ac_aggr;
   1984  1.4  christos if (ac_aggr.$3)
   1985  1.4  christos return 0;
   1986  1.4  christos   ;
   1987  1.4  christos   return 0;
   1988  1.4  christos }
   1989  1.4  christos _ACEOF
   1990  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   1991  1.4  christos   eval "$4=yes"
   1992  1.4  christos else
   1993  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1994  1.4  christos /* end confdefs.h.  */
   1995  1.4  christos $5
   1996  1.4  christos int
   1997  1.4  christos main ()
   1998  1.4  christos {
   1999  1.4  christos static $2 ac_aggr;
   2000  1.4  christos if (sizeof ac_aggr.$3)
   2001  1.4  christos return 0;
   2002  1.4  christos   ;
   2003  1.4  christos   return 0;
   2004  1.4  christos }
   2005  1.4  christos _ACEOF
   2006  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2007  1.4  christos   eval "$4=yes"
   2008  1.4  christos else
   2009  1.4  christos   eval "$4=no"
   2010  1.4  christos fi
   2011  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2012  1.4  christos fi
   2013  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2014  1.4  christos fi
   2015  1.4  christos eval ac_res=\$$4
   2016  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2017  1.4  christos $as_echo "$ac_res" >&6; }
   2018  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2019  1.1  christos 
   2020  1.4  christos } # ac_fn_c_check_member
   2021  1.1  christos 
   2022  1.4  christos # ac_fn_c_check_func LINENO FUNC VAR
   2023  1.4  christos # ----------------------------------
   2024  1.4  christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2025  1.4  christos ac_fn_c_check_func ()
   2026  1.4  christos {
   2027  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2028  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2029  1.4  christos $as_echo_n "checking for $2... " >&6; }
   2030  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2031  1.4  christos   $as_echo_n "(cached) " >&6
   2032  1.4  christos else
   2033  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2034  1.4  christos /* end confdefs.h.  */
   2035  1.4  christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2036  1.4  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2037  1.4  christos #define $2 innocuous_$2
   2038  1.1  christos 
   2039  1.4  christos /* System header to define __stub macros and hopefully few prototypes,
   2040  1.4  christos     which can conflict with char $2 (); below.
   2041  1.4  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2042  1.4  christos     <limits.h> exists even on freestanding compilers.  */
   2043  1.1  christos 
   2044  1.4  christos #ifdef __STDC__
   2045  1.4  christos # include <limits.h>
   2046  1.4  christos #else
   2047  1.4  christos # include <assert.h>
   2048  1.4  christos #endif
   2049  1.1  christos 
   2050  1.4  christos #undef $2
   2051  1.1  christos 
   2052  1.4  christos /* Override any GCC internal prototype to avoid an error.
   2053  1.4  christos    Use char because int might match the return type of a GCC
   2054  1.4  christos    builtin and then its argument prototype would still apply.  */
   2055  1.4  christos #ifdef __cplusplus
   2056  1.4  christos extern "C"
   2057  1.4  christos #endif
   2058  1.4  christos char $2 ();
   2059  1.4  christos /* The GNU C library defines this for functions which it implements
   2060  1.4  christos     to always fail with ENOSYS.  Some functions are actually named
   2061  1.4  christos     something starting with __ and the normal name is an alias.  */
   2062  1.4  christos #if defined __stub_$2 || defined __stub___$2
   2063  1.4  christos choke me
   2064  1.4  christos #endif
   2065  1.1  christos 
   2066  1.4  christos int
   2067  1.4  christos main ()
   2068  1.4  christos {
   2069  1.4  christos return $2 ();
   2070  1.4  christos   ;
   2071  1.4  christos   return 0;
   2072  1.4  christos }
   2073  1.1  christos _ACEOF
   2074  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   2075  1.4  christos   eval "$3=yes"
   2076  1.4  christos else
   2077  1.4  christos   eval "$3=no"
   2078  1.4  christos fi
   2079  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   2080  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   2081  1.4  christos fi
   2082  1.4  christos eval ac_res=\$$3
   2083  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2084  1.4  christos $as_echo "$ac_res" >&6; }
   2085  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2086  1.1  christos 
   2087  1.4  christos } # ac_fn_c_check_func
   2088  1.4  christos 
   2089  1.4  christos # ac_fn_c_check_decl LINENO SYMBOL VAR
   2090  1.4  christos # ------------------------------------
   2091  1.4  christos # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
   2092  1.4  christos ac_fn_c_check_decl ()
   2093  1.4  christos {
   2094  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2095  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
   2096  1.4  christos $as_echo_n "checking whether $2 is declared... " >&6; }
   2097  1.4  christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2098  1.4  christos   $as_echo_n "(cached) " >&6
   2099  1.4  christos else
   2100  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2101  1.4  christos /* end confdefs.h.  */
   2102  1.4  christos $4
   2103  1.4  christos int
   2104  1.4  christos main ()
   2105  1.4  christos {
   2106  1.4  christos #ifndef $2
   2107  1.4  christos   (void) $2;
   2108  1.4  christos #endif
   2109  1.1  christos 
   2110  1.4  christos   ;
   2111  1.4  christos   return 0;
   2112  1.4  christos }
   2113  1.1  christos _ACEOF
   2114  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2115  1.4  christos   eval "$3=yes"
   2116  1.4  christos else
   2117  1.4  christos   eval "$3=no"
   2118  1.4  christos fi
   2119  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2120  1.4  christos fi
   2121  1.4  christos eval ac_res=\$$3
   2122  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2123  1.4  christos $as_echo "$ac_res" >&6; }
   2124  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2125  1.4  christos 
   2126  1.4  christos } # ac_fn_c_check_decl
   2127  1.1  christos 
   2128  1.4  christos # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2129  1.4  christos # --------------------------------------------
   2130  1.4  christos # Tries to find the compile-time value of EXPR in a program that includes
   2131  1.4  christos # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2132  1.4  christos # computed
   2133  1.4  christos ac_fn_c_compute_int ()
   2134  1.4  christos {
   2135  1.4  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2136  1.4  christos   if test "$cross_compiling" = yes; then
   2137  1.4  christos     # Depending upon the size, compute the lo and hi bounds.
   2138  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2139  1.4  christos /* end confdefs.h.  */
   2140  1.4  christos $4
   2141  1.4  christos int
   2142  1.4  christos main ()
   2143  1.4  christos {
   2144  1.4  christos static int test_array [1 - 2 * !(($2) >= 0)];
   2145  1.4  christos test_array [0] = 0
   2146  1.1  christos 
   2147  1.4  christos   ;
   2148  1.4  christos   return 0;
   2149  1.4  christos }
   2150  1.1  christos _ACEOF
   2151  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2152  1.4  christos   ac_lo=0 ac_mid=0
   2153  1.4  christos   while :; do
   2154  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2155  1.4  christos /* end confdefs.h.  */
   2156  1.4  christos $4
   2157  1.4  christos int
   2158  1.4  christos main ()
   2159  1.4  christos {
   2160  1.4  christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2161  1.4  christos test_array [0] = 0
   2162  1.1  christos 
   2163  1.4  christos   ;
   2164  1.4  christos   return 0;
   2165  1.4  christos }
   2166  1.4  christos _ACEOF
   2167  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2168  1.4  christos   ac_hi=$ac_mid; break
   2169  1.3  christos else
   2170  1.4  christos   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2171  1.4  christos 			if test $ac_lo -le $ac_mid; then
   2172  1.4  christos 			  ac_lo= ac_hi=
   2173  1.4  christos 			  break
   2174  1.4  christos 			fi
   2175  1.4  christos 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2176  1.1  christos fi
   2177  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2178  1.4  christos   done
   2179  1.4  christos else
   2180  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2181  1.4  christos /* end confdefs.h.  */
   2182  1.4  christos $4
   2183  1.4  christos int
   2184  1.4  christos main ()
   2185  1.4  christos {
   2186  1.4  christos static int test_array [1 - 2 * !(($2) < 0)];
   2187  1.4  christos test_array [0] = 0
   2188  1.4  christos 
   2189  1.4  christos   ;
   2190  1.4  christos   return 0;
   2191  1.4  christos }
   2192  1.4  christos _ACEOF
   2193  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2194  1.4  christos   ac_hi=-1 ac_mid=-1
   2195  1.4  christos   while :; do
   2196  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2197  1.4  christos /* end confdefs.h.  */
   2198  1.4  christos $4
   2199  1.4  christos int
   2200  1.4  christos main ()
   2201  1.4  christos {
   2202  1.4  christos static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2203  1.4  christos test_array [0] = 0
   2204  1.1  christos 
   2205  1.4  christos   ;
   2206  1.4  christos   return 0;
   2207  1.4  christos }
   2208  1.4  christos _ACEOF
   2209  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2210  1.4  christos   ac_lo=$ac_mid; break
   2211  1.1  christos else
   2212  1.4  christos   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2213  1.4  christos 			if test $ac_mid -le $ac_hi; then
   2214  1.4  christos 			  ac_lo= ac_hi=
   2215  1.4  christos 			  break
   2216  1.4  christos 			fi
   2217  1.4  christos 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2218  1.1  christos fi
   2219  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2220  1.4  christos   done
   2221  1.4  christos else
   2222  1.4  christos   ac_lo= ac_hi=
   2223  1.4  christos fi
   2224  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2225  1.4  christos fi
   2226  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2227  1.4  christos # Binary search between lo and hi bounds.
   2228  1.4  christos while test "x$ac_lo" != "x$ac_hi"; do
   2229  1.4  christos   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2230  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2231  1.4  christos /* end confdefs.h.  */
   2232  1.4  christos $4
   2233  1.4  christos int
   2234  1.4  christos main ()
   2235  1.4  christos {
   2236  1.4  christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2237  1.4  christos test_array [0] = 0
   2238  1.1  christos 
   2239  1.4  christos   ;
   2240  1.4  christos   return 0;
   2241  1.4  christos }
   2242  1.4  christos _ACEOF
   2243  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   2244  1.4  christos   ac_hi=$ac_mid
   2245  1.4  christos else
   2246  1.4  christos   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2247  1.4  christos fi
   2248  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2249  1.1  christos done
   2250  1.4  christos case $ac_lo in #((
   2251  1.4  christos ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2252  1.4  christos '') ac_retval=1 ;;
   2253  1.4  christos esac
   2254  1.4  christos   else
   2255  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2256  1.4  christos /* end confdefs.h.  */
   2257  1.4  christos $4
   2258  1.4  christos static long int longval () { return $2; }
   2259  1.4  christos static unsigned long int ulongval () { return $2; }
   2260  1.4  christos #include <stdio.h>
   2261  1.4  christos #include <stdlib.h>
   2262  1.4  christos int
   2263  1.4  christos main ()
   2264  1.4  christos {
   2265  1.1  christos 
   2266  1.4  christos   FILE *f = fopen ("conftest.val", "w");
   2267  1.4  christos   if (! f)
   2268  1.4  christos     return 1;
   2269  1.4  christos   if (($2) < 0)
   2270  1.4  christos     {
   2271  1.4  christos       long int i = longval ();
   2272  1.4  christos       if (i != ($2))
   2273  1.4  christos 	return 1;
   2274  1.4  christos       fprintf (f, "%ld", i);
   2275  1.4  christos     }
   2276  1.4  christos   else
   2277  1.4  christos     {
   2278  1.4  christos       unsigned long int i = ulongval ();
   2279  1.4  christos       if (i != ($2))
   2280  1.4  christos 	return 1;
   2281  1.4  christos       fprintf (f, "%lu", i);
   2282  1.4  christos     }
   2283  1.4  christos   /* Do not output a trailing newline, as this causes \r\n confusion
   2284  1.4  christos      on some platforms.  */
   2285  1.4  christos   return ferror (f) || fclose (f) != 0;
   2286  1.1  christos 
   2287  1.4  christos   ;
   2288  1.4  christos   return 0;
   2289  1.4  christos }
   2290  1.4  christos _ACEOF
   2291  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   2292  1.4  christos   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2293  1.4  christos else
   2294  1.4  christos   ac_retval=1
   2295  1.4  christos fi
   2296  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2297  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2298  1.4  christos rm -f conftest.val
   2299  1.1  christos 
   2300  1.4  christos   fi
   2301  1.4  christos   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2302  1.4  christos   as_fn_set_status $ac_retval
   2303  1.1  christos 
   2304  1.4  christos } # ac_fn_c_compute_int
   2305  1.4  christos cat >config.log <<_ACEOF
   2306  1.4  christos This file contains any messages produced by compilers while
   2307  1.4  christos running configure, to aid debugging if configure makes a mistake.
   2308  1.1  christos 
   2309  1.4  christos It was created by Concurrent Versions System (CVS) $as_me 1.12.13, which was
   2310  1.4  christos generated by GNU Autoconf 2.65.  Invocation command line was
   2311  1.1  christos 
   2312  1.4  christos   $ $0 $@
   2313  1.1  christos 
   2314  1.4  christos _ACEOF
   2315  1.4  christos exec 5>>config.log
   2316  1.4  christos {
   2317  1.4  christos cat <<_ASUNAME
   2318  1.4  christos ## --------- ##
   2319  1.4  christos ## Platform. ##
   2320  1.4  christos ## --------- ##
   2321  1.1  christos 
   2322  1.4  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2323  1.4  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2324  1.4  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2325  1.4  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2326  1.4  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2327  1.1  christos 
   2328  1.4  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2329  1.4  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2330  1.1  christos 
   2331  1.4  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2332  1.4  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2333  1.4  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2334  1.4  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2335  1.4  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2336  1.4  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2337  1.4  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2338  1.1  christos 
   2339  1.4  christos _ASUNAME
   2340  1.1  christos 
   2341  1.4  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2342  1.4  christos for as_dir in $PATH
   2343  1.4  christos do
   2344  1.4  christos   IFS=$as_save_IFS
   2345  1.4  christos   test -z "$as_dir" && as_dir=.
   2346  1.4  christos     $as_echo "PATH: $as_dir"
   2347  1.4  christos   done
   2348  1.4  christos IFS=$as_save_IFS
   2349  1.1  christos 
   2350  1.4  christos } >&5
   2351  1.1  christos 
   2352  1.4  christos cat >&5 <<_ACEOF
   2353  1.1  christos 
   2354  1.1  christos 
   2355  1.4  christos ## ----------- ##
   2356  1.4  christos ## Core tests. ##
   2357  1.4  christos ## ----------- ##
   2358  1.1  christos 
   2359  1.4  christos _ACEOF
   2360  1.1  christos 
   2361  1.1  christos 
   2362  1.4  christos # Keep a trace of the command line.
   2363  1.4  christos # Strip out --no-create and --no-recursion so they do not pile up.
   2364  1.4  christos # Strip out --silent because we don't want to record it for future runs.
   2365  1.4  christos # Also quote any args containing shell meta-characters.
   2366  1.4  christos # Make two passes to allow for proper duplicate-argument suppression.
   2367  1.4  christos ac_configure_args=
   2368  1.4  christos ac_configure_args0=
   2369  1.4  christos ac_configure_args1=
   2370  1.4  christos ac_must_keep_next=false
   2371  1.4  christos for ac_pass in 1 2
   2372  1.4  christos do
   2373  1.4  christos   for ac_arg
   2374  1.4  christos   do
   2375  1.4  christos     case $ac_arg in
   2376  1.4  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2377  1.4  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2378  1.4  christos     | -silent | --silent | --silen | --sile | --sil)
   2379  1.4  christos       continue ;;
   2380  1.4  christos     *\'*)
   2381  1.4  christos       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2382  1.4  christos     esac
   2383  1.4  christos     case $ac_pass in
   2384  1.4  christos     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2385  1.4  christos     2)
   2386  1.4  christos       as_fn_append ac_configure_args1 " '$ac_arg'"
   2387  1.4  christos       if test $ac_must_keep_next = true; then
   2388  1.4  christos 	ac_must_keep_next=false # Got value, back to normal.
   2389  1.4  christos       else
   2390  1.4  christos 	case $ac_arg in
   2391  1.4  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2392  1.4  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2393  1.4  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2394  1.4  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2395  1.4  christos 	    case "$ac_configure_args0 " in
   2396  1.4  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2397  1.4  christos 	    esac
   2398  1.4  christos 	    ;;
   2399  1.4  christos 	  -* ) ac_must_keep_next=true ;;
   2400  1.4  christos 	esac
   2401  1.4  christos       fi
   2402  1.4  christos       as_fn_append ac_configure_args " '$ac_arg'"
   2403  1.4  christos       ;;
   2404  1.4  christos     esac
   2405  1.4  christos   done
   2406  1.1  christos done
   2407  1.4  christos { ac_configure_args0=; unset ac_configure_args0;}
   2408  1.4  christos { ac_configure_args1=; unset ac_configure_args1;}
   2409  1.1  christos 
   2410  1.4  christos # When interrupted or exit'd, cleanup temporary files, and complete
   2411  1.4  christos # config.log.  We remove comments because anyway the quotes in there
   2412  1.4  christos # would cause problems or look ugly.
   2413  1.4  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   2414  1.4  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2415  1.4  christos trap 'exit_status=$?
   2416  1.4  christos   # Save into config.log some information that might help in debugging.
   2417  1.4  christos   {
   2418  1.4  christos     echo
   2419  1.4  christos 
   2420  1.4  christos     cat <<\_ASBOX
   2421  1.4  christos ## ---------------- ##
   2422  1.4  christos ## Cache variables. ##
   2423  1.4  christos ## ---------------- ##
   2424  1.4  christos _ASBOX
   2425  1.4  christos     echo
   2426  1.4  christos     # The following way of writing the cache mishandles newlines in values,
   2427  1.4  christos (
   2428  1.4  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2429  1.4  christos     eval ac_val=\$$ac_var
   2430  1.4  christos     case $ac_val in #(
   2431  1.4  christos     *${as_nl}*)
   2432  1.4  christos       case $ac_var in #(
   2433  1.4  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2434  1.4  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2435  1.4  christos       esac
   2436  1.4  christos       case $ac_var in #(
   2437  1.4  christos       _ | IFS | as_nl) ;; #(
   2438  1.4  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2439  1.4  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   2440  1.4  christos       esac ;;
   2441  1.4  christos     esac
   2442  1.4  christos   done
   2443  1.4  christos   (set) 2>&1 |
   2444  1.4  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2445  1.4  christos     *${as_nl}ac_space=\ *)
   2446  1.4  christos       sed -n \
   2447  1.4  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   2448  1.4  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2449  1.4  christos       ;; #(
   2450  1.4  christos     *)
   2451  1.4  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2452  1.4  christos       ;;
   2453  1.4  christos     esac |
   2454  1.4  christos     sort
   2455  1.4  christos )
   2456  1.4  christos     echo
   2457  1.4  christos 
   2458  1.4  christos     cat <<\_ASBOX
   2459  1.4  christos ## ----------------- ##
   2460  1.4  christos ## Output variables. ##
   2461  1.4  christos ## ----------------- ##
   2462  1.4  christos _ASBOX
   2463  1.4  christos     echo
   2464  1.4  christos     for ac_var in $ac_subst_vars
   2465  1.4  christos     do
   2466  1.4  christos       eval ac_val=\$$ac_var
   2467  1.4  christos       case $ac_val in
   2468  1.4  christos       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2469  1.4  christos       esac
   2470  1.4  christos       $as_echo "$ac_var='\''$ac_val'\''"
   2471  1.4  christos     done | sort
   2472  1.4  christos     echo
   2473  1.4  christos 
   2474  1.4  christos     if test -n "$ac_subst_files"; then
   2475  1.4  christos       cat <<\_ASBOX
   2476  1.4  christos ## ------------------- ##
   2477  1.4  christos ## File substitutions. ##
   2478  1.4  christos ## ------------------- ##
   2479  1.4  christos _ASBOX
   2480  1.4  christos       echo
   2481  1.4  christos       for ac_var in $ac_subst_files
   2482  1.4  christos       do
   2483  1.4  christos 	eval ac_val=\$$ac_var
   2484  1.4  christos 	case $ac_val in
   2485  1.4  christos 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2486  1.4  christos 	esac
   2487  1.4  christos 	$as_echo "$ac_var='\''$ac_val'\''"
   2488  1.4  christos       done | sort
   2489  1.4  christos       echo
   2490  1.4  christos     fi
   2491  1.4  christos 
   2492  1.4  christos     if test -s confdefs.h; then
   2493  1.4  christos       cat <<\_ASBOX
   2494  1.4  christos ## ----------- ##
   2495  1.4  christos ## confdefs.h. ##
   2496  1.4  christos ## ----------- ##
   2497  1.4  christos _ASBOX
   2498  1.4  christos       echo
   2499  1.4  christos       cat confdefs.h
   2500  1.4  christos       echo
   2501  1.4  christos     fi
   2502  1.4  christos     test "$ac_signal" != 0 &&
   2503  1.4  christos       $as_echo "$as_me: caught signal $ac_signal"
   2504  1.4  christos     $as_echo "$as_me: exit $exit_status"
   2505  1.4  christos   } >&5
   2506  1.4  christos   rm -f core *.core core.conftest.* &&
   2507  1.4  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2508  1.4  christos     exit $exit_status
   2509  1.4  christos ' 0
   2510  1.4  christos for ac_signal in 1 2 13 15; do
   2511  1.4  christos   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2512  1.4  christos done
   2513  1.4  christos ac_signal=0
   2514  1.4  christos 
   2515  1.4  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2516  1.4  christos rm -f -r conftest* confdefs.h
   2517  1.4  christos 
   2518  1.4  christos $as_echo "/* confdefs.h */" > confdefs.h
   2519  1.4  christos 
   2520  1.4  christos # Predefined preprocessor variables.
   2521  1.4  christos 
   2522  1.4  christos cat >>confdefs.h <<_ACEOF
   2523  1.4  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   2524  1.4  christos _ACEOF
   2525  1.4  christos 
   2526  1.4  christos cat >>confdefs.h <<_ACEOF
   2527  1.4  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2528  1.4  christos _ACEOF
   2529  1.4  christos 
   2530  1.4  christos cat >>confdefs.h <<_ACEOF
   2531  1.4  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2532  1.4  christos _ACEOF
   2533  1.4  christos 
   2534  1.4  christos cat >>confdefs.h <<_ACEOF
   2535  1.4  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   2536  1.4  christos _ACEOF
   2537  1.4  christos 
   2538  1.4  christos cat >>confdefs.h <<_ACEOF
   2539  1.4  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2540  1.4  christos _ACEOF
   2541  1.4  christos 
   2542  1.4  christos cat >>confdefs.h <<_ACEOF
   2543  1.4  christos #define PACKAGE_URL "$PACKAGE_URL"
   2544  1.4  christos _ACEOF
   2545  1.4  christos 
   2546  1.4  christos 
   2547  1.4  christos # Let the site file select an alternate cache file if it wants to.
   2548  1.4  christos # Prefer an explicitly selected file to automatically selected ones.
   2549  1.4  christos ac_site_file1=NONE
   2550  1.4  christos ac_site_file2=NONE
   2551  1.4  christos if test -n "$CONFIG_SITE"; then
   2552  1.4  christos   ac_site_file1=$CONFIG_SITE
   2553  1.4  christos elif test "x$prefix" != xNONE; then
   2554  1.4  christos   ac_site_file1=$prefix/share/config.site
   2555  1.4  christos   ac_site_file2=$prefix/etc/config.site
   2556  1.4  christos else
   2557  1.4  christos   ac_site_file1=$ac_default_prefix/share/config.site
   2558  1.4  christos   ac_site_file2=$ac_default_prefix/etc/config.site
   2559  1.4  christos fi
   2560  1.4  christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2561  1.4  christos do
   2562  1.4  christos   test "x$ac_site_file" = xNONE && continue
   2563  1.4  christos   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2564  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2565  1.4  christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2566  1.4  christos     sed 's/^/| /' "$ac_site_file" >&5
   2567  1.4  christos     . "$ac_site_file"
   2568  1.4  christos   fi
   2569  1.4  christos done
   2570  1.4  christos 
   2571  1.4  christos if test -r "$cache_file"; then
   2572  1.4  christos   # Some versions of bash will fail to source /dev/null (special files
   2573  1.4  christos   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2574  1.4  christos   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2575  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2576  1.4  christos $as_echo "$as_me: loading cache $cache_file" >&6;}
   2577  1.4  christos     case $cache_file in
   2578  1.4  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2579  1.4  christos       *)                      . "./$cache_file";;
   2580  1.4  christos     esac
   2581  1.4  christos   fi
   2582  1.4  christos else
   2583  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2584  1.4  christos $as_echo "$as_me: creating cache $cache_file" >&6;}
   2585  1.4  christos   >$cache_file
   2586  1.4  christos fi
   2587  1.4  christos 
   2588  1.4  christos gl_func_list="$gl_func_list fchdir"
   2589  1.4  christos gl_header_list="$gl_header_list unistd.h"
   2590  1.4  christos gl_func_list="$gl_func_list mempcpy"
   2591  1.4  christos gl_header_list="$gl_header_list sys/time.h"
   2592  1.4  christos gl_func_list="$gl_func_list isascii"
   2593  1.4  christos gl_header_list="$gl_header_list sys/param.h"
   2594  1.4  christos gl_header_list="$gl_header_list stdio_ext.h"
   2595  1.4  christos gl_header_list="$gl_header_list termios.h"
   2596  1.4  christos gl_func_list="$gl_func_list __fsetlocking"
   2597  1.4  christos gl_func_list="$gl_func_list tcgetattr"
   2598  1.4  christos gl_func_list="$gl_func_list tcsetattr"
   2599  1.4  christos gl_func_list="$gl_func_list gettimeofday"
   2600  1.4  christos gl_func_list="$gl_func_list nanotime"
   2601  1.4  christos gl_header_list="$gl_header_list sys/cdefs.h"
   2602  1.4  christos gl_func_list="$gl_func_list getlogin_r"
   2603  1.4  christos gl_func_list="$gl_func_list getpwnam_r"
   2604  1.4  christos gl_header_list="$gl_header_list wchar.h"
   2605  1.4  christos gl_header_list="$gl_header_list wctype.h"
   2606  1.4  christos gl_header_list="$gl_header_list stdint.h"
   2607  1.4  christos gl_func_list="$gl_func_list siginterrupt"
   2608  1.4  christos gl_header_list="$gl_header_list stdlib.h"
   2609  1.4  christos gl_func_list="$gl_func_list posix_memalign"
   2610  1.4  christos gl_func_list="$gl_func_list iswprint"
   2611  1.4  christos gl_func_list="$gl_func_list mbsinit"
   2612  1.4  christos gl_header_list="$gl_header_list locale.h"
   2613  1.4  christos gl_func_list="$gl_func_list isblank"
   2614  1.4  christos gl_func_list="$gl_func_list mbrtowc"
   2615  1.4  christos gl_func_list="$gl_func_list wcrtomb"
   2616  1.4  christos gl_func_list="$gl_func_list wcscoll"
   2617  1.4  christos gl_func_list="$gl_func_list mblen"
   2618  1.4  christos gl_func_list="$gl_func_list mbrlen"
   2619  1.4  christos gl_func_list="$gl_func_list tzset"
   2620  1.4  christos gl_header_list="$gl_header_list utime.h"
   2621  1.4  christos # Check that the precious variables saved in the cache have kept the same
   2622  1.4  christos # value.
   2623  1.4  christos ac_cache_corrupted=false
   2624  1.4  christos for ac_var in $ac_precious_vars; do
   2625  1.4  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2626  1.4  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   2627  1.4  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2628  1.4  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   2629  1.4  christos   case $ac_old_set,$ac_new_set in
   2630  1.4  christos     set,)
   2631  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2632  1.4  christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2633  1.4  christos       ac_cache_corrupted=: ;;
   2634  1.4  christos     ,set)
   2635  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2636  1.4  christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2637  1.4  christos       ac_cache_corrupted=: ;;
   2638  1.4  christos     ,);;
   2639  1.4  christos     *)
   2640  1.4  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   2641  1.4  christos 	# differences in whitespace do not lead to failure.
   2642  1.4  christos 	ac_old_val_w=`echo x $ac_old_val`
   2643  1.4  christos 	ac_new_val_w=`echo x $ac_new_val`
   2644  1.4  christos 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2645  1.4  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2646  1.4  christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2647  1.4  christos 	  ac_cache_corrupted=:
   2648  1.4  christos 	else
   2649  1.4  christos 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2650  1.4  christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2651  1.4  christos 	  eval $ac_var=\$ac_old_val
   2652  1.4  christos 	fi
   2653  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2654  1.4  christos $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2655  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2656  1.4  christos $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2657  1.4  christos       fi;;
   2658  1.4  christos   esac
   2659  1.4  christos   # Pass precious variables to config.status.
   2660  1.4  christos   if test "$ac_new_set" = set; then
   2661  1.4  christos     case $ac_new_val in
   2662  1.4  christos     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2663  1.4  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   2664  1.4  christos     esac
   2665  1.4  christos     case " $ac_configure_args " in
   2666  1.4  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2667  1.4  christos       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2668  1.4  christos     esac
   2669  1.4  christos   fi
   2670  1.4  christos done
   2671  1.4  christos if $ac_cache_corrupted; then
   2672  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2673  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2674  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2675  1.4  christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2676  1.4  christos   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2677  1.4  christos fi
   2678  1.4  christos ## -------------------- ##
   2679  1.4  christos ## Main body of script. ##
   2680  1.4  christos ## -------------------- ##
   2681  1.4  christos 
   2682  1.4  christos ac_ext=c
   2683  1.4  christos ac_cpp='$CPP $CPPFLAGS'
   2684  1.4  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2685  1.4  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2686  1.4  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2687  1.4  christos 
   2688  1.4  christos 
   2689  1.4  christos 
   2690  1.4  christos ac_aux_dir=
   2691  1.4  christos for ac_dir in build-aux "$srcdir"/build-aux; do
   2692  1.4  christos   for ac_t in install-sh install.sh shtool; do
   2693  1.4  christos     if test -f "$ac_dir/$ac_t"; then
   2694  1.4  christos       ac_aux_dir=$ac_dir
   2695  1.4  christos       ac_install_sh="$ac_aux_dir/$ac_t -c"
   2696  1.4  christos       break 2
   2697  1.4  christos     fi
   2698  1.4  christos   done
   2699  1.4  christos done
   2700  1.4  christos if test -z "$ac_aux_dir"; then
   2701  1.4  christos   as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
   2702  1.4  christos fi
   2703  1.4  christos 
   2704  1.4  christos # These three variables are undocumented and unsupported,
   2705  1.4  christos # and are intended to be withdrawn in a future Autoconf release.
   2706  1.4  christos # They can cause serious problems if a builder's source tree is in a directory
   2707  1.4  christos # whose full name contains unusual characters.
   2708  1.4  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2709  1.4  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2710  1.4  christos ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2711  1.3  christos 
   2712  1.3  christos 
   2713  1.4  christos am__api_version='1.11'
   2714  1.3  christos 
   2715  1.1  christos # Find a good install program.  We prefer a C program (faster),
   2716  1.1  christos # so one script is as good as another.  But avoid the broken or
   2717  1.1  christos # incompatible versions:
   2718  1.1  christos # SysV /etc/install, /usr/sbin/install
   2719  1.1  christos # SunOS /usr/etc/install
   2720  1.1  christos # IRIX /sbin/install
   2721  1.1  christos # AIX /bin/install
   2722  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   2723  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2724  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2725  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2726  1.1  christos # OS/2's system install, which has a completely different semantic
   2727  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   2728  1.3  christos # Reject install programs that cannot install multiple files.
   2729  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2730  1.3  christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2731  1.1  christos if test -z "$INSTALL"; then
   2732  1.4  christos if test "${ac_cv_path_install+set}" = set; then :
   2733  1.3  christos   $as_echo_n "(cached) " >&6
   2734  1.1  christos else
   2735  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2736  1.1  christos for as_dir in $PATH
   2737  1.1  christos do
   2738  1.1  christos   IFS=$as_save_IFS
   2739  1.1  christos   test -z "$as_dir" && as_dir=.
   2740  1.4  christos     # Account for people who put trailing slashes in PATH elements.
   2741  1.4  christos case $as_dir/ in #((
   2742  1.4  christos   ./ | .// | /[cC]/* | \
   2743  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2744  1.4  christos   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2745  1.1  christos   /usr/ucb/* ) ;;
   2746  1.1  christos   *)
   2747  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   2748  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   2749  1.1  christos     # by default.
   2750  1.1  christos     for ac_prog in ginstall scoinst install; do
   2751  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   2752  1.3  christos 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   2753  1.1  christos 	  if test $ac_prog = install &&
   2754  1.1  christos 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2755  1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   2756  1.1  christos 	    :
   2757  1.1  christos 	  elif test $ac_prog = install &&
   2758  1.1  christos 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2759  1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   2760  1.1  christos 	    :
   2761  1.1  christos 	  else
   2762  1.3  christos 	    rm -rf conftest.one conftest.two conftest.dir
   2763  1.3  christos 	    echo one > conftest.one
   2764  1.3  christos 	    echo two > conftest.two
   2765  1.3  christos 	    mkdir conftest.dir
   2766  1.3  christos 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2767  1.3  christos 	      test -s conftest.one && test -s conftest.two &&
   2768  1.3  christos 	      test -s conftest.dir/conftest.one &&
   2769  1.3  christos 	      test -s conftest.dir/conftest.two
   2770  1.3  christos 	    then
   2771  1.3  christos 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2772  1.3  christos 	      break 3
   2773  1.3  christos 	    fi
   2774  1.1  christos 	  fi
   2775  1.1  christos 	fi
   2776  1.1  christos       done
   2777  1.1  christos     done
   2778  1.1  christos     ;;
   2779  1.1  christos esac
   2780  1.3  christos 
   2781  1.4  christos   done
   2782  1.3  christos IFS=$as_save_IFS
   2783  1.1  christos 
   2784  1.3  christos rm -rf conftest.one conftest.two conftest.dir
   2785  1.1  christos 
   2786  1.1  christos fi
   2787  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   2788  1.1  christos     INSTALL=$ac_cv_path_install
   2789  1.1  christos   else
   2790  1.3  christos     # As a last resort, use the slow shell script.  Don't cache a
   2791  1.3  christos     # value for INSTALL within a source directory, because that will
   2792  1.1  christos     # break other packages using the cache if that directory is
   2793  1.3  christos     # removed, or if the value is a relative name.
   2794  1.1  christos     INSTALL=$ac_install_sh
   2795  1.1  christos   fi
   2796  1.1  christos fi
   2797  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2798  1.3  christos $as_echo "$INSTALL" >&6; }
   2799  1.1  christos 
   2800  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2801  1.1  christos # It thinks the first close brace ends the variable substitution.
   2802  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2803  1.1  christos 
   2804  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2805  1.1  christos 
   2806  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2807  1.1  christos 
   2808  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2809  1.3  christos $as_echo_n "checking whether build environment is sane... " >&6; }
   2810  1.1  christos # Just in case
   2811  1.1  christos sleep 1
   2812  1.1  christos echo timestamp > conftest.file
   2813  1.4  christos # Reject unsafe characters in $srcdir or the absolute working directory
   2814  1.4  christos # name.  Accept space and tab only in the latter.
   2815  1.4  christos am_lf='
   2816  1.4  christos '
   2817  1.4  christos case `pwd` in
   2818  1.4  christos   *[\\\"\#\$\&\'\`$am_lf]*)
   2819  1.4  christos     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
   2820  1.4  christos esac
   2821  1.4  christos case $srcdir in
   2822  1.4  christos   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2823  1.4  christos     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
   2824  1.4  christos esac
   2825  1.4  christos 
   2826  1.1  christos # Do `set' in a subshell so we don't clobber the current shell's
   2827  1.1  christos # arguments.  Must try -L first in case configure is actually a
   2828  1.1  christos # symlink; some systems play weird games with the mod time of symlinks
   2829  1.1  christos # (eg FreeBSD returns the mod time of the symlink's containing
   2830  1.1  christos # directory).
   2831  1.1  christos if (
   2832  1.4  christos    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2833  1.1  christos    if test "$*" = "X"; then
   2834  1.1  christos       # -L didn't work.
   2835  1.4  christos       set X `ls -t "$srcdir/configure" conftest.file`
   2836  1.1  christos    fi
   2837  1.1  christos    rm -f conftest.file
   2838  1.1  christos    if test "$*" != "X $srcdir/configure conftest.file" \
   2839  1.1  christos       && test "$*" != "X conftest.file $srcdir/configure"; then
   2840  1.1  christos 
   2841  1.1  christos       # If neither matched, then we have a broken ls.  This can happen
   2842  1.1  christos       # if, for instance, CONFIG_SHELL is bash and it inherits a
   2843  1.1  christos       # broken ls alias from the environment.  This has actually
   2844  1.1  christos       # happened.  Such a system could not be considered "sane".
   2845  1.4  christos       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
   2846  1.4  christos alias in your environment" "$LINENO" 5
   2847  1.1  christos    fi
   2848  1.1  christos 
   2849  1.1  christos    test "$2" = conftest.file
   2850  1.1  christos    )
   2851  1.1  christos then
   2852  1.1  christos    # Ok.
   2853  1.1  christos    :
   2854  1.1  christos else
   2855  1.4  christos    as_fn_error "newly created file is older than distributed files!
   2856  1.4  christos Check your system clock" "$LINENO" 5
   2857  1.1  christos fi
   2858  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2859  1.3  christos $as_echo "yes" >&6; }
   2860  1.1  christos test "$program_prefix" != NONE &&
   2861  1.3  christos   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2862  1.1  christos # Use a double $ so make ignores it.
   2863  1.1  christos test "$program_suffix" != NONE &&
   2864  1.3  christos   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2865  1.3  christos # Double any \ or $.
   2866  1.1  christos # By default was `s,x,x', remove it if useless.
   2867  1.3  christos ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2868  1.3  christos program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2869  1.1  christos 
   2870  1.1  christos # expand $ac_aux_dir to an absolute path
   2871  1.1  christos am_aux_dir=`cd $ac_aux_dir && pwd`
   2872  1.1  christos 
   2873  1.4  christos if test x"${MISSING+set}" != xset; then
   2874  1.4  christos   case $am_aux_dir in
   2875  1.4  christos   *\ * | *\	*)
   2876  1.4  christos     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2877  1.4  christos   *)
   2878  1.4  christos     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2879  1.4  christos   esac
   2880  1.4  christos fi
   2881  1.1  christos # Use eval to expand $SHELL
   2882  1.1  christos if eval "$MISSING --run true"; then
   2883  1.1  christos   am_missing_run="$MISSING --run "
   2884  1.1  christos else
   2885  1.1  christos   am_missing_run=
   2886  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
   2887  1.3  christos $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   2888  1.3  christos fi
   2889  1.3  christos 
   2890  1.4  christos if test x"${install_sh}" != xset; then
   2891  1.4  christos   case $am_aux_dir in
   2892  1.4  christos   *\ * | *\	*)
   2893  1.4  christos     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2894  1.4  christos   *)
   2895  1.4  christos     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2896  1.4  christos   esac
   2897  1.4  christos fi
   2898  1.4  christos 
   2899  1.4  christos # Installed binaries are usually stripped using `strip' when the user
   2900  1.4  christos # run `make install-strip'.  However `strip' might not be the right
   2901  1.4  christos # tool to use in cross-compilation environments, therefore Automake
   2902  1.4  christos # will honor the `STRIP' environment variable to overrule this program.
   2903  1.4  christos if test "$cross_compiling" != no; then
   2904  1.4  christos   if test -n "$ac_tool_prefix"; then
   2905  1.4  christos   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2906  1.4  christos set dummy ${ac_tool_prefix}strip; ac_word=$2
   2907  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2908  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   2909  1.4  christos if test "${ac_cv_prog_STRIP+set}" = set; then :
   2910  1.4  christos   $as_echo_n "(cached) " >&6
   2911  1.4  christos else
   2912  1.4  christos   if test -n "$STRIP"; then
   2913  1.4  christos   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2914  1.4  christos else
   2915  1.4  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2916  1.4  christos for as_dir in $PATH
   2917  1.4  christos do
   2918  1.4  christos   IFS=$as_save_IFS
   2919  1.4  christos   test -z "$as_dir" && as_dir=.
   2920  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2921  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2922  1.4  christos     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2923  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2924  1.4  christos     break 2
   2925  1.4  christos   fi
   2926  1.4  christos done
   2927  1.4  christos   done
   2928  1.4  christos IFS=$as_save_IFS
   2929  1.4  christos 
   2930  1.4  christos fi
   2931  1.4  christos fi
   2932  1.4  christos STRIP=$ac_cv_prog_STRIP
   2933  1.4  christos if test -n "$STRIP"; then
   2934  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2935  1.4  christos $as_echo "$STRIP" >&6; }
   2936  1.4  christos else
   2937  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2938  1.4  christos $as_echo "no" >&6; }
   2939  1.4  christos fi
   2940  1.4  christos 
   2941  1.4  christos 
   2942  1.4  christos fi
   2943  1.4  christos if test -z "$ac_cv_prog_STRIP"; then
   2944  1.4  christos   ac_ct_STRIP=$STRIP
   2945  1.4  christos   # Extract the first word of "strip", so it can be a program name with args.
   2946  1.4  christos set dummy strip; ac_word=$2
   2947  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2948  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   2949  1.4  christos if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   2950  1.4  christos   $as_echo_n "(cached) " >&6
   2951  1.4  christos else
   2952  1.4  christos   if test -n "$ac_ct_STRIP"; then
   2953  1.4  christos   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2954  1.4  christos else
   2955  1.4  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2956  1.4  christos for as_dir in $PATH
   2957  1.4  christos do
   2958  1.4  christos   IFS=$as_save_IFS
   2959  1.4  christos   test -z "$as_dir" && as_dir=.
   2960  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2961  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2962  1.4  christos     ac_cv_prog_ac_ct_STRIP="strip"
   2963  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2964  1.4  christos     break 2
   2965  1.4  christos   fi
   2966  1.4  christos done
   2967  1.4  christos   done
   2968  1.4  christos IFS=$as_save_IFS
   2969  1.4  christos 
   2970  1.4  christos fi
   2971  1.4  christos fi
   2972  1.4  christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2973  1.4  christos if test -n "$ac_ct_STRIP"; then
   2974  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2975  1.4  christos $as_echo "$ac_ct_STRIP" >&6; }
   2976  1.4  christos else
   2977  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2978  1.4  christos $as_echo "no" >&6; }
   2979  1.4  christos fi
   2980  1.4  christos 
   2981  1.4  christos   if test "x$ac_ct_STRIP" = x; then
   2982  1.4  christos     STRIP=":"
   2983  1.4  christos   else
   2984  1.4  christos     case $cross_compiling:$ac_tool_warned in
   2985  1.4  christos yes:)
   2986  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2987  1.4  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2988  1.4  christos ac_tool_warned=yes ;;
   2989  1.4  christos esac
   2990  1.4  christos     STRIP=$ac_ct_STRIP
   2991  1.4  christos   fi
   2992  1.4  christos else
   2993  1.4  christos   STRIP="$ac_cv_prog_STRIP"
   2994  1.4  christos fi
   2995  1.4  christos 
   2996  1.4  christos fi
   2997  1.4  christos INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2998  1.4  christos 
   2999  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   3000  1.3  christos $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   3001  1.3  christos if test -z "$MKDIR_P"; then
   3002  1.4  christos   if test "${ac_cv_path_mkdir+set}" = set; then :
   3003  1.3  christos   $as_echo_n "(cached) " >&6
   3004  1.3  christos else
   3005  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3006  1.3  christos for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   3007  1.3  christos do
   3008  1.3  christos   IFS=$as_save_IFS
   3009  1.3  christos   test -z "$as_dir" && as_dir=.
   3010  1.4  christos     for ac_prog in mkdir gmkdir; do
   3011  1.3  christos 	 for ac_exec_ext in '' $ac_executable_extensions; do
   3012  1.3  christos 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   3013  1.3  christos 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   3014  1.3  christos 	     'mkdir (GNU coreutils) '* | \
   3015  1.3  christos 	     'mkdir (coreutils) '* | \
   3016  1.3  christos 	     'mkdir (fileutils) '4.1*)
   3017  1.3  christos 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   3018  1.3  christos 	       break 3;;
   3019  1.3  christos 	   esac
   3020  1.3  christos 	 done
   3021  1.3  christos        done
   3022  1.4  christos   done
   3023  1.3  christos IFS=$as_save_IFS
   3024  1.3  christos 
   3025  1.1  christos fi
   3026  1.1  christos 
   3027  1.4  christos   test -d ./--version && rmdir ./--version
   3028  1.3  christos   if test "${ac_cv_path_mkdir+set}" = set; then
   3029  1.3  christos     MKDIR_P="$ac_cv_path_mkdir -p"
   3030  1.1  christos   else
   3031  1.3  christos     # As a last resort, use the slow shell script.  Don't cache a
   3032  1.3  christos     # value for MKDIR_P within a source directory, because that will
   3033  1.3  christos     # break other packages using the cache if that directory is
   3034  1.3  christos     # removed, or if the value is a relative name.
   3035  1.3  christos     MKDIR_P="$ac_install_sh -d"
   3036  1.1  christos   fi
   3037  1.1  christos fi
   3038  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   3039  1.3  christos $as_echo "$MKDIR_P" >&6; }
   3040  1.3  christos 
   3041  1.3  christos mkdir_p="$MKDIR_P"
   3042  1.3  christos case $mkdir_p in
   3043  1.3  christos   [\\/$]* | ?:[\\/]*) ;;
   3044  1.3  christos   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   3045  1.3  christos esac
   3046  1.1  christos 
   3047  1.1  christos for ac_prog in gawk mawk nawk awk
   3048  1.1  christos do
   3049  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3050  1.1  christos set dummy $ac_prog; ac_word=$2
   3051  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3052  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3053  1.4  christos if test "${ac_cv_prog_AWK+set}" = set; then :
   3054  1.3  christos   $as_echo_n "(cached) " >&6
   3055  1.1  christos else
   3056  1.1  christos   if test -n "$AWK"; then
   3057  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   3058  1.1  christos else
   3059  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3060  1.1  christos for as_dir in $PATH
   3061  1.1  christos do
   3062  1.1  christos   IFS=$as_save_IFS
   3063  1.1  christos   test -z "$as_dir" && as_dir=.
   3064  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3065  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3066  1.1  christos     ac_cv_prog_AWK="$ac_prog"
   3067  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3068  1.1  christos     break 2
   3069  1.1  christos   fi
   3070  1.1  christos done
   3071  1.4  christos   done
   3072  1.3  christos IFS=$as_save_IFS
   3073  1.1  christos 
   3074  1.1  christos fi
   3075  1.1  christos fi
   3076  1.1  christos AWK=$ac_cv_prog_AWK
   3077  1.1  christos if test -n "$AWK"; then
   3078  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   3079  1.3  christos $as_echo "$AWK" >&6; }
   3080  1.1  christos else
   3081  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3082  1.3  christos $as_echo "no" >&6; }
   3083  1.1  christos fi
   3084  1.1  christos 
   3085  1.3  christos 
   3086  1.1  christos   test -n "$AWK" && break
   3087  1.1  christos done
   3088  1.1  christos 
   3089  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3090  1.3  christos $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3091  1.3  christos set x ${MAKE-make}
   3092  1.3  christos ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3093  1.4  christos if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   3094  1.3  christos   $as_echo_n "(cached) " >&6
   3095  1.1  christos else
   3096  1.1  christos   cat >conftest.make <<\_ACEOF
   3097  1.3  christos SHELL = /bin/sh
   3098  1.1  christos all:
   3099  1.3  christos 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3100  1.1  christos _ACEOF
   3101  1.1  christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3102  1.3  christos case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3103  1.3  christos   *@@@%%%=?*=@@@%%%*)
   3104  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3105  1.3  christos   *)
   3106  1.3  christos     eval ac_cv_prog_make_${ac_make}_set=no;;
   3107  1.3  christos esac
   3108  1.1  christos rm -f conftest.make
   3109  1.1  christos fi
   3110  1.3  christos if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3111  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3112  1.3  christos $as_echo "yes" >&6; }
   3113  1.1  christos   SET_MAKE=
   3114  1.1  christos else
   3115  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3116  1.3  christos $as_echo "no" >&6; }
   3117  1.1  christos   SET_MAKE="MAKE=${MAKE-make}"
   3118  1.1  christos fi
   3119  1.1  christos 
   3120  1.1  christos rm -rf .tst 2>/dev/null
   3121  1.1  christos mkdir .tst 2>/dev/null
   3122  1.1  christos if test -d .tst; then
   3123  1.1  christos   am__leading_dot=.
   3124  1.1  christos else
   3125  1.1  christos   am__leading_dot=_
   3126  1.1  christos fi
   3127  1.1  christos rmdir .tst 2>/dev/null
   3128  1.1  christos 
   3129  1.3  christos if test "`cd $srcdir && pwd`" != "`pwd`"; then
   3130  1.3  christos   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   3131  1.3  christos   # is not polluted with repeated "-I."
   3132  1.3  christos   am__isrc=' -I$(srcdir)'
   3133  1.3  christos   # test to see if srcdir already configured
   3134  1.3  christos   if test -f $srcdir/config.status; then
   3135  1.4  christos     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   3136  1.3  christos   fi
   3137  1.1  christos fi
   3138  1.1  christos 
   3139  1.1  christos # test whether we have cygpath
   3140  1.1  christos if test -z "$CYGPATH_W"; then
   3141  1.1  christos   if (cygpath --version) >/dev/null 2>/dev/null; then
   3142  1.1  christos     CYGPATH_W='cygpath -w'
   3143  1.1  christos   else
   3144  1.1  christos     CYGPATH_W=echo
   3145  1.1  christos   fi
   3146  1.1  christos fi
   3147  1.1  christos 
   3148  1.1  christos 
   3149  1.1  christos # Define the identity of the package.
   3150  1.1  christos  PACKAGE='cvs'
   3151  1.1  christos  VERSION='1.12.13'
   3152  1.1  christos 
   3153  1.1  christos 
   3154  1.1  christos # Some tools Automake needs.
   3155  1.1  christos 
   3156  1.1  christos ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   3157  1.1  christos 
   3158  1.1  christos 
   3159  1.1  christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   3160  1.1  christos 
   3161  1.1  christos 
   3162  1.1  christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   3163  1.1  christos 
   3164  1.1  christos 
   3165  1.1  christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   3166  1.1  christos 
   3167  1.1  christos 
   3168  1.1  christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   3169  1.1  christos 
   3170  1.1  christos # We need awk for the "check" target.  The system "awk" is bad on
   3171  1.1  christos # some platforms.
   3172  1.1  christos # Always define AMTAR for backward compatibility.
   3173  1.1  christos 
   3174  1.1  christos AMTAR=${AMTAR-"${am_missing_run}tar"}
   3175  1.1  christos 
   3176  1.1  christos am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   3177  1.1  christos 
   3178  1.1  christos 
   3179  1.1  christos 
   3180  1.1  christos 
   3181  1.1  christos 
   3182  1.1  christos 
   3183  1.1  christos 
   3184  1.1  christos if test "x$prefix" = xNONE; then
   3185  1.3  christos   $as_echo_n "checking for prefix by " >&6
   3186  1.1  christos   # Extract the first word of "cvs", so it can be a program name with args.
   3187  1.1  christos set dummy cvs; ac_word=$2
   3188  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3189  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3190  1.4  christos if test "${ac_cv_path_ac_prefix_program+set}" = set; then :
   3191  1.3  christos   $as_echo_n "(cached) " >&6
   3192  1.1  christos else
   3193  1.1  christos   case $ac_prefix_program in
   3194  1.1  christos   [\\/]* | ?:[\\/]*)
   3195  1.1  christos   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
   3196  1.1  christos   ;;
   3197  1.1  christos   *)
   3198  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3199  1.1  christos for as_dir in $PATH
   3200  1.1  christos do
   3201  1.1  christos   IFS=$as_save_IFS
   3202  1.1  christos   test -z "$as_dir" && as_dir=.
   3203  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3204  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3205  1.1  christos     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
   3206  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3207  1.1  christos     break 2
   3208  1.1  christos   fi
   3209  1.1  christos done
   3210  1.4  christos   done
   3211  1.3  christos IFS=$as_save_IFS
   3212  1.1  christos 
   3213  1.1  christos   ;;
   3214  1.1  christos esac
   3215  1.1  christos fi
   3216  1.1  christos ac_prefix_program=$ac_cv_path_ac_prefix_program
   3217  1.1  christos if test -n "$ac_prefix_program"; then
   3218  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
   3219  1.3  christos $as_echo "$ac_prefix_program" >&6; }
   3220  1.1  christos else
   3221  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3222  1.3  christos $as_echo "no" >&6; }
   3223  1.1  christos fi
   3224  1.1  christos 
   3225  1.3  christos 
   3226  1.1  christos   if test -n "$ac_prefix_program"; then
   3227  1.3  christos     prefix=`$as_dirname -- "$ac_prefix_program" ||
   3228  1.1  christos $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   3229  1.1  christos 	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
   3230  1.1  christos 	 X"$ac_prefix_program" : 'X\(//\)$' \| \
   3231  1.3  christos 	 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
   3232  1.3  christos $as_echo X"$ac_prefix_program" |
   3233  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   3234  1.3  christos 	    s//\1/
   3235  1.3  christos 	    q
   3236  1.3  christos 	  }
   3237  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   3238  1.3  christos 	    s//\1/
   3239  1.3  christos 	    q
   3240  1.3  christos 	  }
   3241  1.3  christos 	  /^X\(\/\/\)$/{
   3242  1.3  christos 	    s//\1/
   3243  1.3  christos 	    q
   3244  1.3  christos 	  }
   3245  1.3  christos 	  /^X\(\/\).*/{
   3246  1.3  christos 	    s//\1/
   3247  1.3  christos 	    q
   3248  1.3  christos 	  }
   3249  1.3  christos 	  s/.*/./; q'`
   3250  1.3  christos     prefix=`$as_dirname -- "$prefix" ||
   3251  1.1  christos $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   3252  1.1  christos 	 X"$prefix" : 'X\(//\)[^/]' \| \
   3253  1.1  christos 	 X"$prefix" : 'X\(//\)$' \| \
   3254  1.3  christos 	 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
   3255  1.3  christos $as_echo X"$prefix" |
   3256  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   3257  1.3  christos 	    s//\1/
   3258  1.3  christos 	    q
   3259  1.3  christos 	  }
   3260  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   3261  1.3  christos 	    s//\1/
   3262  1.3  christos 	    q
   3263  1.3  christos 	  }
   3264  1.3  christos 	  /^X\(\/\/\)$/{
   3265  1.3  christos 	    s//\1/
   3266  1.3  christos 	    q
   3267  1.3  christos 	  }
   3268  1.3  christos 	  /^X\(\/\).*/{
   3269  1.3  christos 	    s//\1/
   3270  1.3  christos 	    q
   3271  1.3  christos 	  }
   3272  1.3  christos 	  s/.*/./; q'`
   3273  1.1  christos   fi
   3274  1.1  christos fi
   3275  1.1  christos 
   3276  1.3  christos ac_config_headers="$ac_config_headers config.h"
   3277  1.3  christos 
   3278  1.4  christos 
   3279  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   3280  1.3  christos $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   3281  1.3  christos     # Check whether --enable-maintainer-mode was given.
   3282  1.4  christos if test "${enable_maintainer_mode+set}" = set; then :
   3283  1.3  christos   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   3284  1.1  christos else
   3285  1.1  christos   USE_MAINTAINER_MODE=no
   3286  1.3  christos fi
   3287  1.1  christos 
   3288  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   3289  1.3  christos $as_echo "$USE_MAINTAINER_MODE" >&6; }
   3290  1.3  christos    if test $USE_MAINTAINER_MODE = yes; then
   3291  1.1  christos   MAINTAINER_MODE_TRUE=
   3292  1.1  christos   MAINTAINER_MODE_FALSE='#'
   3293  1.1  christos else
   3294  1.1  christos   MAINTAINER_MODE_TRUE='#'
   3295  1.1  christos   MAINTAINER_MODE_FALSE=
   3296  1.1  christos fi
   3297  1.1  christos 
   3298  1.1  christos   MAINT=$MAINTAINER_MODE_TRUE
   3299  1.1  christos 
   3300  1.1  christos 
   3301  1.1  christos 
   3302  1.1  christos DEPDIR="${am__leading_dot}deps"
   3303  1.1  christos 
   3304  1.3  christos ac_config_commands="$ac_config_commands depfiles"
   3305  1.1  christos 
   3306  1.1  christos 
   3307  1.1  christos am_make=${MAKE-make}
   3308  1.1  christos cat > confinc << 'END'
   3309  1.1  christos am__doit:
   3310  1.4  christos 	@echo this is the am__doit target
   3311  1.1  christos .PHONY: am__doit
   3312  1.1  christos END
   3313  1.1  christos # If we don't find an include directive, just comment out the code.
   3314  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3315  1.3  christos $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3316  1.1  christos am__include="#"
   3317  1.1  christos am__quote=
   3318  1.1  christos _am_result=none
   3319  1.1  christos # First try GNU make style include.
   3320  1.1  christos echo "include confinc" > confmf
   3321  1.4  christos # Ignore all kinds of additional output from `make'.
   3322  1.4  christos case `$am_make -s -f confmf 2> /dev/null` in #(
   3323  1.4  christos *the\ am__doit\ target*)
   3324  1.4  christos   am__include=include
   3325  1.4  christos   am__quote=
   3326  1.4  christos   _am_result=GNU
   3327  1.4  christos   ;;
   3328  1.4  christos esac
   3329  1.1  christos # Now try BSD make style include.
   3330  1.1  christos if test "$am__include" = "#"; then
   3331  1.1  christos    echo '.include "confinc"' > confmf
   3332  1.4  christos    case `$am_make -s -f confmf 2> /dev/null` in #(
   3333  1.4  christos    *the\ am__doit\ target*)
   3334  1.4  christos      am__include=.include
   3335  1.4  christos      am__quote="\""
   3336  1.4  christos      _am_result=BSD
   3337  1.4  christos      ;;
   3338  1.4  christos    esac
   3339  1.1  christos fi
   3340  1.1  christos 
   3341  1.1  christos 
   3342  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3343  1.3  christos $as_echo "$_am_result" >&6; }
   3344  1.1  christos rm -f confinc confmf
   3345  1.1  christos 
   3346  1.3  christos # Check whether --enable-dependency-tracking was given.
   3347  1.4  christos if test "${enable_dependency_tracking+set}" = set; then :
   3348  1.3  christos   enableval=$enable_dependency_tracking;
   3349  1.3  christos fi
   3350  1.1  christos 
   3351  1.1  christos if test "x$enable_dependency_tracking" != xno; then
   3352  1.1  christos   am_depcomp="$ac_aux_dir/depcomp"
   3353  1.1  christos   AMDEPBACKSLASH='\'
   3354  1.1  christos fi
   3355  1.3  christos  if test "x$enable_dependency_tracking" != xno; then
   3356  1.1  christos   AMDEP_TRUE=
   3357  1.1  christos   AMDEP_FALSE='#'
   3358  1.1  christos else
   3359  1.1  christos   AMDEP_TRUE='#'
   3360  1.1  christos   AMDEP_FALSE=
   3361  1.1  christos fi
   3362  1.1  christos 
   3363  1.1  christos 
   3364  1.1  christos ac_ext=c
   3365  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3366  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3367  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3368  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3369  1.1  christos if test -n "$ac_tool_prefix"; then
   3370  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3371  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3372  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3373  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3374  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   3375  1.3  christos   $as_echo_n "(cached) " >&6
   3376  1.1  christos else
   3377  1.1  christos   if test -n "$CC"; then
   3378  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3379  1.1  christos else
   3380  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3381  1.1  christos for as_dir in $PATH
   3382  1.1  christos do
   3383  1.1  christos   IFS=$as_save_IFS
   3384  1.1  christos   test -z "$as_dir" && as_dir=.
   3385  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3386  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3387  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3388  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3389  1.1  christos     break 2
   3390  1.1  christos   fi
   3391  1.1  christos done
   3392  1.4  christos   done
   3393  1.3  christos IFS=$as_save_IFS
   3394  1.1  christos 
   3395  1.1  christos fi
   3396  1.1  christos fi
   3397  1.1  christos CC=$ac_cv_prog_CC
   3398  1.1  christos if test -n "$CC"; then
   3399  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3400  1.3  christos $as_echo "$CC" >&6; }
   3401  1.1  christos else
   3402  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3403  1.3  christos $as_echo "no" >&6; }
   3404  1.1  christos fi
   3405  1.1  christos 
   3406  1.3  christos 
   3407  1.1  christos fi
   3408  1.1  christos if test -z "$ac_cv_prog_CC"; then
   3409  1.1  christos   ac_ct_CC=$CC
   3410  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   3411  1.1  christos set dummy gcc; ac_word=$2
   3412  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3413  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3414  1.4  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3415  1.3  christos   $as_echo_n "(cached) " >&6
   3416  1.1  christos else
   3417  1.1  christos   if test -n "$ac_ct_CC"; then
   3418  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3419  1.1  christos else
   3420  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3421  1.1  christos for as_dir in $PATH
   3422  1.1  christos do
   3423  1.1  christos   IFS=$as_save_IFS
   3424  1.1  christos   test -z "$as_dir" && as_dir=.
   3425  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3426  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3427  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   3428  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3429  1.1  christos     break 2
   3430  1.1  christos   fi
   3431  1.1  christos done
   3432  1.4  christos   done
   3433  1.3  christos IFS=$as_save_IFS
   3434  1.1  christos 
   3435  1.1  christos fi
   3436  1.1  christos fi
   3437  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3438  1.1  christos if test -n "$ac_ct_CC"; then
   3439  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3440  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   3441  1.1  christos else
   3442  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3443  1.3  christos $as_echo "no" >&6; }
   3444  1.1  christos fi
   3445  1.1  christos 
   3446  1.3  christos   if test "x$ac_ct_CC" = x; then
   3447  1.3  christos     CC=""
   3448  1.3  christos   else
   3449  1.3  christos     case $cross_compiling:$ac_tool_warned in
   3450  1.3  christos yes:)
   3451  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3452  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3453  1.3  christos ac_tool_warned=yes ;;
   3454  1.3  christos esac
   3455  1.3  christos     CC=$ac_ct_CC
   3456  1.3  christos   fi
   3457  1.1  christos else
   3458  1.1  christos   CC="$ac_cv_prog_CC"
   3459  1.1  christos fi
   3460  1.1  christos 
   3461  1.1  christos if test -z "$CC"; then
   3462  1.3  christos           if test -n "$ac_tool_prefix"; then
   3463  1.3  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3464  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   3465  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3466  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3467  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   3468  1.3  christos   $as_echo_n "(cached) " >&6
   3469  1.1  christos else
   3470  1.1  christos   if test -n "$CC"; then
   3471  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3472  1.1  christos else
   3473  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3474  1.1  christos for as_dir in $PATH
   3475  1.1  christos do
   3476  1.1  christos   IFS=$as_save_IFS
   3477  1.1  christos   test -z "$as_dir" && as_dir=.
   3478  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3479  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3480  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3481  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3482  1.1  christos     break 2
   3483  1.1  christos   fi
   3484  1.1  christos done
   3485  1.4  christos   done
   3486  1.3  christos IFS=$as_save_IFS
   3487  1.1  christos 
   3488  1.1  christos fi
   3489  1.1  christos fi
   3490  1.1  christos CC=$ac_cv_prog_CC
   3491  1.1  christos if test -n "$CC"; then
   3492  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3493  1.3  christos $as_echo "$CC" >&6; }
   3494  1.1  christos else
   3495  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3496  1.3  christos $as_echo "no" >&6; }
   3497  1.1  christos fi
   3498  1.1  christos 
   3499  1.3  christos 
   3500  1.1  christos   fi
   3501  1.1  christos fi
   3502  1.1  christos if test -z "$CC"; then
   3503  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   3504  1.1  christos set dummy cc; ac_word=$2
   3505  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3506  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3507  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   3508  1.3  christos   $as_echo_n "(cached) " >&6
   3509  1.1  christos else
   3510  1.1  christos   if test -n "$CC"; then
   3511  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3512  1.1  christos else
   3513  1.1  christos   ac_prog_rejected=no
   3514  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3515  1.1  christos for as_dir in $PATH
   3516  1.1  christos do
   3517  1.1  christos   IFS=$as_save_IFS
   3518  1.1  christos   test -z "$as_dir" && as_dir=.
   3519  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3520  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3521  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3522  1.1  christos        ac_prog_rejected=yes
   3523  1.1  christos        continue
   3524  1.1  christos      fi
   3525  1.1  christos     ac_cv_prog_CC="cc"
   3526  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3527  1.1  christos     break 2
   3528  1.1  christos   fi
   3529  1.1  christos done
   3530  1.4  christos   done
   3531  1.3  christos IFS=$as_save_IFS
   3532  1.1  christos 
   3533  1.1  christos if test $ac_prog_rejected = yes; then
   3534  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   3535  1.1  christos   set dummy $ac_cv_prog_CC
   3536  1.1  christos   shift
   3537  1.1  christos   if test $# != 0; then
   3538  1.1  christos     # We chose a different compiler from the bogus one.
   3539  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   3540  1.1  christos     # first if we set CC to just the basename; use the full file name.
   3541  1.1  christos     shift
   3542  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3543  1.1  christos   fi
   3544  1.1  christos fi
   3545  1.1  christos fi
   3546  1.1  christos fi
   3547  1.1  christos CC=$ac_cv_prog_CC
   3548  1.1  christos if test -n "$CC"; then
   3549  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3550  1.3  christos $as_echo "$CC" >&6; }
   3551  1.1  christos else
   3552  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3553  1.3  christos $as_echo "no" >&6; }
   3554  1.1  christos fi
   3555  1.1  christos 
   3556  1.3  christos 
   3557  1.1  christos fi
   3558  1.1  christos if test -z "$CC"; then
   3559  1.1  christos   if test -n "$ac_tool_prefix"; then
   3560  1.3  christos   for ac_prog in cl.exe
   3561  1.1  christos   do
   3562  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3563  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3564  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3565  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3566  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   3567  1.3  christos   $as_echo_n "(cached) " >&6
   3568  1.1  christos else
   3569  1.1  christos   if test -n "$CC"; then
   3570  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   3571  1.1  christos else
   3572  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3573  1.1  christos for as_dir in $PATH
   3574  1.1  christos do
   3575  1.1  christos   IFS=$as_save_IFS
   3576  1.1  christos   test -z "$as_dir" && as_dir=.
   3577  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3578  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3579  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3580  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3581  1.1  christos     break 2
   3582  1.1  christos   fi
   3583  1.1  christos done
   3584  1.4  christos   done
   3585  1.3  christos IFS=$as_save_IFS
   3586  1.1  christos 
   3587  1.1  christos fi
   3588  1.1  christos fi
   3589  1.1  christos CC=$ac_cv_prog_CC
   3590  1.1  christos if test -n "$CC"; then
   3591  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3592  1.3  christos $as_echo "$CC" >&6; }
   3593  1.1  christos else
   3594  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3595  1.3  christos $as_echo "no" >&6; }
   3596  1.1  christos fi
   3597  1.1  christos 
   3598  1.3  christos 
   3599  1.1  christos     test -n "$CC" && break
   3600  1.1  christos   done
   3601  1.1  christos fi
   3602  1.1  christos if test -z "$CC"; then
   3603  1.1  christos   ac_ct_CC=$CC
   3604  1.3  christos   for ac_prog in cl.exe
   3605  1.1  christos do
   3606  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3607  1.1  christos set dummy $ac_prog; ac_word=$2
   3608  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3609  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   3610  1.4  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3611  1.3  christos   $as_echo_n "(cached) " >&6
   3612  1.1  christos else
   3613  1.1  christos   if test -n "$ac_ct_CC"; then
   3614  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3615  1.1  christos else
   3616  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3617  1.1  christos for as_dir in $PATH
   3618  1.1  christos do
   3619  1.1  christos   IFS=$as_save_IFS
   3620  1.1  christos   test -z "$as_dir" && as_dir=.
   3621  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3622  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3623  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   3624  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3625  1.1  christos     break 2
   3626  1.1  christos   fi
   3627  1.1  christos done
   3628  1.4  christos   done
   3629  1.3  christos IFS=$as_save_IFS
   3630  1.1  christos 
   3631  1.1  christos fi
   3632  1.1  christos fi
   3633  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3634  1.1  christos if test -n "$ac_ct_CC"; then
   3635  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3636  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   3637  1.1  christos else
   3638  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3639  1.3  christos $as_echo "no" >&6; }
   3640  1.1  christos fi
   3641  1.1  christos 
   3642  1.3  christos 
   3643  1.1  christos   test -n "$ac_ct_CC" && break
   3644  1.1  christos done
   3645  1.1  christos 
   3646  1.3  christos   if test "x$ac_ct_CC" = x; then
   3647  1.3  christos     CC=""
   3648  1.3  christos   else
   3649  1.3  christos     case $cross_compiling:$ac_tool_warned in
   3650  1.3  christos yes:)
   3651  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3652  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3653  1.3  christos ac_tool_warned=yes ;;
   3654  1.3  christos esac
   3655  1.3  christos     CC=$ac_ct_CC
   3656  1.3  christos   fi
   3657  1.1  christos fi
   3658  1.1  christos 
   3659  1.1  christos fi
   3660  1.1  christos 
   3661  1.1  christos 
   3662  1.4  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3663  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3664  1.4  christos as_fn_error "no acceptable C compiler found in \$PATH
   3665  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   3666  1.1  christos 
   3667  1.1  christos # Provide some information about the compiler.
   3668  1.4  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3669  1.3  christos set X $ac_compile
   3670  1.3  christos ac_compiler=$2
   3671  1.4  christos for ac_option in --version -v -V -qversion; do
   3672  1.4  christos   { { ac_try="$ac_compiler $ac_option >&5"
   3673  1.3  christos case "(($ac_try" in
   3674  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3675  1.3  christos   *) ac_try_echo=$ac_try;;
   3676  1.3  christos esac
   3677  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3678  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3679  1.4  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3680  1.1  christos   ac_status=$?
   3681  1.4  christos   if test -s conftest.err; then
   3682  1.4  christos     sed '10a\
   3683  1.4  christos ... rest of stderr output deleted ...
   3684  1.4  christos          10q' conftest.err >conftest.er1
   3685  1.4  christos     cat conftest.er1 >&5
   3686  1.4  christos   fi
   3687  1.4  christos   rm -f conftest.er1 conftest.err
   3688  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3689  1.4  christos   test $ac_status = 0; }
   3690  1.4  christos done
   3691  1.1  christos 
   3692  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3693  1.1  christos /* end confdefs.h.  */
   3694  1.1  christos 
   3695  1.1  christos int
   3696  1.1  christos main ()
   3697  1.1  christos {
   3698  1.1  christos 
   3699  1.1  christos   ;
   3700  1.1  christos   return 0;
   3701  1.1  christos }
   3702  1.1  christos _ACEOF
   3703  1.1  christos ac_clean_files_save=$ac_clean_files
   3704  1.3  christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3705  1.1  christos # Try to create an executable without -o first, disregard a.out.
   3706  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   3707  1.1  christos # of exeext.
   3708  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3709  1.4  christos $as_echo_n "checking whether the C compiler works... " >&6; }
   3710  1.3  christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3711  1.3  christos 
   3712  1.3  christos # The possible output files:
   3713  1.3  christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3714  1.3  christos 
   3715  1.3  christos ac_rmfiles=
   3716  1.3  christos for ac_file in $ac_files
   3717  1.3  christos do
   3718  1.3  christos   case $ac_file in
   3719  1.3  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3720  1.3  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3721  1.3  christos   esac
   3722  1.3  christos done
   3723  1.3  christos rm -f $ac_rmfiles
   3724  1.3  christos 
   3725  1.4  christos if { { ac_try="$ac_link_default"
   3726  1.3  christos case "(($ac_try" in
   3727  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3728  1.3  christos   *) ac_try_echo=$ac_try;;
   3729  1.3  christos esac
   3730  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3731  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3732  1.3  christos   (eval "$ac_link_default") 2>&5
   3733  1.1  christos   ac_status=$?
   3734  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3735  1.4  christos   test $ac_status = 0; }; then :
   3736  1.3  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3737  1.3  christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3738  1.3  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3739  1.3  christos # so that the user can short-circuit this test for compilers unknown to
   3740  1.3  christos # Autoconf.
   3741  1.3  christos for ac_file in $ac_files ''
   3742  1.1  christos do
   3743  1.1  christos   test -f "$ac_file" || continue
   3744  1.1  christos   case $ac_file in
   3745  1.3  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3746  1.1  christos 	;;
   3747  1.1  christos     [ab].out )
   3748  1.1  christos 	# We found the default executable, but exeext='' is most
   3749  1.1  christos 	# certainly right.
   3750  1.1  christos 	break;;
   3751  1.1  christos     *.* )
   3752  1.4  christos 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3753  1.3  christos 	then :; else
   3754  1.3  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3755  1.3  christos 	fi
   3756  1.3  christos 	# We set ac_cv_exeext here because the later test for it is not
   3757  1.3  christos 	# safe: cross compilers may not add the suffix if given an `-o'
   3758  1.3  christos 	# argument, so we may need to know it at that point already.
   3759  1.3  christos 	# Even if this section looks crufty: it has the advantage of
   3760  1.3  christos 	# actually working.
   3761  1.1  christos 	break;;
   3762  1.1  christos     * )
   3763  1.1  christos 	break;;
   3764  1.1  christos   esac
   3765  1.1  christos done
   3766  1.3  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   3767  1.3  christos 
   3768  1.1  christos else
   3769  1.3  christos   ac_file=''
   3770  1.3  christos fi
   3771  1.4  christos if test -z "$ac_file"; then :
   3772  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3773  1.4  christos $as_echo "no" >&6; }
   3774  1.4  christos $as_echo "$as_me: failed program was:" >&5
   3775  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3776  1.1  christos 
   3777  1.4  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3778  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3779  1.4  christos { as_fn_set_status 77
   3780  1.4  christos as_fn_error "C compiler cannot create executables
   3781  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   3782  1.4  christos else
   3783  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3784  1.4  christos $as_echo "yes" >&6; }
   3785  1.1  christos fi
   3786  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3787  1.4  christos $as_echo_n "checking for C compiler default output file name... " >&6; }
   3788  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3789  1.4  christos $as_echo "$ac_file" >&6; }
   3790  1.1  christos ac_exeext=$ac_cv_exeext
   3791  1.1  christos 
   3792  1.4  christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3793  1.4  christos ac_clean_files=$ac_clean_files_save
   3794  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3795  1.4  christos $as_echo_n "checking for suffix of executables... " >&6; }
   3796  1.4  christos if { { ac_try="$ac_link"
   3797  1.4  christos case "(($ac_try" in
   3798  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3799  1.3  christos   *) ac_try_echo=$ac_try;;
   3800  1.3  christos esac
   3801  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3802  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3803  1.3  christos   (eval "$ac_link") 2>&5
   3804  1.1  christos   ac_status=$?
   3805  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3806  1.4  christos   test $ac_status = 0; }; then :
   3807  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3808  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3809  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   3810  1.1  christos # `rm'.
   3811  1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   3812  1.1  christos   test -f "$ac_file" || continue
   3813  1.1  christos   case $ac_file in
   3814  1.3  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3815  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3816  1.1  christos 	  break;;
   3817  1.1  christos     * ) break;;
   3818  1.1  christos   esac
   3819  1.1  christos done
   3820  1.1  christos else
   3821  1.4  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3822  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3823  1.4  christos as_fn_error "cannot compute suffix of executables: cannot compile and link
   3824  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   3825  1.1  christos fi
   3826  1.4  christos rm -f conftest conftest$ac_cv_exeext
   3827  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3828  1.3  christos $as_echo "$ac_cv_exeext" >&6; }
   3829  1.1  christos 
   3830  1.1  christos rm -f conftest.$ac_ext
   3831  1.1  christos EXEEXT=$ac_cv_exeext
   3832  1.1  christos ac_exeext=$EXEEXT
   3833  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3834  1.4  christos /* end confdefs.h.  */
   3835  1.4  christos #include <stdio.h>
   3836  1.4  christos int
   3837  1.4  christos main ()
   3838  1.4  christos {
   3839  1.4  christos FILE *f = fopen ("conftest.out", "w");
   3840  1.4  christos  return ferror (f) || fclose (f) != 0;
   3841  1.4  christos 
   3842  1.4  christos   ;
   3843  1.4  christos   return 0;
   3844  1.4  christos }
   3845  1.4  christos _ACEOF
   3846  1.4  christos ac_clean_files="$ac_clean_files conftest.out"
   3847  1.4  christos # Check that the compiler produces executables we can run.  If not, either
   3848  1.4  christos # the compiler is broken, or we cross compile.
   3849  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3850  1.4  christos $as_echo_n "checking whether we are cross compiling... " >&6; }
   3851  1.4  christos if test "$cross_compiling" != yes; then
   3852  1.4  christos   { { ac_try="$ac_link"
   3853  1.4  christos case "(($ac_try" in
   3854  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3855  1.4  christos   *) ac_try_echo=$ac_try;;
   3856  1.4  christos esac
   3857  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3858  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3859  1.4  christos   (eval "$ac_link") 2>&5
   3860  1.4  christos   ac_status=$?
   3861  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3862  1.4  christos   test $ac_status = 0; }
   3863  1.4  christos   if { ac_try='./conftest$ac_cv_exeext'
   3864  1.4  christos   { { case "(($ac_try" in
   3865  1.4  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3866  1.4  christos   *) ac_try_echo=$ac_try;;
   3867  1.4  christos esac
   3868  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3869  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3870  1.4  christos   (eval "$ac_try") 2>&5
   3871  1.4  christos   ac_status=$?
   3872  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3873  1.4  christos   test $ac_status = 0; }; }; then
   3874  1.4  christos     cross_compiling=no
   3875  1.4  christos   else
   3876  1.4  christos     if test "$cross_compiling" = maybe; then
   3877  1.4  christos 	cross_compiling=yes
   3878  1.4  christos     else
   3879  1.4  christos 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3880  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3881  1.4  christos as_fn_error "cannot run C compiled programs.
   3882  1.4  christos If you meant to cross compile, use \`--host'.
   3883  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   3884  1.4  christos     fi
   3885  1.4  christos   fi
   3886  1.4  christos fi
   3887  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3888  1.4  christos $as_echo "$cross_compiling" >&6; }
   3889  1.4  christos 
   3890  1.4  christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3891  1.4  christos ac_clean_files=$ac_clean_files_save
   3892  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3893  1.3  christos $as_echo_n "checking for suffix of object files... " >&6; }
   3894  1.4  christos if test "${ac_cv_objext+set}" = set; then :
   3895  1.3  christos   $as_echo_n "(cached) " >&6
   3896  1.1  christos else
   3897  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3898  1.1  christos /* end confdefs.h.  */
   3899  1.1  christos 
   3900  1.1  christos int
   3901  1.1  christos main ()
   3902  1.1  christos {
   3903  1.1  christos 
   3904  1.1  christos   ;
   3905  1.1  christos   return 0;
   3906  1.1  christos }
   3907  1.1  christos _ACEOF
   3908  1.1  christos rm -f conftest.o conftest.obj
   3909  1.4  christos if { { ac_try="$ac_compile"
   3910  1.3  christos case "(($ac_try" in
   3911  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3912  1.3  christos   *) ac_try_echo=$ac_try;;
   3913  1.3  christos esac
   3914  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3915  1.4  christos $as_echo "$ac_try_echo"; } >&5
   3916  1.3  christos   (eval "$ac_compile") 2>&5
   3917  1.1  christos   ac_status=$?
   3918  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3919  1.4  christos   test $ac_status = 0; }; then :
   3920  1.3  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   3921  1.3  christos   test -f "$ac_file" || continue;
   3922  1.1  christos   case $ac_file in
   3923  1.3  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3924  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3925  1.1  christos        break;;
   3926  1.1  christos   esac
   3927  1.1  christos done
   3928  1.1  christos else
   3929  1.3  christos   $as_echo "$as_me: failed program was:" >&5
   3930  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3931  1.1  christos 
   3932  1.4  christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3933  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3934  1.4  christos as_fn_error "cannot compute suffix of object files: cannot compile
   3935  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   3936  1.1  christos fi
   3937  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3938  1.1  christos fi
   3939  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3940  1.3  christos $as_echo "$ac_cv_objext" >&6; }
   3941  1.1  christos OBJEXT=$ac_cv_objext
   3942  1.1  christos ac_objext=$OBJEXT
   3943  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3944  1.3  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3945  1.4  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3946  1.3  christos   $as_echo_n "(cached) " >&6
   3947  1.1  christos else
   3948  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3949  1.1  christos /* end confdefs.h.  */
   3950  1.1  christos 
   3951  1.1  christos int
   3952  1.1  christos main ()
   3953  1.1  christos {
   3954  1.1  christos #ifndef __GNUC__
   3955  1.1  christos        choke me
   3956  1.1  christos #endif
   3957  1.1  christos 
   3958  1.1  christos   ;
   3959  1.1  christos   return 0;
   3960  1.1  christos }
   3961  1.1  christos _ACEOF
   3962  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   3963  1.1  christos   ac_compiler_gnu=yes
   3964  1.1  christos else
   3965  1.4  christos   ac_compiler_gnu=no
   3966  1.1  christos fi
   3967  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3968  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3969  1.1  christos 
   3970  1.1  christos fi
   3971  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3972  1.3  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3973  1.3  christos if test $ac_compiler_gnu = yes; then
   3974  1.3  christos   GCC=yes
   3975  1.3  christos else
   3976  1.3  christos   GCC=
   3977  1.3  christos fi
   3978  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   3979  1.1  christos ac_save_CFLAGS=$CFLAGS
   3980  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3981  1.3  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3982  1.4  christos if test "${ac_cv_prog_cc_g+set}" = set; then :
   3983  1.3  christos   $as_echo_n "(cached) " >&6
   3984  1.1  christos else
   3985  1.3  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   3986  1.3  christos    ac_c_werror_flag=yes
   3987  1.3  christos    ac_cv_prog_cc_g=no
   3988  1.3  christos    CFLAGS="-g"
   3989  1.4  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3990  1.1  christos /* end confdefs.h.  */
   3991  1.1  christos 
   3992  1.1  christos int
   3993  1.1  christos main ()
   3994  1.1  christos {
   3995  1.1  christos 
   3996  1.1  christos   ;
   3997  1.1  christos   return 0;
   3998  1.1  christos }
   3999  1.1  christos _ACEOF
   4000  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   4001  1.3  christos   ac_cv_prog_cc_g=yes
   4002  1.3  christos else
   4003  1.4  christos   CFLAGS=""
   4004  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4005  1.3  christos /* end confdefs.h.  */
   4006  1.3  christos 
   4007  1.3  christos int
   4008  1.3  christos main ()
   4009  1.3  christos {
   4010  1.3  christos 
   4011  1.3  christos   ;
   4012  1.3  christos   return 0;
   4013  1.3  christos }
   4014  1.3  christos _ACEOF
   4015  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   4016  1.4  christos 
   4017  1.3  christos else
   4018  1.4  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   4019  1.3  christos 	 CFLAGS="-g"
   4020  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4021  1.3  christos /* end confdefs.h.  */
   4022  1.3  christos 
   4023  1.3  christos int
   4024  1.3  christos main ()
   4025  1.3  christos {
   4026  1.3  christos 
   4027  1.3  christos   ;
   4028  1.3  christos   return 0;
   4029  1.3  christos }
   4030  1.3  christos _ACEOF
   4031  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   4032  1.1  christos   ac_cv_prog_cc_g=yes
   4033  1.1  christos fi
   4034  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4035  1.3  christos fi
   4036  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4037  1.3  christos fi
   4038  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4039  1.3  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   4040  1.1  christos fi
   4041  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4042  1.3  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   4043  1.1  christos if test "$ac_test_CFLAGS" = set; then
   4044  1.1  christos   CFLAGS=$ac_save_CFLAGS
   4045  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   4046  1.1  christos   if test "$GCC" = yes; then
   4047  1.1  christos     CFLAGS="-g -O2"
   4048  1.1  christos   else
   4049  1.1  christos     CFLAGS="-g"
   4050  1.1  christos   fi
   4051  1.1  christos else
   4052  1.1  christos   if test "$GCC" = yes; then
   4053  1.1  christos     CFLAGS="-O2"
   4054  1.1  christos   else
   4055  1.1  christos     CFLAGS=
   4056  1.1  christos   fi
   4057  1.1  christos fi
   4058  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4059  1.3  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4060  1.4  christos if test "${ac_cv_prog_cc_c89+set}" = set; then :
   4061  1.3  christos   $as_echo_n "(cached) " >&6
   4062  1.1  christos else
   4063  1.3  christos   ac_cv_prog_cc_c89=no
   4064  1.1  christos ac_save_CC=$CC
   4065  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4066  1.1  christos /* end confdefs.h.  */
   4067  1.1  christos #include <stdarg.h>
   4068  1.1  christos #include <stdio.h>
   4069  1.1  christos #include <sys/types.h>
   4070  1.1  christos #include <sys/stat.h>
   4071  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4072  1.1  christos struct buf { int x; };
   4073  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4074  1.1  christos static char *e (p, i)
   4075  1.1  christos      char **p;
   4076  1.1  christos      int i;
   4077  1.1  christos {
   4078  1.1  christos   return p[i];
   4079  1.1  christos }
   4080  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   4081  1.1  christos {
   4082  1.1  christos   char *s;
   4083  1.1  christos   va_list v;
   4084  1.1  christos   va_start (v,p);
   4085  1.1  christos   s = g (p, va_arg (v,int));
   4086  1.1  christos   va_end (v);
   4087  1.1  christos   return s;
   4088  1.1  christos }
   4089  1.1  christos 
   4090  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4091  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   4092  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   4093  1.3  christos    as 'x'.  The following induces an error, until -std is added to get
   4094  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4095  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   4096  1.3  christos    that's true only with -std.  */
   4097  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4098  1.1  christos 
   4099  1.3  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4100  1.3  christos    inside strings and character constants.  */
   4101  1.3  christos #define FOO(x) 'x'
   4102  1.3  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4103  1.3  christos 
   4104  1.1  christos int test (int i, double x);
   4105  1.1  christos struct s1 {int (*f) (int a);};
   4106  1.1  christos struct s2 {int (*f) (double a);};
   4107  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4108  1.1  christos int argc;
   4109  1.1  christos char **argv;
   4110  1.1  christos int
   4111  1.1  christos main ()
   4112  1.1  christos {
   4113  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4114  1.1  christos   ;
   4115  1.1  christos   return 0;
   4116  1.1  christos }
   4117  1.1  christos _ACEOF
   4118  1.3  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4119  1.3  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4120  1.1  christos do
   4121  1.1  christos   CC="$ac_save_CC $ac_arg"
   4122  1.4  christos   if ac_fn_c_try_compile "$LINENO"; then :
   4123  1.3  christos   ac_cv_prog_cc_c89=$ac_arg
   4124  1.1  christos fi
   4125  1.3  christos rm -f core conftest.err conftest.$ac_objext
   4126  1.3  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4127  1.1  christos done
   4128  1.3  christos rm -f conftest.$ac_ext
   4129  1.1  christos CC=$ac_save_CC
   4130  1.1  christos 
   4131  1.1  christos fi
   4132  1.3  christos # AC_CACHE_VAL
   4133  1.3  christos case "x$ac_cv_prog_cc_c89" in
   4134  1.3  christos   x)
   4135  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4136  1.3  christos $as_echo "none needed" >&6; } ;;
   4137  1.3  christos   xno)
   4138  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4139  1.3  christos $as_echo "unsupported" >&6; } ;;
   4140  1.1  christos   *)
   4141  1.3  christos     CC="$CC $ac_cv_prog_cc_c89"
   4142  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4143  1.3  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4144  1.1  christos esac
   4145  1.4  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   4146  1.1  christos 
   4147  1.4  christos fi
   4148  1.1  christos 
   4149  1.1  christos ac_ext=c
   4150  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   4151  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4152  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4153  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4154  1.1  christos 
   4155  1.1  christos depcc="$CC"   am_compiler_list=
   4156  1.1  christos 
   4157  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4158  1.3  christos $as_echo_n "checking dependency style of $depcc... " >&6; }
   4159  1.4  christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   4160  1.3  christos   $as_echo_n "(cached) " >&6
   4161  1.1  christos else
   4162  1.1  christos   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4163  1.1  christos   # We make a subdir and do the tests there.  Otherwise we can end up
   4164  1.1  christos   # making bogus files that we don't know about and never remove.  For
   4165  1.1  christos   # instance it was reported that on HP-UX the gcc test will end up
   4166  1.1  christos   # making a dummy file named `D' -- because `-MD' means `put the output
   4167  1.1  christos   # in D'.
   4168  1.1  christos   mkdir conftest.dir
   4169  1.1  christos   # Copy depcomp to subdir because otherwise we won't find it if we're
   4170  1.1  christos   # using a relative directory.
   4171  1.1  christos   cp "$am_depcomp" conftest.dir
   4172  1.1  christos   cd conftest.dir
   4173  1.1  christos   # We will build objects and dependencies in a subdirectory because
   4174  1.1  christos   # it helps to detect inapplicable dependency modes.  For instance
   4175  1.1  christos   # both Tru64's cc and ICC support -MD to output dependencies as a
   4176  1.1  christos   # side effect of compilation, but ICC will put the dependencies in
   4177  1.1  christos   # the current directory while Tru64 will put them in the object
   4178  1.1  christos   # directory.
   4179  1.1  christos   mkdir sub
   4180  1.1  christos 
   4181  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   4182  1.1  christos   if test "$am_compiler_list" = ""; then
   4183  1.1  christos      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4184  1.1  christos   fi
   4185  1.4  christos   am__universal=false
   4186  1.4  christos   case " $depcc " in #(
   4187  1.4  christos      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4188  1.4  christos      esac
   4189  1.4  christos 
   4190  1.1  christos   for depmode in $am_compiler_list; do
   4191  1.1  christos     # Setup a source with many dependencies, because some compilers
   4192  1.1  christos     # like to wrap large dependency lists on column 80 (with \), and
   4193  1.1  christos     # we should not choose a depcomp mode which is confused by this.
   4194  1.1  christos     #
   4195  1.1  christos     # We need to recreate these files for each test, as the compiler may
   4196  1.1  christos     # overwrite some of them when testing with obscure command lines.
   4197  1.1  christos     # This happens at least with the AIX C compiler.
   4198  1.1  christos     : > sub/conftest.c
   4199  1.1  christos     for i in 1 2 3 4 5 6; do
   4200  1.1  christos       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4201  1.1  christos       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   4202  1.1  christos       # Solaris 8's {/usr,}/bin/sh.
   4203  1.1  christos       touch sub/conftst$i.h
   4204  1.1  christos     done
   4205  1.1  christos     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4206  1.1  christos 
   4207  1.4  christos     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   4208  1.4  christos     # mode.  It turns out that the SunPro C++ compiler does not properly
   4209  1.4  christos     # handle `-M -o', and we need to detect this.  Also, some Intel
   4210  1.4  christos     # versions had trouble with output in subdirs
   4211  1.4  christos     am__obj=sub/conftest.${OBJEXT-o}
   4212  1.4  christos     am__minus_obj="-o $am__obj"
   4213  1.1  christos     case $depmode in
   4214  1.4  christos     gcc)
   4215  1.4  christos       # This depmode causes a compiler race in universal mode.
   4216  1.4  christos       test "$am__universal" = false || continue
   4217  1.4  christos       ;;
   4218  1.1  christos     nosideeffect)
   4219  1.1  christos       # after this tag, mechanisms are not by side-effect, so they'll
   4220  1.1  christos       # only be used when explicitly requested
   4221  1.1  christos       if test "x$enable_dependency_tracking" = xyes; then
   4222  1.1  christos 	continue
   4223  1.1  christos       else
   4224  1.1  christos 	break
   4225  1.1  christos       fi
   4226  1.1  christos       ;;
   4227  1.4  christos     msvisualcpp | msvcmsys)
   4228  1.4  christos       # This compiler won't grok `-c -o', but also, the minuso test has
   4229  1.4  christos       # not run yet.  These depmodes are late enough in the game, and
   4230  1.4  christos       # so weak that their functioning should not be impacted.
   4231  1.4  christos       am__obj=conftest.${OBJEXT-o}
   4232  1.4  christos       am__minus_obj=
   4233  1.4  christos       ;;
   4234  1.1  christos     none) break ;;
   4235  1.1  christos     esac
   4236  1.1  christos     if depmode=$depmode \
   4237  1.4  christos        source=sub/conftest.c object=$am__obj \
   4238  1.1  christos        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4239  1.4  christos        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4240  1.1  christos          >/dev/null 2>conftest.err &&
   4241  1.3  christos        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4242  1.1  christos        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4243  1.4  christos        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4244  1.1  christos        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4245  1.1  christos       # icc doesn't choke on unknown options, it will just issue warnings
   4246  1.1  christos       # or remarks (even with -Werror).  So we grep stderr for any message
   4247  1.1  christos       # that says an option was ignored or not supported.
   4248  1.1  christos       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4249  1.1  christos       #   icc: Command line warning: ignoring option '-M'; no argument required
   4250  1.1  christos       # The diagnosis changed in icc 8.0:
   4251  1.1  christos       #   icc: Command line remark: option '-MP' not supported
   4252  1.1  christos       if (grep 'ignoring option' conftest.err ||
   4253  1.1  christos           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4254  1.1  christos         am_cv_CC_dependencies_compiler_type=$depmode
   4255  1.1  christos         break
   4256  1.1  christos       fi
   4257  1.1  christos     fi
   4258  1.1  christos   done
   4259  1.1  christos 
   4260  1.1  christos   cd ..
   4261  1.1  christos   rm -rf conftest.dir
   4262  1.1  christos else
   4263  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   4264  1.1  christos fi
   4265  1.1  christos 
   4266  1.1  christos fi
   4267  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4268  1.3  christos $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4269  1.1  christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4270  1.1  christos 
   4271  1.3  christos  if
   4272  1.1  christos   test "x$enable_dependency_tracking" != xno \
   4273  1.1  christos   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4274  1.1  christos   am__fastdepCC_TRUE=
   4275  1.1  christos   am__fastdepCC_FALSE='#'
   4276  1.1  christos else
   4277  1.1  christos   am__fastdepCC_TRUE='#'
   4278  1.1  christos   am__fastdepCC_FALSE=
   4279  1.1  christos fi
   4280  1.1  christos 
   4281  1.1  christos 
   4282  1.1  christos 
   4283  1.1  christos ac_ext=c
   4284  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   4285  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4286  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4287  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4288  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4289  1.3  christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4290  1.1  christos # On Suns, sometimes $CPP names a directory.
   4291  1.1  christos if test -n "$CPP" && test -d "$CPP"; then
   4292  1.1  christos   CPP=
   4293  1.1  christos fi
   4294  1.1  christos if test -z "$CPP"; then
   4295  1.4  christos   if test "${ac_cv_prog_CPP+set}" = set; then :
   4296  1.3  christos   $as_echo_n "(cached) " >&6
   4297  1.1  christos else
   4298  1.1  christos       # Double quotes because CPP needs to be expanded
   4299  1.1  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4300  1.1  christos     do
   4301  1.1  christos       ac_preproc_ok=false
   4302  1.1  christos for ac_c_preproc_warn_flag in '' yes
   4303  1.1  christos do
   4304  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   4305  1.1  christos   # with a fresh cross-compiler works.
   4306  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4307  1.1  christos   # <limits.h> exists even on freestanding compilers.
   4308  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   4309  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   4310  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4311  1.1  christos /* end confdefs.h.  */
   4312  1.1  christos #ifdef __STDC__
   4313  1.1  christos # include <limits.h>
   4314  1.1  christos #else
   4315  1.1  christos # include <assert.h>
   4316  1.1  christos #endif
   4317  1.1  christos 		     Syntax error
   4318  1.1  christos _ACEOF
   4319  1.4  christos if ac_fn_c_try_cpp "$LINENO"; then :
   4320  1.4  christos 
   4321  1.1  christos else
   4322  1.1  christos   # Broken: fails on valid input.
   4323  1.1  christos continue
   4324  1.1  christos fi
   4325  1.1  christos rm -f conftest.err conftest.$ac_ext
   4326  1.1  christos 
   4327  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   4328  1.1  christos   # can be detected and how.
   4329  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4330  1.1  christos /* end confdefs.h.  */
   4331  1.1  christos #include <ac_nonexistent.h>
   4332  1.1  christos _ACEOF
   4333  1.4  christos if ac_fn_c_try_cpp "$LINENO"; then :
   4334  1.1  christos   # Broken: success on invalid input.
   4335  1.1  christos continue
   4336  1.1  christos else
   4337  1.1  christos   # Passes both tests.
   4338  1.1  christos ac_preproc_ok=:
   4339  1.1  christos break
   4340  1.1  christos fi
   4341  1.1  christos rm -f conftest.err conftest.$ac_ext
   4342  1.1  christos 
   4343  1.1  christos done
   4344  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4345  1.1  christos rm -f conftest.err conftest.$ac_ext
   4346  1.4  christos if $ac_preproc_ok; then :
   4347  1.1  christos   break
   4348  1.1  christos fi
   4349  1.1  christos 
   4350  1.1  christos     done
   4351  1.1  christos     ac_cv_prog_CPP=$CPP
   4352  1.1  christos 
   4353  1.1  christos fi
   4354  1.1  christos   CPP=$ac_cv_prog_CPP
   4355  1.1  christos else
   4356  1.1  christos   ac_cv_prog_CPP=$CPP
   4357  1.1  christos fi
   4358  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4359  1.3  christos $as_echo "$CPP" >&6; }
   4360  1.1  christos ac_preproc_ok=false
   4361  1.1  christos for ac_c_preproc_warn_flag in '' yes
   4362  1.1  christos do
   4363  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   4364  1.1  christos   # with a fresh cross-compiler works.
   4365  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4366  1.1  christos   # <limits.h> exists even on freestanding compilers.
   4367  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   4368  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   4369  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4370  1.1  christos /* end confdefs.h.  */
   4371  1.1  christos #ifdef __STDC__
   4372  1.1  christos # include <limits.h>
   4373  1.1  christos #else
   4374  1.1  christos # include <assert.h>
   4375  1.1  christos #endif
   4376  1.1  christos 		     Syntax error
   4377  1.1  christos _ACEOF
   4378  1.4  christos if ac_fn_c_try_cpp "$LINENO"; then :
   4379  1.4  christos 
   4380  1.1  christos else
   4381  1.1  christos   # Broken: fails on valid input.
   4382  1.1  christos continue
   4383  1.1  christos fi
   4384  1.1  christos rm -f conftest.err conftest.$ac_ext
   4385  1.1  christos 
   4386  1.3  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   4387  1.1  christos   # can be detected and how.
   4388  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4389  1.1  christos /* end confdefs.h.  */
   4390  1.1  christos #include <ac_nonexistent.h>
   4391  1.1  christos _ACEOF
   4392  1.4  christos if ac_fn_c_try_cpp "$LINENO"; then :
   4393  1.1  christos   # Broken: success on invalid input.
   4394  1.1  christos continue
   4395  1.1  christos else
   4396  1.1  christos   # Passes both tests.
   4397  1.1  christos ac_preproc_ok=:
   4398  1.1  christos break
   4399  1.1  christos fi
   4400  1.1  christos rm -f conftest.err conftest.$ac_ext
   4401  1.1  christos 
   4402  1.1  christos done
   4403  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4404  1.1  christos rm -f conftest.err conftest.$ac_ext
   4405  1.4  christos if $ac_preproc_ok; then :
   4406  1.4  christos 
   4407  1.1  christos else
   4408  1.4  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4409  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4410  1.4  christos as_fn_error "C preprocessor \"$CPP\" fails sanity check
   4411  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   4412  1.1  christos fi
   4413  1.1  christos 
   4414  1.1  christos ac_ext=c
   4415  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   4416  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4417  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4418  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4419  1.1  christos 
   4420  1.1  christos 
   4421  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4422  1.3  christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4423  1.4  christos if test "${ac_cv_path_GREP+set}" = set; then :
   4424  1.3  christos   $as_echo_n "(cached) " >&6
   4425  1.3  christos else
   4426  1.3  christos   if test -z "$GREP"; then
   4427  1.3  christos   ac_path_GREP_found=false
   4428  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4429  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4430  1.3  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4431  1.3  christos do
   4432  1.3  christos   IFS=$as_save_IFS
   4433  1.3  christos   test -z "$as_dir" && as_dir=.
   4434  1.4  christos     for ac_prog in grep ggrep; do
   4435  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4436  1.3  christos       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4437  1.3  christos       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   4438  1.3  christos # Check for GNU ac_path_GREP and select it if it is found.
   4439  1.3  christos   # Check for GNU $ac_path_GREP
   4440  1.3  christos case `"$ac_path_GREP" --version 2>&1` in
   4441  1.3  christos *GNU*)
   4442  1.3  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4443  1.3  christos *)
   4444  1.3  christos   ac_count=0
   4445  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4446  1.3  christos   while :
   4447  1.3  christos   do
   4448  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4449  1.3  christos     mv "conftest.tmp" "conftest.in"
   4450  1.3  christos     cp "conftest.in" "conftest.nl"
   4451  1.3  christos     $as_echo 'GREP' >> "conftest.nl"
   4452  1.3  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4453  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4454  1.4  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4455  1.3  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4456  1.3  christos       # Best one so far, save it but keep looking for a better one
   4457  1.3  christos       ac_cv_path_GREP="$ac_path_GREP"
   4458  1.3  christos       ac_path_GREP_max=$ac_count
   4459  1.1  christos     fi
   4460  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4461  1.3  christos     test $ac_count -gt 10 && break
   4462  1.3  christos   done
   4463  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4464  1.3  christos esac
   4465  1.3  christos 
   4466  1.3  christos       $ac_path_GREP_found && break 3
   4467  1.3  christos     done
   4468  1.3  christos   done
   4469  1.4  christos   done
   4470  1.3  christos IFS=$as_save_IFS
   4471  1.3  christos   if test -z "$ac_cv_path_GREP"; then
   4472  1.4  christos     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4473  1.3  christos   fi
   4474  1.3  christos else
   4475  1.3  christos   ac_cv_path_GREP=$GREP
   4476  1.1  christos fi
   4477  1.1  christos 
   4478  1.3  christos fi
   4479  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4480  1.3  christos $as_echo "$ac_cv_path_GREP" >&6; }
   4481  1.3  christos  GREP="$ac_cv_path_GREP"
   4482  1.1  christos 
   4483  1.1  christos 
   4484  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4485  1.3  christos $as_echo_n "checking for egrep... " >&6; }
   4486  1.4  christos if test "${ac_cv_path_EGREP+set}" = set; then :
   4487  1.3  christos   $as_echo_n "(cached) " >&6
   4488  1.3  christos else
   4489  1.3  christos   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4490  1.3  christos    then ac_cv_path_EGREP="$GREP -E"
   4491  1.3  christos    else
   4492  1.3  christos      if test -z "$EGREP"; then
   4493  1.3  christos   ac_path_EGREP_found=false
   4494  1.3  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4495  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4496  1.3  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4497  1.3  christos do
   4498  1.3  christos   IFS=$as_save_IFS
   4499  1.3  christos   test -z "$as_dir" && as_dir=.
   4500  1.4  christos     for ac_prog in egrep; do
   4501  1.3  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4502  1.3  christos       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4503  1.3  christos       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4504  1.3  christos # Check for GNU ac_path_EGREP and select it if it is found.
   4505  1.3  christos   # Check for GNU $ac_path_EGREP
   4506  1.3  christos case `"$ac_path_EGREP" --version 2>&1` in
   4507  1.3  christos *GNU*)
   4508  1.3  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4509  1.3  christos *)
   4510  1.3  christos   ac_count=0
   4511  1.3  christos   $as_echo_n 0123456789 >"conftest.in"
   4512  1.3  christos   while :
   4513  1.3  christos   do
   4514  1.3  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4515  1.3  christos     mv "conftest.tmp" "conftest.in"
   4516  1.3  christos     cp "conftest.in" "conftest.nl"
   4517  1.3  christos     $as_echo 'EGREP' >> "conftest.nl"
   4518  1.3  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4519  1.3  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4520  1.4  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4521  1.3  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4522  1.3  christos       # Best one so far, save it but keep looking for a better one
   4523  1.3  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   4524  1.3  christos       ac_path_EGREP_max=$ac_count
   4525  1.3  christos     fi
   4526  1.3  christos     # 10*(2^10) chars as input seems more than enough
   4527  1.3  christos     test $ac_count -gt 10 && break
   4528  1.3  christos   done
   4529  1.3  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4530  1.3  christos esac
   4531  1.1  christos 
   4532  1.3  christos       $ac_path_EGREP_found && break 3
   4533  1.3  christos     done
   4534  1.3  christos   done
   4535  1.4  christos   done
   4536  1.3  christos IFS=$as_save_IFS
   4537  1.3  christos   if test -z "$ac_cv_path_EGREP"; then
   4538  1.4  christos     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4539  1.3  christos   fi
   4540  1.3  christos else
   4541  1.3  christos   ac_cv_path_EGREP=$EGREP
   4542  1.3  christos fi
   4543  1.1  christos 
   4544  1.3  christos    fi
   4545  1.1  christos fi
   4546  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4547  1.3  christos $as_echo "$ac_cv_path_EGREP" >&6; }
   4548  1.3  christos  EGREP="$ac_cv_path_EGREP"
   4549  1.1  christos 
   4550  1.1  christos 
   4551  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4552  1.3  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   4553  1.4  christos if test "${ac_cv_header_stdc+set}" = set; then :
   4554  1.3  christos   $as_echo_n "(cached) " >&6
   4555  1.1  christos else
   4556  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4557  1.1  christos /* end confdefs.h.  */
   4558  1.1  christos #include <stdlib.h>
   4559  1.1  christos #include <stdarg.h>
   4560  1.1  christos #include <string.h>
   4561  1.1  christos #include <float.h>
   4562  1.1  christos 
   4563  1.1  christos int
   4564  1.1  christos main ()
   4565  1.1  christos {
   4566  1.1  christos 
   4567  1.1  christos   ;
   4568  1.1  christos   return 0;
   4569  1.1  christos }
   4570  1.1  christos _ACEOF
   4571  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   4572  1.1  christos   ac_cv_header_stdc=yes
   4573  1.1  christos else
   4574  1.4  christos   ac_cv_header_stdc=no
   4575  1.1  christos fi
   4576  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4577  1.1  christos 
   4578  1.1  christos if test $ac_cv_header_stdc = yes; then
   4579  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4580  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4581  1.1  christos /* end confdefs.h.  */
   4582  1.1  christos #include <string.h>
   4583  1.1  christos 
   4584  1.1  christos _ACEOF
   4585  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4586  1.4  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   4587  1.4  christos 
   4588  1.1  christos else
   4589  1.1  christos   ac_cv_header_stdc=no
   4590  1.1  christos fi
   4591  1.1  christos rm -f conftest*
   4592  1.1  christos 
   4593  1.1  christos fi
   4594  1.1  christos 
   4595  1.1  christos if test $ac_cv_header_stdc = yes; then
   4596  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4597  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4598  1.1  christos /* end confdefs.h.  */
   4599  1.1  christos #include <stdlib.h>
   4600  1.1  christos 
   4601  1.1  christos _ACEOF
   4602  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4603  1.4  christos   $EGREP "free" >/dev/null 2>&1; then :
   4604  1.4  christos 
   4605  1.1  christos else
   4606  1.1  christos   ac_cv_header_stdc=no
   4607  1.1  christos fi
   4608  1.1  christos rm -f conftest*
   4609  1.1  christos 
   4610  1.1  christos fi
   4611  1.1  christos 
   4612  1.1  christos if test $ac_cv_header_stdc = yes; then
   4613  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4614  1.4  christos   if test "$cross_compiling" = yes; then :
   4615  1.1  christos   :
   4616  1.1  christos else
   4617  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4618  1.1  christos /* end confdefs.h.  */
   4619  1.1  christos #include <ctype.h>
   4620  1.3  christos #include <stdlib.h>
   4621  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   4622  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4623  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4624  1.1  christos #else
   4625  1.1  christos # define ISLOWER(c) \
   4626  1.1  christos 		   (('a' <= (c) && (c) <= 'i') \
   4627  1.1  christos 		     || ('j' <= (c) && (c) <= 'r') \
   4628  1.1  christos 		     || ('s' <= (c) && (c) <= 'z'))
   4629  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4630  1.1  christos #endif
   4631  1.1  christos 
   4632  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4633  1.1  christos int
   4634  1.1  christos main ()
   4635  1.1  christos {
   4636  1.1  christos   int i;
   4637  1.1  christos   for (i = 0; i < 256; i++)
   4638  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   4639  1.1  christos 	|| toupper (i) != TOUPPER (i))
   4640  1.3  christos       return 2;
   4641  1.3  christos   return 0;
   4642  1.1  christos }
   4643  1.1  christos _ACEOF
   4644  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   4645  1.4  christos 
   4646  1.1  christos else
   4647  1.4  christos   ac_cv_header_stdc=no
   4648  1.1  christos fi
   4649  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4650  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4651  1.1  christos fi
   4652  1.3  christos 
   4653  1.1  christos fi
   4654  1.1  christos fi
   4655  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4656  1.3  christos $as_echo "$ac_cv_header_stdc" >&6; }
   4657  1.1  christos if test $ac_cv_header_stdc = yes; then
   4658  1.1  christos 
   4659  1.4  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4660  1.1  christos 
   4661  1.1  christos fi
   4662  1.1  christos 
   4663  1.1  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4664  1.4  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4665  1.4  christos 		  inttypes.h stdint.h unistd.h
   4666  1.4  christos do :
   4667  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4668  1.4  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4669  1.4  christos "
   4670  1.4  christos eval as_val=\$$as_ac_Header
   4671  1.4  christos    if test "x$as_val" = x""yes; then :
   4672  1.4  christos   cat >>confdefs.h <<_ACEOF
   4673  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4674  1.4  christos _ACEOF
   4675  1.1  christos 
   4676  1.4  christos fi
   4677  1.1  christos 
   4678  1.4  christos done
   4679  1.1  christos 
   4680  1.1  christos 
   4681  1.1  christos 
   4682  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4683  1.4  christos if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   4684  1.1  christos   MINIX=yes
   4685  1.1  christos else
   4686  1.1  christos   MINIX=
   4687  1.1  christos fi
   4688  1.1  christos 
   4689  1.1  christos 
   4690  1.3  christos   if test "$MINIX" = yes; then
   4691  1.1  christos 
   4692  1.4  christos $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4693  1.1  christos 
   4694  1.1  christos 
   4695  1.4  christos $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4696  1.1  christos 
   4697  1.1  christos 
   4698  1.4  christos $as_echo "#define _MINIX 1" >>confdefs.h
   4699  1.1  christos 
   4700  1.3  christos   fi
   4701  1.1  christos 
   4702  1.1  christos 
   4703  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4704  1.3  christos $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4705  1.4  christos if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   4706  1.3  christos   $as_echo_n "(cached) " >&6
   4707  1.3  christos else
   4708  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4709  1.3  christos /* end confdefs.h.  */
   4710  1.1  christos 
   4711  1.3  christos #	  define __EXTENSIONS__ 1
   4712  1.3  christos 	  $ac_includes_default
   4713  1.3  christos int
   4714  1.3  christos main ()
   4715  1.3  christos {
   4716  1.1  christos 
   4717  1.3  christos   ;
   4718  1.3  christos   return 0;
   4719  1.3  christos }
   4720  1.3  christos _ACEOF
   4721  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   4722  1.3  christos   ac_cv_safe_to_define___extensions__=yes
   4723  1.3  christos else
   4724  1.4  christos   ac_cv_safe_to_define___extensions__=no
   4725  1.3  christos fi
   4726  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4727  1.3  christos fi
   4728  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4729  1.3  christos $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4730  1.3  christos   test $ac_cv_safe_to_define___extensions__ = yes &&
   4731  1.4  christos     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4732  1.4  christos 
   4733  1.4  christos   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4734  1.4  christos 
   4735  1.4  christos   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4736  1.4  christos 
   4737  1.4  christos   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4738  1.1  christos 
   4739  1.4  christos   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4740  1.1  christos 
   4741  1.1  christos 
   4742  1.1  christos 
   4743  1.1  christos 
   4744  1.1  christos 
   4745  1.1  christos 
   4746  1.1  christos 
   4747  1.1  christos 
   4748  1.1  christos 
   4749  1.1  christos 
   4750  1.3  christos 
   4751  1.3  christos 
   4752  1.1  christos 
   4753  1.3  christos 
   4754  1.3  christos 
   4755  1.4  christos   $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4756  1.3  christos 
   4757  1.4  christos   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4758  1.3  christos 
   4759  1.3  christos 
   4760  1.3  christos 
   4761  1.3  christos 
   4762  1.3  christos 
   4763  1.1  christos 
   4764  1.3  christos 
   4765  1.3  christos 
   4766  1.4  christos ac_ext=c
   4767  1.4  christos ac_cpp='$CPP $CPPFLAGS'
   4768  1.4  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4769  1.4  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4770  1.4  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4771  1.4  christos if test -n "$ac_tool_prefix"; then
   4772  1.4  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4773  1.4  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4774  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4775  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   4776  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   4777  1.3  christos   $as_echo_n "(cached) " >&6
   4778  1.1  christos else
   4779  1.4  christos   if test -n "$CC"; then
   4780  1.4  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   4781  1.1  christos else
   4782  1.4  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4783  1.4  christos for as_dir in $PATH
   4784  1.4  christos do
   4785  1.4  christos   IFS=$as_save_IFS
   4786  1.4  christos   test -z "$as_dir" && as_dir=.
   4787  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4788  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4789  1.4  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4790  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4791  1.4  christos     break 2
   4792  1.4  christos   fi
   4793  1.4  christos done
   4794  1.4  christos   done
   4795  1.4  christos IFS=$as_save_IFS
   4796  1.1  christos 
   4797  1.1  christos fi
   4798  1.1  christos fi
   4799  1.4  christos CC=$ac_cv_prog_CC
   4800  1.4  christos if test -n "$CC"; then
   4801  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4802  1.4  christos $as_echo "$CC" >&6; }
   4803  1.4  christos else
   4804  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4805  1.4  christos $as_echo "no" >&6; }
   4806  1.4  christos fi
   4807  1.3  christos 
   4808  1.3  christos 
   4809  1.4  christos fi
   4810  1.4  christos if test -z "$ac_cv_prog_CC"; then
   4811  1.4  christos   ac_ct_CC=$CC
   4812  1.3  christos   # Extract the first word of "gcc", so it can be a program name with args.
   4813  1.3  christos set dummy gcc; ac_word=$2
   4814  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4815  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   4816  1.4  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   4817  1.3  christos   $as_echo_n "(cached) " >&6
   4818  1.1  christos else
   4819  1.1  christos   if test -n "$ac_ct_CC"; then
   4820  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4821  1.1  christos else
   4822  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4823  1.1  christos for as_dir in $PATH
   4824  1.1  christos do
   4825  1.1  christos   IFS=$as_save_IFS
   4826  1.1  christos   test -z "$as_dir" && as_dir=.
   4827  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4828  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4829  1.3  christos     ac_cv_prog_ac_ct_CC="gcc"
   4830  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4831  1.1  christos     break 2
   4832  1.1  christos   fi
   4833  1.1  christos done
   4834  1.4  christos   done
   4835  1.3  christos IFS=$as_save_IFS
   4836  1.1  christos 
   4837  1.1  christos fi
   4838  1.1  christos fi
   4839  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4840  1.1  christos if test -n "$ac_ct_CC"; then
   4841  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4842  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   4843  1.1  christos else
   4844  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4845  1.3  christos $as_echo "no" >&6; }
   4846  1.1  christos fi
   4847  1.1  christos 
   4848  1.3  christos   if test "x$ac_ct_CC" = x; then
   4849  1.3  christos     CC=""
   4850  1.3  christos   else
   4851  1.3  christos     case $cross_compiling:$ac_tool_warned in
   4852  1.3  christos yes:)
   4853  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4854  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4855  1.3  christos ac_tool_warned=yes ;;
   4856  1.3  christos esac
   4857  1.3  christos     CC=$ac_ct_CC
   4858  1.3  christos   fi
   4859  1.1  christos else
   4860  1.1  christos   CC="$ac_cv_prog_CC"
   4861  1.1  christos fi
   4862  1.1  christos 
   4863  1.3  christos if test -z "$CC"; then
   4864  1.3  christos           if test -n "$ac_tool_prefix"; then
   4865  1.3  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4866  1.3  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   4867  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4868  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   4869  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   4870  1.3  christos   $as_echo_n "(cached) " >&6
   4871  1.3  christos else
   4872  1.3  christos   if test -n "$CC"; then
   4873  1.3  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   4874  1.3  christos else
   4875  1.3  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4876  1.3  christos for as_dir in $PATH
   4877  1.3  christos do
   4878  1.3  christos   IFS=$as_save_IFS
   4879  1.3  christos   test -z "$as_dir" && as_dir=.
   4880  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4881  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4882  1.3  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4883  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4884  1.3  christos     break 2
   4885  1.3  christos   fi
   4886  1.3  christos done
   4887  1.4  christos   done
   4888  1.3  christos IFS=$as_save_IFS
   4889  1.3  christos 
   4890  1.3  christos fi
   4891  1.3  christos fi
   4892  1.3  christos CC=$ac_cv_prog_CC
   4893  1.3  christos if test -n "$CC"; then
   4894  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4895  1.3  christos $as_echo "$CC" >&6; }
   4896  1.3  christos else
   4897  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4898  1.3  christos $as_echo "no" >&6; }
   4899  1.3  christos fi
   4900  1.3  christos 
   4901  1.3  christos 
   4902  1.3  christos   fi
   4903  1.1  christos fi
   4904  1.1  christos if test -z "$CC"; then
   4905  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   4906  1.1  christos set dummy cc; ac_word=$2
   4907  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4908  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   4909  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   4910  1.3  christos   $as_echo_n "(cached) " >&6
   4911  1.1  christos else
   4912  1.1  christos   if test -n "$CC"; then
   4913  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   4914  1.1  christos else
   4915  1.1  christos   ac_prog_rejected=no
   4916  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4917  1.1  christos for as_dir in $PATH
   4918  1.1  christos do
   4919  1.1  christos   IFS=$as_save_IFS
   4920  1.1  christos   test -z "$as_dir" && as_dir=.
   4921  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4922  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4923  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4924  1.1  christos        ac_prog_rejected=yes
   4925  1.1  christos        continue
   4926  1.1  christos      fi
   4927  1.1  christos     ac_cv_prog_CC="cc"
   4928  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4929  1.1  christos     break 2
   4930  1.1  christos   fi
   4931  1.1  christos done
   4932  1.4  christos   done
   4933  1.3  christos IFS=$as_save_IFS
   4934  1.1  christos 
   4935  1.1  christos if test $ac_prog_rejected = yes; then
   4936  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   4937  1.1  christos   set dummy $ac_cv_prog_CC
   4938  1.1  christos   shift
   4939  1.1  christos   if test $# != 0; then
   4940  1.1  christos     # We chose a different compiler from the bogus one.
   4941  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   4942  1.1  christos     # first if we set CC to just the basename; use the full file name.
   4943  1.1  christos     shift
   4944  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4945  1.1  christos   fi
   4946  1.1  christos fi
   4947  1.1  christos fi
   4948  1.1  christos fi
   4949  1.1  christos CC=$ac_cv_prog_CC
   4950  1.1  christos if test -n "$CC"; then
   4951  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4952  1.3  christos $as_echo "$CC" >&6; }
   4953  1.1  christos else
   4954  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4955  1.3  christos $as_echo "no" >&6; }
   4956  1.1  christos fi
   4957  1.1  christos 
   4958  1.3  christos 
   4959  1.1  christos fi
   4960  1.1  christos if test -z "$CC"; then
   4961  1.1  christos   if test -n "$ac_tool_prefix"; then
   4962  1.3  christos   for ac_prog in cl.exe
   4963  1.1  christos   do
   4964  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4965  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4966  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4967  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   4968  1.4  christos if test "${ac_cv_prog_CC+set}" = set; then :
   4969  1.3  christos   $as_echo_n "(cached) " >&6
   4970  1.1  christos else
   4971  1.1  christos   if test -n "$CC"; then
   4972  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   4973  1.1  christos else
   4974  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4975  1.1  christos for as_dir in $PATH
   4976  1.1  christos do
   4977  1.1  christos   IFS=$as_save_IFS
   4978  1.1  christos   test -z "$as_dir" && as_dir=.
   4979  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4980  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4981  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4982  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4983  1.1  christos     break 2
   4984  1.1  christos   fi
   4985  1.1  christos done
   4986  1.4  christos   done
   4987  1.3  christos IFS=$as_save_IFS
   4988  1.1  christos 
   4989  1.1  christos fi
   4990  1.1  christos fi
   4991  1.1  christos CC=$ac_cv_prog_CC
   4992  1.1  christos if test -n "$CC"; then
   4993  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4994  1.3  christos $as_echo "$CC" >&6; }
   4995  1.1  christos else
   4996  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4997  1.3  christos $as_echo "no" >&6; }
   4998  1.1  christos fi
   4999  1.1  christos 
   5000  1.3  christos 
   5001  1.1  christos     test -n "$CC" && break
   5002  1.1  christos   done
   5003  1.1  christos fi
   5004  1.1  christos if test -z "$CC"; then
   5005  1.1  christos   ac_ct_CC=$CC
   5006  1.3  christos   for ac_prog in cl.exe
   5007  1.1  christos do
   5008  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5009  1.1  christos set dummy $ac_prog; ac_word=$2
   5010  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5011  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5012  1.4  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   5013  1.3  christos   $as_echo_n "(cached) " >&6
   5014  1.1  christos else
   5015  1.1  christos   if test -n "$ac_ct_CC"; then
   5016  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5017  1.1  christos else
   5018  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5019  1.1  christos for as_dir in $PATH
   5020  1.1  christos do
   5021  1.1  christos   IFS=$as_save_IFS
   5022  1.1  christos   test -z "$as_dir" && as_dir=.
   5023  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5024  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5025  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   5026  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5027  1.1  christos     break 2
   5028  1.1  christos   fi
   5029  1.1  christos done
   5030  1.4  christos   done
   5031  1.3  christos IFS=$as_save_IFS
   5032  1.1  christos 
   5033  1.1  christos fi
   5034  1.1  christos fi
   5035  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5036  1.1  christos if test -n "$ac_ct_CC"; then
   5037  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5038  1.3  christos $as_echo "$ac_ct_CC" >&6; }
   5039  1.1  christos else
   5040  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5041  1.3  christos $as_echo "no" >&6; }
   5042  1.1  christos fi
   5043  1.1  christos 
   5044  1.3  christos 
   5045  1.1  christos   test -n "$ac_ct_CC" && break
   5046  1.1  christos done
   5047  1.1  christos 
   5048  1.3  christos   if test "x$ac_ct_CC" = x; then
   5049  1.3  christos     CC=""
   5050  1.3  christos   else
   5051  1.3  christos     case $cross_compiling:$ac_tool_warned in
   5052  1.3  christos yes:)
   5053  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5054  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5055  1.3  christos ac_tool_warned=yes ;;
   5056  1.3  christos esac
   5057  1.3  christos     CC=$ac_ct_CC
   5058  1.3  christos   fi
   5059  1.1  christos fi
   5060  1.1  christos 
   5061  1.1  christos fi
   5062  1.1  christos 
   5063  1.1  christos 
   5064  1.4  christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5065  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5066  1.4  christos as_fn_error "no acceptable C compiler found in \$PATH
   5067  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   5068  1.1  christos 
   5069  1.1  christos # Provide some information about the compiler.
   5070  1.4  christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   5071  1.3  christos set X $ac_compile
   5072  1.3  christos ac_compiler=$2
   5073  1.4  christos for ac_option in --version -v -V -qversion; do
   5074  1.4  christos   { { ac_try="$ac_compiler $ac_option >&5"
   5075  1.3  christos case "(($ac_try" in
   5076  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5077  1.3  christos   *) ac_try_echo=$ac_try;;
   5078  1.3  christos esac
   5079  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5080  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5081  1.4  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5082  1.1  christos   ac_status=$?
   5083  1.4  christos   if test -s conftest.err; then
   5084  1.4  christos     sed '10a\
   5085  1.4  christos ... rest of stderr output deleted ...
   5086  1.4  christos          10q' conftest.err >conftest.er1
   5087  1.4  christos     cat conftest.er1 >&5
   5088  1.4  christos   fi
   5089  1.4  christos   rm -f conftest.er1 conftest.err
   5090  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5091  1.4  christos   test $ac_status = 0; }
   5092  1.4  christos done
   5093  1.1  christos 
   5094  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   5095  1.3  christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   5096  1.4  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   5097  1.3  christos   $as_echo_n "(cached) " >&6
   5098  1.1  christos else
   5099  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5100  1.1  christos /* end confdefs.h.  */
   5101  1.1  christos 
   5102  1.1  christos int
   5103  1.1  christos main ()
   5104  1.1  christos {
   5105  1.1  christos #ifndef __GNUC__
   5106  1.1  christos        choke me
   5107  1.1  christos #endif
   5108  1.1  christos 
   5109  1.1  christos   ;
   5110  1.1  christos   return 0;
   5111  1.1  christos }
   5112  1.1  christos _ACEOF
   5113  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5114  1.3  christos   ac_compiler_gnu=yes
   5115  1.3  christos else
   5116  1.4  christos   ac_compiler_gnu=no
   5117  1.3  christos fi
   5118  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5119  1.3  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   5120  1.1  christos 
   5121  1.1  christos fi
   5122  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   5123  1.3  christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   5124  1.3  christos if test $ac_compiler_gnu = yes; then
   5125  1.3  christos   GCC=yes
   5126  1.3  christos else
   5127  1.3  christos   GCC=
   5128  1.1  christos fi
   5129  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   5130  1.1  christos ac_save_CFLAGS=$CFLAGS
   5131  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   5132  1.3  christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
   5133  1.4  christos if test "${ac_cv_prog_cc_g+set}" = set; then :
   5134  1.3  christos   $as_echo_n "(cached) " >&6
   5135  1.1  christos else
   5136  1.3  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   5137  1.3  christos    ac_c_werror_flag=yes
   5138  1.3  christos    ac_cv_prog_cc_g=no
   5139  1.3  christos    CFLAGS="-g"
   5140  1.4  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5141  1.1  christos /* end confdefs.h.  */
   5142  1.1  christos 
   5143  1.1  christos int
   5144  1.1  christos main ()
   5145  1.1  christos {
   5146  1.1  christos 
   5147  1.1  christos   ;
   5148  1.1  christos   return 0;
   5149  1.1  christos }
   5150  1.1  christos _ACEOF
   5151  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5152  1.3  christos   ac_cv_prog_cc_g=yes
   5153  1.3  christos else
   5154  1.4  christos   CFLAGS=""
   5155  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5156  1.4  christos /* end confdefs.h.  */
   5157  1.4  christos 
   5158  1.4  christos int
   5159  1.4  christos main ()
   5160  1.4  christos {
   5161  1.3  christos 
   5162  1.4  christos   ;
   5163  1.4  christos   return 0;
   5164  1.4  christos }
   5165  1.3  christos _ACEOF
   5166  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5167  1.4  christos 
   5168  1.4  christos else
   5169  1.4  christos   ac_c_werror_flag=$ac_save_c_werror_flag
   5170  1.4  christos 	 CFLAGS="-g"
   5171  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5172  1.3  christos /* end confdefs.h.  */
   5173  1.3  christos 
   5174  1.3  christos int
   5175  1.3  christos main ()
   5176  1.3  christos {
   5177  1.3  christos 
   5178  1.3  christos   ;
   5179  1.3  christos   return 0;
   5180  1.3  christos }
   5181  1.3  christos _ACEOF
   5182  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5183  1.1  christos   ac_cv_prog_cc_g=yes
   5184  1.3  christos fi
   5185  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5186  1.3  christos fi
   5187  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5188  1.1  christos fi
   5189  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5190  1.3  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   5191  1.1  christos fi
   5192  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   5193  1.3  christos $as_echo "$ac_cv_prog_cc_g" >&6; }
   5194  1.1  christos if test "$ac_test_CFLAGS" = set; then
   5195  1.1  christos   CFLAGS=$ac_save_CFLAGS
   5196  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   5197  1.1  christos   if test "$GCC" = yes; then
   5198  1.1  christos     CFLAGS="-g -O2"
   5199  1.1  christos   else
   5200  1.1  christos     CFLAGS="-g"
   5201  1.1  christos   fi
   5202  1.1  christos else
   5203  1.1  christos   if test "$GCC" = yes; then
   5204  1.1  christos     CFLAGS="-O2"
   5205  1.1  christos   else
   5206  1.1  christos     CFLAGS=
   5207  1.1  christos   fi
   5208  1.1  christos fi
   5209  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   5210  1.3  christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   5211  1.4  christos if test "${ac_cv_prog_cc_c89+set}" = set; then :
   5212  1.3  christos   $as_echo_n "(cached) " >&6
   5213  1.1  christos else
   5214  1.3  christos   ac_cv_prog_cc_c89=no
   5215  1.1  christos ac_save_CC=$CC
   5216  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5217  1.1  christos /* end confdefs.h.  */
   5218  1.1  christos #include <stdarg.h>
   5219  1.1  christos #include <stdio.h>
   5220  1.1  christos #include <sys/types.h>
   5221  1.1  christos #include <sys/stat.h>
   5222  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5223  1.1  christos struct buf { int x; };
   5224  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5225  1.1  christos static char *e (p, i)
   5226  1.1  christos      char **p;
   5227  1.1  christos      int i;
   5228  1.1  christos {
   5229  1.1  christos   return p[i];
   5230  1.1  christos }
   5231  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   5232  1.1  christos {
   5233  1.1  christos   char *s;
   5234  1.1  christos   va_list v;
   5235  1.1  christos   va_start (v,p);
   5236  1.1  christos   s = g (p, va_arg (v,int));
   5237  1.1  christos   va_end (v);
   5238  1.1  christos   return s;
   5239  1.1  christos }
   5240  1.1  christos 
   5241  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   5242  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   5243  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   5244  1.3  christos    as 'x'.  The following induces an error, until -std is added to get
   5245  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   5246  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   5247  1.3  christos    that's true only with -std.  */
   5248  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   5249  1.1  christos 
   5250  1.3  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   5251  1.3  christos    inside strings and character constants.  */
   5252  1.3  christos #define FOO(x) 'x'
   5253  1.3  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   5254  1.3  christos 
   5255  1.1  christos int test (int i, double x);
   5256  1.1  christos struct s1 {int (*f) (int a);};
   5257  1.1  christos struct s2 {int (*f) (double a);};
   5258  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5259  1.1  christos int argc;
   5260  1.1  christos char **argv;
   5261  1.1  christos int
   5262  1.1  christos main ()
   5263  1.1  christos {
   5264  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5265  1.1  christos   ;
   5266  1.1  christos   return 0;
   5267  1.1  christos }
   5268  1.1  christos _ACEOF
   5269  1.3  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   5270  1.3  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5271  1.1  christos do
   5272  1.1  christos   CC="$ac_save_CC $ac_arg"
   5273  1.4  christos   if ac_fn_c_try_compile "$LINENO"; then :
   5274  1.3  christos   ac_cv_prog_cc_c89=$ac_arg
   5275  1.1  christos fi
   5276  1.3  christos rm -f core conftest.err conftest.$ac_objext
   5277  1.3  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5278  1.1  christos done
   5279  1.3  christos rm -f conftest.$ac_ext
   5280  1.1  christos CC=$ac_save_CC
   5281  1.1  christos 
   5282  1.1  christos fi
   5283  1.3  christos # AC_CACHE_VAL
   5284  1.3  christos case "x$ac_cv_prog_cc_c89" in
   5285  1.3  christos   x)
   5286  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5287  1.3  christos $as_echo "none needed" >&6; } ;;
   5288  1.3  christos   xno)
   5289  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5290  1.3  christos $as_echo "unsupported" >&6; } ;;
   5291  1.1  christos   *)
   5292  1.3  christos     CC="$CC $ac_cv_prog_cc_c89"
   5293  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5294  1.3  christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5295  1.1  christos esac
   5296  1.4  christos if test "x$ac_cv_prog_cc_c89" != xno; then :
   5297  1.1  christos 
   5298  1.4  christos fi
   5299  1.1  christos 
   5300  1.1  christos ac_ext=c
   5301  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   5302  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5303  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5304  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5305  1.1  christos 
   5306  1.1  christos depcc="$CC"   am_compiler_list=
   5307  1.1  christos 
   5308  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   5309  1.3  christos $as_echo_n "checking dependency style of $depcc... " >&6; }
   5310  1.4  christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   5311  1.3  christos   $as_echo_n "(cached) " >&6
   5312  1.1  christos else
   5313  1.1  christos   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   5314  1.1  christos   # We make a subdir and do the tests there.  Otherwise we can end up
   5315  1.1  christos   # making bogus files that we don't know about and never remove.  For
   5316  1.1  christos   # instance it was reported that on HP-UX the gcc test will end up
   5317  1.1  christos   # making a dummy file named `D' -- because `-MD' means `put the output
   5318  1.1  christos   # in D'.
   5319  1.1  christos   mkdir conftest.dir
   5320  1.1  christos   # Copy depcomp to subdir because otherwise we won't find it if we're
   5321  1.1  christos   # using a relative directory.
   5322  1.1  christos   cp "$am_depcomp" conftest.dir
   5323  1.1  christos   cd conftest.dir
   5324  1.1  christos   # We will build objects and dependencies in a subdirectory because
   5325  1.1  christos   # it helps to detect inapplicable dependency modes.  For instance
   5326  1.1  christos   # both Tru64's cc and ICC support -MD to output dependencies as a
   5327  1.1  christos   # side effect of compilation, but ICC will put the dependencies in
   5328  1.1  christos   # the current directory while Tru64 will put them in the object
   5329  1.1  christos   # directory.
   5330  1.1  christos   mkdir sub
   5331  1.1  christos 
   5332  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   5333  1.1  christos   if test "$am_compiler_list" = ""; then
   5334  1.1  christos      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   5335  1.1  christos   fi
   5336  1.4  christos   am__universal=false
   5337  1.4  christos   case " $depcc " in #(
   5338  1.4  christos      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   5339  1.4  christos      esac
   5340  1.4  christos 
   5341  1.1  christos   for depmode in $am_compiler_list; do
   5342  1.1  christos     # Setup a source with many dependencies, because some compilers
   5343  1.1  christos     # like to wrap large dependency lists on column 80 (with \), and
   5344  1.1  christos     # we should not choose a depcomp mode which is confused by this.
   5345  1.1  christos     #
   5346  1.1  christos     # We need to recreate these files for each test, as the compiler may
   5347  1.1  christos     # overwrite some of them when testing with obscure command lines.
   5348  1.1  christos     # This happens at least with the AIX C compiler.
   5349  1.1  christos     : > sub/conftest.c
   5350  1.1  christos     for i in 1 2 3 4 5 6; do
   5351  1.1  christos       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   5352  1.1  christos       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   5353  1.1  christos       # Solaris 8's {/usr,}/bin/sh.
   5354  1.1  christos       touch sub/conftst$i.h
   5355  1.1  christos     done
   5356  1.1  christos     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   5357  1.1  christos 
   5358  1.4  christos     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   5359  1.4  christos     # mode.  It turns out that the SunPro C++ compiler does not properly
   5360  1.4  christos     # handle `-M -o', and we need to detect this.  Also, some Intel
   5361  1.4  christos     # versions had trouble with output in subdirs
   5362  1.4  christos     am__obj=sub/conftest.${OBJEXT-o}
   5363  1.4  christos     am__minus_obj="-o $am__obj"
   5364  1.1  christos     case $depmode in
   5365  1.4  christos     gcc)
   5366  1.4  christos       # This depmode causes a compiler race in universal mode.
   5367  1.4  christos       test "$am__universal" = false || continue
   5368  1.4  christos       ;;
   5369  1.1  christos     nosideeffect)
   5370  1.1  christos       # after this tag, mechanisms are not by side-effect, so they'll
   5371  1.1  christos       # only be used when explicitly requested
   5372  1.1  christos       if test "x$enable_dependency_tracking" = xyes; then
   5373  1.1  christos 	continue
   5374  1.1  christos       else
   5375  1.1  christos 	break
   5376  1.1  christos       fi
   5377  1.1  christos       ;;
   5378  1.4  christos     msvisualcpp | msvcmsys)
   5379  1.4  christos       # This compiler won't grok `-c -o', but also, the minuso test has
   5380  1.4  christos       # not run yet.  These depmodes are late enough in the game, and
   5381  1.4  christos       # so weak that their functioning should not be impacted.
   5382  1.4  christos       am__obj=conftest.${OBJEXT-o}
   5383  1.4  christos       am__minus_obj=
   5384  1.4  christos       ;;
   5385  1.1  christos     none) break ;;
   5386  1.1  christos     esac
   5387  1.1  christos     if depmode=$depmode \
   5388  1.4  christos        source=sub/conftest.c object=$am__obj \
   5389  1.1  christos        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   5390  1.4  christos        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   5391  1.1  christos          >/dev/null 2>conftest.err &&
   5392  1.3  christos        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   5393  1.1  christos        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   5394  1.4  christos        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   5395  1.1  christos        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   5396  1.1  christos       # icc doesn't choke on unknown options, it will just issue warnings
   5397  1.1  christos       # or remarks (even with -Werror).  So we grep stderr for any message
   5398  1.1  christos       # that says an option was ignored or not supported.
   5399  1.1  christos       # When given -MP, icc 7.0 and 7.1 complain thusly:
   5400  1.1  christos       #   icc: Command line warning: ignoring option '-M'; no argument required
   5401  1.1  christos       # The diagnosis changed in icc 8.0:
   5402  1.1  christos       #   icc: Command line remark: option '-MP' not supported
   5403  1.1  christos       if (grep 'ignoring option' conftest.err ||
   5404  1.1  christos           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   5405  1.1  christos         am_cv_CC_dependencies_compiler_type=$depmode
   5406  1.1  christos         break
   5407  1.1  christos       fi
   5408  1.1  christos     fi
   5409  1.1  christos   done
   5410  1.1  christos 
   5411  1.1  christos   cd ..
   5412  1.1  christos   rm -rf conftest.dir
   5413  1.1  christos else
   5414  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   5415  1.1  christos fi
   5416  1.1  christos 
   5417  1.1  christos fi
   5418  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   5419  1.3  christos $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   5420  1.1  christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   5421  1.1  christos 
   5422  1.3  christos  if
   5423  1.1  christos   test "x$enable_dependency_tracking" != xno \
   5424  1.1  christos   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   5425  1.1  christos   am__fastdepCC_TRUE=
   5426  1.1  christos   am__fastdepCC_FALSE='#'
   5427  1.1  christos else
   5428  1.1  christos   am__fastdepCC_TRUE='#'
   5429  1.1  christos   am__fastdepCC_FALSE=
   5430  1.1  christos fi
   5431  1.1  christos 
   5432  1.1  christos 
   5433  1.1  christos if test "x$CC" != xcc; then
   5434  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   5435  1.3  christos $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   5436  1.1  christos else
   5437  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   5438  1.3  christos $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   5439  1.1  christos fi
   5440  1.3  christos set dummy $CC; ac_cc=`$as_echo "$2" |
   5441  1.1  christos 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   5442  1.4  christos if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
   5443  1.3  christos   $as_echo_n "(cached) " >&6
   5444  1.1  christos else
   5445  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5446  1.1  christos /* end confdefs.h.  */
   5447  1.1  christos 
   5448  1.1  christos int
   5449  1.1  christos main ()
   5450  1.1  christos {
   5451  1.1  christos 
   5452  1.1  christos   ;
   5453  1.1  christos   return 0;
   5454  1.1  christos }
   5455  1.1  christos _ACEOF
   5456  1.1  christos # Make sure it works both with $CC and with simple cc.
   5457  1.1  christos # We do the test twice because some compilers refuse to overwrite an
   5458  1.1  christos # existing .o file with -o, though they will create one.
   5459  1.3  christos ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   5460  1.3  christos rm -f conftest2.*
   5461  1.4  christos if { { case "(($ac_try" in
   5462  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5463  1.3  christos   *) ac_try_echo=$ac_try;;
   5464  1.3  christos esac
   5465  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5466  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5467  1.3  christos   (eval "$ac_try") 2>&5
   5468  1.3  christos   ac_status=$?
   5469  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5470  1.4  christos   test $ac_status = 0; } &&
   5471  1.4  christos    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   5472  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5473  1.3  christos   *) ac_try_echo=$ac_try;;
   5474  1.3  christos esac
   5475  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5476  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5477  1.3  christos   (eval "$ac_try") 2>&5
   5478  1.1  christos   ac_status=$?
   5479  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5480  1.4  christos   test $ac_status = 0; };
   5481  1.1  christos then
   5482  1.1  christos   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   5483  1.1  christos   if test "x$CC" != xcc; then
   5484  1.1  christos     # Test first that cc exists at all.
   5485  1.1  christos     if { ac_try='cc -c conftest.$ac_ext >&5'
   5486  1.4  christos   { { case "(($ac_try" in
   5487  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5488  1.3  christos   *) ac_try_echo=$ac_try;;
   5489  1.3  christos esac
   5490  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5491  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5492  1.3  christos   (eval "$ac_try") 2>&5
   5493  1.1  christos   ac_status=$?
   5494  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5495  1.4  christos   test $ac_status = 0; }; }; then
   5496  1.3  christos       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   5497  1.3  christos       rm -f conftest2.*
   5498  1.4  christos       if { { case "(($ac_try" in
   5499  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5500  1.3  christos   *) ac_try_echo=$ac_try;;
   5501  1.3  christos esac
   5502  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5503  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5504  1.3  christos   (eval "$ac_try") 2>&5
   5505  1.1  christos   ac_status=$?
   5506  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5507  1.4  christos   test $ac_status = 0; } &&
   5508  1.4  christos 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   5509  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5510  1.3  christos   *) ac_try_echo=$ac_try;;
   5511  1.3  christos esac
   5512  1.4  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5513  1.4  christos $as_echo "$ac_try_echo"; } >&5
   5514  1.3  christos   (eval "$ac_try") 2>&5
   5515  1.1  christos   ac_status=$?
   5516  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5517  1.4  christos   test $ac_status = 0; };
   5518  1.1  christos       then
   5519  1.1  christos 	# cc works too.
   5520  1.1  christos 	:
   5521  1.1  christos       else
   5522  1.1  christos 	# cc exists but doesn't like -o.
   5523  1.1  christos 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   5524  1.1  christos       fi
   5525  1.1  christos     fi
   5526  1.1  christos   fi
   5527  1.1  christos else
   5528  1.1  christos   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   5529  1.1  christos fi
   5530  1.3  christos rm -f core conftest*
   5531  1.1  christos 
   5532  1.1  christos fi
   5533  1.3  christos if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   5534  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5535  1.3  christos $as_echo "yes" >&6; }
   5536  1.1  christos else
   5537  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5538  1.3  christos $as_echo "no" >&6; }
   5539  1.1  christos 
   5540  1.4  christos $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   5541  1.1  christos 
   5542  1.1  christos fi
   5543  1.1  christos 
   5544  1.1  christos # FIXME: we rely on the cache variable name because
   5545  1.1  christos # there is no other way.
   5546  1.1  christos set dummy $CC
   5547  1.4  christos am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   5548  1.4  christos eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
   5549  1.4  christos if test "$am_t" != yes; then
   5550  1.1  christos    # Losing compiler, so override with the script.
   5551  1.1  christos    # FIXME: It is wrong to rewrite CC.
   5552  1.1  christos    # But if we don't then we get into trouble of one sort or another.
   5553  1.1  christos    # A longer-term fix would be to have automake use am__CC in this case,
   5554  1.1  christos    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   5555  1.1  christos    CC="$am_aux_dir/compile $CC"
   5556  1.1  christos fi
   5557  1.1  christos 
   5558  1.1  christos 
   5559  1.3  christos 
   5560  1.1  christos # Find the posix library needed on INTERACTIVE UNIX (ISC)
   5561  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
   5562  1.3  christos $as_echo_n "checking for library containing strerror... " >&6; }
   5563  1.4  christos if test "${ac_cv_search_strerror+set}" = set; then :
   5564  1.3  christos   $as_echo_n "(cached) " >&6
   5565  1.1  christos else
   5566  1.1  christos   ac_func_search_save_LIBS=$LIBS
   5567  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5568  1.1  christos /* end confdefs.h.  */
   5569  1.1  christos 
   5570  1.3  christos /* Override any GCC internal prototype to avoid an error.
   5571  1.3  christos    Use char because int might match the return type of a GCC
   5572  1.3  christos    builtin and then its argument prototype would still apply.  */
   5573  1.1  christos #ifdef __cplusplus
   5574  1.1  christos extern "C"
   5575  1.1  christos #endif
   5576  1.1  christos char strerror ();
   5577  1.1  christos int
   5578  1.1  christos main ()
   5579  1.1  christos {
   5580  1.3  christos return strerror ();
   5581  1.1  christos   ;
   5582  1.1  christos   return 0;
   5583  1.1  christos }
   5584  1.1  christos _ACEOF
   5585  1.3  christos for ac_lib in '' cposix; do
   5586  1.3  christos   if test -z "$ac_lib"; then
   5587  1.3  christos     ac_res="none required"
   5588  1.3  christos   else
   5589  1.3  christos     ac_res=-l$ac_lib
   5590  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5591  1.3  christos   fi
   5592  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   5593  1.3  christos   ac_cv_search_strerror=$ac_res
   5594  1.1  christos fi
   5595  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   5596  1.4  christos     conftest$ac_exeext
   5597  1.4  christos   if test "${ac_cv_search_strerror+set}" = set; then :
   5598  1.3  christos   break
   5599  1.3  christos fi
   5600  1.3  christos done
   5601  1.4  christos if test "${ac_cv_search_strerror+set}" = set; then :
   5602  1.4  christos 
   5603  1.1  christos else
   5604  1.3  christos   ac_cv_search_strerror=no
   5605  1.3  christos fi
   5606  1.3  christos rm conftest.$ac_ext
   5607  1.3  christos LIBS=$ac_func_search_save_LIBS
   5608  1.3  christos fi
   5609  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
   5610  1.3  christos $as_echo "$ac_cv_search_strerror" >&6; }
   5611  1.3  christos ac_res=$ac_cv_search_strerror
   5612  1.4  christos if test "$ac_res" != no; then :
   5613  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5614  1.1  christos 
   5615  1.1  christos fi
   5616  1.1  christos 
   5617  1.1  christos 
   5618  1.1  christos 
   5619  1.1  christos if test -n "$ac_tool_prefix"; then
   5620  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5621  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5622  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5623  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5624  1.4  christos if test "${ac_cv_prog_RANLIB+set}" = set; then :
   5625  1.3  christos   $as_echo_n "(cached) " >&6
   5626  1.1  christos else
   5627  1.1  christos   if test -n "$RANLIB"; then
   5628  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5629  1.1  christos else
   5630  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5631  1.1  christos for as_dir in $PATH
   5632  1.1  christos do
   5633  1.1  christos   IFS=$as_save_IFS
   5634  1.1  christos   test -z "$as_dir" && as_dir=.
   5635  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5636  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5637  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5638  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5639  1.1  christos     break 2
   5640  1.1  christos   fi
   5641  1.1  christos done
   5642  1.4  christos   done
   5643  1.3  christos IFS=$as_save_IFS
   5644  1.1  christos 
   5645  1.1  christos fi
   5646  1.1  christos fi
   5647  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   5648  1.1  christos if test -n "$RANLIB"; then
   5649  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5650  1.3  christos $as_echo "$RANLIB" >&6; }
   5651  1.1  christos else
   5652  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5653  1.3  christos $as_echo "no" >&6; }
   5654  1.1  christos fi
   5655  1.1  christos 
   5656  1.3  christos 
   5657  1.1  christos fi
   5658  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   5659  1.1  christos   ac_ct_RANLIB=$RANLIB
   5660  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   5661  1.1  christos set dummy ranlib; ac_word=$2
   5662  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5663  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5664  1.4  christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   5665  1.3  christos   $as_echo_n "(cached) " >&6
   5666  1.1  christos else
   5667  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   5668  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5669  1.1  christos else
   5670  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5671  1.1  christos for as_dir in $PATH
   5672  1.1  christos do
   5673  1.1  christos   IFS=$as_save_IFS
   5674  1.1  christos   test -z "$as_dir" && as_dir=.
   5675  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5676  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5677  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5678  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5679  1.1  christos     break 2
   5680  1.1  christos   fi
   5681  1.1  christos done
   5682  1.4  christos   done
   5683  1.3  christos IFS=$as_save_IFS
   5684  1.1  christos 
   5685  1.1  christos fi
   5686  1.1  christos fi
   5687  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5688  1.1  christos if test -n "$ac_ct_RANLIB"; then
   5689  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5690  1.3  christos $as_echo "$ac_ct_RANLIB" >&6; }
   5691  1.1  christos else
   5692  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5693  1.3  christos $as_echo "no" >&6; }
   5694  1.1  christos fi
   5695  1.1  christos 
   5696  1.3  christos   if test "x$ac_ct_RANLIB" = x; then
   5697  1.3  christos     RANLIB=":"
   5698  1.3  christos   else
   5699  1.3  christos     case $cross_compiling:$ac_tool_warned in
   5700  1.3  christos yes:)
   5701  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5702  1.3  christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5703  1.3  christos ac_tool_warned=yes ;;
   5704  1.3  christos esac
   5705  1.3  christos     RANLIB=$ac_ct_RANLIB
   5706  1.3  christos   fi
   5707  1.1  christos else
   5708  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   5709  1.1  christos fi
   5710  1.1  christos 
   5711  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   5712  1.3  christos $as_echo_n "checking whether ln -s works... " >&6; }
   5713  1.1  christos LN_S=$as_ln_s
   5714  1.1  christos if test "$LN_S" = "ln -s"; then
   5715  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5716  1.3  christos $as_echo "yes" >&6; }
   5717  1.1  christos else
   5718  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   5719  1.3  christos $as_echo "no, using $LN_S" >&6; }
   5720  1.1  christos fi
   5721  1.1  christos 
   5722  1.3  christos # Check whether --enable-largefile was given.
   5723  1.4  christos if test "${enable_largefile+set}" = set; then :
   5724  1.3  christos   enableval=$enable_largefile;
   5725  1.3  christos fi
   5726  1.1  christos 
   5727  1.1  christos if test "$enable_largefile" != no; then
   5728  1.1  christos 
   5729  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   5730  1.3  christos $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   5731  1.4  christos if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   5732  1.3  christos   $as_echo_n "(cached) " >&6
   5733  1.1  christos else
   5734  1.1  christos   ac_cv_sys_largefile_CC=no
   5735  1.1  christos      if test "$GCC" != yes; then
   5736  1.1  christos        ac_save_CC=$CC
   5737  1.1  christos        while :; do
   5738  1.3  christos 	 # IRIX 6.2 and later do not support large files by default,
   5739  1.3  christos 	 # so use the C compiler's -n32 option if that helps.
   5740  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5741  1.1  christos /* end confdefs.h.  */
   5742  1.1  christos #include <sys/types.h>
   5743  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   5744  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5745  1.1  christos     since some C++ compilers masquerading as C compilers
   5746  1.1  christos     incorrectly reject 9223372036854775807.  */
   5747  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5748  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5749  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   5750  1.1  christos 		      ? 1 : -1];
   5751  1.1  christos int
   5752  1.1  christos main ()
   5753  1.1  christos {
   5754  1.1  christos 
   5755  1.1  christos   ;
   5756  1.1  christos   return 0;
   5757  1.1  christos }
   5758  1.1  christos _ACEOF
   5759  1.4  christos 	 if ac_fn_c_try_compile "$LINENO"; then :
   5760  1.1  christos   break
   5761  1.1  christos fi
   5762  1.3  christos rm -f core conftest.err conftest.$ac_objext
   5763  1.3  christos 	 CC="$CC -n32"
   5764  1.4  christos 	 if ac_fn_c_try_compile "$LINENO"; then :
   5765  1.1  christos   ac_cv_sys_largefile_CC=' -n32'; break
   5766  1.1  christos fi
   5767  1.3  christos rm -f core conftest.err conftest.$ac_objext
   5768  1.1  christos 	 break
   5769  1.1  christos        done
   5770  1.1  christos        CC=$ac_save_CC
   5771  1.1  christos        rm -f conftest.$ac_ext
   5772  1.1  christos     fi
   5773  1.1  christos fi
   5774  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   5775  1.3  christos $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   5776  1.1  christos   if test "$ac_cv_sys_largefile_CC" != no; then
   5777  1.1  christos     CC=$CC$ac_cv_sys_largefile_CC
   5778  1.1  christos   fi
   5779  1.1  christos 
   5780  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   5781  1.3  christos $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   5782  1.4  christos if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   5783  1.3  christos   $as_echo_n "(cached) " >&6
   5784  1.1  christos else
   5785  1.1  christos   while :; do
   5786  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5787  1.1  christos /* end confdefs.h.  */
   5788  1.1  christos #include <sys/types.h>
   5789  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   5790  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5791  1.1  christos     since some C++ compilers masquerading as C compilers
   5792  1.1  christos     incorrectly reject 9223372036854775807.  */
   5793  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5794  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5795  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   5796  1.1  christos 		      ? 1 : -1];
   5797  1.1  christos int
   5798  1.1  christos main ()
   5799  1.1  christos {
   5800  1.1  christos 
   5801  1.1  christos   ;
   5802  1.1  christos   return 0;
   5803  1.1  christos }
   5804  1.1  christos _ACEOF
   5805  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5806  1.3  christos   ac_cv_sys_file_offset_bits=no; break
   5807  1.1  christos fi
   5808  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5809  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5810  1.1  christos /* end confdefs.h.  */
   5811  1.1  christos #define _FILE_OFFSET_BITS 64
   5812  1.1  christos #include <sys/types.h>
   5813  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   5814  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5815  1.1  christos     since some C++ compilers masquerading as C compilers
   5816  1.1  christos     incorrectly reject 9223372036854775807.  */
   5817  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5818  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5819  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   5820  1.1  christos 		      ? 1 : -1];
   5821  1.1  christos int
   5822  1.1  christos main ()
   5823  1.1  christos {
   5824  1.1  christos 
   5825  1.1  christos   ;
   5826  1.1  christos   return 0;
   5827  1.1  christos }
   5828  1.1  christos _ACEOF
   5829  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5830  1.1  christos   ac_cv_sys_file_offset_bits=64; break
   5831  1.1  christos fi
   5832  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5833  1.3  christos   ac_cv_sys_file_offset_bits=unknown
   5834  1.1  christos   break
   5835  1.1  christos done
   5836  1.1  christos fi
   5837  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   5838  1.3  christos $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   5839  1.3  christos case $ac_cv_sys_file_offset_bits in #(
   5840  1.3  christos   no | unknown) ;;
   5841  1.3  christos   *)
   5842  1.1  christos cat >>confdefs.h <<_ACEOF
   5843  1.1  christos #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   5844  1.1  christos _ACEOF
   5845  1.3  christos ;;
   5846  1.3  christos esac
   5847  1.3  christos rm -rf conftest*
   5848  1.3  christos   if test $ac_cv_sys_file_offset_bits = unknown; then
   5849  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   5850  1.3  christos $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   5851  1.4  christos if test "${ac_cv_sys_large_files+set}" = set; then :
   5852  1.3  christos   $as_echo_n "(cached) " >&6
   5853  1.1  christos else
   5854  1.1  christos   while :; do
   5855  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5856  1.1  christos /* end confdefs.h.  */
   5857  1.1  christos #include <sys/types.h>
   5858  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   5859  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5860  1.1  christos     since some C++ compilers masquerading as C compilers
   5861  1.1  christos     incorrectly reject 9223372036854775807.  */
   5862  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5863  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5864  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   5865  1.1  christos 		      ? 1 : -1];
   5866  1.1  christos int
   5867  1.1  christos main ()
   5868  1.1  christos {
   5869  1.1  christos 
   5870  1.1  christos   ;
   5871  1.1  christos   return 0;
   5872  1.1  christos }
   5873  1.1  christos _ACEOF
   5874  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5875  1.3  christos   ac_cv_sys_large_files=no; break
   5876  1.1  christos fi
   5877  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5878  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5879  1.1  christos /* end confdefs.h.  */
   5880  1.1  christos #define _LARGE_FILES 1
   5881  1.1  christos #include <sys/types.h>
   5882  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   5883  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5884  1.1  christos     since some C++ compilers masquerading as C compilers
   5885  1.1  christos     incorrectly reject 9223372036854775807.  */
   5886  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5887  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5888  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   5889  1.1  christos 		      ? 1 : -1];
   5890  1.1  christos int
   5891  1.1  christos main ()
   5892  1.1  christos {
   5893  1.1  christos 
   5894  1.1  christos   ;
   5895  1.1  christos   return 0;
   5896  1.1  christos }
   5897  1.1  christos _ACEOF
   5898  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   5899  1.1  christos   ac_cv_sys_large_files=1; break
   5900  1.1  christos fi
   5901  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5902  1.3  christos   ac_cv_sys_large_files=unknown
   5903  1.1  christos   break
   5904  1.1  christos done
   5905  1.1  christos fi
   5906  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   5907  1.3  christos $as_echo "$ac_cv_sys_large_files" >&6; }
   5908  1.3  christos case $ac_cv_sys_large_files in #(
   5909  1.3  christos   no | unknown) ;;
   5910  1.3  christos   *)
   5911  1.1  christos cat >>confdefs.h <<_ACEOF
   5912  1.1  christos #define _LARGE_FILES $ac_cv_sys_large_files
   5913  1.1  christos _ACEOF
   5914  1.3  christos ;;
   5915  1.3  christos esac
   5916  1.3  christos rm -rf conftest*
   5917  1.3  christos   fi
   5918  1.1  christos fi
   5919  1.1  christos 
   5920  1.1  christos 
   5921  1.1  christos 
   5922  1.1  christos # Extract the first word of "perl", so it can be a program name with args.
   5923  1.1  christos set dummy perl; ac_word=$2
   5924  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5925  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5926  1.4  christos if test "${ac_cv_path_PERL+set}" = set; then :
   5927  1.3  christos   $as_echo_n "(cached) " >&6
   5928  1.1  christos else
   5929  1.1  christos   case $PERL in
   5930  1.1  christos   [\\/]* | ?:[\\/]*)
   5931  1.1  christos   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   5932  1.1  christos   ;;
   5933  1.1  christos   *)
   5934  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5935  1.1  christos for as_dir in $PATH
   5936  1.1  christos do
   5937  1.1  christos   IFS=$as_save_IFS
   5938  1.1  christos   test -z "$as_dir" && as_dir=.
   5939  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5940  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5941  1.1  christos     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   5942  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5943  1.1  christos     break 2
   5944  1.1  christos   fi
   5945  1.1  christos done
   5946  1.4  christos   done
   5947  1.3  christos IFS=$as_save_IFS
   5948  1.1  christos 
   5949  1.1  christos   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
   5950  1.1  christos   ;;
   5951  1.1  christos esac
   5952  1.1  christos fi
   5953  1.1  christos PERL=$ac_cv_path_PERL
   5954  1.1  christos if test -n "$PERL"; then
   5955  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   5956  1.3  christos $as_echo "$PERL" >&6; }
   5957  1.1  christos else
   5958  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5959  1.3  christos $as_echo "no" >&6; }
   5960  1.1  christos fi
   5961  1.1  christos 
   5962  1.3  christos 
   5963  1.1  christos # Extract the first word of "csh", so it can be a program name with args.
   5964  1.1  christos set dummy csh; ac_word=$2
   5965  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5966  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   5967  1.4  christos if test "${ac_cv_path_CSH+set}" = set; then :
   5968  1.3  christos   $as_echo_n "(cached) " >&6
   5969  1.1  christos else
   5970  1.1  christos   case $CSH in
   5971  1.1  christos   [\\/]* | ?:[\\/]*)
   5972  1.1  christos   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
   5973  1.1  christos   ;;
   5974  1.1  christos   *)
   5975  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5976  1.1  christos for as_dir in $PATH
   5977  1.1  christos do
   5978  1.1  christos   IFS=$as_save_IFS
   5979  1.1  christos   test -z "$as_dir" && as_dir=.
   5980  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   5981  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5982  1.1  christos     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
   5983  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5984  1.1  christos     break 2
   5985  1.1  christos   fi
   5986  1.1  christos done
   5987  1.4  christos   done
   5988  1.3  christos IFS=$as_save_IFS
   5989  1.1  christos 
   5990  1.1  christos   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
   5991  1.1  christos   ;;
   5992  1.1  christos esac
   5993  1.1  christos fi
   5994  1.1  christos CSH=$ac_cv_path_CSH
   5995  1.1  christos if test -n "$CSH"; then
   5996  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSH" >&5
   5997  1.3  christos $as_echo "$CSH" >&6; }
   5998  1.1  christos else
   5999  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6000  1.3  christos $as_echo "no" >&6; }
   6001  1.1  christos fi
   6002  1.1  christos 
   6003  1.3  christos 
   6004  1.1  christos # for contrib/rcs2log.sh & src/cvsbug.in.
   6005  1.1  christos # Extract the first word of "mktemp", so it can be a program name with args.
   6006  1.1  christos set dummy mktemp; ac_word=$2
   6007  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6008  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   6009  1.4  christos if test "${ac_cv_path_MKTEMP+set}" = set; then :
   6010  1.3  christos   $as_echo_n "(cached) " >&6
   6011  1.1  christos else
   6012  1.1  christos   case $MKTEMP in
   6013  1.1  christos   [\\/]* | ?:[\\/]*)
   6014  1.1  christos   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
   6015  1.1  christos   ;;
   6016  1.1  christos   *)
   6017  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6018  1.1  christos for as_dir in $PATH
   6019  1.1  christos do
   6020  1.1  christos   IFS=$as_save_IFS
   6021  1.1  christos   test -z "$as_dir" && as_dir=.
   6022  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6023  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6024  1.1  christos     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
   6025  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6026  1.1  christos     break 2
   6027  1.1  christos   fi
   6028  1.1  christos done
   6029  1.4  christos   done
   6030  1.3  christos IFS=$as_save_IFS
   6031  1.1  christos 
   6032  1.1  christos   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
   6033  1.1  christos   ;;
   6034  1.1  christos esac
   6035  1.1  christos fi
   6036  1.1  christos MKTEMP=$ac_cv_path_MKTEMP
   6037  1.1  christos if test -n "$MKTEMP"; then
   6038  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
   6039  1.3  christos $as_echo "$MKTEMP" >&6; }
   6040  1.1  christos else
   6041  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6042  1.3  christos $as_echo "no" >&6; }
   6043  1.1  christos fi
   6044  1.1  christos 
   6045  1.3  christos 
   6046  1.1  christos if test x"$MKTEMP" = xmktemp; then
   6047  1.1  christos 	MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
   6048  1.1  christos else
   6049  1.1  christos 	MKTEMP_SH_FUNCTION=/dev/null
   6050  1.1  christos fi
   6051  1.1  christos 
   6052  1.1  christos # for src/cvsbug.in
   6053  1.1  christos # Extract the first word of "sendmail", so it can be a program name with args.
   6054  1.1  christos set dummy sendmail; ac_word=$2
   6055  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6056  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   6057  1.4  christos if test "${ac_cv_path_SENDMAIL+set}" = set; then :
   6058  1.3  christos   $as_echo_n "(cached) " >&6
   6059  1.1  christos else
   6060  1.1  christos   case $SENDMAIL in
   6061  1.1  christos   [\\/]* | ?:[\\/]*)
   6062  1.1  christos   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
   6063  1.1  christos   ;;
   6064  1.1  christos   *)
   6065  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6066  1.1  christos as_dummy="$PATH:/usr/sbin:/usr/lib"
   6067  1.1  christos for as_dir in $as_dummy
   6068  1.1  christos do
   6069  1.1  christos   IFS=$as_save_IFS
   6070  1.1  christos   test -z "$as_dir" && as_dir=.
   6071  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6072  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6073  1.1  christos     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
   6074  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6075  1.1  christos     break 2
   6076  1.1  christos   fi
   6077  1.1  christos done
   6078  1.4  christos   done
   6079  1.3  christos IFS=$as_save_IFS
   6080  1.1  christos 
   6081  1.4  christos   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
   6082  1.4  christos   ;;
   6083  1.4  christos esac
   6084  1.4  christos fi
   6085  1.4  christos SENDMAIL=$ac_cv_path_SENDMAIL
   6086  1.4  christos if test -n "$SENDMAIL"; then
   6087  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
   6088  1.4  christos $as_echo "$SENDMAIL" >&6; }
   6089  1.4  christos else
   6090  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6091  1.4  christos $as_echo "no" >&6; }
   6092  1.4  christos fi
   6093  1.1  christos 
   6094  1.1  christos 
   6095  1.4  christos # For diff/util.c
   6096  1.4  christos # Extract the first word of "pr", so it can be a program name with args.
   6097  1.4  christos set dummy pr; ac_word=$2
   6098  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6099  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   6100  1.4  christos if test "${ac_cv_path_PR+set}" = set; then :
   6101  1.4  christos   $as_echo_n "(cached) " >&6
   6102  1.4  christos else
   6103  1.4  christos   case $PR in
   6104  1.4  christos   [\\/]* | ?:[\\/]*)
   6105  1.4  christos   ac_cv_path_PR="$PR" # Let the user override the test with a path.
   6106  1.4  christos   ;;
   6107  1.4  christos   *)
   6108  1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6109  1.4  christos for as_dir in $PATH
   6110  1.4  christos do
   6111  1.4  christos   IFS=$as_save_IFS
   6112  1.4  christos   test -z "$as_dir" && as_dir=.
   6113  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6114  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6115  1.4  christos     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
   6116  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6117  1.4  christos     break 2
   6118  1.4  christos   fi
   6119  1.4  christos done
   6120  1.4  christos   done
   6121  1.4  christos IFS=$as_save_IFS
   6122  1.1  christos 
   6123  1.4  christos   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
   6124  1.4  christos   ;;
   6125  1.1  christos esac
   6126  1.4  christos fi
   6127  1.4  christos PR=$ac_cv_path_PR
   6128  1.4  christos if test -n "$PR"; then
   6129  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PR" >&5
   6130  1.4  christos $as_echo "$PR" >&6; }
   6131  1.4  christos else
   6132  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6133  1.4  christos $as_echo "no" >&6; }
   6134  1.4  christos fi
   6135  1.1  christos 
   6136  1.1  christos 
   6137  1.4  christos if test x"$PR" != xno; then
   6138  1.1  christos 
   6139  1.4  christos cat >>confdefs.h <<_ACEOF
   6140  1.4  christos #define PR_PROGRAM "$PR"
   6141  1.4  christos _ACEOF
   6142  1.1  christos 
   6143  1.4  christos fi
   6144  1.1  christos 
   6145  1.4  christos missing_dir=`cd $ac_aux_dir && pwd`
   6146  1.4  christos glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
   6147  1.4  christos for ac_prog in groff roff
   6148  1.4  christos do
   6149  1.4  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6150  1.4  christos set dummy $ac_prog; ac_word=$2
   6151  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6152  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   6153  1.4  christos if test "${ac_cv_path_ROFF+set}" = set; then :
   6154  1.3  christos   $as_echo_n "(cached) " >&6
   6155  1.1  christos else
   6156  1.4  christos   case $ROFF in
   6157  1.4  christos   [\\/]* | ?:[\\/]*)
   6158  1.4  christos   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
   6159  1.4  christos   ;;
   6160  1.4  christos   *)
   6161  1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6162  1.4  christos for as_dir in $glocs
   6163  1.4  christos do
   6164  1.4  christos   IFS=$as_save_IFS
   6165  1.4  christos   test -z "$as_dir" && as_dir=.
   6166  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6167  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6168  1.4  christos     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
   6169  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6170  1.4  christos     break 2
   6171  1.4  christos   fi
   6172  1.4  christos done
   6173  1.4  christos   done
   6174  1.4  christos IFS=$as_save_IFS
   6175  1.1  christos 
   6176  1.4  christos   ;;
   6177  1.3  christos esac
   6178  1.4  christos fi
   6179  1.4  christos ROFF=$ac_cv_path_ROFF
   6180  1.4  christos if test -n "$ROFF"; then
   6181  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROFF" >&5
   6182  1.4  christos $as_echo "$ROFF" >&6; }
   6183  1.1  christos else
   6184  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6185  1.4  christos $as_echo "no" >&6; }
   6186  1.4  christos fi
   6187  1.1  christos 
   6188  1.1  christos 
   6189  1.4  christos   test -n "$ROFF" && break
   6190  1.4  christos done
   6191  1.4  christos test -n "$ROFF" || ROFF="$missing_dir/missing roff"
   6192  1.1  christos 
   6193  1.4  christos # Extract the first word of "ps2pdf", so it can be a program name with args.
   6194  1.4  christos set dummy ps2pdf; ac_word=$2
   6195  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6196  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   6197  1.4  christos if test "${ac_cv_path_PS2PDF+set}" = set; then :
   6198  1.4  christos   $as_echo_n "(cached) " >&6
   6199  1.1  christos else
   6200  1.4  christos   case $PS2PDF in
   6201  1.4  christos   [\\/]* | ?:[\\/]*)
   6202  1.4  christos   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
   6203  1.4  christos   ;;
   6204  1.4  christos   *)
   6205  1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6206  1.4  christos for as_dir in $PATH
   6207  1.4  christos do
   6208  1.4  christos   IFS=$as_save_IFS
   6209  1.4  christos   test -z "$as_dir" && as_dir=.
   6210  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6211  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6212  1.4  christos     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
   6213  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6214  1.4  christos     break 2
   6215  1.4  christos   fi
   6216  1.4  christos done
   6217  1.4  christos   done
   6218  1.4  christos IFS=$as_save_IFS
   6219  1.1  christos 
   6220  1.4  christos   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
   6221  1.4  christos   ;;
   6222  1.4  christos esac
   6223  1.1  christos fi
   6224  1.4  christos PS2PDF=$ac_cv_path_PS2PDF
   6225  1.4  christos if test -n "$PS2PDF"; then
   6226  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
   6227  1.4  christos $as_echo "$PS2PDF" >&6; }
   6228  1.4  christos else
   6229  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6230  1.4  christos $as_echo "no" >&6; }
   6231  1.1  christos fi
   6232  1.3  christos 
   6233  1.1  christos 
   6234  1.4  christos # Extract the first word of "texi2dvi", so it can be a program name with args.
   6235  1.4  christos set dummy texi2dvi; ac_word=$2
   6236  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6237  1.4  christos $as_echo_n "checking for $ac_word... " >&6; }
   6238  1.4  christos if test "${ac_cv_path_TEXI2DVI+set}" = set; then :
   6239  1.4  christos   $as_echo_n "(cached) " >&6
   6240  1.4  christos else
   6241  1.4  christos   case $TEXI2DVI in
   6242  1.4  christos   [\\/]* | ?:[\\/]*)
   6243  1.4  christos   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
   6244  1.4  christos   ;;
   6245  1.4  christos   *)
   6246  1.4  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6247  1.4  christos for as_dir in $PATH
   6248  1.4  christos do
   6249  1.4  christos   IFS=$as_save_IFS
   6250  1.4  christos   test -z "$as_dir" && as_dir=.
   6251  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   6252  1.4  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6253  1.4  christos     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
   6254  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6255  1.4  christos     break 2
   6256  1.4  christos   fi
   6257  1.4  christos done
   6258  1.4  christos   done
   6259  1.4  christos IFS=$as_save_IFS
   6260  1.1  christos 
   6261  1.4  christos   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
   6262  1.4  christos   ;;
   6263  1.4  christos esac
   6264  1.4  christos fi
   6265  1.4  christos TEXI2DVI=$ac_cv_path_TEXI2DVI
   6266  1.4  christos if test -n "$TEXI2DVI"; then
   6267  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
   6268  1.4  christos $as_echo "$TEXI2DVI" >&6; }
   6269  1.4  christos else
   6270  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6271  1.4  christos $as_echo "no" >&6; }
   6272  1.1  christos fi
   6273  1.1  christos 
   6274  1.1  christos 
   6275  1.1  christos 
   6276  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
   6277  1.4  christos $as_echo_n "checking whether #! works in shell scripts... " >&6; }
   6278  1.4  christos if test "${ac_cv_sys_interpreter+set}" = set; then :
   6279  1.3  christos   $as_echo_n "(cached) " >&6
   6280  1.3  christos else
   6281  1.4  christos   echo '#! /bin/cat
   6282  1.4  christos exit 69
   6283  1.4  christos ' >conftest
   6284  1.4  christos chmod u+x conftest
   6285  1.4  christos (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
   6286  1.4  christos if test $? -ne 69; then
   6287  1.4  christos    ac_cv_sys_interpreter=yes
   6288  1.3  christos else
   6289  1.4  christos    ac_cv_sys_interpreter=no
   6290  1.3  christos fi
   6291  1.4  christos rm -f conftest
   6292  1.3  christos fi
   6293  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
   6294  1.4  christos $as_echo "$ac_cv_sys_interpreter" >&6; }
   6295  1.4  christos interpval=$ac_cv_sys_interpreter
   6296  1.3  christos 
   6297  1.4  christos if test X"$ac_cv_sys_interpreter" != X"yes" ; then
   6298  1.4  christos   # silly trick to avoid problems in AC macros...
   6299  1.4  christos   ac_msg='perl scripts using #! may not be invoked properly'
   6300  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_msg" >&5
   6301  1.4  christos $as_echo "$as_me: WARNING: $ac_msg" >&2;}
   6302  1.3  christos fi
   6303  1.3  christos 
   6304  1.4  christos # BSD's logo is a devil for a reason, hey?
   6305  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD VPATH bug in make" >&5
   6306  1.4  christos $as_echo_n "checking for BSD VPATH bug in make... " >&6; }
   6307  1.4  christos if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then :
   6308  1.3  christos   $as_echo_n "(cached) " >&6
   6309  1.1  christos else
   6310  1.4  christos   if test ! -d ac_test_dir ; then
   6311  1.4  christos 	{ ac_try='mkdir ac_test_dir'
   6312  1.4  christos   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   6313  1.4  christos   (eval $ac_try) 2>&5
   6314  1.4  christos   ac_status=$?
   6315  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6316  1.4  christos   test $ac_status = 0; }; }
   6317  1.4  christos fi
   6318  1.4  christos cat >conftestmake <<EOF
   6319  1.4  christos VPATH = ac_test_dir
   6320  1.4  christos ac_test_target: ac_test_dep
   6321  1.4  christos 	echo BSD VPATH bug present >&2
   6322  1.4  christos ac_test_dep: ac_test_dep_dep
   6323  1.4  christos EOF
   6324  1.4  christos touch ac_test_dir/ac_test_dep_dep
   6325  1.4  christos touch ac_test_dir/ac_test_dep
   6326  1.4  christos touch ac_test_target
   6327  1.4  christos # Don't know why, but the following test doesn't work under FreeBSD 4.2
   6328  1.4  christos # without this sleep command
   6329  1.4  christos sleep 1
   6330  1.4  christos if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
   6331  1.4  christos   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   6332  1.4  christos   (eval $ac_try) 2>&5
   6333  1.1  christos   ac_status=$?
   6334  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6335  1.4  christos   test $ac_status = 0; }; } ; then
   6336  1.4  christos 	ccvs_cv_bsd_make_vpath_bug=yes
   6337  1.1  christos else
   6338  1.4  christos 	ccvs_cv_bsd_make_vpath_bug=no
   6339  1.1  christos fi
   6340  1.4  christos { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
   6341  1.4  christos   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   6342  1.4  christos   (eval $ac_try) 2>&5
   6343  1.4  christos   ac_status=$?
   6344  1.4  christos   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6345  1.4  christos   test $ac_status = 0; }; }
   6346  1.1  christos fi
   6347  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_bsd_make_vpath_bug" >&5
   6348  1.4  christos $as_echo "$ccvs_cv_bsd_make_vpath_bug" >&6; }
   6349  1.4  christos # We also don't need to worry about the bug when $srcdir = $builddir
   6350  1.4  christos  if \
   6351  1.4  christos 		test $ccvs_cv_bsd_make_vpath_bug = no \
   6352  1.4  christos 		|| test $srcdir = .; then
   6353  1.4  christos   MAKE_TARGETS_IN_VPATH_TRUE=
   6354  1.4  christos   MAKE_TARGETS_IN_VPATH_FALSE='#'
   6355  1.4  christos else
   6356  1.4  christos   MAKE_TARGETS_IN_VPATH_TRUE='#'
   6357  1.4  christos   MAKE_TARGETS_IN_VPATH_FALSE=
   6358  1.1  christos fi
   6359  1.1  christos 
   6360  1.1  christos 
   6361  1.4  christos ac_header_dirent=no
   6362  1.4  christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   6363  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   6364  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
   6365  1.4  christos $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
   6366  1.4  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
   6367  1.3  christos   $as_echo_n "(cached) " >&6
   6368  1.1  christos else
   6369  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6370  1.1  christos /* end confdefs.h.  */
   6371  1.4  christos #include <sys/types.h>
   6372  1.4  christos #include <$ac_hdr>
   6373  1.1  christos 
   6374  1.1  christos int
   6375  1.1  christos main ()
   6376  1.1  christos {
   6377  1.4  christos if ((DIR *) 0)
   6378  1.4  christos return 0;
   6379  1.1  christos   ;
   6380  1.1  christos   return 0;
   6381  1.1  christos }
   6382  1.1  christos _ACEOF
   6383  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6384  1.4  christos   eval "$as_ac_Header=yes"
   6385  1.1  christos else
   6386  1.4  christos   eval "$as_ac_Header=no"
   6387  1.1  christos fi
   6388  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6389  1.1  christos fi
   6390  1.4  christos eval ac_res=\$$as_ac_Header
   6391  1.4  christos 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6392  1.3  christos $as_echo "$ac_res" >&6; }
   6393  1.4  christos eval as_val=\$$as_ac_Header
   6394  1.4  christos    if test "x$as_val" = x""yes; then :
   6395  1.1  christos   cat >>confdefs.h <<_ACEOF
   6396  1.4  christos #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   6397  1.1  christos _ACEOF
   6398  1.1  christos 
   6399  1.4  christos ac_header_dirent=$ac_hdr; break
   6400  1.4  christos fi
   6401  1.1  christos 
   6402  1.1  christos done
   6403  1.4  christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   6404  1.4  christos if test $ac_header_dirent = dirent.h; then
   6405  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   6406  1.4  christos $as_echo_n "checking for library containing opendir... " >&6; }
   6407  1.4  christos if test "${ac_cv_search_opendir+set}" = set; then :
   6408  1.3  christos   $as_echo_n "(cached) " >&6
   6409  1.1  christos else
   6410  1.4  christos   ac_func_search_save_LIBS=$LIBS
   6411  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6412  1.1  christos /* end confdefs.h.  */
   6413  1.1  christos 
   6414  1.3  christos /* Override any GCC internal prototype to avoid an error.
   6415  1.3  christos    Use char because int might match the return type of a GCC
   6416  1.3  christos    builtin and then its argument prototype would still apply.  */
   6417  1.1  christos #ifdef __cplusplus
   6418  1.1  christos extern "C"
   6419  1.1  christos #endif
   6420  1.4  christos char opendir ();
   6421  1.1  christos int
   6422  1.1  christos main ()
   6423  1.1  christos {
   6424  1.4  christos return opendir ();
   6425  1.1  christos   ;
   6426  1.1  christos   return 0;
   6427  1.1  christos }
   6428  1.1  christos _ACEOF
   6429  1.4  christos for ac_lib in '' dir; do
   6430  1.4  christos   if test -z "$ac_lib"; then
   6431  1.4  christos     ac_res="none required"
   6432  1.4  christos   else
   6433  1.4  christos     ac_res=-l$ac_lib
   6434  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6435  1.4  christos   fi
   6436  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   6437  1.4  christos   ac_cv_search_opendir=$ac_res
   6438  1.1  christos fi
   6439  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   6440  1.4  christos     conftest$ac_exeext
   6441  1.4  christos   if test "${ac_cv_search_opendir+set}" = set; then :
   6442  1.4  christos   break
   6443  1.1  christos fi
   6444  1.1  christos done
   6445  1.4  christos if test "${ac_cv_search_opendir+set}" = set; then :
   6446  1.1  christos 
   6447  1.1  christos else
   6448  1.4  christos   ac_cv_search_opendir=no
   6449  1.4  christos fi
   6450  1.4  christos rm conftest.$ac_ext
   6451  1.4  christos LIBS=$ac_func_search_save_LIBS
   6452  1.1  christos fi
   6453  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   6454  1.4  christos $as_echo "$ac_cv_search_opendir" >&6; }
   6455  1.4  christos ac_res=$ac_cv_search_opendir
   6456  1.4  christos if test "$ac_res" != no; then :
   6457  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6458  1.3  christos 
   6459  1.1  christos fi
   6460  1.1  christos 
   6461  1.1  christos else
   6462  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   6463  1.4  christos $as_echo_n "checking for library containing opendir... " >&6; }
   6464  1.4  christos if test "${ac_cv_search_opendir+set}" = set; then :
   6465  1.3  christos   $as_echo_n "(cached) " >&6
   6466  1.1  christos else
   6467  1.4  christos   ac_func_search_save_LIBS=$LIBS
   6468  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6469  1.1  christos /* end confdefs.h.  */
   6470  1.1  christos 
   6471  1.3  christos /* Override any GCC internal prototype to avoid an error.
   6472  1.3  christos    Use char because int might match the return type of a GCC
   6473  1.3  christos    builtin and then its argument prototype would still apply.  */
   6474  1.1  christos #ifdef __cplusplus
   6475  1.1  christos extern "C"
   6476  1.1  christos #endif
   6477  1.4  christos char opendir ();
   6478  1.1  christos int
   6479  1.1  christos main ()
   6480  1.1  christos {
   6481  1.4  christos return opendir ();
   6482  1.1  christos   ;
   6483  1.1  christos   return 0;
   6484  1.1  christos }
   6485  1.1  christos _ACEOF
   6486  1.4  christos for ac_lib in '' x; do
   6487  1.4  christos   if test -z "$ac_lib"; then
   6488  1.4  christos     ac_res="none required"
   6489  1.4  christos   else
   6490  1.4  christos     ac_res=-l$ac_lib
   6491  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6492  1.4  christos   fi
   6493  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   6494  1.4  christos   ac_cv_search_opendir=$ac_res
   6495  1.4  christos fi
   6496  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   6497  1.4  christos     conftest$ac_exeext
   6498  1.4  christos   if test "${ac_cv_search_opendir+set}" = set; then :
   6499  1.4  christos   break
   6500  1.4  christos fi
   6501  1.4  christos done
   6502  1.4  christos if test "${ac_cv_search_opendir+set}" = set; then :
   6503  1.4  christos 
   6504  1.1  christos else
   6505  1.4  christos   ac_cv_search_opendir=no
   6506  1.4  christos fi
   6507  1.4  christos rm conftest.$ac_ext
   6508  1.4  christos LIBS=$ac_func_search_save_LIBS
   6509  1.1  christos fi
   6510  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   6511  1.4  christos $as_echo "$ac_cv_search_opendir" >&6; }
   6512  1.4  christos ac_res=$ac_cv_search_opendir
   6513  1.4  christos if test "$ac_res" != no; then :
   6514  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6515  1.3  christos 
   6516  1.1  christos fi
   6517  1.1  christos 
   6518  1.1  christos fi
   6519  1.1  christos 
   6520  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   6521  1.4  christos $as_echo_n "checking for ANSI C header files... " >&6; }
   6522  1.4  christos if test "${ac_cv_header_stdc+set}" = set; then :
   6523  1.3  christos   $as_echo_n "(cached) " >&6
   6524  1.1  christos else
   6525  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6526  1.1  christos /* end confdefs.h.  */
   6527  1.4  christos #include <stdlib.h>
   6528  1.4  christos #include <stdarg.h>
   6529  1.4  christos #include <string.h>
   6530  1.4  christos #include <float.h>
   6531  1.4  christos 
   6532  1.1  christos int
   6533  1.1  christos main ()
   6534  1.1  christos {
   6535  1.1  christos 
   6536  1.1  christos   ;
   6537  1.1  christos   return 0;
   6538  1.1  christos }
   6539  1.1  christos _ACEOF
   6540  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6541  1.4  christos   ac_cv_header_stdc=yes
   6542  1.1  christos else
   6543  1.4  christos   ac_cv_header_stdc=no
   6544  1.1  christos fi
   6545  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6546  1.3  christos 
   6547  1.4  christos if test $ac_cv_header_stdc = yes; then
   6548  1.4  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6549  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6550  1.4  christos /* end confdefs.h.  */
   6551  1.4  christos #include <string.h>
   6552  1.1  christos 
   6553  1.1  christos _ACEOF
   6554  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6555  1.4  christos   $EGREP "memchr" >/dev/null 2>&1; then :
   6556  1.1  christos 
   6557  1.1  christos else
   6558  1.4  christos   ac_cv_header_stdc=no
   6559  1.4  christos fi
   6560  1.4  christos rm -f conftest*
   6561  1.1  christos 
   6562  1.1  christos fi
   6563  1.1  christos 
   6564  1.4  christos if test $ac_cv_header_stdc = yes; then
   6565  1.4  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6566  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6567  1.4  christos /* end confdefs.h.  */
   6568  1.4  christos #include <stdlib.h>
   6569  1.1  christos 
   6570  1.4  christos _ACEOF
   6571  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6572  1.4  christos   $EGREP "free" >/dev/null 2>&1; then :
   6573  1.1  christos 
   6574  1.1  christos else
   6575  1.4  christos   ac_cv_header_stdc=no
   6576  1.4  christos fi
   6577  1.4  christos rm -f conftest*
   6578  1.1  christos 
   6579  1.4  christos fi
   6580  1.1  christos 
   6581  1.4  christos if test $ac_cv_header_stdc = yes; then
   6582  1.4  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6583  1.4  christos   if test "$cross_compiling" = yes; then :
   6584  1.4  christos   :
   6585  1.4  christos else
   6586  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6587  1.4  christos /* end confdefs.h.  */
   6588  1.4  christos #include <ctype.h>
   6589  1.4  christos #include <stdlib.h>
   6590  1.4  christos #if ((' ' & 0x0FF) == 0x020)
   6591  1.4  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6592  1.4  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6593  1.1  christos #else
   6594  1.4  christos # define ISLOWER(c) \
   6595  1.4  christos 		   (('a' <= (c) && (c) <= 'i') \
   6596  1.4  christos 		     || ('j' <= (c) && (c) <= 'r') \
   6597  1.4  christos 		     || ('s' <= (c) && (c) <= 'z'))
   6598  1.4  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6599  1.1  christos #endif
   6600  1.1  christos 
   6601  1.4  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6602  1.1  christos int
   6603  1.1  christos main ()
   6604  1.1  christos {
   6605  1.4  christos   int i;
   6606  1.4  christos   for (i = 0; i < 256; i++)
   6607  1.4  christos     if (XOR (islower (i), ISLOWER (i))
   6608  1.4  christos 	|| toupper (i) != TOUPPER (i))
   6609  1.4  christos       return 2;
   6610  1.1  christos   return 0;
   6611  1.1  christos }
   6612  1.1  christos _ACEOF
   6613  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   6614  1.1  christos 
   6615  1.1  christos else
   6616  1.4  christos   ac_cv_header_stdc=no
   6617  1.4  christos fi
   6618  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6619  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6620  1.4  christos fi
   6621  1.1  christos 
   6622  1.1  christos fi
   6623  1.1  christos fi
   6624  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   6625  1.4  christos $as_echo "$ac_cv_header_stdc" >&6; }
   6626  1.4  christos if test $ac_cv_header_stdc = yes; then
   6627  1.3  christos 
   6628  1.4  christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   6629  1.3  christos 
   6630  1.1  christos fi
   6631  1.1  christos 
   6632  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   6633  1.4  christos $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   6634  1.4  christos if test "${ac_cv_header_sys_wait_h+set}" = set; then :
   6635  1.3  christos   $as_echo_n "(cached) " >&6
   6636  1.1  christos else
   6637  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6638  1.1  christos /* end confdefs.h.  */
   6639  1.4  christos #include <sys/types.h>
   6640  1.4  christos #include <sys/wait.h>
   6641  1.4  christos #ifndef WEXITSTATUS
   6642  1.4  christos # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   6643  1.1  christos #endif
   6644  1.4  christos #ifndef WIFEXITED
   6645  1.4  christos # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   6646  1.1  christos #endif
   6647  1.3  christos 
   6648  1.3  christos int
   6649  1.1  christos main ()
   6650  1.1  christos {
   6651  1.4  christos   int s;
   6652  1.4  christos   wait (&s);
   6653  1.4  christos   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   6654  1.1  christos   ;
   6655  1.1  christos   return 0;
   6656  1.1  christos }
   6657  1.1  christos _ACEOF
   6658  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6659  1.4  christos   ac_cv_header_sys_wait_h=yes
   6660  1.1  christos else
   6661  1.4  christos   ac_cv_header_sys_wait_h=no
   6662  1.4  christos fi
   6663  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6664  1.4  christos fi
   6665  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   6666  1.4  christos $as_echo "$ac_cv_header_sys_wait_h" >&6; }
   6667  1.4  christos if test $ac_cv_header_sys_wait_h = yes; then
   6668  1.4  christos 
   6669  1.4  christos $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   6670  1.1  christos 
   6671  1.1  christos fi
   6672  1.3  christos 
   6673  1.4  christos for ac_header in \
   6674  1.4  christos 	direct.h \
   6675  1.4  christos 	fcntl.h \
   6676  1.4  christos 	io.h \
   6677  1.4  christos 	memory.h \
   6678  1.4  christos 	ndbm.h \
   6679  1.4  christos 	stdint.h \
   6680  1.4  christos 	syslog.h \
   6681  1.4  christos 	sys/bsdtypes.h \
   6682  1.4  christos 	sys/file.h \
   6683  1.4  christos 	sys/param.h \
   6684  1.4  christos 	sys/resource.h \
   6685  1.4  christos 	sys/select.h \
   6686  1.4  christos 	unistd.h \
   6687  1.4  christos 	utime.h \
   6688  1.4  christos 	zlib.h \
   6689  1.4  christos 
   6690  1.4  christos do :
   6691  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6692  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   6693  1.4  christos eval as_val=\$$as_ac_Header
   6694  1.4  christos    if test "x$as_val" = x""yes; then :
   6695  1.1  christos   cat >>confdefs.h <<_ACEOF
   6696  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6697  1.1  christos _ACEOF
   6698  1.1  christos 
   6699  1.4  christos fi
   6700  1.1  christos 
   6701  1.1  christos done
   6702  1.1  christos 
   6703  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
   6704  1.4  christos $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
   6705  1.4  christos if test "${ac_cv_header_stat_broken+set}" = set; then :
   6706  1.4  christos   $as_echo_n "(cached) " >&6
   6707  1.4  christos else
   6708  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6709  1.4  christos /* end confdefs.h.  */
   6710  1.4  christos #include <sys/types.h>
   6711  1.4  christos #include <sys/stat.h>
   6712  1.1  christos 
   6713  1.4  christos #if defined S_ISBLK && defined S_IFDIR
   6714  1.4  christos extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
   6715  1.4  christos #endif
   6716  1.1  christos 
   6717  1.4  christos #if defined S_ISBLK && defined S_IFCHR
   6718  1.4  christos extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
   6719  1.4  christos #endif
   6720  1.1  christos 
   6721  1.4  christos #if defined S_ISLNK && defined S_IFREG
   6722  1.4  christos extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
   6723  1.4  christos #endif
   6724  1.1  christos 
   6725  1.4  christos #if defined S_ISSOCK && defined S_IFREG
   6726  1.4  christos extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
   6727  1.4  christos #endif
   6728  1.1  christos 
   6729  1.4  christos _ACEOF
   6730  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6731  1.4  christos   ac_cv_header_stat_broken=no
   6732  1.4  christos else
   6733  1.4  christos   ac_cv_header_stat_broken=yes
   6734  1.4  christos fi
   6735  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6736  1.4  christos fi
   6737  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
   6738  1.4  christos $as_echo "$ac_cv_header_stat_broken" >&6; }
   6739  1.4  christos if test $ac_cv_header_stat_broken = yes; then
   6740  1.1  christos 
   6741  1.4  christos $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
   6742  1.1  christos 
   6743  1.4  christos fi
   6744  1.1  christos 
   6745  1.1  christos 
   6746  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   6747  1.4  christos $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   6748  1.4  christos if test "${ac_cv_c_const+set}" = set; then :
   6749  1.3  christos   $as_echo_n "(cached) " >&6
   6750  1.1  christos else
   6751  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6752  1.1  christos /* end confdefs.h.  */
   6753  1.1  christos 
   6754  1.4  christos int
   6755  1.4  christos main ()
   6756  1.4  christos {
   6757  1.4  christos /* FIXME: Include the comments suggested by Paul. */
   6758  1.4  christos #ifndef __cplusplus
   6759  1.4  christos   /* Ultrix mips cc rejects this.  */
   6760  1.4  christos   typedef int charset[2];
   6761  1.4  christos   const charset cs;
   6762  1.4  christos   /* SunOS 4.1.1 cc rejects this.  */
   6763  1.4  christos   char const *const *pcpcc;
   6764  1.4  christos   char **ppc;
   6765  1.4  christos   /* NEC SVR4.0.2 mips cc rejects this.  */
   6766  1.4  christos   struct point {int x, y;};
   6767  1.4  christos   static struct point const zero = {0,0};
   6768  1.4  christos   /* AIX XL C 1.02.0.0 rejects this.
   6769  1.4  christos      It does not let you subtract one const X* pointer from another in
   6770  1.4  christos      an arm of an if-expression whose if-part is not a constant
   6771  1.4  christos      expression */
   6772  1.4  christos   const char *g = "string";
   6773  1.4  christos   pcpcc = &g + (g ? g-g : 0);
   6774  1.4  christos   /* HPUX 7.0 cc rejects these. */
   6775  1.4  christos   ++pcpcc;
   6776  1.4  christos   ppc = (char**) pcpcc;
   6777  1.4  christos   pcpcc = (char const *const *) ppc;
   6778  1.4  christos   { /* SCO 3.2v4 cc rejects this.  */
   6779  1.4  christos     char *t;
   6780  1.4  christos     char const *s = 0 ? (char *) 0 : (char const *) 0;
   6781  1.1  christos 
   6782  1.4  christos     *t++ = 0;
   6783  1.4  christos     if (s) return 0;
   6784  1.4  christos   }
   6785  1.4  christos   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   6786  1.4  christos     int x[] = {25, 17};
   6787  1.4  christos     const int *foo = &x[0];
   6788  1.4  christos     ++foo;
   6789  1.4  christos   }
   6790  1.4  christos   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   6791  1.4  christos     typedef const int *iptr;
   6792  1.4  christos     iptr p = 0;
   6793  1.4  christos     ++p;
   6794  1.4  christos   }
   6795  1.4  christos   { /* AIX XL C 1.02.0.0 rejects this saying
   6796  1.4  christos        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   6797  1.4  christos     struct s { int j; const int *ap[3]; };
   6798  1.4  christos     struct s *b; b->j = 5;
   6799  1.4  christos   }
   6800  1.4  christos   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   6801  1.4  christos     const int foo = 10;
   6802  1.4  christos     if (!foo) return 0;
   6803  1.4  christos   }
   6804  1.4  christos   return !cs[0] && !zero.x;
   6805  1.1  christos #endif
   6806  1.1  christos 
   6807  1.1  christos   ;
   6808  1.1  christos   return 0;
   6809  1.1  christos }
   6810  1.1  christos _ACEOF
   6811  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6812  1.4  christos   ac_cv_c_const=yes
   6813  1.4  christos else
   6814  1.4  christos   ac_cv_c_const=no
   6815  1.4  christos fi
   6816  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6817  1.4  christos fi
   6818  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   6819  1.4  christos $as_echo "$ac_cv_c_const" >&6; }
   6820  1.4  christos if test $ac_cv_c_const = no; then
   6821  1.4  christos 
   6822  1.4  christos $as_echo "#define const /**/" >>confdefs.h
   6823  1.4  christos 
   6824  1.4  christos fi
   6825  1.4  christos 
   6826  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   6827  1.4  christos $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   6828  1.4  christos if test "${ac_cv_type_uid_t+set}" = set; then :
   6829  1.4  christos   $as_echo_n "(cached) " >&6
   6830  1.4  christos else
   6831  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6832  1.4  christos /* end confdefs.h.  */
   6833  1.4  christos #include <sys/types.h>
   6834  1.4  christos 
   6835  1.4  christos _ACEOF
   6836  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6837  1.4  christos   $EGREP "uid_t" >/dev/null 2>&1; then :
   6838  1.4  christos   ac_cv_type_uid_t=yes
   6839  1.1  christos else
   6840  1.4  christos   ac_cv_type_uid_t=no
   6841  1.4  christos fi
   6842  1.4  christos rm -f conftest*
   6843  1.1  christos 
   6844  1.1  christos fi
   6845  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   6846  1.4  christos $as_echo "$ac_cv_type_uid_t" >&6; }
   6847  1.4  christos if test $ac_cv_type_uid_t = no; then
   6848  1.4  christos 
   6849  1.4  christos $as_echo "#define uid_t int" >>confdefs.h
   6850  1.4  christos 
   6851  1.4  christos 
   6852  1.4  christos $as_echo "#define gid_t int" >>confdefs.h
   6853  1.3  christos 
   6854  1.1  christos fi
   6855  1.4  christos 
   6856  1.4  christos ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   6857  1.4  christos if test "x$ac_cv_type_mode_t" = x""yes; then :
   6858  1.4  christos 
   6859  1.4  christos else
   6860  1.4  christos 
   6861  1.4  christos cat >>confdefs.h <<_ACEOF
   6862  1.4  christos #define mode_t int
   6863  1.1  christos _ACEOF
   6864  1.1  christos 
   6865  1.1  christos fi
   6866  1.1  christos 
   6867  1.4  christos ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   6868  1.4  christos if test "x$ac_cv_type_pid_t" = x""yes; then :
   6869  1.1  christos 
   6870  1.4  christos else
   6871  1.1  christos 
   6872  1.4  christos cat >>confdefs.h <<_ACEOF
   6873  1.4  christos #define pid_t int
   6874  1.4  christos _ACEOF
   6875  1.1  christos 
   6876  1.4  christos fi
   6877  1.1  christos 
   6878  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
   6879  1.4  christos $as_echo_n "checking return type of signal handlers... " >&6; }
   6880  1.4  christos if test "${ac_cv_type_signal+set}" = set; then :
   6881  1.3  christos   $as_echo_n "(cached) " >&6
   6882  1.1  christos else
   6883  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6884  1.1  christos /* end confdefs.h.  */
   6885  1.4  christos #include <sys/types.h>
   6886  1.4  christos #include <signal.h>
   6887  1.1  christos 
   6888  1.1  christos int
   6889  1.1  christos main ()
   6890  1.1  christos {
   6891  1.4  christos return *(signal (0, 0)) (0) == 1;
   6892  1.1  christos   ;
   6893  1.1  christos   return 0;
   6894  1.1  christos }
   6895  1.1  christos _ACEOF
   6896  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   6897  1.4  christos   ac_cv_type_signal=int
   6898  1.1  christos else
   6899  1.4  christos   ac_cv_type_signal=void
   6900  1.4  christos fi
   6901  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6902  1.1  christos fi
   6903  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   6904  1.4  christos $as_echo "$ac_cv_type_signal" >&6; }
   6905  1.3  christos 
   6906  1.4  christos cat >>confdefs.h <<_ACEOF
   6907  1.4  christos #define RETSIGTYPE $ac_cv_type_signal
   6908  1.1  christos _ACEOF
   6909  1.1  christos 
   6910  1.1  christos 
   6911  1.1  christos 
   6912  1.4  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   6913  1.4  christos if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
   6914  1.1  christos 
   6915  1.4  christos cat >>confdefs.h <<_ACEOF
   6916  1.4  christos #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   6917  1.4  christos _ACEOF
   6918  1.1  christos 
   6919  1.1  christos 
   6920  1.4  christos fi
   6921  1.1  christos 
   6922  1.4  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
   6923  1.4  christos if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
   6924  1.1  christos 
   6925  1.4  christos cat >>confdefs.h <<_ACEOF
   6926  1.4  christos #define HAVE_STRUCT_STAT_ST_RDEV 1
   6927  1.4  christos _ACEOF
   6928  1.1  christos 
   6929  1.1  christos 
   6930  1.4  christos fi
   6931  1.1  christos 
   6932  1.1  christos 
   6933  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   6934  1.4  christos $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   6935  1.4  christos if test "${ac_cv_sys_largefile_source+set}" = set; then :
   6936  1.4  christos   $as_echo_n "(cached) " >&6
   6937  1.4  christos else
   6938  1.4  christos   while :; do
   6939  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6940  1.4  christos /* end confdefs.h.  */
   6941  1.4  christos #include <sys/types.h> /* for off_t */
   6942  1.4  christos      #include <stdio.h>
   6943  1.4  christos int
   6944  1.4  christos main ()
   6945  1.4  christos {
   6946  1.4  christos int (*fp) (FILE *, off_t, int) = fseeko;
   6947  1.4  christos      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   6948  1.4  christos   ;
   6949  1.4  christos   return 0;
   6950  1.4  christos }
   6951  1.4  christos _ACEOF
   6952  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   6953  1.4  christos   ac_cv_sys_largefile_source=no; break
   6954  1.4  christos fi
   6955  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   6956  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   6957  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6958  1.4  christos /* end confdefs.h.  */
   6959  1.4  christos #define _LARGEFILE_SOURCE 1
   6960  1.4  christos #include <sys/types.h> /* for off_t */
   6961  1.4  christos      #include <stdio.h>
   6962  1.4  christos int
   6963  1.4  christos main ()
   6964  1.4  christos {
   6965  1.4  christos int (*fp) (FILE *, off_t, int) = fseeko;
   6966  1.4  christos      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   6967  1.4  christos   ;
   6968  1.4  christos   return 0;
   6969  1.4  christos }
   6970  1.4  christos _ACEOF
   6971  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   6972  1.4  christos   ac_cv_sys_largefile_source=1; break
   6973  1.4  christos fi
   6974  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   6975  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   6976  1.4  christos   ac_cv_sys_largefile_source=unknown
   6977  1.4  christos   break
   6978  1.4  christos done
   6979  1.4  christos fi
   6980  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   6981  1.4  christos $as_echo "$ac_cv_sys_largefile_source" >&6; }
   6982  1.4  christos case $ac_cv_sys_largefile_source in #(
   6983  1.4  christos   no | unknown) ;;
   6984  1.4  christos   *)
   6985  1.4  christos cat >>confdefs.h <<_ACEOF
   6986  1.4  christos #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   6987  1.4  christos _ACEOF
   6988  1.4  christos ;;
   6989  1.4  christos esac
   6990  1.4  christos rm -rf conftest*
   6991  1.1  christos 
   6992  1.4  christos # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   6993  1.4  christos # in glibc 2.1.3, but that breaks too many other things.
   6994  1.4  christos # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   6995  1.4  christos if test $ac_cv_sys_largefile_source != unknown; then
   6996  1.1  christos 
   6997  1.4  christos $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   6998  1.1  christos 
   6999  1.4  christos fi
   7000  1.1  christos 
   7001  1.4  christos if test $ac_cv_func_fseeko = no; then
   7002  1.4  christos     case " $LIBOBJS " in
   7003  1.4  christos   *" fseeko.$ac_objext "* ) ;;
   7004  1.4  christos   *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
   7005  1.3  christos  ;;
   7006  1.1  christos esac
   7007  1.1  christos 
   7008  1.4  christos     case " $LIBOBJS " in
   7009  1.4  christos   *" ftello.$ac_objext "* ) ;;
   7010  1.4  christos   *) LIBOBJS="$LIBOBJS ftello.$ac_objext"
   7011  1.3  christos  ;;
   7012  1.1  christos esac
   7013  1.1  christos 
   7014  1.4  christos fi
   7015  1.1  christos 
   7016  1.4  christos # Replace functions with versions in lib/ when they can't be found.
   7017  1.4  christos for ac_func in \
   7018  1.4  christos 	waitpid \
   7019  1.1  christos 
   7020  1.4  christos do :
   7021  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7022  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7023  1.4  christos eval as_val=\$$as_ac_var
   7024  1.4  christos    if test "x$as_val" = x""yes; then :
   7025  1.4  christos   cat >>confdefs.h <<_ACEOF
   7026  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7027  1.4  christos _ACEOF
   7028  1.1  christos 
   7029  1.4  christos else
   7030  1.3  christos   case " $LIBOBJS " in
   7031  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   7032  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   7033  1.3  christos  ;;
   7034  1.1  christos esac
   7035  1.1  christos 
   7036  1.1  christos fi
   7037  1.4  christos done
   7038  1.1  christos 
   7039  1.1  christos 
   7040  1.1  christos 
   7041  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt optreset variable" >&5
   7042  1.4  christos $as_echo_n "checking for getopt optreset variable... " >&6; }
   7043  1.4  christos if test "${db_cv_optreset+set}" = set; then :
   7044  1.4  christos   $as_echo_n "(cached) " >&6
   7045  1.4  christos else
   7046  1.1  christos 
   7047  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7048  1.1  christos /* end confdefs.h.  */
   7049  1.4  christos #include <unistd.h>
   7050  1.4  christos int
   7051  1.4  christos main ()
   7052  1.4  christos {
   7053  1.4  christos extern int optreset; optreset = 1;
   7054  1.4  christos   ;
   7055  1.4  christos   return 0;
   7056  1.4  christos }
   7057  1.1  christos _ACEOF
   7058  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   7059  1.4  christos   db_cv_optreset=yes
   7060  1.1  christos else
   7061  1.4  christos   db_cv_optreset=no
   7062  1.4  christos fi
   7063  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   7064  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7065  1.1  christos fi
   7066  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_optreset" >&5
   7067  1.4  christos $as_echo "$db_cv_optreset" >&6; }
   7068  1.4  christos if test "$db_cv_optreset" = "yes"; then
   7069  1.4  christos 	$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
   7070  1.3  christos 
   7071  1.1  christos 
   7072  1.1  christos fi
   7073  1.1  christos 
   7074  1.4  christos #
   7075  1.4  christos # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
   7076  1.4  christos #
   7077  1.4  christos 
   7078  1.4  christos  for ac_header in fcntl.h
   7079  1.4  christos do :
   7080  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
   7081  1.4  christos if test "x$ac_cv_header_fcntl_h" = x""yes; then :
   7082  1.1  christos   cat >>confdefs.h <<_ACEOF
   7083  1.4  christos #define HAVE_FCNTL_H 1
   7084  1.1  christos _ACEOF
   7085  1.1  christos 
   7086  1.1  christos fi
   7087  1.1  christos 
   7088  1.1  christos done
   7089  1.1  christos 
   7090  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
   7091  1.4  christos $as_echo_n "checking whether select hangs on /dev/null fd when timeout is NULL... " >&6; }
   7092  1.4  christos if test "${ccvs_cv_func_select_hang+set}" = set; then :
   7093  1.3  christos   $as_echo_n "(cached) " >&6
   7094  1.1  christos else
   7095  1.4  christos   if test "$cross_compiling" = yes; then :
   7096  1.4  christos   	 ccvs_cv_func_select_hang=yes
   7097  1.4  christos else
   7098  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7099  1.1  christos /* end confdefs.h.  */
   7100  1.1  christos 
   7101  1.4  christos #include <stdio.h>
   7102  1.4  christos #include <sys/select.h>
   7103  1.4  christos #ifdef HAVE_FCNTL_H
   7104  1.4  christos # include <fcntl.h>
   7105  1.4  christos #endif
   7106  1.4  christos #include <errno.h>
   7107  1.4  christos int
   7108  1.4  christos main ()
   7109  1.4  christos {
   7110  1.1  christos 
   7111  1.4  christos   int numfds;
   7112  1.4  christos   fd_set readfds;
   7113  1.4  christos   struct timeval timeout;
   7114  1.4  christos   int fd = open ("/dev/null", O_RDONLY);
   7115  1.1  christos 
   7116  1.4  christos   FD_ZERO (&readfds);
   7117  1.4  christos   FD_SET (fd, &readfds);
   7118  1.4  christos   timeout.tv_sec = 0;
   7119  1.4  christos   timeout.tv_usec = 1;
   7120  1.1  christos 
   7121  1.4  christos   while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
   7122  1.4  christos 	 && errno == EINTR);
   7123  1.4  christos   return (numfds <= 0);
   7124  1.1  christos 
   7125  1.1  christos   ;
   7126  1.1  christos   return 0;
   7127  1.1  christos }
   7128  1.1  christos _ACEOF
   7129  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   7130  1.4  christos   ccvs_cv_func_select_hang=no
   7131  1.1  christos else
   7132  1.4  christos   ccvs_cv_func_select_hang=yes
   7133  1.4  christos fi
   7134  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7135  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7136  1.4  christos fi
   7137  1.4  christos 
   7138  1.1  christos 
   7139  1.1  christos fi
   7140  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_func_select_hang" >&5
   7141  1.4  christos $as_echo "$ccvs_cv_func_select_hang" >&6; }
   7142  1.4  christos   if test $ccvs_cv_func_select_hang = yes; then
   7143  1.3  christos 
   7144  1.4  christos   for ac_header in fcntl.h unistd.h
   7145  1.4  christos do :
   7146  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7147  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   7148  1.4  christos eval as_val=\$$as_ac_Header
   7149  1.4  christos    if test "x$as_val" = x""yes; then :
   7150  1.1  christos   cat >>confdefs.h <<_ACEOF
   7151  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7152  1.1  christos _ACEOF
   7153  1.1  christos 
   7154  1.1  christos fi
   7155  1.4  christos 
   7156  1.1  christos done
   7157  1.1  christos 
   7158  1.1  christos 
   7159  1.3  christos     case " $LIBOBJS " in
   7160  1.4  christos   *" sunos57-select.$ac_objext "* ) ;;
   7161  1.4  christos   *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext"
   7162  1.3  christos  ;;
   7163  1.1  christos esac
   7164  1.1  christos 
   7165  1.1  christos 
   7166  1.4  christos $as_echo "#define select rpl_select" >>confdefs.h
   7167  1.1  christos 
   7168  1.4  christos   fi
   7169  1.1  christos 
   7170  1.1  christos 
   7171  1.4  christos #
   7172  1.4  christos # Begin GNULIB stuff.
   7173  1.4  christos #
   7174  1.1  christos 
   7175  1.4  christos # Look for functions from GNULIB and replace with versions in lib/ when
   7176  1.4  christos # necessary.
   7177  1.4  christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   7178  1.4  christos # for constant arguments.  Useless!
   7179  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   7180  1.4  christos $as_echo_n "checking for working alloca.h... " >&6; }
   7181  1.4  christos if test "${ac_cv_working_alloca_h+set}" = set; then :
   7182  1.4  christos   $as_echo_n "(cached) " >&6
   7183  1.4  christos else
   7184  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7185  1.4  christos /* end confdefs.h.  */
   7186  1.4  christos #include <alloca.h>
   7187  1.4  christos int
   7188  1.4  christos main ()
   7189  1.4  christos {
   7190  1.4  christos char *p = (char *) alloca (2 * sizeof (int));
   7191  1.4  christos 			  if (p) return 0;
   7192  1.4  christos   ;
   7193  1.4  christos   return 0;
   7194  1.4  christos }
   7195  1.4  christos _ACEOF
   7196  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   7197  1.4  christos   ac_cv_working_alloca_h=yes
   7198  1.4  christos else
   7199  1.4  christos   ac_cv_working_alloca_h=no
   7200  1.4  christos fi
   7201  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   7202  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7203  1.4  christos fi
   7204  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   7205  1.4  christos $as_echo "$ac_cv_working_alloca_h" >&6; }
   7206  1.4  christos if test $ac_cv_working_alloca_h = yes; then
   7207  1.1  christos 
   7208  1.4  christos $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   7209  1.1  christos 
   7210  1.4  christos fi
   7211  1.1  christos 
   7212  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   7213  1.4  christos $as_echo_n "checking for alloca... " >&6; }
   7214  1.4  christos if test "${ac_cv_func_alloca_works+set}" = set; then :
   7215  1.4  christos   $as_echo_n "(cached) " >&6
   7216  1.4  christos else
   7217  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7218  1.4  christos /* end confdefs.h.  */
   7219  1.4  christos #ifdef __GNUC__
   7220  1.4  christos # define alloca __builtin_alloca
   7221  1.4  christos #else
   7222  1.4  christos # ifdef _MSC_VER
   7223  1.4  christos #  include <malloc.h>
   7224  1.4  christos #  define alloca _alloca
   7225  1.4  christos # else
   7226  1.4  christos #  ifdef HAVE_ALLOCA_H
   7227  1.4  christos #   include <alloca.h>
   7228  1.4  christos #  else
   7229  1.4  christos #   ifdef _AIX
   7230  1.4  christos  #pragma alloca
   7231  1.4  christos #   else
   7232  1.4  christos #    ifndef alloca /* predefined by HP cc +Olibcalls */
   7233  1.4  christos char *alloca ();
   7234  1.4  christos #    endif
   7235  1.4  christos #   endif
   7236  1.4  christos #  endif
   7237  1.4  christos # endif
   7238  1.4  christos #endif
   7239  1.1  christos 
   7240  1.4  christos int
   7241  1.4  christos main ()
   7242  1.4  christos {
   7243  1.4  christos char *p = (char *) alloca (1);
   7244  1.4  christos 				    if (p) return 0;
   7245  1.4  christos   ;
   7246  1.4  christos   return 0;
   7247  1.4  christos }
   7248  1.4  christos _ACEOF
   7249  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   7250  1.4  christos   ac_cv_func_alloca_works=yes
   7251  1.4  christos else
   7252  1.4  christos   ac_cv_func_alloca_works=no
   7253  1.4  christos fi
   7254  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   7255  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7256  1.4  christos fi
   7257  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   7258  1.4  christos $as_echo "$ac_cv_func_alloca_works" >&6; }
   7259  1.1  christos 
   7260  1.4  christos if test $ac_cv_func_alloca_works = yes; then
   7261  1.1  christos 
   7262  1.4  christos $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   7263  1.1  christos 
   7264  1.4  christos else
   7265  1.4  christos   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   7266  1.4  christos # that cause trouble.  Some versions do not even contain alloca or
   7267  1.4  christos # contain a buggy version.  If you still want to use their alloca,
   7268  1.4  christos # use ar to extract alloca.o from them instead of compiling alloca.c.
   7269  1.1  christos 
   7270  1.4  christos ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   7271  1.1  christos 
   7272  1.4  christos $as_echo "#define C_ALLOCA 1" >>confdefs.h
   7273  1.1  christos 
   7274  1.1  christos 
   7275  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   7276  1.4  christos $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   7277  1.4  christos if test "${ac_cv_os_cray+set}" = set; then :
   7278  1.4  christos   $as_echo_n "(cached) " >&6
   7279  1.4  christos else
   7280  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7281  1.4  christos /* end confdefs.h.  */
   7282  1.4  christos #if defined CRAY && ! defined CRAY2
   7283  1.4  christos webecray
   7284  1.4  christos #else
   7285  1.4  christos wenotbecray
   7286  1.4  christos #endif
   7287  1.1  christos 
   7288  1.4  christos _ACEOF
   7289  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7290  1.4  christos   $EGREP "webecray" >/dev/null 2>&1; then :
   7291  1.4  christos   ac_cv_os_cray=yes
   7292  1.4  christos else
   7293  1.4  christos   ac_cv_os_cray=no
   7294  1.4  christos fi
   7295  1.4  christos rm -f conftest*
   7296  1.1  christos 
   7297  1.4  christos fi
   7298  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   7299  1.4  christos $as_echo "$ac_cv_os_cray" >&6; }
   7300  1.4  christos if test $ac_cv_os_cray = yes; then
   7301  1.4  christos   for ac_func in _getb67 GETB67 getb67; do
   7302  1.4  christos     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7303  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7304  1.4  christos eval as_val=\$$as_ac_var
   7305  1.4  christos    if test "x$as_val" = x""yes; then :
   7306  1.1  christos 
   7307  1.4  christos cat >>confdefs.h <<_ACEOF
   7308  1.4  christos #define CRAY_STACKSEG_END $ac_func
   7309  1.1  christos _ACEOF
   7310  1.1  christos 
   7311  1.4  christos     break
   7312  1.4  christos fi
   7313  1.1  christos 
   7314  1.4  christos   done
   7315  1.4  christos fi
   7316  1.1  christos 
   7317  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   7318  1.4  christos $as_echo_n "checking stack direction for C alloca... " >&6; }
   7319  1.4  christos if test "${ac_cv_c_stack_direction+set}" = set; then :
   7320  1.4  christos   $as_echo_n "(cached) " >&6
   7321  1.4  christos else
   7322  1.4  christos   if test "$cross_compiling" = yes; then :
   7323  1.4  christos   ac_cv_c_stack_direction=0
   7324  1.4  christos else
   7325  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7326  1.4  christos /* end confdefs.h.  */
   7327  1.4  christos $ac_includes_default
   7328  1.4  christos int
   7329  1.4  christos find_stack_direction ()
   7330  1.4  christos {
   7331  1.4  christos   static char *addr = 0;
   7332  1.4  christos   auto char dummy;
   7333  1.4  christos   if (addr == 0)
   7334  1.4  christos     {
   7335  1.4  christos       addr = &dummy;
   7336  1.4  christos       return find_stack_direction ();
   7337  1.4  christos     }
   7338  1.4  christos   else
   7339  1.4  christos     return (&dummy > addr) ? 1 : -1;
   7340  1.4  christos }
   7341  1.1  christos 
   7342  1.4  christos int
   7343  1.4  christos main ()
   7344  1.4  christos {
   7345  1.4  christos   return find_stack_direction () < 0;
   7346  1.4  christos }
   7347  1.4  christos _ACEOF
   7348  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   7349  1.4  christos   ac_cv_c_stack_direction=1
   7350  1.4  christos else
   7351  1.4  christos   ac_cv_c_stack_direction=-1
   7352  1.4  christos fi
   7353  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7354  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7355  1.4  christos fi
   7356  1.1  christos 
   7357  1.4  christos fi
   7358  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   7359  1.4  christos $as_echo "$ac_cv_c_stack_direction" >&6; }
   7360  1.4  christos cat >>confdefs.h <<_ACEOF
   7361  1.4  christos #define STACK_DIRECTION $ac_cv_c_stack_direction
   7362  1.4  christos _ACEOF
   7363  1.1  christos 
   7364  1.1  christos 
   7365  1.4  christos fi
   7366  1.1  christos 
   7367  1.1  christos 
   7368  1.4  christos   for ac_header in stdlib.h
   7369  1.4  christos do :
   7370  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
   7371  1.4  christos if test "x$ac_cv_header_stdlib_h" = x""yes; then :
   7372  1.4  christos   cat >>confdefs.h <<_ACEOF
   7373  1.4  christos #define HAVE_STDLIB_H 1
   7374  1.4  christos _ACEOF
   7375  1.1  christos 
   7376  1.4  christos fi
   7377  1.1  christos 
   7378  1.4  christos done
   7379  1.1  christos 
   7380  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   7381  1.4  christos $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   7382  1.4  christos if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
   7383  1.3  christos   $as_echo_n "(cached) " >&6
   7384  1.1  christos else
   7385  1.4  christos   if test "$cross_compiling" = yes; then :
   7386  1.4  christos   ac_cv_func_malloc_0_nonnull=no
   7387  1.1  christos else
   7388  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7389  1.1  christos /* end confdefs.h.  */
   7390  1.4  christos #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   7391  1.4  christos # include <stdlib.h>
   7392  1.1  christos #else
   7393  1.4  christos char *malloc ();
   7394  1.1  christos #endif
   7395  1.1  christos 
   7396  1.1  christos int
   7397  1.1  christos main ()
   7398  1.1  christos {
   7399  1.4  christos return ! malloc (0);
   7400  1.4  christos   ;
   7401  1.4  christos   return 0;
   7402  1.1  christos }
   7403  1.1  christos _ACEOF
   7404  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   7405  1.4  christos   ac_cv_func_malloc_0_nonnull=yes
   7406  1.1  christos else
   7407  1.4  christos   ac_cv_func_malloc_0_nonnull=no
   7408  1.1  christos fi
   7409  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7410  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7411  1.1  christos fi
   7412  1.1  christos 
   7413  1.1  christos fi
   7414  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   7415  1.4  christos $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
   7416  1.4  christos if test $ac_cv_func_malloc_0_nonnull = yes; then :
   7417  1.4  christos   gl_cv_func_malloc_0_nonnull=1
   7418  1.4  christos else
   7419  1.4  christos   gl_cv_func_malloc_0_nonnull=0
   7420  1.4  christos fi
   7421  1.1  christos 
   7422  1.1  christos 
   7423  1.4  christos cat >>confdefs.h <<_ACEOF
   7424  1.4  christos #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
   7425  1.1  christos _ACEOF
   7426  1.1  christos 
   7427  1.1  christos 
   7428  1.1  christos 
   7429  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
   7430  1.4  christos $as_echo_n "checking for long long... " >&6; }
   7431  1.4  christos if test "${ac_cv_type_long_long+set}" = set; then :
   7432  1.4  christos   $as_echo_n "(cached) " >&6
   7433  1.4  christos else
   7434  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7435  1.4  christos /* end confdefs.h.  */
   7436  1.4  christos long long ll = 1LL; int i = 63;
   7437  1.4  christos int
   7438  1.4  christos main ()
   7439  1.4  christos {
   7440  1.4  christos long long llmax = (long long) -1;
   7441  1.4  christos      return ll << i | ll >> i | llmax / ll | llmax % ll;
   7442  1.4  christos   ;
   7443  1.4  christos   return 0;
   7444  1.4  christos }
   7445  1.1  christos _ACEOF
   7446  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   7447  1.4  christos   ac_cv_type_long_long=yes
   7448  1.4  christos else
   7449  1.4  christos   ac_cv_type_long_long=no
   7450  1.4  christos fi
   7451  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   7452  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   7453  1.4  christos fi
   7454  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
   7455  1.4  christos $as_echo "$ac_cv_type_long_long" >&6; }
   7456  1.4  christos   if test $ac_cv_type_long_long = yes; then
   7457  1.1  christos 
   7458  1.4  christos $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
   7459  1.1  christos 
   7460  1.1  christos   fi
   7461  1.1  christos 
   7462  1.1  christos 
   7463  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
   7464  1.4  christos $as_echo_n "checking for long double... " >&6; }
   7465  1.4  christos if test "${gt_cv_c_long_double+set}" = set; then :
   7466  1.3  christos   $as_echo_n "(cached) " >&6
   7467  1.1  christos else
   7468  1.4  christos   if test "$GCC" = yes; then
   7469  1.4  christos        gt_cv_c_long_double=yes
   7470  1.4  christos      else
   7471  1.4  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7472  1.1  christos /* end confdefs.h.  */
   7473  1.1  christos 
   7474  1.4  christos          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
   7475  1.4  christos          long double foo = 0.0;
   7476  1.4  christos          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
   7477  1.4  christos          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
   7478  1.3  christos 
   7479  1.4  christos int
   7480  1.4  christos main ()
   7481  1.4  christos {
   7482  1.1  christos 
   7483  1.4  christos   ;
   7484  1.4  christos   return 0;
   7485  1.4  christos }
   7486  1.1  christos _ACEOF
   7487  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7488  1.4  christos   gt_cv_c_long_double=yes
   7489  1.1  christos else
   7490  1.4  christos   gt_cv_c_long_double=no
   7491  1.4  christos fi
   7492  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7493  1.4  christos      fi
   7494  1.4  christos fi
   7495  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
   7496  1.4  christos $as_echo "$gt_cv_c_long_double" >&6; }
   7497  1.4  christos   if test $gt_cv_c_long_double = yes; then
   7498  1.1  christos 
   7499  1.4  christos $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   7500  1.3  christos 
   7501  1.4  christos   fi
   7502  1.1  christos 
   7503  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
   7504  1.4  christos $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
   7505  1.4  christos if test "${gl_cv_c_restrict+set}" = set; then :
   7506  1.3  christos   $as_echo_n "(cached) " >&6
   7507  1.1  christos else
   7508  1.4  christos   gl_cv_c_restrict=no
   7509  1.4  christos    # Try the official restrict keyword, then gcc's __restrict, and
   7510  1.4  christos    # the less common variants.
   7511  1.4  christos    for ac_kw in restrict __restrict __restrict__ _Restrict; do
   7512  1.4  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7513  1.4  christos /* end confdefs.h.  */
   7514  1.4  christos float * $ac_kw x;
   7515  1.4  christos _ACEOF
   7516  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7517  1.4  christos   gl_cv_c_restrict=$ac_kw; break
   7518  1.4  christos fi
   7519  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7520  1.4  christos    done
   7521  1.4  christos 
   7522  1.1  christos fi
   7523  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_restrict" >&5
   7524  1.4  christos $as_echo "$gl_cv_c_restrict" >&6; }
   7525  1.4  christos  case $gl_cv_c_restrict in
   7526  1.4  christos    restrict) ;;
   7527  1.4  christos    no)
   7528  1.4  christos $as_echo "#define restrict /**/" >>confdefs.h
   7529  1.4  christos  ;;
   7530  1.4  christos    *)  cat >>confdefs.h <<_ACEOF
   7531  1.4  christos #define restrict $gl_cv_c_restrict
   7532  1.1  christos _ACEOF
   7533  1.4  christos  ;;
   7534  1.4  christos  esac
   7535  1.1  christos 
   7536  1.1  christos 
   7537  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
   7538  1.4  christos $as_echo_n "checking for IPv4 sockets... " >&6; }
   7539  1.4  christos   if test "${gl_cv_socket_ipv4+set}" = set; then :
   7540  1.3  christos   $as_echo_n "(cached) " >&6
   7541  1.1  christos else
   7542  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7543  1.4  christos /* end confdefs.h.  */
   7544  1.4  christos #include <sys/types.h>
   7545  1.4  christos #include <sys/socket.h>
   7546  1.4  christos #include <netinet/in.h>
   7547  1.4  christos int
   7548  1.4  christos main ()
   7549  1.4  christos {
   7550  1.4  christos int x = AF_INET; struct in_addr y; struct sockaddr_in z;
   7551  1.4  christos   ;
   7552  1.4  christos   return 0;
   7553  1.4  christos }
   7554  1.1  christos _ACEOF
   7555  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7556  1.4  christos   gl_cv_socket_ipv4=yes
   7557  1.1  christos else
   7558  1.4  christos   gl_cv_socket_ipv4=no
   7559  1.1  christos fi
   7560  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7561  1.1  christos fi
   7562  1.1  christos 
   7563  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
   7564  1.4  christos $as_echo "$gl_cv_socket_ipv4" >&6; }
   7565  1.4  christos   if test $gl_cv_socket_ipv4 = yes; then
   7566  1.4  christos 
   7567  1.4  christos $as_echo "#define HAVE_IPV4 1" >>confdefs.h
   7568  1.4  christos 
   7569  1.1  christos   fi
   7570  1.1  christos 
   7571  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
   7572  1.4  christos $as_echo_n "checking for IPv6 sockets... " >&6; }
   7573  1.4  christos   if test "${gl_cv_socket_ipv6+set}" = set; then :
   7574  1.3  christos   $as_echo_n "(cached) " >&6
   7575  1.1  christos else
   7576  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7577  1.1  christos /* end confdefs.h.  */
   7578  1.4  christos #include <sys/types.h>
   7579  1.4  christos #include <sys/socket.h>
   7580  1.4  christos #include <netinet/in.h>
   7581  1.1  christos int
   7582  1.1  christos main ()
   7583  1.1  christos {
   7584  1.4  christos int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
   7585  1.1  christos   ;
   7586  1.1  christos   return 0;
   7587  1.1  christos }
   7588  1.1  christos _ACEOF
   7589  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7590  1.4  christos   gl_cv_socket_ipv6=yes
   7591  1.1  christos else
   7592  1.4  christos   gl_cv_socket_ipv6=no
   7593  1.1  christos fi
   7594  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7595  1.1  christos fi
   7596  1.3  christos 
   7597  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
   7598  1.4  christos $as_echo "$gl_cv_socket_ipv6" >&6; }
   7599  1.4  christos   if test $gl_cv_socket_ipv6 = yes; then
   7600  1.3  christos 
   7601  1.4  christos $as_echo "#define HAVE_IPV6 1" >>confdefs.h
   7602  1.1  christos 
   7603  1.1  christos   fi
   7604  1.1  christos 
   7605  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   7606  1.4  christos $as_echo_n "checking for inline... " >&6; }
   7607  1.4  christos if test "${ac_cv_c_inline+set}" = set; then :
   7608  1.4  christos   $as_echo_n "(cached) " >&6
   7609  1.4  christos else
   7610  1.4  christos   ac_cv_c_inline=no
   7611  1.4  christos for ac_kw in inline __inline__ __inline; do
   7612  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7613  1.4  christos /* end confdefs.h.  */
   7614  1.4  christos #ifndef __cplusplus
   7615  1.4  christos typedef int foo_t;
   7616  1.4  christos static $ac_kw foo_t static_foo () {return 0; }
   7617  1.4  christos $ac_kw foo_t foo () {return 0; }
   7618  1.4  christos #endif
   7619  1.1  christos 
   7620  1.4  christos _ACEOF
   7621  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7622  1.4  christos   ac_cv_c_inline=$ac_kw
   7623  1.4  christos fi
   7624  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7625  1.4  christos   test "$ac_cv_c_inline" != no && break
   7626  1.4  christos done
   7627  1.1  christos 
   7628  1.4  christos fi
   7629  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   7630  1.4  christos $as_echo "$ac_cv_c_inline" >&6; }
   7631  1.1  christos 
   7632  1.4  christos case $ac_cv_c_inline in
   7633  1.4  christos   inline | yes) ;;
   7634  1.4  christos   *)
   7635  1.4  christos     case $ac_cv_c_inline in
   7636  1.4  christos       no) ac_val=;;
   7637  1.4  christos       *) ac_val=$ac_cv_c_inline;;
   7638  1.4  christos     esac
   7639  1.4  christos     cat >>confdefs.h <<_ACEOF
   7640  1.4  christos #ifndef __cplusplus
   7641  1.4  christos #define inline $ac_val
   7642  1.4  christos #endif
   7643  1.4  christos _ACEOF
   7644  1.4  christos     ;;
   7645  1.1  christos esac
   7646  1.1  christos 
   7647  1.1  christos 
   7648  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
   7649  1.4  christos $as_echo_n "checking for library containing getaddrinfo... " >&6; }
   7650  1.4  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   7651  1.3  christos   $as_echo_n "(cached) " >&6
   7652  1.1  christos else
   7653  1.4  christos   ac_func_search_save_LIBS=$LIBS
   7654  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7655  1.1  christos /* end confdefs.h.  */
   7656  1.4  christos 
   7657  1.4  christos /* Override any GCC internal prototype to avoid an error.
   7658  1.4  christos    Use char because int might match the return type of a GCC
   7659  1.4  christos    builtin and then its argument prototype would still apply.  */
   7660  1.4  christos #ifdef __cplusplus
   7661  1.4  christos extern "C"
   7662  1.4  christos #endif
   7663  1.4  christos char getaddrinfo ();
   7664  1.4  christos int
   7665  1.4  christos main ()
   7666  1.4  christos {
   7667  1.4  christos return getaddrinfo ();
   7668  1.4  christos   ;
   7669  1.4  christos   return 0;
   7670  1.4  christos }
   7671  1.1  christos _ACEOF
   7672  1.4  christos for ac_lib in '' nsl socket; do
   7673  1.4  christos   if test -z "$ac_lib"; then
   7674  1.4  christos     ac_res="none required"
   7675  1.4  christos   else
   7676  1.4  christos     ac_res=-l$ac_lib
   7677  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7678  1.4  christos   fi
   7679  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   7680  1.4  christos   ac_cv_search_getaddrinfo=$ac_res
   7681  1.4  christos fi
   7682  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   7683  1.4  christos     conftest$ac_exeext
   7684  1.4  christos   if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   7685  1.4  christos   break
   7686  1.1  christos fi
   7687  1.4  christos done
   7688  1.4  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   7689  1.3  christos 
   7690  1.1  christos else
   7691  1.4  christos   ac_cv_search_getaddrinfo=no
   7692  1.4  christos fi
   7693  1.4  christos rm conftest.$ac_ext
   7694  1.4  christos LIBS=$ac_func_search_save_LIBS
   7695  1.1  christos fi
   7696  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
   7697  1.4  christos $as_echo "$ac_cv_search_getaddrinfo" >&6; }
   7698  1.4  christos ac_res=$ac_cv_search_getaddrinfo
   7699  1.4  christos if test "$ac_res" != no; then :
   7700  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7701  1.3  christos 
   7702  1.1  christos fi
   7703  1.1  christos 
   7704  1.4  christos   for ac_func in getaddrinfo gai_strerror
   7705  1.4  christos do :
   7706  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7707  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7708  1.4  christos eval as_val=\$$as_ac_var
   7709  1.4  christos    if test "x$as_val" = x""yes; then :
   7710  1.1  christos   cat >>confdefs.h <<_ACEOF
   7711  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7712  1.1  christos _ACEOF
   7713  1.1  christos 
   7714  1.4  christos else
   7715  1.4  christos   case " $LIBOBJS " in
   7716  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   7717  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   7718  1.4  christos  ;;
   7719  1.4  christos esac
   7720  1.4  christos 
   7721  1.1  christos fi
   7722  1.4  christos done
   7723  1.4  christos 
   7724  1.4  christos 
   7725  1.4  christos 
   7726  1.4  christos 
   7727  1.4  christos 
   7728  1.4  christos 
   7729  1.1  christos 
   7730  1.1  christos 
   7731  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
   7732  1.4  christos $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   7733  1.4  christos if test "${ac_cv_header_stdbool_h+set}" = set; then :
   7734  1.3  christos   $as_echo_n "(cached) " >&6
   7735  1.1  christos else
   7736  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7737  1.1  christos /* end confdefs.h.  */
   7738  1.4  christos 
   7739  1.4  christos 	  #include <stdbool.h>
   7740  1.4  christos 	  #ifndef bool
   7741  1.4  christos 	   "error: bool is not defined"
   7742  1.4  christos 	  #endif
   7743  1.4  christos 	  #ifndef false
   7744  1.4  christos 	   "error: false is not defined"
   7745  1.4  christos 	  #endif
   7746  1.4  christos 	  #if false
   7747  1.4  christos 	   "error: false is not 0"
   7748  1.4  christos 	  #endif
   7749  1.4  christos 	  #ifndef true
   7750  1.4  christos 	   "error: true is not defined"
   7751  1.4  christos 	  #endif
   7752  1.4  christos 	  #if true != 1
   7753  1.4  christos 	   "error: true is not 1"
   7754  1.4  christos 	  #endif
   7755  1.4  christos 	  #ifndef __bool_true_false_are_defined
   7756  1.4  christos 	   "error: __bool_true_false_are_defined is not defined"
   7757  1.4  christos 	  #endif
   7758  1.4  christos 
   7759  1.4  christos 	  struct s { _Bool s: 1; _Bool t; } s;
   7760  1.4  christos 
   7761  1.4  christos 	  char a[true == 1 ? 1 : -1];
   7762  1.4  christos 	  char b[false == 0 ? 1 : -1];
   7763  1.4  christos 	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   7764  1.4  christos 	  char d[(bool) -0.5 == true ? 1 : -1];
   7765  1.4  christos 	  bool e = &s;
   7766  1.4  christos 	  char f[(_Bool) -0.0 == false ? 1 : -1];
   7767  1.4  christos 	  char g[true];
   7768  1.4  christos 	  char h[sizeof (_Bool)];
   7769  1.4  christos 	  char i[sizeof s.t];
   7770  1.4  christos 	  enum { j = false, k = true, l = false * true, m = true * 256 };
   7771  1.4  christos 	  _Bool n[m];
   7772  1.4  christos 	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   7773  1.1  christos 
   7774  1.1  christos int
   7775  1.1  christos main ()
   7776  1.1  christos {
   7777  1.4  christos 
   7778  1.4  christos 	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
   7779  1.4  christos 		  + !m + !n + !o);
   7780  1.4  christos 
   7781  1.1  christos   ;
   7782  1.1  christos   return 0;
   7783  1.1  christos }
   7784  1.1  christos _ACEOF
   7785  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7786  1.4  christos   ac_cv_header_stdbool_h=yes
   7787  1.1  christos else
   7788  1.4  christos   ac_cv_header_stdbool_h=no
   7789  1.1  christos fi
   7790  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7791  1.1  christos fi
   7792  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
   7793  1.4  christos $as_echo "$ac_cv_header_stdbool_h" >&6; }
   7794  1.4  christos    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
   7795  1.4  christos if test "x$ac_cv_type__Bool" = x""yes; then :
   7796  1.4  christos 
   7797  1.4  christos cat >>confdefs.h <<_ACEOF
   7798  1.4  christos #define HAVE__BOOL 1
   7799  1.4  christos _ACEOF
   7800  1.3  christos 
   7801  1.3  christos 
   7802  1.1  christos fi
   7803  1.1  christos 
   7804  1.4  christos    if test $ac_cv_header_stdbool_h = yes; then
   7805  1.4  christos 
   7806  1.4  christos $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
   7807  1.4  christos 
   7808  1.4  christos    fi
   7809  1.1  christos 
   7810  1.1  christos 
   7811  1.1  christos 
   7812  1.1  christos 
   7813  1.4  christos   for ac_func in $gl_func_list
   7814  1.4  christos do :
   7815  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7816  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7817  1.4  christos eval as_val=\$$as_ac_var
   7818  1.4  christos    if test "x$as_val" = x""yes; then :
   7819  1.4  christos   cat >>confdefs.h <<_ACEOF
   7820  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7821  1.1  christos _ACEOF
   7822  1.1  christos 
   7823  1.1  christos fi
   7824  1.4  christos done
   7825  1.4  christos 
   7826  1.4  christos 
   7827  1.4  christos 
   7828  1.1  christos 
   7829  1.1  christos 
   7830  1.1  christos 
   7831  1.1  christos 
   7832  1.1  christos 
   7833  1.1  christos 
   7834  1.4  christos   for ac_header in $gl_header_list
   7835  1.4  christos do :
   7836  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7837  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   7838  1.4  christos eval as_val=\$$as_ac_Header
   7839  1.4  christos    if test "x$as_val" = x""yes; then :
   7840  1.4  christos   cat >>confdefs.h <<_ACEOF
   7841  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7842  1.4  christos _ACEOF
   7843  1.1  christos 
   7844  1.4  christos fi
   7845  1.1  christos 
   7846  1.4  christos done
   7847  1.1  christos 
   7848  1.1  christos 
   7849  1.1  christos 
   7850  1.1  christos 
   7851  1.1  christos 
   7852  1.1  christos 
   7853  1.1  christos 
   7854  1.4  christos   case " $LIBOBJS " in
   7855  1.4  christos   *" save-cwd.$ac_objext "* ) ;;
   7856  1.4  christos   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
   7857  1.3  christos  ;;
   7858  1.1  christos esac
   7859  1.1  christos 
   7860  1.1  christos 
   7861  1.1  christos   :
   7862  1.1  christos 
   7863  1.1  christos 
   7864  1.1  christos 
   7865  1.1  christos 
   7866  1.1  christos 
   7867  1.1  christos 
   7868  1.4  christos   :
   7869  1.1  christos 
   7870  1.1  christos 
   7871  1.1  christos 
   7872  1.1  christos 
   7873  1.1  christos 
   7874  1.1  christos 
   7875  1.1  christos 
   7876  1.4  christos       ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
   7877  1.4  christos if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
   7878  1.4  christos   ac_have_decl=1
   7879  1.1  christos else
   7880  1.4  christos   ac_have_decl=0
   7881  1.4  christos fi
   7882  1.4  christos 
   7883  1.4  christos cat >>confdefs.h <<_ACEOF
   7884  1.4  christos #define HAVE_DECL_MEMRCHR $ac_have_decl
   7885  1.1  christos _ACEOF
   7886  1.1  christos 
   7887  1.1  christos 
   7888  1.1  christos 
   7889  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
   7890  1.4  christos $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
   7891  1.4  christos if test "${ac_cv_win_or_dos+set}" = set; then :
   7892  1.4  christos   $as_echo_n "(cached) " >&6
   7893  1.4  christos else
   7894  1.1  christos 
   7895  1.4  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7896  1.4  christos /* end confdefs.h.  */
   7897  1.1  christos 
   7898  1.1  christos int
   7899  1.1  christos main ()
   7900  1.1  christos {
   7901  1.4  christos #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
   7902  1.4  christos neither MSDOS nor Windows
   7903  1.4  christos #endif
   7904  1.1  christos   ;
   7905  1.1  christos   return 0;
   7906  1.1  christos }
   7907  1.1  christos _ACEOF
   7908  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7909  1.4  christos   ac_cv_win_or_dos=yes
   7910  1.1  christos else
   7911  1.4  christos   ac_cv_win_or_dos=no
   7912  1.4  christos fi
   7913  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7914  1.1  christos 
   7915  1.1  christos fi
   7916  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
   7917  1.4  christos $as_echo "$ac_cv_win_or_dos" >&6; }
   7918  1.4  christos 
   7919  1.4  christos     if test x"$ac_cv_win_or_dos" = xyes; then
   7920  1.4  christos       ac_fs_accepts_drive_letter_prefix=1
   7921  1.4  christos       ac_fs_backslash_is_file_name_separator=1
   7922  1.4  christos     else
   7923  1.4  christos       ac_fs_accepts_drive_letter_prefix=0
   7924  1.4  christos       ac_fs_backslash_is_file_name_separator=0
   7925  1.4  christos     fi
   7926  1.4  christos 
   7927  1.4  christos 
   7928  1.4  christos 
   7929  1.4  christos 
   7930  1.4  christos cat >>confdefs.h <<_ACEOF
   7931  1.4  christos #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
   7932  1.4  christos _ACEOF
   7933  1.4  christos 
   7934  1.4  christos 
   7935  1.4  christos 
   7936  1.4  christos 
   7937  1.4  christos 
   7938  1.4  christos cat >>confdefs.h <<_ACEOF
   7939  1.4  christos #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
   7940  1.4  christos _ACEOF
   7941  1.3  christos 
   7942  1.4  christos 
   7943  1.4  christos ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   7944  1.4  christos if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
   7945  1.4  christos   ac_have_decl=1
   7946  1.4  christos else
   7947  1.4  christos   ac_have_decl=0
   7948  1.1  christos fi
   7949  1.4  christos 
   7950  1.4  christos cat >>confdefs.h <<_ACEOF
   7951  1.4  christos #define HAVE_DECL_STRERROR_R $ac_have_decl
   7952  1.4  christos _ACEOF
   7953  1.4  christos 
   7954  1.4  christos for ac_func in strerror_r
   7955  1.4  christos do :
   7956  1.4  christos   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
   7957  1.4  christos if test "x$ac_cv_func_strerror_r" = x""yes; then :
   7958  1.1  christos   cat >>confdefs.h <<_ACEOF
   7959  1.4  christos #define HAVE_STRERROR_R 1
   7960  1.1  christos _ACEOF
   7961  1.1  christos 
   7962  1.1  christos fi
   7963  1.1  christos done
   7964  1.1  christos 
   7965  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
   7966  1.4  christos $as_echo_n "checking whether strerror_r returns char *... " >&6; }
   7967  1.4  christos if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
   7968  1.4  christos   $as_echo_n "(cached) " >&6
   7969  1.4  christos else
   7970  1.1  christos 
   7971  1.4  christos     ac_cv_func_strerror_r_char_p=no
   7972  1.4  christos     if test $ac_cv_have_decl_strerror_r = yes; then
   7973  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7974  1.4  christos /* end confdefs.h.  */
   7975  1.4  christos $ac_includes_default
   7976  1.4  christos int
   7977  1.4  christos main ()
   7978  1.4  christos {
   7979  1.1  christos 
   7980  1.4  christos 	  char buf[100];
   7981  1.4  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   7982  1.4  christos 	  char *p = strerror_r (0, buf, sizeof buf);
   7983  1.4  christos 	  return !p || x;
   7984  1.1  christos 
   7985  1.4  christos   ;
   7986  1.4  christos   return 0;
   7987  1.4  christos }
   7988  1.4  christos _ACEOF
   7989  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   7990  1.4  christos   ac_cv_func_strerror_r_char_p=yes
   7991  1.4  christos fi
   7992  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7993  1.4  christos     else
   7994  1.4  christos       # strerror_r is not declared.  Choose between
   7995  1.4  christos       # systems that have relatively inaccessible declarations for the
   7996  1.4  christos       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   7997  1.4  christos       # former has a strerror_r that returns char*, while the latter
   7998  1.4  christos       # has a strerror_r that returns `int'.
   7999  1.4  christos       # This test should segfault on the DEC system.
   8000  1.4  christos       if test "$cross_compiling" = yes; then :
   8001  1.4  christos   :
   8002  1.1  christos else
   8003  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8004  1.1  christos /* end confdefs.h.  */
   8005  1.1  christos $ac_includes_default
   8006  1.4  christos 	extern char *strerror_r ();
   8007  1.4  christos int
   8008  1.4  christos main ()
   8009  1.4  christos {
   8010  1.4  christos char buf[100];
   8011  1.4  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   8012  1.4  christos 	  return ! isalpha (x);
   8013  1.4  christos   ;
   8014  1.4  christos   return 0;
   8015  1.4  christos }
   8016  1.1  christos _ACEOF
   8017  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   8018  1.4  christos   ac_cv_func_strerror_r_char_p=yes
   8019  1.1  christos fi
   8020  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8021  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8022  1.1  christos fi
   8023  1.3  christos 
   8024  1.4  christos     fi
   8025  1.1  christos 
   8026  1.1  christos fi
   8027  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
   8028  1.4  christos $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
   8029  1.4  christos if test $ac_cv_func_strerror_r_char_p = yes; then
   8030  1.1  christos 
   8031  1.4  christos $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
   8032  1.1  christos 
   8033  1.1  christos fi
   8034  1.1  christos 
   8035  1.1  christos 
   8036  1.1  christos 
   8037  1.1  christos 
   8038  1.1  christos 
   8039  1.1  christos 
   8040  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
   8041  1.4  christos $as_echo_n "checking for mbstate_t... " >&6; }
   8042  1.4  christos if test "${ac_cv_type_mbstate_t+set}" = set; then :
   8043  1.3  christos   $as_echo_n "(cached) " >&6
   8044  1.1  christos else
   8045  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8046  1.1  christos /* end confdefs.h.  */
   8047  1.4  christos $ac_includes_default
   8048  1.4  christos #	    include <wchar.h>
   8049  1.1  christos int
   8050  1.1  christos main ()
   8051  1.1  christos {
   8052  1.4  christos mbstate_t x; return sizeof x;
   8053  1.1  christos   ;
   8054  1.1  christos   return 0;
   8055  1.1  christos }
   8056  1.1  christos _ACEOF
   8057  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8058  1.4  christos   ac_cv_type_mbstate_t=yes
   8059  1.1  christos else
   8060  1.4  christos   ac_cv_type_mbstate_t=no
   8061  1.1  christos fi
   8062  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8063  1.1  christos fi
   8064  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
   8065  1.4  christos $as_echo "$ac_cv_type_mbstate_t" >&6; }
   8066  1.4  christos    if test $ac_cv_type_mbstate_t = yes; then
   8067  1.1  christos 
   8068  1.4  christos $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
   8069  1.1  christos 
   8070  1.4  christos    else
   8071  1.1  christos 
   8072  1.4  christos $as_echo "#define mbstate_t int" >>confdefs.h
   8073  1.1  christos 
   8074  1.4  christos    fi
   8075  1.1  christos 
   8076  1.1  christos 
   8077  1.1  christos 
   8078  1.1  christos 
   8079  1.4  christos   :
   8080  1.1  christos 
   8081  1.1  christos 
   8082  1.1  christos 
   8083  1.1  christos 
   8084  1.1  christos 
   8085  1.4  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
   8086  1.4  christos $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
   8087  1.4  christos if test "${gl_cv_func_getcwd_null+set}" = set; then :
   8088  1.3  christos   $as_echo_n "(cached) " >&6
   8089  1.1  christos else
   8090  1.4  christos   if test "$cross_compiling" = yes; then :
   8091  1.4  christos   gl_cv_func_getcwd_null=no
   8092  1.4  christos else
   8093  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8094  1.4  christos /* end confdefs.h.  */
   8095  1.4  christos 
   8096  1.4  christos #	 include <stdlib.h>
   8097  1.4  christos #	 ifdef HAVE_UNISTD_H
   8098  1.4  christos #	  include <unistd.h>
   8099  1.4  christos #	 endif
   8100  1.4  christos #	 ifndef getcwd
   8101  1.4  christos 	 char *getcwd ();
   8102  1.4  christos #	 endif
   8103  1.4  christos 	 int
   8104  1.4  christos 	 main ()
   8105  1.4  christos 	 {
   8106  1.4  christos 	   if (chdir ("/") != 0)
   8107  1.4  christos 	     exit (1);
   8108  1.4  christos 	   else
   8109  1.4  christos 	     {
   8110  1.4  christos 	       char *f = getcwd (NULL, 0);
   8111  1.4  christos 	       exit (! (f && f[0] == '/' && !f[1]));
   8112  1.4  christos 	     }
   8113  1.4  christos 	 }
   8114  1.1  christos _ACEOF
   8115  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   8116  1.4  christos   gl_cv_func_getcwd_null=yes
   8117  1.4  christos else
   8118  1.4  christos   gl_cv_func_getcwd_null=no
   8119  1.4  christos fi
   8120  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8121  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8122  1.4  christos fi
   8123  1.4  christos 
   8124  1.4  christos fi
   8125  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
   8126  1.4  christos $as_echo "$gl_cv_func_getcwd_null" >&6; }
   8127  1.4  christos 
   8128  1.4  christos 
   8129  1.4  christos       ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
   8130  1.4  christos if test "x$ac_cv_have_decl_getcwd" = x""yes; then :
   8131  1.4  christos   ac_have_decl=1
   8132  1.4  christos else
   8133  1.4  christos   ac_have_decl=0
   8134  1.4  christos fi
   8135  1.1  christos 
   8136  1.4  christos cat >>confdefs.h <<_ACEOF
   8137  1.4  christos #define HAVE_DECL_GETCWD $ac_have_decl
   8138  1.4  christos _ACEOF
   8139  1.1  christos 
   8140  1.1  christos 
   8141  1.4  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
   8142  1.4  christos $as_echo_n "checking for d_ino member in directory struct... " >&6; }
   8143  1.4  christos if test "${jm_cv_struct_dirent_d_ino+set}" = set; then :
   8144  1.4  christos   $as_echo_n "(cached) " >&6
   8145  1.4  christos else
   8146  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8147  1.4  christos /* end confdefs.h.  */
   8148  1.1  christos 
   8149  1.4  christos #include <sys/types.h>
   8150  1.4  christos #ifdef HAVE_DIRENT_H
   8151  1.4  christos # include <dirent.h>
   8152  1.4  christos #else /* not HAVE_DIRENT_H */
   8153  1.4  christos # define dirent direct
   8154  1.4  christos # ifdef HAVE_SYS_NDIR_H
   8155  1.4  christos #  include <sys/ndir.h>
   8156  1.4  christos # endif /* HAVE_SYS_NDIR_H */
   8157  1.4  christos # ifdef HAVE_SYS_DIR_H
   8158  1.4  christos #  include <sys/dir.h>
   8159  1.4  christos # endif /* HAVE_SYS_DIR_H */
   8160  1.4  christos # ifdef HAVE_NDIR_H
   8161  1.4  christos #  include <ndir.h>
   8162  1.4  christos # endif /* HAVE_NDIR_H */
   8163  1.4  christos #endif /* HAVE_DIRENT_H */
   8164  1.1  christos 
   8165  1.1  christos int
   8166  1.1  christos main ()
   8167  1.1  christos {
   8168  1.4  christos struct dirent dp; dp.d_ino = 0;
   8169  1.1  christos   ;
   8170  1.1  christos   return 0;
   8171  1.1  christos }
   8172  1.1  christos _ACEOF
   8173  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   8174  1.4  christos   jm_cv_struct_dirent_d_ino=yes
   8175  1.1  christos else
   8176  1.4  christos   jm_cv_struct_dirent_d_ino=no
   8177  1.1  christos fi
   8178  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   8179  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   8180  1.1  christos 
   8181  1.1  christos 
   8182  1.4  christos fi
   8183  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_struct_dirent_d_ino" >&5
   8184  1.4  christos $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
   8185  1.4  christos    if test $jm_cv_struct_dirent_d_ino = yes; then
   8186  1.1  christos 
   8187  1.4  christos $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
   8188  1.1  christos 
   8189  1.4  christos    fi
   8190  1.1  christos 
   8191  1.1  christos 
   8192  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   8193  1.4  christos $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   8194  1.4  christos if test "${ac_cv_header_time+set}" = set; then :
   8195  1.3  christos   $as_echo_n "(cached) " >&6
   8196  1.1  christos else
   8197  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8198  1.1  christos /* end confdefs.h.  */
   8199  1.4  christos #include <sys/types.h>
   8200  1.4  christos #include <sys/time.h>
   8201  1.4  christos #include <time.h>
   8202  1.1  christos 
   8203  1.1  christos int
   8204  1.1  christos main ()
   8205  1.1  christos {
   8206  1.4  christos if ((struct tm *) 0)
   8207  1.4  christos return 0;
   8208  1.1  christos   ;
   8209  1.1  christos   return 0;
   8210  1.1  christos }
   8211  1.1  christos _ACEOF
   8212  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8213  1.4  christos   ac_cv_header_time=yes
   8214  1.1  christos else
   8215  1.4  christos   ac_cv_header_time=no
   8216  1.4  christos fi
   8217  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8218  1.4  christos fi
   8219  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   8220  1.4  christos $as_echo "$ac_cv_header_time" >&6; }
   8221  1.4  christos if test $ac_cv_header_time = yes; then
   8222  1.4  christos 
   8223  1.4  christos $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   8224  1.1  christos 
   8225  1.1  christos fi
   8226  1.3  christos 
   8227  1.1  christos 
   8228  1.1  christos 
   8229  1.1  christos 
   8230  1.1  christos 
   8231  1.1  christos 
   8232  1.1  christos 
   8233  1.1  christos 
   8234  1.1  christos 
   8235  1.1  christos 
   8236  1.1  christos 
   8237  1.1  christos 
   8238  1.4  christos   :
   8239  1.4  christos 
   8240  1.4  christos 
   8241  1.4  christos 
   8242  1.1  christos 
   8243  1.1  christos 
   8244  1.1  christos 
   8245  1.1  christos 
   8246  1.3  christos 
   8247  1.3  christos 
   8248  1.1  christos 
   8249  1.4  christos   :
   8250  1.1  christos 
   8251  1.1  christos 
   8252  1.1  christos 
   8253  1.1  christos 
   8254  1.1  christos 
   8255  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
   8256  1.4  christos $as_echo_n "checking for struct timespec... " >&6; }
   8257  1.4  christos if test "${fu_cv_sys_struct_timespec+set}" = set; then :
   8258  1.3  christos   $as_echo_n "(cached) " >&6
   8259  1.1  christos else
   8260  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8261  1.1  christos /* end confdefs.h.  */
   8262  1.1  christos 
   8263  1.4  christos #      if TIME_WITH_SYS_TIME
   8264  1.4  christos #       include <sys/time.h>
   8265  1.4  christos #       include <time.h>
   8266  1.4  christos #      else
   8267  1.4  christos #       if HAVE_SYS_TIME_H
   8268  1.4  christos #        include <sys/time.h>
   8269  1.4  christos #       else
   8270  1.4  christos #        include <time.h>
   8271  1.4  christos #       endif
   8272  1.4  christos #      endif
   8273  1.1  christos 
   8274  1.1  christos int
   8275  1.1  christos main ()
   8276  1.1  christos {
   8277  1.4  christos static struct timespec x; x.tv_sec = x.tv_nsec;
   8278  1.1  christos   ;
   8279  1.1  christos   return 0;
   8280  1.1  christos }
   8281  1.1  christos _ACEOF
   8282  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8283  1.4  christos   fu_cv_sys_struct_timespec=yes
   8284  1.1  christos else
   8285  1.4  christos   fu_cv_sys_struct_timespec=no
   8286  1.1  christos fi
   8287  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8288  1.3  christos 
   8289  1.1  christos fi
   8290  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_struct_timespec" >&5
   8291  1.4  christos $as_echo "$fu_cv_sys_struct_timespec" >&6; }
   8292  1.1  christos 
   8293  1.4  christos   if test $fu_cv_sys_struct_timespec = yes; then
   8294  1.1  christos 
   8295  1.4  christos $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
   8296  1.1  christos 
   8297  1.1  christos   fi
   8298  1.1  christos 
   8299  1.1  christos 
   8300  1.1  christos 
   8301  1.1  christos 
   8302  1.4  christos   ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
   8303  1.4  christos "
   8304  1.4  christos if test "x$ac_cv_have_decl_nanosleep" = x""yes; then :
   8305  1.4  christos   ac_have_decl=1
   8306  1.4  christos else
   8307  1.4  christos   ac_have_decl=0
   8308  1.4  christos fi
   8309  1.4  christos 
   8310  1.4  christos cat >>confdefs.h <<_ACEOF
   8311  1.4  christos #define HAVE_DECL_NANOSLEEP $ac_have_decl
   8312  1.1  christos _ACEOF
   8313  1.1  christos 
   8314  1.1  christos 
   8315  1.4  christos   # expand $ac_aux_dir to an absolute path
   8316  1.4  christos   am_aux_dir=`cd $ac_aux_dir && pwd`
   8317  1.1  christos 
   8318  1.4  christos   # getdate.y works with bison only.
   8319  1.4  christos   : ${YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y"}
   8320  1.1  christos 
   8321  1.1  christos 
   8322  1.1  christos 
   8323  1.1  christos 
   8324  1.1  christos 
   8325  1.1  christos 
   8326  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
   8327  1.4  christos $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
   8328  1.4  christos if test "${ac_cv_struct_tm+set}" = set; then :
   8329  1.4  christos   $as_echo_n "(cached) " >&6
   8330  1.4  christos else
   8331  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8332  1.4  christos /* end confdefs.h.  */
   8333  1.4  christos #include <sys/types.h>
   8334  1.4  christos #include <time.h>
   8335  1.1  christos 
   8336  1.4  christos int
   8337  1.4  christos main ()
   8338  1.4  christos {
   8339  1.4  christos struct tm tm;
   8340  1.4  christos 				     int *p = &tm.tm_sec;
   8341  1.4  christos 				     return !p;
   8342  1.4  christos   ;
   8343  1.4  christos   return 0;
   8344  1.4  christos }
   8345  1.4  christos _ACEOF
   8346  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8347  1.4  christos   ac_cv_struct_tm=time.h
   8348  1.4  christos else
   8349  1.4  christos   ac_cv_struct_tm=sys/time.h
   8350  1.4  christos fi
   8351  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8352  1.4  christos fi
   8353  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
   8354  1.4  christos $as_echo "$ac_cv_struct_tm" >&6; }
   8355  1.4  christos if test $ac_cv_struct_tm = sys/time.h; then
   8356  1.1  christos 
   8357  1.4  christos $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
   8358  1.1  christos 
   8359  1.4  christos fi
   8360  1.1  christos 
   8361  1.1  christos 
   8362  1.4  christos   # dnl Persuade glibc <time.h> to declare these functions.
   8363  1.1  christos 
   8364  1.1  christos 
   8365  1.4  christos   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
   8366  1.4  christos   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
   8367  1.1  christos 
   8368  1.4  christos   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
   8369  1.4  christos   # programs in the package would end up linked with that potentially-shared
   8370  1.4  christos   # library, inducing unnecessary run-time overhead.
   8371  1.4  christos   gl_saved_libs=$LIBS
   8372  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   8373  1.4  christos $as_echo_n "checking for library containing clock_gettime... " >&6; }
   8374  1.4  christos if test "${ac_cv_search_clock_gettime+set}" = set; then :
   8375  1.3  christos   $as_echo_n "(cached) " >&6
   8376  1.1  christos else
   8377  1.4  christos   ac_func_search_save_LIBS=$LIBS
   8378  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8379  1.1  christos /* end confdefs.h.  */
   8380  1.1  christos 
   8381  1.3  christos /* Override any GCC internal prototype to avoid an error.
   8382  1.3  christos    Use char because int might match the return type of a GCC
   8383  1.3  christos    builtin and then its argument prototype would still apply.  */
   8384  1.1  christos #ifdef __cplusplus
   8385  1.1  christos extern "C"
   8386  1.1  christos #endif
   8387  1.4  christos char clock_gettime ();
   8388  1.1  christos int
   8389  1.1  christos main ()
   8390  1.1  christos {
   8391  1.4  christos return clock_gettime ();
   8392  1.1  christos   ;
   8393  1.1  christos   return 0;
   8394  1.1  christos }
   8395  1.1  christos _ACEOF
   8396  1.4  christos for ac_lib in '' rt posix4; do
   8397  1.4  christos   if test -z "$ac_lib"; then
   8398  1.4  christos     ac_res="none required"
   8399  1.4  christos   else
   8400  1.4  christos     ac_res=-l$ac_lib
   8401  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8402  1.4  christos   fi
   8403  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   8404  1.4  christos   ac_cv_search_clock_gettime=$ac_res
   8405  1.4  christos fi
   8406  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   8407  1.4  christos     conftest$ac_exeext
   8408  1.4  christos   if test "${ac_cv_search_clock_gettime+set}" = set; then :
   8409  1.4  christos   break
   8410  1.4  christos fi
   8411  1.4  christos done
   8412  1.4  christos if test "${ac_cv_search_clock_gettime+set}" = set; then :
   8413  1.4  christos 
   8414  1.1  christos else
   8415  1.4  christos   ac_cv_search_clock_gettime=no
   8416  1.4  christos fi
   8417  1.4  christos rm conftest.$ac_ext
   8418  1.4  christos LIBS=$ac_func_search_save_LIBS
   8419  1.4  christos fi
   8420  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   8421  1.4  christos $as_echo "$ac_cv_search_clock_gettime" >&6; }
   8422  1.4  christos ac_res=$ac_cv_search_clock_gettime
   8423  1.4  christos if test "$ac_res" != no; then :
   8424  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8425  1.4  christos   test "$ac_cv_search_clock_gettime" = "none required" ||
   8426  1.4  christos                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
   8427  1.4  christos fi
   8428  1.1  christos 
   8429  1.3  christos 
   8430  1.4  christos     for ac_func in clock_gettime clock_settime
   8431  1.4  christos do :
   8432  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8433  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   8434  1.4  christos eval as_val=\$$as_ac_var
   8435  1.4  christos    if test "x$as_val" = x""yes; then :
   8436  1.1  christos   cat >>confdefs.h <<_ACEOF
   8437  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8438  1.1  christos _ACEOF
   8439  1.1  christos 
   8440  1.1  christos fi
   8441  1.1  christos done
   8442  1.1  christos 
   8443  1.4  christos   LIBS=$gl_saved_libs
   8444  1.1  christos 
   8445  1.1  christos 
   8446  1.4  christos  ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
   8447  1.4  christos "
   8448  1.4  christos if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
   8449  1.1  christos 
   8450  1.4  christos $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
   8451  1.1  christos 
   8452  1.4  christos fi
   8453  1.1  christos 
   8454  1.1  christos 
   8455  1.1  christos 
   8456  1.4  christos       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
   8457  1.4  christos if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
   8458  1.4  christos   ac_have_decl=1
   8459  1.4  christos else
   8460  1.4  christos   ac_have_decl=0
   8461  1.4  christos fi
   8462  1.1  christos 
   8463  1.4  christos cat >>confdefs.h <<_ACEOF
   8464  1.4  christos #define HAVE_DECL_GETDELIM $ac_have_decl
   8465  1.4  christos _ACEOF
   8466  1.1  christos 
   8467  1.1  christos 
   8468  1.1  christos 
   8469  1.4  christos       ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
   8470  1.4  christos if test "x$ac_cv_have_decl_getlogin" = x""yes; then :
   8471  1.4  christos   ac_have_decl=1
   8472  1.4  christos else
   8473  1.4  christos   ac_have_decl=0
   8474  1.4  christos fi
   8475  1.1  christos 
   8476  1.4  christos cat >>confdefs.h <<_ACEOF
   8477  1.4  christos #define HAVE_DECL_GETLOGIN $ac_have_decl
   8478  1.1  christos _ACEOF
   8479  1.1  christos 
   8480  1.1  christos 
   8481  1.1  christos 
   8482  1.4  christos       ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
   8483  1.4  christos if test "x$ac_cv_have_decl_getlogin_r" = x""yes; then :
   8484  1.4  christos   ac_have_decl=1
   8485  1.4  christos else
   8486  1.4  christos   ac_have_decl=0
   8487  1.4  christos fi
   8488  1.4  christos 
   8489  1.4  christos cat >>confdefs.h <<_ACEOF
   8490  1.4  christos #define HAVE_DECL_GETLOGIN_R $ac_have_decl
   8491  1.4  christos _ACEOF
   8492  1.1  christos 
   8493  1.1  christos 
   8494  1.1  christos 
   8495  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
   8496  1.4  christos $as_echo_n "checking for ssize_t... " >&6; }
   8497  1.4  christos if test "${gt_cv_ssize_t+set}" = set; then :
   8498  1.3  christos   $as_echo_n "(cached) " >&6
   8499  1.1  christos else
   8500  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8501  1.1  christos /* end confdefs.h.  */
   8502  1.4  christos #include <sys/types.h>
   8503  1.1  christos int
   8504  1.1  christos main ()
   8505  1.1  christos {
   8506  1.4  christos int x = sizeof (ssize_t *) + sizeof (ssize_t);
   8507  1.1  christos   ;
   8508  1.1  christos   return 0;
   8509  1.1  christos }
   8510  1.1  christos _ACEOF
   8511  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8512  1.4  christos   gt_cv_ssize_t=yes
   8513  1.4  christos else
   8514  1.4  christos   gt_cv_ssize_t=no
   8515  1.4  christos fi
   8516  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8517  1.4  christos fi
   8518  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
   8519  1.4  christos $as_echo "$gt_cv_ssize_t" >&6; }
   8520  1.4  christos   if test $gt_cv_ssize_t = no; then
   8521  1.4  christos 
   8522  1.4  christos $as_echo "#define ssize_t int" >>confdefs.h
   8523  1.4  christos 
   8524  1.4  christos   fi
   8525  1.4  christos 
   8526  1.4  christos 
   8527  1.4  christos   if test -z "$GETOPT_H"; then
   8528  1.4  christos     for ac_header in getopt.h
   8529  1.4  christos do :
   8530  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
   8531  1.4  christos if test "x$ac_cv_header_getopt_h" = x""yes; then :
   8532  1.4  christos   cat >>confdefs.h <<_ACEOF
   8533  1.4  christos #define HAVE_GETOPT_H 1
   8534  1.4  christos _ACEOF
   8535  1.4  christos 
   8536  1.4  christos else
   8537  1.4  christos   GETOPT_H=getopt.h
   8538  1.4  christos fi
   8539  1.4  christos 
   8540  1.4  christos done
   8541  1.4  christos 
   8542  1.3  christos   fi
   8543  1.4  christos 
   8544  1.4  christos   if test -z "$GETOPT_H"; then
   8545  1.4  christos     for ac_func in getopt_long_only
   8546  1.4  christos do :
   8547  1.4  christos   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
   8548  1.4  christos if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
   8549  1.4  christos   cat >>confdefs.h <<_ACEOF
   8550  1.4  christos #define HAVE_GETOPT_LONG_ONLY 1
   8551  1.4  christos _ACEOF
   8552  1.4  christos 
   8553  1.1  christos else
   8554  1.4  christos   GETOPT_H=getopt.h
   8555  1.4  christos fi
   8556  1.4  christos done
   8557  1.1  christos 
   8558  1.4  christos   fi
   8559  1.3  christos 
   8560  1.4  christos       if test -z "$GETOPT_H"; then
   8561  1.4  christos     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
   8562  1.4  christos "
   8563  1.4  christos if test "x$ac_cv_have_decl_optreset" = x""yes; then :
   8564  1.4  christos   GETOPT_H=getopt.h
   8565  1.1  christos fi
   8566  1.1  christos 
   8567  1.4  christos   fi
   8568  1.4  christos 
   8569  1.4  christos       if test -z "$GETOPT_H"; then
   8570  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
   8571  1.4  christos $as_echo_n "checking for working GNU getopt function... " >&6; }
   8572  1.4  christos if test "${gl_cv_func_gnu_getopt+set}" = set; then :
   8573  1.4  christos   $as_echo_n "(cached) " >&6
   8574  1.4  christos else
   8575  1.4  christos   if test "$cross_compiling" = yes; then :
   8576  1.4  christos   	 	 	 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
   8577  1.4  christos "
   8578  1.4  christos if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
   8579  1.4  christos   gl_cv_func_gnu_getopt=no
   8580  1.4  christos else
   8581  1.4  christos   gl_cv_func_gnu_getopt=yes
   8582  1.3  christos fi
   8583  1.4  christos 
   8584  1.4  christos else
   8585  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8586  1.4  christos /* end confdefs.h.  */
   8587  1.4  christos #include <getopt.h>
   8588  1.4  christos int
   8589  1.4  christos main ()
   8590  1.4  christos {
   8591  1.4  christos 
   8592  1.4  christos 	     char *myargv[3];
   8593  1.4  christos 	     myargv[0] = "conftest";
   8594  1.4  christos 	     myargv[1] = "-+";
   8595  1.4  christos 	     myargv[2] = 0;
   8596  1.4  christos 	     return getopt (2, myargv, "+a") != '?';
   8597  1.4  christos 
   8598  1.4  christos   ;
   8599  1.4  christos   return 0;
   8600  1.4  christos }
   8601  1.4  christos _ACEOF
   8602  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   8603  1.4  christos   gl_cv_func_gnu_getopt=yes
   8604  1.1  christos else
   8605  1.4  christos   gl_cv_func_gnu_getopt=no
   8606  1.4  christos fi
   8607  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8608  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8609  1.1  christos fi
   8610  1.4  christos 
   8611  1.1  christos fi
   8612  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
   8613  1.4  christos $as_echo "$gl_cv_func_gnu_getopt" >&6; }
   8614  1.4  christos     if test "$gl_cv_func_gnu_getopt" = "no"; then
   8615  1.4  christos       GETOPT_H=getopt.h
   8616  1.4  christos     fi
   8617  1.4  christos   fi
   8618  1.1  christos 
   8619  1.1  christos 
   8620  1.1  christos 
   8621  1.1  christos 
   8622  1.1  christos 
   8623  1.1  christos 
   8624  1.1  christos 
   8625  1.4  christos       ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
   8626  1.4  christos if test "x$ac_cv_have_decl_getpass" = x""yes; then :
   8627  1.4  christos   ac_have_decl=1
   8628  1.4  christos else
   8629  1.4  christos   ac_have_decl=0
   8630  1.4  christos fi
   8631  1.1  christos 
   8632  1.4  christos cat >>confdefs.h <<_ACEOF
   8633  1.4  christos #define HAVE_DECL_GETPASS $ac_have_decl
   8634  1.4  christos _ACEOF
   8635  1.1  christos 
   8636  1.1  christos 
   8637  1.1  christos 
   8638  1.1  christos 
   8639  1.1  christos 
   8640  1.1  christos 
   8641  1.1  christos 
   8642  1.1  christos 
   8643  1.3  christos 
   8644  1.3  christos 
   8645  1.1  christos 
   8646  1.1  christos 
   8647  1.1  christos 
   8648  1.1  christos 
   8649  1.1  christos 
   8650  1.1  christos 
   8651  1.1  christos 
   8652  1.1  christos 
   8653  1.1  christos 
   8654  1.1  christos 
   8655  1.1  christos 
   8656  1.1  christos 
   8657  1.1  christos 
   8658  1.1  christos 
   8659  1.1  christos 
   8660  1.1  christos 
   8661  1.1  christos 
   8662  1.1  christos 
   8663  1.4  christos       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
   8664  1.4  christos if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
   8665  1.4  christos   ac_have_decl=1
   8666  1.4  christos else
   8667  1.4  christos   ac_have_decl=0
   8668  1.4  christos fi
   8669  1.1  christos 
   8670  1.4  christos cat >>confdefs.h <<_ACEOF
   8671  1.4  christos #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
   8672  1.4  christos _ACEOF
   8673  1.1  christos 
   8674  1.1  christos 
   8675  1.1  christos 
   8676  1.4  christos       ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
   8677  1.4  christos if test "x$ac_cv_have_decl_flockfile" = x""yes; then :
   8678  1.4  christos   ac_have_decl=1
   8679  1.4  christos else
   8680  1.4  christos   ac_have_decl=0
   8681  1.4  christos fi
   8682  1.1  christos 
   8683  1.4  christos cat >>confdefs.h <<_ACEOF
   8684  1.4  christos #define HAVE_DECL_FLOCKFILE $ac_have_decl
   8685  1.1  christos _ACEOF
   8686  1.1  christos 
   8687  1.1  christos 
   8688  1.1  christos 
   8689  1.4  christos       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
   8690  1.4  christos if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
   8691  1.4  christos   ac_have_decl=1
   8692  1.4  christos else
   8693  1.4  christos   ac_have_decl=0
   8694  1.4  christos fi
   8695  1.4  christos 
   8696  1.4  christos cat >>confdefs.h <<_ACEOF
   8697  1.4  christos #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
   8698  1.4  christos _ACEOF
   8699  1.4  christos 
   8700  1.1  christos 
   8701  1.1  christos 
   8702  1.4  christos       ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
   8703  1.4  christos if test "x$ac_cv_have_decl_funlockfile" = x""yes; then :
   8704  1.4  christos   ac_have_decl=1
   8705  1.1  christos else
   8706  1.4  christos   ac_have_decl=0
   8707  1.1  christos fi
   8708  1.3  christos 
   8709  1.4  christos cat >>confdefs.h <<_ACEOF
   8710  1.4  christos #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
   8711  1.1  christos _ACEOF
   8712  1.1  christos 
   8713  1.4  christos 
   8714  1.4  christos 
   8715  1.4  christos       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
   8716  1.4  christos if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
   8717  1.4  christos   ac_have_decl=1
   8718  1.1  christos else
   8719  1.4  christos   ac_have_decl=0
   8720  1.1  christos fi
   8721  1.1  christos 
   8722  1.4  christos cat >>confdefs.h <<_ACEOF
   8723  1.4  christos #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
   8724  1.1  christos _ACEOF
   8725  1.1  christos 
   8726  1.1  christos 
   8727  1.1  christos 
   8728  1.1  christos 
   8729  1.1  christos 
   8730  1.1  christos 
   8731  1.1  christos 
   8732  1.1  christos 
   8733  1.1  christos 
   8734  1.1  christos 
   8735  1.1  christos 
   8736  1.1  christos 
   8737  1.4  christos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
   8738  1.4  christos $as_echo_n "checking for d_type member in directory struct... " >&6; }
   8739  1.4  christos if test "${jm_cv_struct_dirent_d_type+set}" = set; then :
   8740  1.4  christos   $as_echo_n "(cached) " >&6
   8741  1.4  christos else
   8742  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8743  1.4  christos /* end confdefs.h.  */
   8744  1.1  christos 
   8745  1.4  christos #include <sys/types.h>
   8746  1.4  christos #ifdef HAVE_DIRENT_H
   8747  1.4  christos # include <dirent.h>
   8748  1.4  christos #else /* not HAVE_DIRENT_H */
   8749  1.4  christos # define dirent direct
   8750  1.4  christos # ifdef HAVE_SYS_NDIR_H
   8751  1.4  christos #  include <sys/ndir.h>
   8752  1.4  christos # endif /* HAVE_SYS_NDIR_H */
   8753  1.4  christos # ifdef HAVE_SYS_DIR_H
   8754  1.4  christos #  include <sys/dir.h>
   8755  1.4  christos # endif /* HAVE_SYS_DIR_H */
   8756  1.4  christos # ifdef HAVE_NDIR_H
   8757  1.4  christos #  include <ndir.h>
   8758  1.4  christos # endif /* HAVE_NDIR_H */
   8759  1.4  christos #endif /* HAVE_DIRENT_H */
   8760  1.1  christos 
   8761  1.4  christos int
   8762  1.4  christos main ()
   8763  1.4  christos {
   8764  1.4  christos struct dirent dp; dp.d_type = 0;
   8765  1.4  christos   ;
   8766  1.4  christos   return 0;
   8767  1.4  christos }
   8768  1.4  christos _ACEOF
   8769  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   8770  1.4  christos   jm_cv_struct_dirent_d_type=yes
   8771  1.4  christos else
   8772  1.4  christos   jm_cv_struct_dirent_d_type=no
   8773  1.4  christos fi
   8774  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   8775  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   8776  1.1  christos 
   8777  1.1  christos 
   8778  1.4  christos fi
   8779  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_struct_dirent_d_type" >&5
   8780  1.4  christos $as_echo "$jm_cv_struct_dirent_d_type" >&6; }
   8781  1.4  christos    if test $jm_cv_struct_dirent_d_type = yes; then
   8782  1.1  christos 
   8783  1.4  christos $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
   8784  1.1  christos 
   8785  1.4  christos    fi
   8786  1.1  christos 
   8787  1.1  christos 
   8788  1.1  christos 
   8789  1.1  christos 
   8790  1.1  christos 
   8791  1.1  christos 
   8792  1.1  christos 
   8793  1.1  christos 
   8794  1.1  christos 
   8795  1.1  christos 
   8796  1.1  christos 
   8797  1.1  christos 
   8798  1.1  christos 
   8799  1.1  christos 
   8800  1.1  christos 
   8801  1.1  christos 
   8802  1.1  christos 
   8803  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
   8804  1.4  christos $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
   8805  1.4  christos if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
   8806  1.4  christos   $as_echo_n "(cached) " >&6
   8807  1.4  christos else
   8808  1.4  christos   rm -f conftest.sym conftest.file
   8809  1.4  christos echo >conftest.file
   8810  1.4  christos if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
   8811  1.4  christos   if test "$cross_compiling" = yes; then :
   8812  1.4  christos   ac_cv_func_lstat_dereferences_slashed_symlink=no
   8813  1.4  christos else
   8814  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8815  1.4  christos /* end confdefs.h.  */
   8816  1.4  christos $ac_includes_default
   8817  1.4  christos int
   8818  1.4  christos main ()
   8819  1.4  christos {
   8820  1.4  christos struct stat sbuf;
   8821  1.4  christos      /* Linux will dereference the symlink and fail, as required by POSIX.
   8822  1.4  christos 	That is better in the sense that it means we will not
   8823  1.4  christos 	have to compile and use the lstat wrapper.  */
   8824  1.4  christos      return lstat ("conftest.sym/", &sbuf) == 0;
   8825  1.4  christos   ;
   8826  1.4  christos   return 0;
   8827  1.4  christos }
   8828  1.4  christos _ACEOF
   8829  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   8830  1.4  christos   ac_cv_func_lstat_dereferences_slashed_symlink=yes
   8831  1.4  christos else
   8832  1.4  christos   ac_cv_func_lstat_dereferences_slashed_symlink=no
   8833  1.4  christos fi
   8834  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8835  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8836  1.4  christos fi
   8837  1.1  christos 
   8838  1.4  christos else
   8839  1.4  christos   # If the `ln -s' command failed, then we probably don't even
   8840  1.4  christos   # have an lstat function.
   8841  1.4  christos   ac_cv_func_lstat_dereferences_slashed_symlink=no
   8842  1.4  christos fi
   8843  1.4  christos rm -f conftest.sym conftest.file
   8844  1.1  christos 
   8845  1.4  christos fi
   8846  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
   8847  1.4  christos $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
   8848  1.1  christos 
   8849  1.4  christos test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
   8850  1.1  christos 
   8851  1.4  christos cat >>confdefs.h <<_ACEOF
   8852  1.4  christos #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
   8853  1.4  christos _ACEOF
   8854  1.1  christos 
   8855  1.1  christos 
   8856  1.4  christos if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
   8857  1.3  christos   case " $LIBOBJS " in
   8858  1.4  christos   *" lstat.$ac_objext "* ) ;;
   8859  1.4  christos   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
   8860  1.3  christos  ;;
   8861  1.1  christos esac
   8862  1.1  christos 
   8863  1.4  christos fi
   8864  1.4  christos 
   8865  1.1  christos 
   8866  1.1  christos 
   8867  1.1  christos 
   8868  1.1  christos 
   8869  1.1  christos 
   8870  1.1  christos 
   8871  1.1  christos 
   8872  1.1  christos 
   8873  1.1  christos 
   8874  1.1  christos 
   8875  1.1  christos 
   8876  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
   8877  1.4  christos $as_echo_n "checking for uint32_t... " >&6; }
   8878  1.4  christos if test "${gl_cv_c_uint32_t+set}" = set; then :
   8879  1.4  christos   $as_echo_n "(cached) " >&6
   8880  1.4  christos else
   8881  1.4  christos   gl_cv_c_uint32_t=no
   8882  1.4  christos      for ac_type in "uint32_t" "unsigned int" \
   8883  1.4  christos 	 "unsigned long int" "unsigned short int"; do
   8884  1.4  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8885  1.4  christos /* end confdefs.h.  */
   8886  1.4  christos $ac_includes_default
   8887  1.4  christos int
   8888  1.4  christos main ()
   8889  1.4  christos {
   8890  1.4  christos static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
   8891  1.4  christos test_array [0] = 0
   8892  1.1  christos 
   8893  1.4  christos   ;
   8894  1.4  christos   return 0;
   8895  1.4  christos }
   8896  1.4  christos _ACEOF
   8897  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8898  1.4  christos   gl_cv_c_uint32_t=$ac_type
   8899  1.4  christos fi
   8900  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8901  1.4  christos        test "$gl_cv_c_uint32_t" != no && break
   8902  1.4  christos      done
   8903  1.4  christos fi
   8904  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_uint32_t" >&5
   8905  1.4  christos $as_echo "$gl_cv_c_uint32_t" >&6; }
   8906  1.4  christos   case "$gl_cv_c_uint32_t" in
   8907  1.4  christos   no|uint32_t) ;;
   8908  1.4  christos   *)
   8909  1.1  christos 
   8910  1.4  christos $as_echo "#define _UINT32_T 1" >>confdefs.h
   8911  1.1  christos 
   8912  1.1  christos 
   8913  1.4  christos cat >>confdefs.h <<_ACEOF
   8914  1.4  christos #define uint32_t $gl_cv_c_uint32_t
   8915  1.4  christos _ACEOF
   8916  1.1  christos 
   8917  1.4  christos     ;;
   8918  1.4  christos   esac
   8919  1.1  christos 
   8920  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UINT32_MAX" >&5
   8921  1.4  christos $as_echo_n "checking for UINT32_MAX... " >&6; }
   8922  1.4  christos if test "${gl_cv_c_uint32_max+set}" = set; then :
   8923  1.3  christos   $as_echo_n "(cached) " >&6
   8924  1.1  christos else
   8925  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8926  1.1  christos /* end confdefs.h.  */
   8927  1.1  christos $ac_includes_default
   8928  1.1  christos int
   8929  1.1  christos main ()
   8930  1.1  christos {
   8931  1.4  christos static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
   8932  1.4  christos test_array [0] = 0
   8933  1.4  christos 
   8934  1.1  christos   ;
   8935  1.1  christos   return 0;
   8936  1.1  christos }
   8937  1.1  christos _ACEOF
   8938  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8939  1.4  christos   gl_cv_c_uint32_max=yes
   8940  1.1  christos else
   8941  1.4  christos   gl_cv_c_uint32_max=no
   8942  1.1  christos fi
   8943  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8944  1.1  christos fi
   8945  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_uint32_max" >&5
   8946  1.4  christos $as_echo "$gl_cv_c_uint32_max" >&6; }
   8947  1.4  christos   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
   8948  1.4  christos   yes,*) ;;
   8949  1.4  christos   *,no) ;;
   8950  1.4  christos   *)
   8951  1.4  christos 
   8952  1.4  christos $as_echo "#define UINT32_MAX 4294967295U" >>confdefs.h
   8953  1.1  christos 
   8954  1.4  christos     ;;
   8955  1.4  christos   esac
   8956  1.1  christos 
   8957  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   8958  1.4  christos $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   8959  1.4  christos if test "${ac_cv_c_bigendian+set}" = set; then :
   8960  1.4  christos   $as_echo_n "(cached) " >&6
   8961  1.4  christos else
   8962  1.4  christos   ac_cv_c_bigendian=unknown
   8963  1.4  christos     # See if we're dealing with a universal compiler.
   8964  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8965  1.4  christos /* end confdefs.h.  */
   8966  1.4  christos #ifndef __APPLE_CC__
   8967  1.4  christos 	       not a universal capable compiler
   8968  1.4  christos 	     #endif
   8969  1.4  christos 	     typedef int dummy;
   8970  1.1  christos 
   8971  1.1  christos _ACEOF
   8972  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   8973  1.4  christos 
   8974  1.4  christos 	# Check for potential -arch flags.  It is not universal unless
   8975  1.4  christos 	# there are at least two -arch flags with different values.
   8976  1.4  christos 	ac_arch=
   8977  1.4  christos 	ac_prev=
   8978  1.4  christos 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   8979  1.4  christos 	 if test -n "$ac_prev"; then
   8980  1.4  christos 	   case $ac_word in
   8981  1.4  christos 	     i?86 | x86_64 | ppc | ppc64)
   8982  1.4  christos 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   8983  1.4  christos 		 ac_arch=$ac_word
   8984  1.4  christos 	       else
   8985  1.4  christos 		 ac_cv_c_bigendian=universal
   8986  1.4  christos 		 break
   8987  1.4  christos 	       fi
   8988  1.4  christos 	       ;;
   8989  1.4  christos 	   esac
   8990  1.4  christos 	   ac_prev=
   8991  1.4  christos 	 elif test "x$ac_word" = "x-arch"; then
   8992  1.4  christos 	   ac_prev=arch
   8993  1.4  christos 	 fi
   8994  1.4  christos        done
   8995  1.4  christos fi
   8996  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8997  1.4  christos     if test $ac_cv_c_bigendian = unknown; then
   8998  1.4  christos       # See if sys/param.h defines the BYTE_ORDER macro.
   8999  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9000  1.4  christos /* end confdefs.h.  */
   9001  1.4  christos #include <sys/types.h>
   9002  1.4  christos 	     #include <sys/param.h>
   9003  1.1  christos 
   9004  1.4  christos int
   9005  1.4  christos main ()
   9006  1.4  christos {
   9007  1.4  christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   9008  1.4  christos 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   9009  1.4  christos 		     && LITTLE_ENDIAN)
   9010  1.4  christos 	      bogus endian macros
   9011  1.4  christos 	     #endif
   9012  1.1  christos 
   9013  1.4  christos   ;
   9014  1.4  christos   return 0;
   9015  1.4  christos }
   9016  1.1  christos _ACEOF
   9017  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9018  1.4  christos   # It does; now see whether it defined to BIG_ENDIAN or not.
   9019  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9020  1.1  christos /* end confdefs.h.  */
   9021  1.4  christos #include <sys/types.h>
   9022  1.4  christos 		#include <sys/param.h>
   9023  1.4  christos 
   9024  1.1  christos int
   9025  1.1  christos main ()
   9026  1.1  christos {
   9027  1.4  christos #if BYTE_ORDER != BIG_ENDIAN
   9028  1.4  christos 		 not big endian
   9029  1.4  christos 		#endif
   9030  1.4  christos 
   9031  1.1  christos   ;
   9032  1.1  christos   return 0;
   9033  1.1  christos }
   9034  1.1  christos _ACEOF
   9035  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9036  1.4  christos   ac_cv_c_bigendian=yes
   9037  1.1  christos else
   9038  1.4  christos   ac_cv_c_bigendian=no
   9039  1.4  christos fi
   9040  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9041  1.1  christos fi
   9042  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9043  1.4  christos     fi
   9044  1.4  christos     if test $ac_cv_c_bigendian = unknown; then
   9045  1.4  christos       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   9046  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9047  1.4  christos /* end confdefs.h.  */
   9048  1.4  christos #include <limits.h>
   9049  1.3  christos 
   9050  1.4  christos int
   9051  1.4  christos main ()
   9052  1.4  christos {
   9053  1.4  christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   9054  1.4  christos 	      bogus endian macros
   9055  1.4  christos 	     #endif
   9056  1.1  christos 
   9057  1.4  christos   ;
   9058  1.4  christos   return 0;
   9059  1.4  christos }
   9060  1.1  christos _ACEOF
   9061  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9062  1.4  christos   # It does; now see whether it defined to _BIG_ENDIAN or not.
   9063  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9064  1.4  christos /* end confdefs.h.  */
   9065  1.4  christos #include <limits.h>
   9066  1.1  christos 
   9067  1.4  christos int
   9068  1.4  christos main ()
   9069  1.4  christos {
   9070  1.4  christos #ifndef _BIG_ENDIAN
   9071  1.4  christos 		 not big endian
   9072  1.4  christos 		#endif
   9073  1.1  christos 
   9074  1.4  christos   ;
   9075  1.4  christos   return 0;
   9076  1.4  christos }
   9077  1.4  christos _ACEOF
   9078  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9079  1.4  christos   ac_cv_c_bigendian=yes
   9080  1.1  christos else
   9081  1.4  christos   ac_cv_c_bigendian=no
   9082  1.4  christos fi
   9083  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9084  1.4  christos fi
   9085  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9086  1.4  christos     fi
   9087  1.4  christos     if test $ac_cv_c_bigendian = unknown; then
   9088  1.4  christos       # Compile a test program.
   9089  1.4  christos       if test "$cross_compiling" = yes; then :
   9090  1.4  christos   # Try to guess by grepping values from an object file.
   9091  1.4  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9092  1.1  christos /* end confdefs.h.  */
   9093  1.4  christos short int ascii_mm[] =
   9094  1.4  christos 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   9095  1.4  christos 		short int ascii_ii[] =
   9096  1.4  christos 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   9097  1.4  christos 		int use_ascii (int i) {
   9098  1.4  christos 		  return ascii_mm[i] + ascii_ii[i];
   9099  1.4  christos 		}
   9100  1.4  christos 		short int ebcdic_ii[] =
   9101  1.4  christos 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   9102  1.4  christos 		short int ebcdic_mm[] =
   9103  1.4  christos 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   9104  1.4  christos 		int use_ebcdic (int i) {
   9105  1.4  christos 		  return ebcdic_mm[i] + ebcdic_ii[i];
   9106  1.4  christos 		}
   9107  1.4  christos 		extern int foo;
   9108  1.1  christos 
   9109  1.1  christos int
   9110  1.1  christos main ()
   9111  1.1  christos {
   9112  1.4  christos return use_ascii (foo) == use_ebcdic (foo);
   9113  1.1  christos   ;
   9114  1.1  christos   return 0;
   9115  1.1  christos }
   9116  1.1  christos _ACEOF
   9117  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9118  1.4  christos   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   9119  1.4  christos 	      ac_cv_c_bigendian=yes
   9120  1.4  christos 	    fi
   9121  1.4  christos 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   9122  1.4  christos 	      if test "$ac_cv_c_bigendian" = unknown; then
   9123  1.4  christos 		ac_cv_c_bigendian=no
   9124  1.4  christos 	      else
   9125  1.4  christos 		# finding both strings is unlikely to happen, but who knows?
   9126  1.4  christos 		ac_cv_c_bigendian=unknown
   9127  1.4  christos 	      fi
   9128  1.4  christos 	    fi
   9129  1.4  christos fi
   9130  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9131  1.1  christos else
   9132  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9133  1.4  christos /* end confdefs.h.  */
   9134  1.4  christos $ac_includes_default
   9135  1.4  christos int
   9136  1.4  christos main ()
   9137  1.4  christos {
   9138  1.4  christos 
   9139  1.4  christos 	     /* Are we little or big endian?  From Harbison&Steele.  */
   9140  1.4  christos 	     union
   9141  1.4  christos 	     {
   9142  1.4  christos 	       long int l;
   9143  1.4  christos 	       char c[sizeof (long int)];
   9144  1.4  christos 	     } u;
   9145  1.4  christos 	     u.l = 1;
   9146  1.4  christos 	     return u.c[sizeof (long int) - 1] == 1;
   9147  1.1  christos 
   9148  1.4  christos   ;
   9149  1.4  christos   return 0;
   9150  1.4  christos }
   9151  1.4  christos _ACEOF
   9152  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   9153  1.4  christos   ac_cv_c_bigendian=no
   9154  1.4  christos else
   9155  1.4  christos   ac_cv_c_bigendian=yes
   9156  1.4  christos fi
   9157  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9158  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9159  1.1  christos fi
   9160  1.3  christos 
   9161  1.4  christos     fi
   9162  1.1  christos fi
   9163  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   9164  1.4  christos $as_echo "$ac_cv_c_bigendian" >&6; }
   9165  1.4  christos  case $ac_cv_c_bigendian in #(
   9166  1.4  christos    yes)
   9167  1.4  christos      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   9168  1.4  christos ;; #(
   9169  1.4  christos    no)
   9170  1.4  christos       ;; #(
   9171  1.4  christos    universal)
   9172  1.1  christos 
   9173  1.4  christos $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   9174  1.1  christos 
   9175  1.4  christos      ;; #(
   9176  1.4  christos    *)
   9177  1.4  christos      as_fn_error "unknown endianness
   9178  1.4  christos  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   9179  1.4  christos  esac
   9180  1.1  christos 
   9181  1.1  christos 
   9182  1.1  christos 
   9183  1.1  christos 
   9184  1.1  christos 
   9185  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
   9186  1.4  christos $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
   9187  1.4  christos if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
   9188  1.3  christos   $as_echo_n "(cached) " >&6
   9189  1.1  christos else
   9190  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9191  1.1  christos /* end confdefs.h.  */
   9192  1.4  christos #include <limits.h>
   9193  1.4  christos int x = MIN (42, 17);
   9194  1.4  christos int
   9195  1.4  christos main ()
   9196  1.4  christos {
   9197  1.4  christos 
   9198  1.4  christos   ;
   9199  1.4  christos   return 0;
   9200  1.4  christos }
   9201  1.1  christos _ACEOF
   9202  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9203  1.4  christos   gl_cv_minmax_in_limits_h=yes
   9204  1.1  christos else
   9205  1.4  christos   gl_cv_minmax_in_limits_h=no
   9206  1.1  christos fi
   9207  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9208  1.4  christos fi
   9209  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
   9210  1.4  christos $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
   9211  1.4  christos   if test $gl_cv_minmax_in_limits_h = yes; then
   9212  1.1  christos 
   9213  1.4  christos $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
   9214  1.1  christos 
   9215  1.4  christos   fi
   9216  1.3  christos 
   9217  1.1  christos 
   9218  1.1  christos 
   9219  1.1  christos 
   9220  1.1  christos 
   9221  1.1  christos 
   9222  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
   9223  1.4  christos $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
   9224  1.4  christos if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
   9225  1.3  christos   $as_echo_n "(cached) " >&6
   9226  1.1  christos else
   9227  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9228  1.1  christos /* end confdefs.h.  */
   9229  1.4  christos #include <sys/param.h>
   9230  1.4  christos int x = MIN (42, 17);
   9231  1.1  christos int
   9232  1.1  christos main ()
   9233  1.1  christos {
   9234  1.4  christos 
   9235  1.1  christos   ;
   9236  1.1  christos   return 0;
   9237  1.1  christos }
   9238  1.1  christos _ACEOF
   9239  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9240  1.4  christos   gl_cv_minmax_in_sys_param_h=yes
   9241  1.1  christos else
   9242  1.4  christos   gl_cv_minmax_in_sys_param_h=no
   9243  1.1  christos fi
   9244  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9245  1.1  christos fi
   9246  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
   9247  1.4  christos $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
   9248  1.4  christos   if test $gl_cv_minmax_in_sys_param_h = yes; then
   9249  1.3  christos 
   9250  1.4  christos $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
   9251  1.3  christos 
   9252  1.4  christos   fi
   9253  1.1  christos 
   9254  1.1  christos 
   9255  1.1  christos 
   9256  1.1  christos 
   9257  1.1  christos 
   9258  1.1  christos 
   9259  1.1  christos 
   9260  1.1  christos 
   9261  1.1  christos 
   9262  1.1  christos 
   9263  1.4  christos       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
   9264  1.4  christos if test "x$ac_cv_have_decl_getenv" = x""yes; then :
   9265  1.4  christos   ac_have_decl=1
   9266  1.4  christos else
   9267  1.4  christos   ac_have_decl=0
   9268  1.4  christos fi
   9269  1.1  christos 
   9270  1.4  christos cat >>confdefs.h <<_ACEOF
   9271  1.4  christos #define HAVE_DECL_GETENV $ac_have_decl
   9272  1.1  christos _ACEOF
   9273  1.1  christos 
   9274  1.1  christos 
   9275  1.1  christos 
   9276  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
   9277  1.4  christos $as_echo_n "checking for inttypes.h... " >&6; }
   9278  1.4  christos if test "${gl_cv_header_inttypes_h+set}" = set; then :
   9279  1.4  christos   $as_echo_n "(cached) " >&6
   9280  1.4  christos else
   9281  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9282  1.4  christos /* end confdefs.h.  */
   9283  1.4  christos #include <sys/types.h>
   9284  1.4  christos #include <inttypes.h>
   9285  1.4  christos int
   9286  1.4  christos main ()
   9287  1.4  christos {
   9288  1.4  christos uintmax_t i = (uintmax_t) -1;
   9289  1.4  christos   ;
   9290  1.4  christos   return 0;
   9291  1.4  christos }
   9292  1.4  christos _ACEOF
   9293  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9294  1.4  christos   gl_cv_header_inttypes_h=yes
   9295  1.4  christos else
   9296  1.4  christos   gl_cv_header_inttypes_h=no
   9297  1.4  christos fi
   9298  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9299  1.4  christos fi
   9300  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
   9301  1.4  christos $as_echo "$gl_cv_header_inttypes_h" >&6; }
   9302  1.4  christos   if test $gl_cv_header_inttypes_h = yes; then
   9303  1.1  christos 
   9304  1.4  christos cat >>confdefs.h <<_ACEOF
   9305  1.4  christos #define HAVE_INTTYPES_H_WITH_UINTMAX 1
   9306  1.4  christos _ACEOF
   9307  1.1  christos 
   9308  1.4  christos   fi
   9309  1.1  christos 
   9310  1.1  christos 
   9311  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
   9312  1.4  christos $as_echo_n "checking for stdint.h... " >&6; }
   9313  1.4  christos if test "${gl_cv_header_stdint_h+set}" = set; then :
   9314  1.3  christos   $as_echo_n "(cached) " >&6
   9315  1.1  christos else
   9316  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9317  1.1  christos /* end confdefs.h.  */
   9318  1.4  christos #include <sys/types.h>
   9319  1.4  christos #include <stdint.h>
   9320  1.1  christos int
   9321  1.1  christos main ()
   9322  1.1  christos {
   9323  1.4  christos uintmax_t i = (uintmax_t) -1;
   9324  1.4  christos   ;
   9325  1.4  christos   return 0;
   9326  1.4  christos }
   9327  1.4  christos _ACEOF
   9328  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9329  1.4  christos   gl_cv_header_stdint_h=yes
   9330  1.4  christos else
   9331  1.4  christos   gl_cv_header_stdint_h=no
   9332  1.4  christos fi
   9333  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9334  1.4  christos fi
   9335  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
   9336  1.4  christos $as_echo "$gl_cv_header_stdint_h" >&6; }
   9337  1.4  christos   if test $gl_cv_header_stdint_h = yes; then
   9338  1.1  christos 
   9339  1.4  christos cat >>confdefs.h <<_ACEOF
   9340  1.4  christos #define HAVE_STDINT_H_WITH_UINTMAX 1
   9341  1.4  christos _ACEOF
   9342  1.1  christos 
   9343  1.4  christos   fi
   9344  1.1  christos 
   9345  1.1  christos 
   9346  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
   9347  1.4  christos $as_echo_n "checking for unsigned long long... " >&6; }
   9348  1.4  christos if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
   9349  1.4  christos   $as_echo_n "(cached) " >&6
   9350  1.4  christos else
   9351  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9352  1.4  christos /* end confdefs.h.  */
   9353  1.4  christos unsigned long long ull = 1ULL; int i = 63;
   9354  1.4  christos int
   9355  1.4  christos main ()
   9356  1.4  christos {
   9357  1.4  christos unsigned long long ullmax = (unsigned long long) -1;
   9358  1.4  christos      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
   9359  1.1  christos   ;
   9360  1.1  christos   return 0;
   9361  1.1  christos }
   9362  1.1  christos _ACEOF
   9363  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   9364  1.4  christos   ac_cv_type_unsigned_long_long=yes
   9365  1.1  christos else
   9366  1.4  christos   ac_cv_type_unsigned_long_long=no
   9367  1.1  christos fi
   9368  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   9369  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   9370  1.1  christos fi
   9371  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
   9372  1.4  christos $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
   9373  1.4  christos   if test $ac_cv_type_unsigned_long_long = yes; then
   9374  1.4  christos 
   9375  1.4  christos $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
   9376  1.4  christos 
   9377  1.4  christos   fi
   9378  1.4  christos 
   9379  1.4  christos 
   9380  1.4  christos 
   9381  1.4  christos 
   9382  1.4  christos   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
   9383  1.4  christos 
   9384  1.4  christos     test $ac_cv_type_unsigned_long_long = yes \
   9385  1.4  christos       && ac_type='unsigned long long' \
   9386  1.4  christos       || ac_type='unsigned long'
   9387  1.3  christos 
   9388  1.4  christos cat >>confdefs.h <<_ACEOF
   9389  1.4  christos #define uintmax_t $ac_type
   9390  1.4  christos _ACEOF
   9391  1.3  christos 
   9392  1.4  christos   else
   9393  1.1  christos 
   9394  1.4  christos $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
   9395  1.1  christos 
   9396  1.4  christos   fi
   9397  1.1  christos 
   9398  1.4  christos for ac_header in stdlib.h sys/time.h unistd.h
   9399  1.4  christos do :
   9400  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9401  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   9402  1.4  christos eval as_val=\$$as_ac_Header
   9403  1.4  christos    if test "x$as_val" = x""yes; then :
   9404  1.4  christos   cat >>confdefs.h <<_ACEOF
   9405  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9406  1.4  christos _ACEOF
   9407  1.1  christos 
   9408  1.4  christos fi
   9409  1.1  christos 
   9410  1.4  christos done
   9411  1.1  christos 
   9412  1.4  christos for ac_func in alarm
   9413  1.4  christos do :
   9414  1.4  christos   ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
   9415  1.4  christos if test "x$ac_cv_func_alarm" = x""yes; then :
   9416  1.4  christos   cat >>confdefs.h <<_ACEOF
   9417  1.4  christos #define HAVE_ALARM 1
   9418  1.4  christos _ACEOF
   9419  1.1  christos 
   9420  1.4  christos fi
   9421  1.4  christos done
   9422  1.1  christos 
   9423  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
   9424  1.4  christos $as_echo_n "checking for working mktime... " >&6; }
   9425  1.4  christos if test "${ac_cv_func_working_mktime+set}" = set; then :
   9426  1.4  christos   $as_echo_n "(cached) " >&6
   9427  1.4  christos else
   9428  1.4  christos   if test "$cross_compiling" = yes; then :
   9429  1.4  christos   ac_cv_func_working_mktime=no
   9430  1.4  christos else
   9431  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9432  1.4  christos /* end confdefs.h.  */
   9433  1.4  christos /* Test program from Paul Eggert and Tony Leneis.  */
   9434  1.4  christos #if TIME_WITH_SYS_TIME
   9435  1.4  christos # include <sys/time.h>
   9436  1.4  christos # include <time.h>
   9437  1.4  christos #else
   9438  1.4  christos # if HAVE_SYS_TIME_H
   9439  1.4  christos #  include <sys/time.h>
   9440  1.4  christos # else
   9441  1.4  christos #  include <time.h>
   9442  1.4  christos # endif
   9443  1.4  christos #endif
   9444  1.1  christos 
   9445  1.4  christos #if HAVE_STDLIB_H
   9446  1.4  christos # include <stdlib.h>
   9447  1.4  christos #endif
   9448  1.1  christos 
   9449  1.4  christos #if HAVE_UNISTD_H
   9450  1.4  christos # include <unistd.h>
   9451  1.4  christos #endif
   9452  1.1  christos 
   9453  1.4  christos #if !HAVE_ALARM
   9454  1.4  christos # define alarm(X) /* empty */
   9455  1.4  christos #endif
   9456  1.1  christos 
   9457  1.4  christos /* Work around redefinition to rpl_putenv by other config tests.  */
   9458  1.4  christos #undef putenv
   9459  1.1  christos 
   9460  1.4  christos static time_t time_t_max;
   9461  1.4  christos static time_t time_t_min;
   9462  1.1  christos 
   9463  1.4  christos /* Values we'll use to set the TZ environment variable.  */
   9464  1.4  christos static char *tz_strings[] = {
   9465  1.4  christos   (char *) 0, "TZ=GMT0", "TZ=JST-9",
   9466  1.4  christos   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
   9467  1.4  christos };
   9468  1.4  christos #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
   9469  1.1  christos 
   9470  1.4  christos /* Fail if mktime fails to convert a date in the spring-forward gap.
   9471  1.4  christos    Based on a problem report from Andreas Jaeger.  */
   9472  1.4  christos static void
   9473  1.4  christos spring_forward_gap ()
   9474  1.4  christos {
   9475  1.4  christos   /* glibc (up to about 1998-10-07) failed this test. */
   9476  1.4  christos   struct tm tm;
   9477  1.1  christos 
   9478  1.4  christos   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
   9479  1.4  christos      instead of "TZ=America/Vancouver" in order to detect the bug even
   9480  1.4  christos      on systems that don't support the Olson extension, or don't have the
   9481  1.4  christos      full zoneinfo tables installed.  */
   9482  1.4  christos   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
   9483  1.1  christos 
   9484  1.4  christos   tm.tm_year = 98;
   9485  1.4  christos   tm.tm_mon = 3;
   9486  1.4  christos   tm.tm_mday = 5;
   9487  1.4  christos   tm.tm_hour = 2;
   9488  1.4  christos   tm.tm_min = 0;
   9489  1.4  christos   tm.tm_sec = 0;
   9490  1.4  christos   tm.tm_isdst = -1;
   9491  1.4  christos   if (mktime (&tm) == (time_t)-1)
   9492  1.4  christos     exit (1);
   9493  1.4  christos }
   9494  1.1  christos 
   9495  1.4  christos static void
   9496  1.4  christos mktime_test1 (now)
   9497  1.4  christos      time_t now;
   9498  1.4  christos {
   9499  1.4  christos   struct tm *lt;
   9500  1.4  christos   if ((lt = localtime (&now)) && mktime (lt) != now)
   9501  1.4  christos     exit (1);
   9502  1.4  christos }
   9503  1.1  christos 
   9504  1.4  christos static void
   9505  1.4  christos mktime_test (now)
   9506  1.4  christos      time_t now;
   9507  1.4  christos {
   9508  1.4  christos   mktime_test1 (now);
   9509  1.4  christos   mktime_test1 ((time_t) (time_t_max - now));
   9510  1.4  christos   mktime_test1 ((time_t) (time_t_min + now));
   9511  1.4  christos }
   9512  1.1  christos 
   9513  1.4  christos static void
   9514  1.4  christos irix_6_4_bug ()
   9515  1.4  christos {
   9516  1.4  christos   /* Based on code from Ariel Faigon.  */
   9517  1.4  christos   struct tm tm;
   9518  1.4  christos   tm.tm_year = 96;
   9519  1.4  christos   tm.tm_mon = 3;
   9520  1.4  christos   tm.tm_mday = 0;
   9521  1.4  christos   tm.tm_hour = 0;
   9522  1.4  christos   tm.tm_min = 0;
   9523  1.4  christos   tm.tm_sec = 0;
   9524  1.4  christos   tm.tm_isdst = -1;
   9525  1.4  christos   mktime (&tm);
   9526  1.4  christos   if (tm.tm_mon != 2 || tm.tm_mday != 31)
   9527  1.4  christos     exit (1);
   9528  1.4  christos }
   9529  1.1  christos 
   9530  1.4  christos static void
   9531  1.4  christos bigtime_test (j)
   9532  1.4  christos      int j;
   9533  1.4  christos {
   9534  1.4  christos   struct tm tm;
   9535  1.4  christos   time_t now;
   9536  1.4  christos   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
   9537  1.4  christos   now = mktime (&tm);
   9538  1.4  christos   if (now != (time_t) -1)
   9539  1.4  christos     {
   9540  1.4  christos       struct tm *lt = localtime (&now);
   9541  1.4  christos       if (! (lt
   9542  1.4  christos 	     && lt->tm_year == tm.tm_year
   9543  1.4  christos 	     && lt->tm_mon == tm.tm_mon
   9544  1.4  christos 	     && lt->tm_mday == tm.tm_mday
   9545  1.4  christos 	     && lt->tm_hour == tm.tm_hour
   9546  1.4  christos 	     && lt->tm_min == tm.tm_min
   9547  1.4  christos 	     && lt->tm_sec == tm.tm_sec
   9548  1.4  christos 	     && lt->tm_yday == tm.tm_yday
   9549  1.4  christos 	     && lt->tm_wday == tm.tm_wday
   9550  1.4  christos 	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
   9551  1.4  christos 		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
   9552  1.4  christos 	exit (1);
   9553  1.4  christos     }
   9554  1.4  christos }
   9555  1.1  christos 
   9556  1.4  christos int
   9557  1.4  christos main ()
   9558  1.4  christos {
   9559  1.4  christos   time_t t, delta;
   9560  1.4  christos   int i, j;
   9561  1.1  christos 
   9562  1.4  christos   /* This test makes some buggy mktime implementations loop.
   9563  1.4  christos      Give up after 60 seconds; a mktime slower than that
   9564  1.4  christos      isn't worth using anyway.  */
   9565  1.4  christos   alarm (60);
   9566  1.1  christos 
   9567  1.4  christos   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
   9568  1.4  christos     continue;
   9569  1.4  christos   time_t_max--;
   9570  1.4  christos   if ((time_t) -1 < 0)
   9571  1.4  christos     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
   9572  1.4  christos       continue;
   9573  1.4  christos   delta = time_t_max / 997; /* a suitable prime number */
   9574  1.4  christos   for (i = 0; i < N_STRINGS; i++)
   9575  1.4  christos     {
   9576  1.4  christos       if (tz_strings[i])
   9577  1.4  christos 	putenv (tz_strings[i]);
   9578  1.1  christos 
   9579  1.4  christos       for (t = 0; t <= time_t_max - delta; t += delta)
   9580  1.4  christos 	mktime_test (t);
   9581  1.4  christos       mktime_test ((time_t) 1);
   9582  1.4  christos       mktime_test ((time_t) (60 * 60));
   9583  1.4  christos       mktime_test ((time_t) (60 * 60 * 24));
   9584  1.1  christos 
   9585  1.4  christos       for (j = 1; 0 < j; j *= 2)
   9586  1.4  christos 	bigtime_test (j);
   9587  1.4  christos       bigtime_test (j - 1);
   9588  1.4  christos     }
   9589  1.4  christos   irix_6_4_bug ();
   9590  1.4  christos   spring_forward_gap ();
   9591  1.4  christos   exit (0);
   9592  1.4  christos }
   9593  1.4  christos _ACEOF
   9594  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   9595  1.4  christos   ac_cv_func_working_mktime=yes
   9596  1.4  christos else
   9597  1.4  christos   ac_cv_func_working_mktime=no
   9598  1.4  christos fi
   9599  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9600  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9601  1.4  christos fi
   9602  1.1  christos 
   9603  1.4  christos fi
   9604  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
   9605  1.4  christos $as_echo "$ac_cv_func_working_mktime" >&6; }
   9606  1.4  christos if test $ac_cv_func_working_mktime = no; then
   9607  1.4  christos   case " $LIBOBJS " in
   9608  1.4  christos   *" mktime.$ac_objext "* ) ;;
   9609  1.4  christos   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
   9610  1.4  christos  ;;
   9611  1.4  christos esac
   9612  1.1  christos 
   9613  1.4  christos fi
   9614  1.1  christos 
   9615  1.1  christos 
   9616  1.1  christos 
   9617  1.1  christos 
   9618  1.1  christos 
   9619  1.1  christos 
   9620  1.1  christos 
   9621  1.1  christos 
   9622  1.1  christos 
   9623  1.1  christos 
   9624  1.1  christos 
   9625  1.1  christos 
   9626  1.1  christos 
   9627  1.1  christos 
   9628  1.1  christos 
   9629  1.1  christos 
   9630  1.3  christos 
   9631  1.4  christos   # Check for mmap()
   9632  1.3  christos 
   9633  1.4  christos   :
   9634  1.1  christos 
   9635  1.1  christos 
   9636  1.1  christos 
   9637  1.1  christos 
   9638  1.1  christos 
   9639  1.1  christos 
   9640  1.1  christos 
   9641  1.1  christos 
   9642  1.3  christos 
   9643  1.3  christos 
   9644  1.1  christos 
   9645  1.4  christos for ac_func in getpagesize
   9646  1.4  christos do :
   9647  1.4  christos   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   9648  1.4  christos if test "x$ac_cv_func_getpagesize" = x""yes; then :
   9649  1.4  christos   cat >>confdefs.h <<_ACEOF
   9650  1.4  christos #define HAVE_GETPAGESIZE 1
   9651  1.1  christos _ACEOF
   9652  1.1  christos 
   9653  1.4  christos fi
   9654  1.4  christos done
   9655  1.1  christos 
   9656  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   9657  1.4  christos $as_echo_n "checking for working mmap... " >&6; }
   9658  1.4  christos if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   9659  1.3  christos   $as_echo_n "(cached) " >&6
   9660  1.1  christos else
   9661  1.4  christos   if test "$cross_compiling" = yes; then :
   9662  1.4  christos   ac_cv_func_mmap_fixed_mapped=no
   9663  1.4  christos else
   9664  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9665  1.1  christos /* end confdefs.h.  */
   9666  1.4  christos $ac_includes_default
   9667  1.4  christos /* malloc might have been renamed as rpl_malloc. */
   9668  1.4  christos #undef malloc
   9669  1.4  christos 
   9670  1.4  christos /* Thanks to Mike Haertel and Jim Avera for this test.
   9671  1.4  christos    Here is a matrix of mmap possibilities:
   9672  1.4  christos 	mmap private not fixed
   9673  1.4  christos 	mmap private fixed at somewhere currently unmapped
   9674  1.4  christos 	mmap private fixed at somewhere already mapped
   9675  1.4  christos 	mmap shared not fixed
   9676  1.4  christos 	mmap shared fixed at somewhere currently unmapped
   9677  1.4  christos 	mmap shared fixed at somewhere already mapped
   9678  1.4  christos    For private mappings, we should verify that changes cannot be read()
   9679  1.4  christos    back from the file, nor mmap's back from the file at a different
   9680  1.4  christos    address.  (There have been systems where private was not correctly
   9681  1.4  christos    implemented like the infamous i386 svr4.0, and systems where the
   9682  1.4  christos    VM page cache was not coherent with the file system buffer cache
   9683  1.4  christos    like early versions of FreeBSD and possibly contemporary NetBSD.)
   9684  1.4  christos    For shared mappings, we should conversely verify that changes get
   9685  1.4  christos    propagated back to all the places they're supposed to be.
   9686  1.4  christos 
   9687  1.4  christos    Grep wants private fixed already mapped.
   9688  1.4  christos    The main things grep needs to know about mmap are:
   9689  1.4  christos    * does it exist and is it safe to write into the mmap'd area
   9690  1.4  christos    * how to use it (BSD variants)  */
   9691  1.1  christos 
   9692  1.4  christos #include <fcntl.h>
   9693  1.4  christos #include <sys/mman.h>
   9694  1.1  christos 
   9695  1.4  christos #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   9696  1.4  christos char *malloc ();
   9697  1.1  christos #endif
   9698  1.1  christos 
   9699  1.4  christos /* This mess was copied from the GNU getpagesize.h.  */
   9700  1.4  christos #ifndef HAVE_GETPAGESIZE
   9701  1.4  christos # ifdef _SC_PAGESIZE
   9702  1.4  christos #  define getpagesize() sysconf(_SC_PAGESIZE)
   9703  1.4  christos # else /* no _SC_PAGESIZE */
   9704  1.4  christos #  ifdef HAVE_SYS_PARAM_H
   9705  1.4  christos #   include <sys/param.h>
   9706  1.4  christos #   ifdef EXEC_PAGESIZE
   9707  1.4  christos #    define getpagesize() EXEC_PAGESIZE
   9708  1.4  christos #   else /* no EXEC_PAGESIZE */
   9709  1.4  christos #    ifdef NBPG
   9710  1.4  christos #     define getpagesize() NBPG * CLSIZE
   9711  1.4  christos #     ifndef CLSIZE
   9712  1.4  christos #      define CLSIZE 1
   9713  1.4  christos #     endif /* no CLSIZE */
   9714  1.4  christos #    else /* no NBPG */
   9715  1.4  christos #     ifdef NBPC
   9716  1.4  christos #      define getpagesize() NBPC
   9717  1.4  christos #     else /* no NBPC */
   9718  1.4  christos #      ifdef PAGESIZE
   9719  1.4  christos #       define getpagesize() PAGESIZE
   9720  1.4  christos #      endif /* PAGESIZE */
   9721  1.4  christos #     endif /* no NBPC */
   9722  1.4  christos #    endif /* no NBPG */
   9723  1.4  christos #   endif /* no EXEC_PAGESIZE */
   9724  1.4  christos #  else /* no HAVE_SYS_PARAM_H */
   9725  1.4  christos #   define getpagesize() 8192	/* punt totally */
   9726  1.4  christos #  endif /* no HAVE_SYS_PARAM_H */
   9727  1.4  christos # endif /* no _SC_PAGESIZE */
   9728  1.1  christos 
   9729  1.4  christos #endif /* no HAVE_GETPAGESIZE */
   9730  1.1  christos 
   9731  1.1  christos int
   9732  1.1  christos main ()
   9733  1.1  christos {
   9734  1.4  christos   char *data, *data2, *data3;
   9735  1.4  christos   const char *cdata2;
   9736  1.4  christos   int i, pagesize;
   9737  1.4  christos   int fd, fd2;
   9738  1.4  christos 
   9739  1.4  christos   pagesize = getpagesize ();
   9740  1.4  christos 
   9741  1.4  christos   /* First, make a file with some known garbage in it. */
   9742  1.4  christos   data = (char *) malloc (pagesize);
   9743  1.4  christos   if (!data)
   9744  1.4  christos     return 1;
   9745  1.4  christos   for (i = 0; i < pagesize; ++i)
   9746  1.4  christos     *(data + i) = rand ();
   9747  1.4  christos   umask (0);
   9748  1.4  christos   fd = creat ("conftest.mmap", 0600);
   9749  1.4  christos   if (fd < 0)
   9750  1.4  christos     return 2;
   9751  1.4  christos   if (write (fd, data, pagesize) != pagesize)
   9752  1.4  christos     return 3;
   9753  1.4  christos   close (fd);
   9754  1.4  christos 
   9755  1.4  christos   /* Next, check that the tail of a page is zero-filled.  File must have
   9756  1.4  christos      non-zero length, otherwise we risk SIGBUS for entire page.  */
   9757  1.4  christos   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
   9758  1.4  christos   if (fd2 < 0)
   9759  1.4  christos     return 4;
   9760  1.4  christos   cdata2 = "";
   9761  1.4  christos   if (write (fd2, cdata2, 1) != 1)
   9762  1.4  christos     return 5;
   9763  1.4  christos   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
   9764  1.4  christos   if (data2 == MAP_FAILED)
   9765  1.4  christos     return 6;
   9766  1.4  christos   for (i = 0; i < pagesize; ++i)
   9767  1.4  christos     if (*(data2 + i))
   9768  1.4  christos       return 7;
   9769  1.4  christos   close (fd2);
   9770  1.4  christos   if (munmap (data2, pagesize))
   9771  1.4  christos     return 8;
   9772  1.4  christos 
   9773  1.4  christos   /* Next, try to mmap the file at a fixed address which already has
   9774  1.4  christos      something else allocated at it.  If we can, also make sure that
   9775  1.4  christos      we see the same garbage.  */
   9776  1.4  christos   fd = open ("conftest.mmap", O_RDWR);
   9777  1.4  christos   if (fd < 0)
   9778  1.4  christos     return 9;
   9779  1.4  christos   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   9780  1.4  christos 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   9781  1.4  christos     return 10;
   9782  1.4  christos   for (i = 0; i < pagesize; ++i)
   9783  1.4  christos     if (*(data + i) != *(data2 + i))
   9784  1.4  christos       return 11;
   9785  1.4  christos 
   9786  1.4  christos   /* Finally, make sure that changes to the mapped area do not
   9787  1.4  christos      percolate back to the file as seen by read().  (This is a bug on
   9788  1.4  christos      some variants of i386 svr4.0.)  */
   9789  1.4  christos   for (i = 0; i < pagesize; ++i)
   9790  1.4  christos     *(data2 + i) = *(data2 + i) + 1;
   9791  1.4  christos   data3 = (char *) malloc (pagesize);
   9792  1.4  christos   if (!data3)
   9793  1.4  christos     return 12;
   9794  1.4  christos   if (read (fd, data3, pagesize) != pagesize)
   9795  1.4  christos     return 13;
   9796  1.4  christos   for (i = 0; i < pagesize; ++i)
   9797  1.4  christos     if (*(data + i) != *(data3 + i))
   9798  1.4  christos       return 14;
   9799  1.4  christos   close (fd);
   9800  1.1  christos   return 0;
   9801  1.1  christos }
   9802  1.1  christos _ACEOF
   9803  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   9804  1.4  christos   ac_cv_func_mmap_fixed_mapped=yes
   9805  1.1  christos else
   9806  1.4  christos   ac_cv_func_mmap_fixed_mapped=no
   9807  1.4  christos fi
   9808  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9809  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9810  1.4  christos fi
   9811  1.4  christos 
   9812  1.4  christos fi
   9813  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   9814  1.4  christos $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   9815  1.4  christos if test $ac_cv_func_mmap_fixed_mapped = yes; then
   9816  1.4  christos 
   9817  1.4  christos $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   9818  1.1  christos 
   9819  1.1  christos fi
   9820  1.4  christos rm -f conftest.mmap conftest.txt
   9821  1.4  christos 
   9822  1.4  christos 
   9823  1.4  christos   # Try to allow MAP_ANONYMOUS.
   9824  1.4  christos   gl_have_mmap_anonymous=no
   9825  1.4  christos   if test $ac_cv_func_mmap_fixed_mapped = yes; then
   9826  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
   9827  1.4  christos $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
   9828  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9829  1.4  christos /* end confdefs.h.  */
   9830  1.4  christos 
   9831  1.4  christos #include <sys/mman.h>
   9832  1.4  christos #ifdef MAP_ANONYMOUS
   9833  1.4  christos     I cant identify this map.
   9834  1.4  christos #endif
   9835  1.3  christos 
   9836  1.4  christos _ACEOF
   9837  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9838  1.4  christos   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
   9839  1.4  christos   gl_have_mmap_anonymous=yes
   9840  1.1  christos fi
   9841  1.4  christos rm -f conftest*
   9842  1.4  christos 
   9843  1.4  christos     if test $gl_have_mmap_anonymous != yes; then
   9844  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9845  1.4  christos /* end confdefs.h.  */
   9846  1.4  christos 
   9847  1.4  christos #include <sys/mman.h>
   9848  1.4  christos #ifdef MAP_ANON
   9849  1.4  christos     I cant identify this map.
   9850  1.4  christos #endif
   9851  1.4  christos 
   9852  1.1  christos _ACEOF
   9853  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9854  1.4  christos   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
   9855  1.1  christos 
   9856  1.4  christos $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
   9857  1.1  christos 
   9858  1.4  christos          gl_have_mmap_anonymous=yes
   9859  1.1  christos fi
   9860  1.4  christos rm -f conftest*
   9861  1.4  christos 
   9862  1.4  christos     fi
   9863  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
   9864  1.4  christos $as_echo "$gl_have_mmap_anonymous" >&6; }
   9865  1.4  christos     if test $gl_have_mmap_anonymous = yes; then
   9866  1.1  christos 
   9867  1.4  christos $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
   9868  1.1  christos 
   9869  1.4  christos     fi
   9870  1.1  christos   fi
   9871  1.1  christos 
   9872  1.1  christos 
   9873  1.1  christos 
   9874  1.1  christos 
   9875  1.1  christos 
   9876  1.1  christos 
   9877  1.1  christos 
   9878  1.1  christos 
   9879  1.1  christos 
   9880  1.1  christos 
   9881  1.1  christos 
   9882  1.1  christos 
   9883  1.1  christos 
   9884  1.1  christos 
   9885  1.1  christos 
   9886  1.1  christos 
   9887  1.1  christos 
   9888  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   9889  1.4  christos $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   9890  1.4  christos if test "${am_cv_langinfo_codeset+set}" = set; then :
   9891  1.3  christos   $as_echo_n "(cached) " >&6
   9892  1.1  christos else
   9893  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9894  1.1  christos /* end confdefs.h.  */
   9895  1.4  christos #include <langinfo.h>
   9896  1.1  christos int
   9897  1.1  christos main ()
   9898  1.1  christos {
   9899  1.4  christos char* cs = nl_langinfo(CODESET);
   9900  1.1  christos   ;
   9901  1.1  christos   return 0;
   9902  1.1  christos }
   9903  1.1  christos _ACEOF
   9904  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   9905  1.4  christos   am_cv_langinfo_codeset=yes
   9906  1.3  christos else
   9907  1.4  christos   am_cv_langinfo_codeset=no
   9908  1.4  christos fi
   9909  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   9910  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   9911  1.3  christos 
   9912  1.3  christos fi
   9913  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   9914  1.4  christos $as_echo "$am_cv_langinfo_codeset" >&6; }
   9915  1.4  christos   if test $am_cv_langinfo_codeset = yes; then
   9916  1.4  christos 
   9917  1.4  christos $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   9918  1.4  christos 
   9919  1.4  christos   fi
   9920  1.4  christos 
   9921  1.4  christos 
   9922  1.4  christos 
   9923  1.4  christos 
   9924  1.4  christos 
   9925  1.4  christos 
   9926  1.4  christos 
   9927  1.4  christos 
   9928  1.4  christos 
   9929  1.4  christos 
   9930  1.4  christos 
   9931  1.4  christos 
   9932  1.4  christos 
   9933  1.3  christos 
   9934  1.1  christos 
   9935  1.1  christos 
   9936  1.1  christos 
   9937  1.1  christos 
   9938  1.1  christos 
   9939  1.1  christos 
   9940  1.1  christos 
   9941  1.1  christos 
   9942  1.1  christos 
   9943  1.1  christos 
   9944  1.1  christos 
   9945  1.1  christos 
   9946  1.1  christos 
   9947  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
   9948  1.4  christos $as_echo_n "checking for inttypes.h... " >&6; }
   9949  1.4  christos if test "${gt_cv_header_inttypes_h+set}" = set; then :
   9950  1.3  christos   $as_echo_n "(cached) " >&6
   9951  1.1  christos else
   9952  1.4  christos 
   9953  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9954  1.1  christos /* end confdefs.h.  */
   9955  1.4  christos #include <sys/types.h>
   9956  1.4  christos #include <inttypes.h>
   9957  1.4  christos int
   9958  1.4  christos main ()
   9959  1.4  christos {
   9960  1.4  christos 
   9961  1.4  christos   ;
   9962  1.4  christos   return 0;
   9963  1.4  christos }
   9964  1.1  christos _ACEOF
   9965  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   9966  1.4  christos   gt_cv_header_inttypes_h=yes
   9967  1.1  christos else
   9968  1.4  christos   gt_cv_header_inttypes_h=no
   9969  1.4  christos fi
   9970  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9971  1.1  christos 
   9972  1.1  christos fi
   9973  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
   9974  1.4  christos $as_echo "$gt_cv_header_inttypes_h" >&6; }
   9975  1.4  christos   if test $gt_cv_header_inttypes_h = yes; then
   9976  1.3  christos 
   9977  1.4  christos cat >>confdefs.h <<_ACEOF
   9978  1.4  christos #define HAVE_INTTYPES_H 1
   9979  1.1  christos _ACEOF
   9980  1.1  christos 
   9981  1.4  christos   fi
   9982  1.3  christos 
   9983  1.1  christos 
   9984  1.4  christos       ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
   9985  1.4  christos if test "x$ac_cv_have_decl_strdup" = x""yes; then :
   9986  1.4  christos   ac_have_decl=1
   9987  1.1  christos else
   9988  1.4  christos   ac_have_decl=0
   9989  1.1  christos fi
   9990  1.1  christos 
   9991  1.4  christos cat >>confdefs.h <<_ACEOF
   9992  1.4  christos #define HAVE_DECL_STRDUP $ac_have_decl
   9993  1.1  christos _ACEOF
   9994  1.1  christos 
   9995  1.1  christos 
   9996  1.4  christos for ac_func in strftime
   9997  1.4  christos do :
   9998  1.4  christos   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
   9999  1.4  christos if test "x$ac_cv_func_strftime" = x""yes; then :
   10000  1.4  christos   cat >>confdefs.h <<_ACEOF
   10001  1.4  christos #define HAVE_STRFTIME 1
   10002  1.4  christos _ACEOF
   10003  1.1  christos 
   10004  1.4  christos else
   10005  1.4  christos   # strftime is in -lintl on SCO UNIX.
   10006  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
   10007  1.4  christos $as_echo_n "checking for strftime in -lintl... " >&6; }
   10008  1.4  christos if test "${ac_cv_lib_intl_strftime+set}" = set; then :
   10009  1.3  christos   $as_echo_n "(cached) " >&6
   10010  1.1  christos else
   10011  1.4  christos   ac_check_lib_save_LIBS=$LIBS
   10012  1.4  christos LIBS="-lintl  $LIBS"
   10013  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10014  1.1  christos /* end confdefs.h.  */
   10015  1.1  christos 
   10016  1.3  christos /* Override any GCC internal prototype to avoid an error.
   10017  1.3  christos    Use char because int might match the return type of a GCC
   10018  1.3  christos    builtin and then its argument prototype would still apply.  */
   10019  1.1  christos #ifdef __cplusplus
   10020  1.1  christos extern "C"
   10021  1.1  christos #endif
   10022  1.4  christos char strftime ();
   10023  1.1  christos int
   10024  1.1  christos main ()
   10025  1.1  christos {
   10026  1.4  christos return strftime ();
   10027  1.1  christos   ;
   10028  1.1  christos   return 0;
   10029  1.1  christos }
   10030  1.1  christos _ACEOF
   10031  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   10032  1.4  christos   ac_cv_lib_intl_strftime=yes
   10033  1.1  christos else
   10034  1.4  christos   ac_cv_lib_intl_strftime=no
   10035  1.4  christos fi
   10036  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   10037  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   10038  1.4  christos LIBS=$ac_check_lib_save_LIBS
   10039  1.4  christos fi
   10040  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
   10041  1.4  christos $as_echo "$ac_cv_lib_intl_strftime" >&6; }
   10042  1.4  christos if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
   10043  1.4  christos   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
   10044  1.1  christos 
   10045  1.4  christos LIBS="-lintl $LIBS"
   10046  1.1  christos fi
   10047  1.3  christos 
   10048  1.1  christos fi
   10049  1.4  christos done
   10050  1.4  christos 
   10051  1.4  christos 
   10052  1.4  christos 
   10053  1.4  christos 
   10054  1.4  christos 
   10055  1.4  christos 
   10056  1.4  christos 
   10057  1.4  christos 
   10058  1.4  christos 
   10059  1.4  christos 
   10060  1.4  christos 
   10061  1.4  christos 
   10062  1.4  christos 
   10063  1.4  christos 
   10064  1.4  christos 
   10065  1.4  christos 
   10066  1.4  christos 
   10067  1.4  christos 
   10068  1.4  christos  case " $LIBOBJS " in
   10069  1.4  christos   *" strftime.$ac_objext "* ) ;;
   10070  1.4  christos   *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
   10071  1.4  christos  ;;
   10072  1.4  christos esac
   10073  1.4  christos 
   10074  1.4  christos 
   10075  1.4  christos  # strftime.c uses the underyling system strftime if it exists.
   10076  1.4  christos 
   10077  1.4  christos 
   10078  1.4  christos  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
   10079  1.4  christos 
   10080  1.4  christos 
   10081  1.4  christos 
   10082  1.4  christos 
   10083  1.1  christos 
   10084  1.1  christos 
   10085  1.4  christos   :
   10086  1.1  christos 
   10087  1.1  christos 
   10088  1.1  christos 
   10089  1.1  christos 
   10090  1.3  christos 
   10091  1.1  christos 
   10092  1.1  christos 
   10093  1.1  christos 
   10094  1.1  christos 
   10095  1.1  christos 
   10096  1.1  christos 
   10097  1.1  christos 
   10098  1.1  christos 
   10099  1.3  christos 
   10100  1.1  christos 
   10101  1.4  christos   :
   10102  1.1  christos 
   10103  1.1  christos 
   10104  1.1  christos 
   10105  1.1  christos 
   10106  1.1  christos 
   10107  1.1  christos 
   10108  1.1  christos 
   10109  1.1  christos 
   10110  1.1  christos 
   10111  1.1  christos 
   10112  1.4  christos $as_echo "#define my_strftime nstrftime" >>confdefs.h
   10113  1.1  christos 
   10114  1.1  christos 
   10115  1.1  christos 
   10116  1.4  christos       ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
   10117  1.4  christos if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
   10118  1.4  christos   ac_have_decl=1
   10119  1.1  christos else
   10120  1.4  christos   ac_have_decl=0
   10121  1.4  christos fi
   10122  1.1  christos 
   10123  1.4  christos cat >>confdefs.h <<_ACEOF
   10124  1.4  christos #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
   10125  1.1  christos _ACEOF
   10126  1.1  christos 
   10127  1.3  christos 
   10128  1.4  christos 
   10129  1.4  christos       ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
   10130  1.4  christos if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
   10131  1.4  christos   ac_have_decl=1
   10132  1.4  christos else
   10133  1.4  christos   ac_have_decl=0
   10134  1.1  christos fi
   10135  1.1  christos 
   10136  1.4  christos cat >>confdefs.h <<_ACEOF
   10137  1.4  christos #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
   10138  1.1  christos _ACEOF
   10139  1.1  christos 
   10140  1.1  christos 
   10141  1.1  christos 
   10142  1.4  christos       ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
   10143  1.4  christos if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
   10144  1.4  christos   ac_have_decl=1
   10145  1.1  christos else
   10146  1.4  christos   ac_have_decl=0
   10147  1.4  christos fi
   10148  1.1  christos 
   10149  1.4  christos cat >>confdefs.h <<_ACEOF
   10150  1.4  christos #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
   10151  1.1  christos _ACEOF
   10152  1.1  christos 
   10153  1.3  christos 
   10154  1.4  christos 
   10155  1.4  christos       ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
   10156  1.4  christos if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
   10157  1.4  christos   ac_have_decl=1
   10158  1.4  christos else
   10159  1.4  christos   ac_have_decl=0
   10160  1.1  christos fi
   10161  1.1  christos 
   10162  1.4  christos cat >>confdefs.h <<_ACEOF
   10163  1.4  christos #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
   10164  1.1  christos _ACEOF
   10165  1.1  christos 
   10166  1.1  christos 
   10167  1.1  christos 
   10168  1.4  christos       ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
   10169  1.4  christos if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
   10170  1.4  christos   ac_have_decl=1
   10171  1.1  christos else
   10172  1.4  christos   ac_have_decl=0
   10173  1.4  christos fi
   10174  1.4  christos 
   10175  1.4  christos cat >>confdefs.h <<_ACEOF
   10176  1.4  christos #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
   10177  1.1  christos _ACEOF
   10178  1.1  christos 
   10179  1.1  christos 
   10180  1.4  christos 
   10181  1.4  christos       ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
   10182  1.4  christos if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
   10183  1.4  christos   ac_have_decl=1
   10184  1.4  christos else
   10185  1.4  christos   ac_have_decl=0
   10186  1.4  christos fi
   10187  1.4  christos 
   10188  1.4  christos cat >>confdefs.h <<_ACEOF
   10189  1.4  christos #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
   10190  1.1  christos _ACEOF
   10191  1.1  christos 
   10192  1.3  christos 
   10193  1.4  christos 
   10194  1.4  christos       ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
   10195  1.4  christos if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
   10196  1.4  christos   ac_have_decl=1
   10197  1.4  christos else
   10198  1.4  christos   ac_have_decl=0
   10199  1.1  christos fi
   10200  1.1  christos 
   10201  1.4  christos cat >>confdefs.h <<_ACEOF
   10202  1.4  christos #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
   10203  1.1  christos _ACEOF
   10204  1.1  christos 
   10205  1.1  christos 
   10206  1.1  christos 
   10207  1.4  christos       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
   10208  1.4  christos if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
   10209  1.4  christos   ac_have_decl=1
   10210  1.4  christos else
   10211  1.4  christos   ac_have_decl=0
   10212  1.4  christos fi
   10213  1.1  christos 
   10214  1.4  christos cat >>confdefs.h <<_ACEOF
   10215  1.4  christos #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
   10216  1.1  christos _ACEOF
   10217  1.4  christos 
   10218  1.4  christos 
   10219  1.4  christos 
   10220  1.4  christos       ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
   10221  1.4  christos if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
   10222  1.4  christos   ac_have_decl=1
   10223  1.1  christos else
   10224  1.4  christos   ac_have_decl=0
   10225  1.1  christos fi
   10226  1.3  christos 
   10227  1.4  christos cat >>confdefs.h <<_ACEOF
   10228  1.4  christos #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
   10229  1.1  christos _ACEOF
   10230  1.1  christos 
   10231  1.3  christos 
   10232  1.1  christos 
   10233  1.4  christos       ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
   10234  1.4  christos if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
   10235  1.4  christos   ac_have_decl=1
   10236  1.1  christos else
   10237  1.4  christos   ac_have_decl=0
   10238  1.1  christos fi
   10239  1.1  christos 
   10240  1.4  christos cat >>confdefs.h <<_ACEOF
   10241  1.4  christos #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
   10242  1.1  christos _ACEOF
   10243  1.1  christos 
   10244  1.1  christos 
   10245  1.1  christos 
   10246  1.4  christos 
   10247  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW" >&5
   10248  1.4  christos $as_echo_n "checking for EOVERFLOW... " >&6; }
   10249  1.4  christos if test "${ac_cv_decl_EOVERFLOW+set}" = set; then :
   10250  1.4  christos   $as_echo_n "(cached) " >&6
   10251  1.4  christos else
   10252  1.4  christos 
   10253  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10254  1.1  christos /* end confdefs.h.  */
   10255  1.1  christos 
   10256  1.4  christos #include <errno.h>
   10257  1.4  christos #ifdef EOVERFLOW
   10258  1.4  christos yes
   10259  1.1  christos #endif
   10260  1.1  christos 
   10261  1.1  christos _ACEOF
   10262  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10263  1.4  christos   $EGREP "yes" >/dev/null 2>&1; then :
   10264  1.4  christos   have_eoverflow=1
   10265  1.1  christos fi
   10266  1.1  christos rm -f conftest*
   10267  1.1  christos 
   10268  1.4  christos     if test -n "$have_eoverflow"; then
   10269  1.4  christos             ac_cv_decl_EOVERFLOW=yes
   10270  1.4  christos     else
   10271  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10272  1.1  christos /* end confdefs.h.  */
   10273  1.1  christos 
   10274  1.4  christos #define _XOPEN_SOURCE_EXTENDED 1
   10275  1.4  christos #include <errno.h>
   10276  1.4  christos #ifdef EOVERFLOW
   10277  1.4  christos yes
   10278  1.4  christos #endif
   10279  1.4  christos 
   10280  1.1  christos _ACEOF
   10281  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10282  1.4  christos   $EGREP "yes" >/dev/null 2>&1; then :
   10283  1.4  christos   have_eoverflow=1
   10284  1.4  christos fi
   10285  1.4  christos rm -f conftest*
   10286  1.1  christos 
   10287  1.4  christos       if test -n "$have_eoverflow"; then
   10288  1.4  christos                         if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "ac_cv_decl_EOVERFLOW"        "
   10289  1.4  christos #define _XOPEN_SOURCE_EXTENDED 1
   10290  1.4  christos #include <errno.h>
   10291  1.4  christos /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   10292  1.4  christos #include <stdio.h>
   10293  1.4  christos #include <stdlib.h>
   10294  1.4  christos "; then :
   10295  1.1  christos 
   10296  1.1  christos fi
   10297  1.3  christos 
   10298  1.1  christos 
   10299  1.4  christos       else
   10300  1.4  christos                                 ac_cv_decl_EOVERFLOW=E2BIG
   10301  1.4  christos       fi
   10302  1.4  christos     fi
   10303  1.4  christos 
   10304  1.4  christos fi
   10305  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_EOVERFLOW" >&5
   10306  1.4  christos $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
   10307  1.4  christos   if test "$ac_cv_decl_EOVERFLOW" != yes; then
   10308  1.4  christos 
   10309  1.4  christos cat >>confdefs.h <<_ACEOF
   10310  1.4  christos #define EOVERFLOW $ac_cv_decl_EOVERFLOW
   10311  1.1  christos _ACEOF
   10312  1.4  christos 
   10313  1.4  christos     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
   10314  1.4  christos 
   10315  1.4  christos   fi
   10316  1.4  christos 
   10317  1.4  christos 
   10318  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
   10319  1.4  christos $as_echo_n "checking for signed... " >&6; }
   10320  1.4  christos if test "${bh_cv_c_signed+set}" = set; then :
   10321  1.4  christos   $as_echo_n "(cached) " >&6
   10322  1.4  christos else
   10323  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10324  1.1  christos /* end confdefs.h.  */
   10325  1.1  christos 
   10326  1.1  christos int
   10327  1.1  christos main ()
   10328  1.1  christos {
   10329  1.4  christos signed char x;
   10330  1.1  christos   ;
   10331  1.1  christos   return 0;
   10332  1.1  christos }
   10333  1.1  christos _ACEOF
   10334  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   10335  1.4  christos   bh_cv_c_signed=yes
   10336  1.1  christos else
   10337  1.4  christos   bh_cv_c_signed=no
   10338  1.1  christos fi
   10339  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10340  1.1  christos fi
   10341  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
   10342  1.4  christos $as_echo "$bh_cv_c_signed" >&6; }
   10343  1.4  christos   if test $bh_cv_c_signed = no; then
   10344  1.3  christos 
   10345  1.4  christos $as_echo "#define signed /**/" >>confdefs.h
   10346  1.3  christos 
   10347  1.4  christos   fi
   10348  1.1  christos 
   10349  1.1  christos 
   10350  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
   10351  1.4  christos $as_echo_n "checking for wchar_t... " >&6; }
   10352  1.4  christos if test "${gt_cv_c_wchar_t+set}" = set; then :
   10353  1.4  christos   $as_echo_n "(cached) " >&6
   10354  1.1  christos else
   10355  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10356  1.1  christos /* end confdefs.h.  */
   10357  1.1  christos #include <stddef.h>
   10358  1.4  christos        wchar_t foo = (wchar_t)'\0';
   10359  1.1  christos int
   10360  1.1  christos main ()
   10361  1.1  christos {
   10362  1.1  christos 
   10363  1.1  christos   ;
   10364  1.1  christos   return 0;
   10365  1.1  christos }
   10366  1.1  christos _ACEOF
   10367  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   10368  1.4  christos   gt_cv_c_wchar_t=yes
   10369  1.1  christos else
   10370  1.4  christos   gt_cv_c_wchar_t=no
   10371  1.1  christos fi
   10372  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10373  1.1  christos fi
   10374  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
   10375  1.4  christos $as_echo "$gt_cv_c_wchar_t" >&6; }
   10376  1.4  christos   if test $gt_cv_c_wchar_t = yes; then
   10377  1.4  christos 
   10378  1.4  christos $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
   10379  1.4  christos 
   10380  1.4  christos   fi
   10381  1.3  christos 
   10382  1.1  christos 
   10383  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
   10384  1.4  christos $as_echo_n "checking for wint_t... " >&6; }
   10385  1.4  christos if test "${gt_cv_c_wint_t+set}" = set; then :
   10386  1.4  christos   $as_echo_n "(cached) " >&6
   10387  1.4  christos else
   10388  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10389  1.1  christos /* end confdefs.h.  */
   10390  1.4  christos #include <wchar.h>
   10391  1.4  christos        wint_t foo = (wchar_t)'\0';
   10392  1.1  christos int
   10393  1.1  christos main ()
   10394  1.1  christos {
   10395  1.1  christos 
   10396  1.1  christos   ;
   10397  1.1  christos   return 0;
   10398  1.1  christos }
   10399  1.1  christos _ACEOF
   10400  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   10401  1.4  christos   gt_cv_c_wint_t=yes
   10402  1.1  christos else
   10403  1.4  christos   gt_cv_c_wint_t=no
   10404  1.4  christos fi
   10405  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10406  1.4  christos fi
   10407  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
   10408  1.4  christos $as_echo "$gt_cv_c_wint_t" >&6; }
   10409  1.4  christos   if test $gt_cv_c_wint_t = yes; then
   10410  1.4  christos 
   10411  1.4  christos $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
   10412  1.4  christos 
   10413  1.4  christos   fi
   10414  1.1  christos 
   10415  1.4  christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   10416  1.4  christos if test "x$ac_cv_type_size_t" = x""yes; then :
   10417  1.3  christos 
   10418  1.1  christos else
   10419  1.1  christos 
   10420  1.4  christos cat >>confdefs.h <<_ACEOF
   10421  1.4  christos #define size_t unsigned int
   10422  1.1  christos _ACEOF
   10423  1.4  christos 
   10424  1.4  christos fi
   10425  1.4  christos 
   10426  1.4  christos 
   10427  1.4  christos 
   10428  1.4  christos 
   10429  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
   10430  1.4  christos $as_echo_n "checking for intmax_t... " >&6; }
   10431  1.4  christos if test "${gt_cv_c_intmax_t+set}" = set; then :
   10432  1.4  christos   $as_echo_n "(cached) " >&6
   10433  1.4  christos else
   10434  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10435  1.1  christos /* end confdefs.h.  */
   10436  1.4  christos 
   10437  1.1  christos #include <stddef.h>
   10438  1.4  christos #include <stdlib.h>
   10439  1.4  christos #if HAVE_STDINT_H_WITH_UINTMAX
   10440  1.4  christos #include <stdint.h>
   10441  1.4  christos #endif
   10442  1.4  christos #if HAVE_INTTYPES_H_WITH_UINTMAX
   10443  1.4  christos #include <inttypes.h>
   10444  1.4  christos #endif
   10445  1.4  christos 
   10446  1.1  christos int
   10447  1.1  christos main ()
   10448  1.1  christos {
   10449  1.4  christos intmax_t x = -1;
   10450  1.1  christos   ;
   10451  1.1  christos   return 0;
   10452  1.1  christos }
   10453  1.1  christos _ACEOF
   10454  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   10455  1.4  christos   gt_cv_c_intmax_t=yes
   10456  1.4  christos else
   10457  1.4  christos   gt_cv_c_intmax_t=no
   10458  1.4  christos fi
   10459  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10460  1.4  christos fi
   10461  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
   10462  1.4  christos $as_echo "$gt_cv_c_intmax_t" >&6; }
   10463  1.4  christos   if test $gt_cv_c_intmax_t = yes; then
   10464  1.4  christos 
   10465  1.4  christos $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
   10466  1.4  christos 
   10467  1.4  christos   else
   10468  1.4  christos 
   10469  1.4  christos     test $ac_cv_type_long_long = yes \
   10470  1.4  christos       && ac_type='long long' \
   10471  1.4  christos       || ac_type='long'
   10472  1.4  christos 
   10473  1.4  christos cat >>confdefs.h <<_ACEOF
   10474  1.4  christos #define intmax_t $ac_type
   10475  1.1  christos _ACEOF
   10476  1.4  christos 
   10477  1.4  christos   fi
   10478  1.4  christos 
   10479  1.4  christos 
   10480  1.4  christos 
   10481  1.4  christos 
   10482  1.4  christos 
   10483  1.4  christos 
   10484  1.4  christos 
   10485  1.4  christos   if test $ac_cv_func_alloca_works = no; then
   10486  1.4  christos     :
   10487  1.4  christos   fi
   10488  1.4  christos 
   10489  1.4  christos   # Define an additional variable used in the Makefile substitution.
   10490  1.4  christos   if test $ac_cv_working_alloca_h = yes; then
   10491  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10492  1.1  christos /* end confdefs.h.  */
   10493  1.1  christos 
   10494  1.4  christos #if defined __GNUC__ || defined _AIX || defined _MSC_VER
   10495  1.4  christos 	Need own alloca
   10496  1.4  christos #endif
   10497  1.4  christos 
   10498  1.4  christos _ACEOF
   10499  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10500  1.4  christos   $EGREP "Need own alloca" >/dev/null 2>&1; then :
   10501  1.4  christos 
   10502  1.4  christos $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   10503  1.4  christos 
   10504  1.4  christos        ALLOCA_H=alloca.h
   10505  1.4  christos else
   10506  1.4  christos   ALLOCA_H=
   10507  1.4  christos fi
   10508  1.4  christos rm -f conftest*
   10509  1.4  christos 
   10510  1.4  christos   else
   10511  1.4  christos     ALLOCA_H=alloca.h
   10512  1.4  christos   fi
   10513  1.4  christos 
   10514  1.4  christos 
   10515  1.4  christos 
   10516  1.4  christos $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   10517  1.4  christos 
   10518  1.4  christos 
   10519  1.4  christos 
   10520  1.4  christos 
   10521  1.4  christos 
   10522  1.4  christos 
   10523  1.4  christos 
   10524  1.4  christos 
   10525  1.4  christos 
   10526  1.4  christos   for ac_func in atexit
   10527  1.4  christos do :
   10528  1.4  christos   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
   10529  1.4  christos if test "x$ac_cv_func_atexit" = x""yes; then :
   10530  1.4  christos   cat >>confdefs.h <<_ACEOF
   10531  1.4  christos #define HAVE_ATEXIT 1
   10532  1.1  christos _ACEOF
   10533  1.4  christos 
   10534  1.4  christos else
   10535  1.4  christos   case " $LIBOBJS " in
   10536  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10537  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10538  1.4  christos  ;;
   10539  1.4  christos esac
   10540  1.4  christos 
   10541  1.4  christos fi
   10542  1.4  christos done
   10543  1.4  christos 
   10544  1.4  christos 
   10545  1.4  christos   if test $ac_cv_func_atexit = no; then
   10546  1.4  christos 
   10547  1.4  christos   :
   10548  1.4  christos 
   10549  1.4  christos   fi
   10550  1.4  christos 
   10551  1.4  christos 
   10552  1.4  christos 
   10553  1.4  christos   case " $LIBOBJS " in
   10554  1.4  christos   *" canon-host.$ac_objext "* ) ;;
   10555  1.4  christos   *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
   10556  1.4  christos  ;;
   10557  1.4  christos esac
   10558  1.4  christos 
   10559  1.4  christos 
   10560  1.4  christos 
   10561  1.4  christos 
   10562  1.4  christos 
   10563  1.4  christos 
   10564  1.4  christos 
   10565  1.4  christos     case " $LIBOBJS " in
   10566  1.4  christos   *" canonicalize.$ac_objext "* ) ;;
   10567  1.4  christos   *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
   10568  1.4  christos  ;;
   10569  1.3  christos esac
   10570  1.4  christos 
   10571  1.4  christos 
   10572  1.4  christos 
   10573  1.4  christos     for ac_header in string.h sys/param.h
   10574  1.4  christos do :
   10575  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10576  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10577  1.4  christos eval as_val=\$$as_ac_Header
   10578  1.4  christos    if test "x$as_val" = x""yes; then :
   10579  1.4  christos   cat >>confdefs.h <<_ACEOF
   10580  1.4  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10581  1.4  christos _ACEOF
   10582  1.4  christos 
   10583  1.4  christos fi
   10584  1.4  christos 
   10585  1.4  christos done
   10586  1.4  christos 
   10587  1.4  christos     for ac_func in resolvepath canonicalize_file_name
   10588  1.4  christos do :
   10589  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10590  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10591  1.4  christos eval as_val=\$$as_ac_var
   10592  1.4  christos    if test "x$as_val" = x""yes; then :
   10593  1.4  christos   cat >>confdefs.h <<_ACEOF
   10594  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10595  1.4  christos _ACEOF
   10596  1.4  christos 
   10597  1.4  christos fi
   10598  1.4  christos done
   10599  1.4  christos 
   10600  1.4  christos 
   10601  1.4  christos 
   10602  1.4  christos 
   10603  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has a definition of PATH_MAX" >&5
   10604  1.4  christos $as_echo_n "checking whether this system has a definition of PATH_MAX... " >&6; }
   10605  1.4  christos if test "${gl_cv_have_path_max_definition+set}" = set; then :
   10606  1.4  christos   $as_echo_n "(cached) " >&6
   10607  1.4  christos else
   10608  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10609  1.4  christos /* end confdefs.h.  */
   10610  1.4  christos #include <unistd.h>
   10611  1.4  christos #include <limits.h>
   10612  1.4  christos #ifdef PATH_MAX
   10613  1.4  christos have_path_max_definition
   10614  1.4  christos #endif
   10615  1.4  christos _ACEOF
   10616  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10617  1.4  christos   $EGREP "have_path_max_definition" >/dev/null 2>&1; then :
   10618  1.4  christos   gl_cv_have_path_max_definition=yes
   10619  1.1  christos else
   10620  1.4  christos   gl_cv_have_path_max_definition=no
   10621  1.4  christos fi
   10622  1.4  christos rm -f conftest*
   10623  1.1  christos 
   10624  1.1  christos fi
   10625  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_path_max_definition" >&5
   10626  1.4  christos $as_echo "$gl_cv_have_path_max_definition" >&6; }
   10627  1.4  christos 
   10628  1.4  christos   if test $gl_cv_have_path_max_definition; then
   10629  1.4  christos     case " $LIBOBJS " in
   10630  1.4  christos   *" chdir-long.$ac_objext "* ) ;;
   10631  1.4  christos   *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
   10632  1.4  christos  ;;
   10633  1.4  christos esac
   10634  1.4  christos 
   10635  1.4  christos 
   10636  1.4  christos 
   10637  1.4  christos 
   10638  1.4  christos 
   10639  1.4  christos   # Define two additional variables used in the Makefile substitution.
   10640  1.4  christos 
   10641  1.4  christos   if test "$ac_cv_header_stdbool_h" = yes; then
   10642  1.4  christos     STDBOOL_H=''
   10643  1.4  christos   else
   10644  1.4  christos     STDBOOL_H='stdbool.h'
   10645  1.4  christos   fi
   10646  1.4  christos 
   10647  1.4  christos 
   10648  1.4  christos   if test "$ac_cv_type__Bool" = yes; then
   10649  1.4  christos     HAVE__BOOL=1
   10650  1.4  christos   else
   10651  1.4  christos     HAVE__BOOL=0
   10652  1.4  christos   fi
   10653  1.4  christos 
   10654  1.4  christos 
   10655  1.4  christos 
   10656  1.3  christos 
   10657  1.1  christos 
   10658  1.3  christos 
   10659  1.3  christos 
   10660  1.4  christos   for ac_func in mempcpy
   10661  1.4  christos do :
   10662  1.4  christos   ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
   10663  1.4  christos if test "x$ac_cv_func_mempcpy" = x""yes; then :
   10664  1.4  christos   cat >>confdefs.h <<_ACEOF
   10665  1.4  christos #define HAVE_MEMPCPY 1
   10666  1.1  christos _ACEOF
   10667  1.1  christos 
   10668  1.4  christos else
   10669  1.4  christos   case " $LIBOBJS " in
   10670  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10671  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10672  1.4  christos  ;;
   10673  1.3  christos esac
   10674  1.1  christos 
   10675  1.1  christos fi
   10676  1.4  christos done
   10677  1.4  christos 
   10678  1.4  christos 
   10679  1.4  christos   if test $ac_cv_func_mempcpy = no; then
   10680  1.4  christos 
   10681  1.4  christos   :
   10682  1.4  christos 
   10683  1.4  christos   fi
   10684  1.4  christos 
   10685  1.3  christos 
   10686  1.1  christos 
   10687  1.1  christos 
   10688  1.4  christos   for ac_func in openat
   10689  1.4  christos do :
   10690  1.4  christos   ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
   10691  1.4  christos if test "x$ac_cv_func_openat" = x""yes; then :
   10692  1.4  christos   cat >>confdefs.h <<_ACEOF
   10693  1.4  christos #define HAVE_OPENAT 1
   10694  1.1  christos _ACEOF
   10695  1.4  christos 
   10696  1.4  christos else
   10697  1.4  christos   case " $LIBOBJS " in
   10698  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10699  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10700  1.4  christos  ;;
   10701  1.3  christos esac
   10702  1.1  christos 
   10703  1.1  christos fi
   10704  1.4  christos done
   10705  1.4  christos 
   10706  1.4  christos 
   10707  1.4  christos   case $ac_cv_func_openat in
   10708  1.4  christos   yes) ;;
   10709  1.4  christos   *)
   10710  1.4  christos 
   10711  1.4  christos $as_echo "#define __OPENAT_PREFIX rpl_" >>confdefs.h
   10712  1.4  christos 
   10713  1.4  christos 
   10714  1.4  christos 
   10715  1.4  christos ;;
   10716  1.4  christos   esac
   10717  1.4  christos 
   10718  1.4  christos 
   10719  1.4  christos 
   10720  1.4  christos 
   10721  1.4  christos 
   10722  1.4  christos 
   10723  1.4  christos 
   10724  1.4  christos   :
   10725  1.4  christos 
   10726  1.4  christos 
   10727  1.4  christos 
   10728  1.4  christos 
   10729  1.3  christos 
   10730  1.1  christos 
   10731  1.4  christos   for ac_func in memrchr
   10732  1.4  christos do :
   10733  1.4  christos   ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
   10734  1.4  christos if test "x$ac_cv_func_memrchr" = x""yes; then :
   10735  1.4  christos   cat >>confdefs.h <<_ACEOF
   10736  1.4  christos #define HAVE_MEMRCHR 1
   10737  1.1  christos _ACEOF
   10738  1.1  christos 
   10739  1.4  christos else
   10740  1.4  christos   case " $LIBOBJS " in
   10741  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10742  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10743  1.4  christos  ;;
   10744  1.3  christos esac
   10745  1.1  christos 
   10746  1.1  christos fi
   10747  1.4  christos done
   10748  1.3  christos 
   10749  1.1  christos 
   10750  1.4  christos   if test $ac_cv_func_memrchr = no; then
   10751  1.4  christos     :
   10752  1.4  christos   fi
   10753  1.4  christos 
   10754  1.4  christos 
   10755  1.4  christos   fi
   10756  1.4  christos 
   10757  1.1  christos 
   10758  1.1  christos 
   10759  1.4  christos   case " $LIBOBJS " in
   10760  1.4  christos   *" closeout.$ac_objext "* ) ;;
   10761  1.4  christos   *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
   10762  1.4  christos  ;;
   10763  1.3  christos esac
   10764  1.1  christos 
   10765  1.3  christos 
   10766  1.4  christos     :
   10767  1.1  christos 
   10768  1.3  christos 
   10769  1.1  christos 
   10770  1.4  christos   case " $LIBOBJS " in
   10771  1.4  christos   *" dirname.$ac_objext "* ) ;;
   10772  1.4  christos   *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
   10773  1.4  christos  ;;
   10774  1.3  christos esac
   10775  1.1  christos 
   10776  1.3  christos 
   10777  1.1  christos 
   10778  1.1  christos 
   10779  1.4  christos 
   10780  1.4  christos 
   10781  1.4  christos   for ac_func in dup2
   10782  1.4  christos do :
   10783  1.4  christos   ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
   10784  1.4  christos if test "x$ac_cv_func_dup2" = x""yes; then :
   10785  1.4  christos   cat >>confdefs.h <<_ACEOF
   10786  1.4  christos #define HAVE_DUP2 1
   10787  1.1  christos _ACEOF
   10788  1.4  christos 
   10789  1.4  christos else
   10790  1.4  christos   case " $LIBOBJS " in
   10791  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10792  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10793  1.4  christos  ;;
   10794  1.3  christos esac
   10795  1.1  christos 
   10796  1.1  christos fi
   10797  1.4  christos done
   10798  1.4  christos 
   10799  1.4  christos 
   10800  1.4  christos   if test $ac_cv_func_dup2 = no; then
   10801  1.3  christos 
   10802  1.1  christos 
   10803  1.4  christos   :
   10804  1.1  christos 
   10805  1.1  christos 
   10806  1.3  christos 
   10807  1.3  christos 
   10808  1.1  christos 
   10809  1.1  christos 
   10810  1.1  christos   fi
   10811  1.1  christos 
   10812  1.1  christos 
   10813  1.1  christos 
   10814  1.3  christos 
   10815  1.4  christos   :
   10816  1.4  christos 
   10817  1.1  christos 
   10818  1.1  christos 
   10819  1.1  christos 
   10820  1.4  christos   case " $LIBOBJS " in
   10821  1.4  christos   *" exitfail.$ac_objext "* ) ;;
   10822  1.4  christos   *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
   10823  1.4  christos  ;;
   10824  1.4  christos esac
   10825  1.1  christos 
   10826  1.1  christos 
   10827  1.4  christos     :
   10828  1.1  christos 
   10829  1.1  christos 
   10830  1.1  christos 
   10831  1.4  christos   case " $LIBOBJS " in
   10832  1.4  christos   *" filenamecat.$ac_objext "* ) ;;
   10833  1.4  christos   *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
   10834  1.4  christos  ;;
   10835  1.4  christos esac
   10836  1.1  christos 
   10837  1.1  christos 
   10838  1.1  christos 
   10839  1.4  christos   :
   10840  1.1  christos 
   10841  1.1  christos 
   10842  1.1  christos 
   10843  1.1  christos 
   10844  1.1  christos 
   10845  1.1  christos 
   10846  1.4  christos   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
   10847  1.1  christos 
   10848  1.4  christos   FNMATCH_H=
   10849  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
   10850  1.4  christos $as_echo_n "checking for working POSIX fnmatch... " >&6; }
   10851  1.4  christos if test "${ac_cv_func_fnmatch_posix+set}" = set; then :
   10852  1.3  christos   $as_echo_n "(cached) " >&6
   10853  1.1  christos else
   10854  1.4  christos               if test "$cross_compiling" = yes; then :
   10855  1.4  christos   ac_cv_func_fnmatch_posix=cross
   10856  1.4  christos else
   10857  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10858  1.1  christos /* end confdefs.h.  */
   10859  1.1  christos 
   10860  1.4  christos #	   include <stdlib.h>
   10861  1.4  christos #	   include <fnmatch.h>
   10862  1.4  christos #	   define y(a, b, c) (fnmatch (a, b, c) == 0)
   10863  1.4  christos #	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
   10864  1.3  christos 
   10865  1.4  christos int
   10866  1.4  christos main ()
   10867  1.4  christos {
   10868  1.4  christos exit
   10869  1.4  christos 	   (!(y ("a*", "abc", 0)
   10870  1.4  christos 	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
   10871  1.4  christos 	      && y ("a\\\\bc", "abc", 0)
   10872  1.4  christos 	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
   10873  1.4  christos 	      && y ("*x", ".x", 0)
   10874  1.4  christos 	      && n ("*x", ".x", FNM_PERIOD)
   10875  1.4  christos 	      && 1));
   10876  1.4  christos   ;
   10877  1.4  christos   return 0;
   10878  1.4  christos }
   10879  1.1  christos _ACEOF
   10880  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   10881  1.4  christos   ac_cv_func_fnmatch_posix=yes
   10882  1.1  christos else
   10883  1.4  christos   ac_cv_func_fnmatch_posix=no
   10884  1.4  christos fi
   10885  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10886  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10887  1.4  christos fi
   10888  1.1  christos 
   10889  1.1  christos fi
   10890  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_posix" >&5
   10891  1.4  christos $as_echo "$ac_cv_func_fnmatch_posix" >&6; }
   10892  1.4  christos if test $ac_cv_func_fnmatch_posix = yes; then :
   10893  1.4  christos   rm -f lib/fnmatch.h
   10894  1.4  christos else
   10895  1.4  christos   ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
   10896  1.4  christos if test "x$ac_cv_have_decl_getenv" = x""yes; then :
   10897  1.4  christos   ac_have_decl=1
   10898  1.1  christos else
   10899  1.4  christos   ac_have_decl=0
   10900  1.1  christos fi
   10901  1.4  christos 
   10902  1.4  christos cat >>confdefs.h <<_ACEOF
   10903  1.4  christos #define HAVE_DECL_GETENV $ac_have_decl
   10904  1.4  christos _ACEOF
   10905  1.4  christos 
   10906  1.4  christos for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
   10907  1.4  christos do :
   10908  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10909  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10910  1.4  christos eval as_val=\$$as_ac_var
   10911  1.4  christos    if test "x$as_val" = x""yes; then :
   10912  1.4  christos   cat >>confdefs.h <<_ACEOF
   10913  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10914  1.4  christos _ACEOF
   10915  1.1  christos 
   10916  1.1  christos fi
   10917  1.4  christos done
   10918  1.4  christos 
   10919  1.4  christos for ac_header in wchar.h wctype.h
   10920  1.4  christos do :
   10921  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10922  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10923  1.4  christos eval as_val=\$$as_ac_Header
   10924  1.4  christos    if test "x$as_val" = x""yes; then :
   10925  1.1  christos   cat >>confdefs.h <<_ACEOF
   10926  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10927  1.1  christos _ACEOF
   10928  1.1  christos 
   10929  1.1  christos fi
   10930  1.1  christos 
   10931  1.1  christos done
   10932  1.1  christos 
   10933  1.4  christos case " $LIBOBJS " in
   10934  1.4  christos   *" fnmatch.$ac_objext "* ) ;;
   10935  1.4  christos   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
   10936  1.4  christos  ;;
   10937  1.4  christos esac
   10938  1.1  christos 
   10939  1.4  christos FNMATCH_H=fnmatch.h
   10940  1.1  christos 
   10941  1.4  christos fi
   10942  1.1  christos 
   10943  1.4  christos   if test $ac_cv_func_fnmatch_posix != yes; then
   10944  1.1  christos 
   10945  1.4  christos $as_echo "#define fnmatch posix_fnmatch" >>confdefs.h
   10946  1.3  christos 
   10947  1.4  christos   fi
   10948  1.1  christos 
   10949  1.1  christos 
   10950  1.1  christos 
   10951  1.1  christos 
   10952  1.1  christos 
   10953  1.4  christos   for ac_header in stdio_ext.h
   10954  1.4  christos do :
   10955  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
   10956  1.4  christos if test "x$ac_cv_header_stdio_ext_h" = x""yes; then :
   10957  1.4  christos   cat >>confdefs.h <<_ACEOF
   10958  1.4  christos #define HAVE_STDIO_EXT_H 1
   10959  1.1  christos _ACEOF
   10960  1.1  christos 
   10961  1.4  christos fi
   10962  1.1  christos 
   10963  1.4  christos done
   10964  1.1  christos 
   10965  1.4  christos   for ac_func in __fpending
   10966  1.4  christos do :
   10967  1.4  christos   ac_fn_c_check_func "$LINENO" "__fpending" "ac_cv_func___fpending"
   10968  1.4  christos if test "x$ac_cv_func___fpending" = x""yes; then :
   10969  1.4  christos   cat >>confdefs.h <<_ACEOF
   10970  1.4  christos #define HAVE___FPENDING 1
   10971  1.1  christos _ACEOF
   10972  1.4  christos 
   10973  1.4  christos else
   10974  1.4  christos   case " $LIBOBJS " in
   10975  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   10976  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   10977  1.4  christos  ;;
   10978  1.3  christos esac
   10979  1.1  christos 
   10980  1.1  christos fi
   10981  1.4  christos done
   10982  1.4  christos 
   10983  1.3  christos 
   10984  1.4  christos   fp_headers='
   10985  1.4  christos #     if HAVE_STDIO_EXT_H
   10986  1.4  christos #      include <stdio_ext.h>
   10987  1.4  christos #     endif
   10988  1.4  christos '
   10989  1.4  christos   ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
   10990  1.4  christos "
   10991  1.4  christos if test "x$ac_cv_have_decl___fpending" = x""yes; then :
   10992  1.4  christos   ac_have_decl=1
   10993  1.4  christos else
   10994  1.4  christos   ac_have_decl=0
   10995  1.1  christos fi
   10996  1.1  christos 
   10997  1.4  christos cat >>confdefs.h <<_ACEOF
   10998  1.4  christos #define HAVE_DECL___FPENDING $ac_have_decl
   10999  1.4  christos _ACEOF
   11000  1.1  christos 
   11001  1.4  christos   if test $ac_cv_func___fpending = no; then
   11002  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
   11003  1.4  christos $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
   11004  1.4  christos if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
   11005  1.3  christos   $as_echo_n "(cached) " >&6
   11006  1.1  christos else
   11007  1.1  christos 
   11008  1.4  christos 	for ac_expr in						\
   11009  1.4  christos 								\
   11010  1.4  christos 	    '# glibc2'						\
   11011  1.4  christos 	    'fp->_IO_write_ptr - fp->_IO_write_base'		\
   11012  1.4  christos 								\
   11013  1.4  christos 	    '# traditional Unix'				\
   11014  1.4  christos 	    'fp->_ptr - fp->_base'				\
   11015  1.4  christos 								\
   11016  1.4  christos 	    '# BSD'						\
   11017  1.4  christos 	    'fp->_p - fp->_bf._base'				\
   11018  1.4  christos 								\
   11019  1.4  christos 	    '# SCO, Unixware'					\
   11020  1.4  christos 	    'fp->__ptr - fp->__base'				\
   11021  1.4  christos 								\
   11022  1.4  christos 	    '# old glibc?'					\
   11023  1.4  christos 	    'fp->__bufp - fp->__buffer'				\
   11024  1.4  christos 								\
   11025  1.4  christos 	    '# old glibc iostream?'				\
   11026  1.4  christos 	    'fp->_pptr - fp->_pbase'				\
   11027  1.4  christos 								\
   11028  1.4  christos 	    '# VMS'						\
   11029  1.4  christos 	    '(*fp)->_ptr - (*fp)->_base'			\
   11030  1.4  christos 								\
   11031  1.4  christos 	    '# e.g., DGUX R4.11; the info is not available'	\
   11032  1.4  christos 	    1							\
   11033  1.4  christos 	    ; do
   11034  1.4  christos 
   11035  1.4  christos 	  # Skip each embedded comment.
   11036  1.4  christos 	  case "$ac_expr" in '#'*) continue;; esac
   11037  1.4  christos 
   11038  1.4  christos 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11039  1.1  christos /* end confdefs.h.  */
   11040  1.4  christos #include <stdio.h>
   11041  1.1  christos 
   11042  1.1  christos int
   11043  1.1  christos main ()
   11044  1.1  christos {
   11045  1.4  christos FILE *fp = stdin; (void) ($ac_expr);
   11046  1.1  christos   ;
   11047  1.1  christos   return 0;
   11048  1.1  christos }
   11049  1.1  christos _ACEOF
   11050  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   11051  1.4  christos   fp_done=yes
   11052  1.1  christos 
   11053  1.1  christos fi
   11054  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11055  1.4  christos 	  test "$fp_done" = yes && break
   11056  1.4  christos 	done
   11057  1.3  christos 
   11058  1.4  christos 	ac_cv_sys_pending_output_n_bytes=$ac_expr
   11059  1.1  christos 
   11060  1.1  christos 
   11061  1.1  christos fi
   11062  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
   11063  1.4  christos $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
   11064  1.1  christos 
   11065  1.4  christos cat >>confdefs.h <<_ACEOF
   11066  1.4  christos #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
   11067  1.4  christos _ACEOF
   11068  1.1  christos 
   11069  1.4  christos   fi
   11070  1.1  christos 
   11071  1.1  christos 
   11072  1.4  christos   for ac_func in ftruncate
   11073  1.4  christos do :
   11074  1.4  christos   ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
   11075  1.4  christos if test "x$ac_cv_func_ftruncate" = x""yes; then :
   11076  1.4  christos   cat >>confdefs.h <<_ACEOF
   11077  1.4  christos #define HAVE_FTRUNCATE 1
   11078  1.1  christos _ACEOF
   11079  1.1  christos 
   11080  1.1  christos else
   11081  1.4  christos   case " $LIBOBJS " in
   11082  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   11083  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11084  1.4  christos  ;;
   11085  1.3  christos esac
   11086  1.1  christos 
   11087  1.1  christos fi
   11088  1.4  christos done
   11089  1.4  christos 
   11090  1.3  christos 
   11091  1.4  christos   if test $ac_cv_func_ftruncate = no; then
   11092  1.1  christos 
   11093  1.1  christos 
   11094  1.4  christos   :
   11095  1.1  christos 
   11096  1.1  christos 
   11097  1.1  christos 
   11098  1.1  christos 
   11099  1.1  christos 
   11100  1.4  christos   for ac_func in chsize
   11101  1.4  christos do :
   11102  1.4  christos   ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
   11103  1.4  christos if test "x$ac_cv_func_chsize" = x""yes; then :
   11104  1.4  christos   cat >>confdefs.h <<_ACEOF
   11105  1.4  christos #define HAVE_CHSIZE 1
   11106  1.1  christos _ACEOF
   11107  1.1  christos 
   11108  1.4  christos fi
   11109  1.4  christos done
   11110  1.4  christos 
   11111  1.4  christos 
   11112  1.4  christos   fi
   11113  1.1  christos 
   11114  1.1  christos 
   11115  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
   11116  1.4  christos $as_echo_n "checking for library containing getaddrinfo... " >&6; }
   11117  1.4  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   11118  1.4  christos   $as_echo_n "(cached) " >&6
   11119  1.4  christos else
   11120  1.4  christos   ac_func_search_save_LIBS=$LIBS
   11121  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11122  1.4  christos /* end confdefs.h.  */
   11123  1.1  christos 
   11124  1.3  christos /* Override any GCC internal prototype to avoid an error.
   11125  1.3  christos    Use char because int might match the return type of a GCC
   11126  1.3  christos    builtin and then its argument prototype would still apply.  */
   11127  1.1  christos #ifdef __cplusplus
   11128  1.1  christos extern "C"
   11129  1.1  christos #endif
   11130  1.4  christos char getaddrinfo ();
   11131  1.1  christos int
   11132  1.1  christos main ()
   11133  1.1  christos {
   11134  1.4  christos return getaddrinfo ();
   11135  1.1  christos   ;
   11136  1.1  christos   return 0;
   11137  1.1  christos }
   11138  1.1  christos _ACEOF
   11139  1.4  christos for ac_lib in '' nsl socket; do
   11140  1.4  christos   if test -z "$ac_lib"; then
   11141  1.4  christos     ac_res="none required"
   11142  1.4  christos   else
   11143  1.4  christos     ac_res=-l$ac_lib
   11144  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11145  1.4  christos   fi
   11146  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   11147  1.4  christos   ac_cv_search_getaddrinfo=$ac_res
   11148  1.4  christos fi
   11149  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   11150  1.4  christos     conftest$ac_exeext
   11151  1.4  christos   if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   11152  1.4  christos   break
   11153  1.4  christos fi
   11154  1.4  christos done
   11155  1.4  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then :
   11156  1.4  christos 
   11157  1.1  christos else
   11158  1.4  christos   ac_cv_search_getaddrinfo=no
   11159  1.4  christos fi
   11160  1.4  christos rm conftest.$ac_ext
   11161  1.4  christos LIBS=$ac_func_search_save_LIBS
   11162  1.4  christos fi
   11163  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
   11164  1.4  christos $as_echo "$ac_cv_search_getaddrinfo" >&6; }
   11165  1.4  christos ac_res=$ac_cv_search_getaddrinfo
   11166  1.4  christos if test "$ac_res" != no; then :
   11167  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11168  1.1  christos 
   11169  1.1  christos fi
   11170  1.3  christos 
   11171  1.4  christos   for ac_func in getaddrinfo gai_strerror
   11172  1.4  christos do :
   11173  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11174  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11175  1.4  christos eval as_val=\$$as_ac_var
   11176  1.4  christos    if test "x$as_val" = x""yes; then :
   11177  1.1  christos   cat >>confdefs.h <<_ACEOF
   11178  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11179  1.1  christos _ACEOF
   11180  1.1  christos 
   11181  1.1  christos else
   11182  1.3  christos   case " $LIBOBJS " in
   11183  1.1  christos   *" $ac_func.$ac_objext "* ) ;;
   11184  1.3  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11185  1.3  christos  ;;
   11186  1.1  christos esac
   11187  1.1  christos 
   11188  1.1  christos fi
   11189  1.1  christos done
   11190  1.1  christos 
   11191  1.1  christos 
   11192  1.4  christos 
   11193  1.4  christos 
   11194  1.4  christos 
   11195  1.4  christos 
   11196  1.4  christos 
   11197  1.4  christos 
   11198  1.4  christos 
   11199  1.4  christos 
   11200  1.4  christos 
   11201  1.4  christos   case $gl_cv_func_getcwd_null in
   11202  1.4  christos   yes)
   11203  1.1  christos 
   11204  1.1  christos   :
   11205  1.1  christos 
   11206  1.1  christos 
   11207  1.1  christos 
   11208  1.1  christos 
   11209  1.1  christos 
   11210  1.1  christos 
   11211  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
   11212  1.4  christos $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
   11213  1.4  christos if test "${gl_cv_func_getcwd_path_max+set}" = set; then :
   11214  1.3  christos   $as_echo_n "(cached) " >&6
   11215  1.1  christos else
   11216  1.4  christos   # Arrange for deletion of the temporary directory this test creates.
   11217  1.4  christos      ac_clean_files="$ac_clean_files confdir3"
   11218  1.4  christos      if test "$cross_compiling" = yes; then :
   11219  1.4  christos   gl_cv_func_getcwd_path_max=no
   11220  1.4  christos else
   11221  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11222  1.1  christos /* end confdefs.h.  */
   11223  1.1  christos 
   11224  1.4  christos #include <errno.h>
   11225  1.4  christos #include <stdlib.h>
   11226  1.4  christos #include <unistd.h>
   11227  1.4  christos #include <string.h>
   11228  1.4  christos #include <limits.h>
   11229  1.4  christos #include <sys/stat.h>
   11230  1.4  christos #include <sys/types.h>
   11231  1.4  christos #include <fcntl.h>
   11232  1.1  christos 
   11233  1.4  christos #ifndef AT_FDCWD
   11234  1.4  christos # define AT_FDCWD 0
   11235  1.4  christos #endif
   11236  1.4  christos #ifdef ENAMETOOLONG
   11237  1.4  christos # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
   11238  1.1  christos #else
   11239  1.4  christos # define is_ENAMETOOLONG(x) 0
   11240  1.1  christos #endif
   11241  1.1  christos 
   11242  1.4  christos /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
   11243  1.4  christos #undef mkdir
   11244  1.1  christos 
   11245  1.4  christos #ifndef S_IRWXU
   11246  1.4  christos # define S_IRWXU 0700
   11247  1.1  christos #endif
   11248  1.4  christos 
   11249  1.4  christos /* The length of this name must be 8.  */
   11250  1.4  christos #define DIR_NAME "confdir3"
   11251  1.4  christos #define DIR_NAME_LEN 8
   11252  1.4  christos #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
   11253  1.4  christos 
   11254  1.4  christos /* The length of "../".  */
   11255  1.4  christos #define DOTDOTSLASH_LEN 3
   11256  1.4  christos 
   11257  1.4  christos /* Leftover bytes in the buffer, to work around library or OS bugs.  */
   11258  1.4  christos #define BUF_SLOP 20
   11259  1.1  christos 
   11260  1.1  christos int
   11261  1.4  christos main (void)
   11262  1.1  christos {
   11263  1.4  christos #ifndef PATH_MAX
   11264  1.4  christos   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
   11265  1.4  christos      at least not on a local file system.  And if we were to start worrying
   11266  1.4  christos      about remote file systems, we'd have to enable the wrapper function
   11267  1.4  christos      all of the time, just to be safe.  That's not worth the cost.  */
   11268  1.4  christos   exit (0);
   11269  1.4  christos #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
   11270  1.4  christos         - DIR_NAME_SIZE - BUF_SLOP) \
   11271  1.4  christos        <= PATH_MAX)
   11272  1.4  christos   /* FIXME: Assuming there's a system for which this is true,
   11273  1.4  christos      this should be done in a compile test.  */
   11274  1.4  christos   exit (0);
   11275  1.4  christos #else
   11276  1.4  christos   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
   11277  1.4  christos 	   + DIR_NAME_SIZE + BUF_SLOP];
   11278  1.4  christos   char *cwd = getcwd (buf, PATH_MAX);
   11279  1.4  christos   size_t initial_cwd_len;
   11280  1.4  christos   size_t cwd_len;
   11281  1.4  christos   int fail = 0;
   11282  1.4  christos   size_t n_chdirs = 0;
   11283  1.4  christos 
   11284  1.4  christos   if (cwd == NULL)
   11285  1.4  christos     exit (1);
   11286  1.4  christos 
   11287  1.4  christos   cwd_len = initial_cwd_len = strlen (cwd);
   11288  1.4  christos 
   11289  1.4  christos   while (1)
   11290  1.4  christos     {
   11291  1.4  christos       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
   11292  1.4  christos       char *c = NULL;
   11293  1.4  christos 
   11294  1.4  christos       cwd_len += DIR_NAME_SIZE;
   11295  1.4  christos       /* If mkdir or chdir fails, it could be that this system cannot create
   11296  1.4  christos 	 any file with an absolute name longer than PATH_MAX, such as cygwin.
   11297  1.4  christos 	 If so, leave fail as 0, because the current working directory can't
   11298  1.4  christos 	 be too long for getcwd if it can't even be created.  For other
   11299  1.4  christos 	 errors, be pessimistic and consider that as a failure, too.  */
   11300  1.4  christos       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
   11301  1.4  christos 	{
   11302  1.4  christos 	  if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
   11303  1.4  christos 	    fail = 2;
   11304  1.4  christos 	  break;
   11305  1.4  christos 	}
   11306  1.4  christos 
   11307  1.4  christos       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
   11308  1.4  christos 	{
   11309  1.4  christos 	  c = getcwd (buf, PATH_MAX);
   11310  1.4  christos 	  if (!c && errno == ENOENT)
   11311  1.4  christos 	    {
   11312  1.4  christos 	      fail = 1;
   11313  1.4  christos 	      break;
   11314  1.4  christos 	    }
   11315  1.4  christos 	  if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
   11316  1.4  christos 	    {
   11317  1.4  christos 	      fail = 2;
   11318  1.4  christos 	      break;
   11319  1.4  christos 	    }
   11320  1.4  christos 	}
   11321  1.4  christos 
   11322  1.4  christos       if (dotdot_max <= cwd_len - initial_cwd_len)
   11323  1.4  christos 	{
   11324  1.4  christos 	  if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
   11325  1.4  christos 	    break;
   11326  1.4  christos 	  c = getcwd (buf, cwd_len + 1);
   11327  1.4  christos 	  if (!c)
   11328  1.4  christos 	    {
   11329  1.4  christos 	      if (! (errno == ERANGE || errno == ENOENT
   11330  1.4  christos 		     || is_ENAMETOOLONG (errno)))
   11331  1.4  christos 		{
   11332  1.4  christos 		  fail = 2;
   11333  1.4  christos 		  break;
   11334  1.4  christos 		}
   11335  1.4  christos 	      if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
   11336  1.4  christos 		{
   11337  1.4  christos 		  fail = 1;
   11338  1.4  christos 		  break;
   11339  1.4  christos 		}
   11340  1.4  christos 	    }
   11341  1.4  christos 	}
   11342  1.4  christos 
   11343  1.4  christos       if (c && strlen (c) != cwd_len)
   11344  1.4  christos 	{
   11345  1.4  christos 	  fail = 2;
   11346  1.4  christos 	  break;
   11347  1.4  christos 	}
   11348  1.4  christos       ++n_chdirs;
   11349  1.4  christos     }
   11350  1.4  christos 
   11351  1.4  christos   /* Leaving behind such a deep directory is not polite.
   11352  1.4  christos      So clean up here, right away, even though the driving
   11353  1.4  christos      shell script would also clean up.  */
   11354  1.4  christos   {
   11355  1.4  christos     size_t i;
   11356  1.4  christos 
   11357  1.4  christos     /* Unlink first, in case the chdir failed.  */
   11358  1.4  christos     unlink (DIR_NAME);
   11359  1.4  christos     for (i = 0; i <= n_chdirs; i++)
   11360  1.4  christos       {
   11361  1.4  christos 	if (chdir ("..") < 0)
   11362  1.4  christos 	  break;
   11363  1.4  christos 	rmdir (DIR_NAME);
   11364  1.4  christos       }
   11365  1.4  christos   }
   11366  1.4  christos 
   11367  1.4  christos   exit (fail);
   11368  1.4  christos #endif
   11369  1.1  christos }
   11370  1.4  christos 
   11371  1.1  christos _ACEOF
   11372  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   11373  1.4  christos   gl_cv_func_getcwd_path_max=yes
   11374  1.1  christos else
   11375  1.4  christos   case $? in
   11376  1.4  christos      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
   11377  1.4  christos      *) gl_cv_func_getcwd_path_max=no;;
   11378  1.4  christos      esac
   11379  1.1  christos fi
   11380  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11381  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11382  1.1  christos fi
   11383  1.1  christos 
   11384  1.1  christos 
   11385  1.4  christos fi
   11386  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
   11387  1.4  christos $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
   11388  1.4  christos   case $gl_cv_func_getcwd_path_max in
   11389  1.4  christos   no,*)
   11390  1.1  christos 
   11391  1.4  christos $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
   11392  1.4  christos ;;
   11393  1.4  christos   esac
   11394  1.4  christos ;;
   11395  1.4  christos   esac
   11396  1.1  christos 
   11397  1.4  christos   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
   11398  1.4  christos   yes,yes) ;;
   11399  1.4  christos   *)
   11400  1.4  christos     case " $LIBOBJS " in
   11401  1.4  christos   *" getcwd.$ac_objext "* ) ;;
   11402  1.4  christos   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
   11403  1.4  christos  ;;
   11404  1.4  christos esac
   11405  1.1  christos 
   11406  1.1  christos 
   11407  1.4  christos $as_echo "#define __GETCWD_PREFIX rpl_" >>confdefs.h
   11408  1.1  christos 
   11409  1.1  christos 
   11410  1.1  christos 
   11411  1.1  christos 
   11412  1.1  christos 
   11413  1.4  christos   :
   11414  1.4  christos ;;
   11415  1.4  christos   esac
   11416  1.1  christos 
   11417  1.1  christos 
   11418  1.1  christos 
   11419  1.4  christos   case " $LIBOBJS " in
   11420  1.4  christos   *" getdate.$ac_objext "* ) ;;
   11421  1.4  christos   *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
   11422  1.4  christos  ;;
   11423  1.4  christos esac
   11424  1.1  christos 
   11425  1.1  christos 
   11426  1.3  christos 
   11427  1.1  christos 
   11428  1.1  christos 
   11429  1.1  christos 
   11430  1.1  christos 
   11431  1.1  christos 
   11432  1.1  christos   :
   11433  1.1  christos 
   11434  1.1  christos 
   11435  1.1  christos 
   11436  1.1  christos 
   11437  1.1  christos 
   11438  1.4  christos   ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
   11439  1.4  christos #include <$ac_cv_struct_tm>
   11440  1.1  christos 
   11441  1.4  christos "
   11442  1.4  christos if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
   11443  1.1  christos 
   11444  1.4  christos cat >>confdefs.h <<_ACEOF
   11445  1.4  christos #define HAVE_STRUCT_TM_TM_ZONE 1
   11446  1.1  christos _ACEOF
   11447  1.1  christos 
   11448  1.3  christos 
   11449  1.1  christos fi
   11450  1.1  christos 
   11451  1.4  christos if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   11452  1.1  christos 
   11453  1.4  christos $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
   11454  1.1  christos 
   11455  1.4  christos else
   11456  1.4  christos   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
   11457  1.4  christos "
   11458  1.4  christos if test "x$ac_cv_have_decl_tzname" = x""yes; then :
   11459  1.4  christos   ac_have_decl=1
   11460  1.4  christos else
   11461  1.4  christos   ac_have_decl=0
   11462  1.4  christos fi
   11463  1.1  christos 
   11464  1.4  christos cat >>confdefs.h <<_ACEOF
   11465  1.4  christos #define HAVE_DECL_TZNAME $ac_have_decl
   11466  1.4  christos _ACEOF
   11467  1.1  christos 
   11468  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
   11469  1.4  christos $as_echo_n "checking for tzname... " >&6; }
   11470  1.4  christos if test "${ac_cv_var_tzname+set}" = set; then :
   11471  1.3  christos   $as_echo_n "(cached) " >&6
   11472  1.1  christos else
   11473  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11474  1.1  christos /* end confdefs.h.  */
   11475  1.4  christos #include <time.h>
   11476  1.4  christos #if !HAVE_DECL_TZNAME
   11477  1.4  christos extern char *tzname[];
   11478  1.1  christos #endif
   11479  1.1  christos 
   11480  1.1  christos int
   11481  1.1  christos main ()
   11482  1.1  christos {
   11483  1.4  christos return tzname[0][0];
   11484  1.1  christos   ;
   11485  1.1  christos   return 0;
   11486  1.1  christos }
   11487  1.1  christos _ACEOF
   11488  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   11489  1.4  christos   ac_cv_var_tzname=yes
   11490  1.1  christos else
   11491  1.4  christos   ac_cv_var_tzname=no
   11492  1.1  christos fi
   11493  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   11494  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   11495  1.1  christos fi
   11496  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
   11497  1.4  christos $as_echo "$ac_cv_var_tzname" >&6; }
   11498  1.4  christos   if test $ac_cv_var_tzname = yes; then
   11499  1.1  christos 
   11500  1.4  christos $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
   11501  1.1  christos 
   11502  1.4  christos   fi
   11503  1.1  christos fi
   11504  1.1  christos 
   11505  1.1  christos 
   11506  1.1  christos 
   11507  1.1  christos 
   11508  1.1  christos 
   11509  1.1  christos 
   11510  1.1  christos 
   11511  1.1  christos 
   11512  1.3  christos 
   11513  1.4  christos   for ac_func in getdelim
   11514  1.4  christos do :
   11515  1.4  christos   ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
   11516  1.4  christos if test "x$ac_cv_func_getdelim" = x""yes; then :
   11517  1.1  christos   cat >>confdefs.h <<_ACEOF
   11518  1.4  christos #define HAVE_GETDELIM 1
   11519  1.1  christos _ACEOF
   11520  1.1  christos 
   11521  1.1  christos else
   11522  1.3  christos   case " $LIBOBJS " in
   11523  1.1  christos   *" $ac_func.$ac_objext "* ) ;;
   11524  1.3  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11525  1.3  christos  ;;
   11526  1.1  christos esac
   11527  1.1  christos 
   11528  1.1  christos fi
   11529  1.1  christos done
   11530  1.1  christos 
   11531  1.1  christos 
   11532  1.1  christos 
   11533  1.4  christos   :
   11534  1.1  christos 
   11535  1.1  christos 
   11536  1.1  christos 
   11537  1.1  christos 
   11538  1.1  christos 
   11539  1.1  christos 
   11540  1.4  christos   if test $ac_cv_func_getdelim = no; then
   11541  1.1  christos 
   11542  1.4  christos   for ac_func in flockfile funlockfile
   11543  1.4  christos do :
   11544  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11545  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11546  1.4  christos eval as_val=\$$as_ac_var
   11547  1.4  christos    if test "x$as_val" = x""yes; then :
   11548  1.4  christos   cat >>confdefs.h <<_ACEOF
   11549  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11550  1.4  christos _ACEOF
   11551  1.1  christos 
   11552  1.4  christos fi
   11553  1.4  christos done
   11554  1.1  christos 
   11555  1.1  christos 
   11556  1.1  christos   fi
   11557  1.1  christos 
   11558  1.1  christos 
   11559  1.4  christos   for ac_func in gethostname
   11560  1.4  christos do :
   11561  1.4  christos   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
   11562  1.4  christos if test "x$ac_cv_func_gethostname" = x""yes; then :
   11563  1.4  christos   cat >>confdefs.h <<_ACEOF
   11564  1.4  christos #define HAVE_GETHOSTNAME 1
   11565  1.4  christos _ACEOF
   11566  1.1  christos 
   11567  1.1  christos else
   11568  1.4  christos   case " $LIBOBJS " in
   11569  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   11570  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11571  1.4  christos  ;;
   11572  1.3  christos esac
   11573  1.3  christos 
   11574  1.3  christos fi
   11575  1.4  christos done
   11576  1.4  christos 
   11577  1.1  christos 
   11578  1.4  christos   if test $ac_cv_func_gethostname = no; then
   11579  1.1  christos 
   11580  1.4  christos   for ac_func in uname
   11581  1.4  christos do :
   11582  1.4  christos   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
   11583  1.4  christos if test "x$ac_cv_func_uname" = x""yes; then :
   11584  1.4  christos   cat >>confdefs.h <<_ACEOF
   11585  1.4  christos #define HAVE_UNAME 1
   11586  1.1  christos _ACEOF
   11587  1.1  christos 
   11588  1.4  christos fi
   11589  1.4  christos done
   11590  1.1  christos 
   11591  1.1  christos 
   11592  1.1  christos   fi
   11593  1.1  christos 
   11594  1.1  christos 
   11595  1.1  christos 
   11596  1.1  christos 
   11597  1.1  christos 
   11598  1.1  christos 
   11599  1.4  christos   ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
   11600  1.4  christos if test "x$ac_cv_have_decl_getline" = x""yes; then :
   11601  1.4  christos   ac_have_decl=1
   11602  1.4  christos else
   11603  1.4  christos   ac_have_decl=0
   11604  1.4  christos fi
   11605  1.1  christos 
   11606  1.4  christos cat >>confdefs.h <<_ACEOF
   11607  1.4  christos #define HAVE_DECL_GETLINE $ac_have_decl
   11608  1.4  christos _ACEOF
   11609  1.1  christos 
   11610  1.1  christos 
   11611  1.4  christos   gl_getline_needs_run_time_check=no
   11612  1.4  christos   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
   11613  1.4  christos if test "x$ac_cv_func_getline" = x""yes; then :
   11614  1.4  christos   		gl_getline_needs_run_time_check=yes
   11615  1.4  christos else
   11616  1.4  christos   am_cv_func_working_getline=no
   11617  1.4  christos fi
   11618  1.1  christos 
   11619  1.4  christos   if test $gl_getline_needs_run_time_check = yes; then
   11620  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
   11621  1.4  christos $as_echo_n "checking for working getline function... " >&6; }
   11622  1.4  christos if test "${am_cv_func_working_getline+set}" = set; then :
   11623  1.4  christos   $as_echo_n "(cached) " >&6
   11624  1.4  christos else
   11625  1.4  christos   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
   11626  1.4  christos     if test "$cross_compiling" = yes; then :
   11627  1.4  christos   am_cv_func_working_getline=no
   11628  1.4  christos else
   11629  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11630  1.4  christos /* end confdefs.h.  */
   11631  1.1  christos 
   11632  1.4  christos #    include <stdio.h>
   11633  1.4  christos #    include <stdlib.h>
   11634  1.4  christos #    include <string.h>
   11635  1.4  christos     int main ()
   11636  1.4  christos     { /* Based on a test program from Karl Heuer.  */
   11637  1.4  christos       char *line = NULL;
   11638  1.4  christos       size_t siz = 0;
   11639  1.4  christos       int len;
   11640  1.4  christos       FILE *in = fopen ("./conftest.data", "r");
   11641  1.4  christos       if (!in)
   11642  1.4  christos 	return 1;
   11643  1.4  christos       len = getline (&line, &siz, in);
   11644  1.4  christos       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
   11645  1.4  christos     }
   11646  1.1  christos 
   11647  1.4  christos _ACEOF
   11648  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   11649  1.4  christos   am_cv_func_working_getline=yes
   11650  1.4  christos else
   11651  1.4  christos   am_cv_func_working_getline=no
   11652  1.4  christos fi
   11653  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11654  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11655  1.4  christos fi
   11656  1.1  christos 
   11657  1.4  christos fi
   11658  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
   11659  1.4  christos $as_echo "$am_cv_func_working_getline" >&6; }
   11660  1.4  christos   fi
   11661  1.1  christos 
   11662  1.4  christos   if test $am_cv_func_working_getline = no; then
   11663  1.1  christos 
   11664  1.4  christos $as_echo "#define getline gnu_getline" >>confdefs.h
   11665  1.1  christos 
   11666  1.4  christos     case " $LIBOBJS " in
   11667  1.4  christos   *" getline.$ac_objext "* ) ;;
   11668  1.4  christos   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
   11669  1.4  christos  ;;
   11670  1.4  christos esac
   11671  1.1  christos 
   11672  1.1  christos 
   11673  1.1  christos 
   11674  1.1  christos 
   11675  1.1  christos 
   11676  1.1  christos 
   11677  1.1  christos 
   11678  1.1  christos 
   11679  1.4  christos   for ac_func in getdelim
   11680  1.4  christos do :
   11681  1.4  christos   ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
   11682  1.4  christos if test "x$ac_cv_func_getdelim" = x""yes; then :
   11683  1.4  christos   cat >>confdefs.h <<_ACEOF
   11684  1.4  christos #define HAVE_GETDELIM 1
   11685  1.1  christos _ACEOF
   11686  1.4  christos 
   11687  1.4  christos else
   11688  1.4  christos   case " $LIBOBJS " in
   11689  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   11690  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11691  1.4  christos  ;;
   11692  1.3  christos esac
   11693  1.1  christos 
   11694  1.1  christos fi
   11695  1.4  christos done
   11696  1.3  christos 
   11697  1.1  christos 
   11698  1.1  christos 
   11699  1.4  christos   :
   11700  1.1  christos 
   11701  1.1  christos 
   11702  1.1  christos 
   11703  1.1  christos 
   11704  1.1  christos 
   11705  1.1  christos 
   11706  1.4  christos   if test $ac_cv_func_getdelim = no; then
   11707  1.1  christos 
   11708  1.4  christos   for ac_func in flockfile funlockfile
   11709  1.4  christos do :
   11710  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11711  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11712  1.4  christos eval as_val=\$$as_ac_var
   11713  1.4  christos    if test "x$as_val" = x""yes; then :
   11714  1.1  christos   cat >>confdefs.h <<_ACEOF
   11715  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11716  1.1  christos _ACEOF
   11717  1.1  christos 
   11718  1.1  christos fi
   11719  1.4  christos done
   11720  1.1  christos 
   11721  1.1  christos 
   11722  1.4  christos   fi
   11723  1.1  christos 
   11724  1.1  christos 
   11725  1.4  christos   fi
   11726  1.1  christos 
   11727  1.1  christos 
   11728  1.4  christos   for ac_func in getlogin_r
   11729  1.4  christos do :
   11730  1.4  christos   ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r"
   11731  1.4  christos if test "x$ac_cv_func_getlogin_r" = x""yes; then :
   11732  1.4  christos   cat >>confdefs.h <<_ACEOF
   11733  1.4  christos #define HAVE_GETLOGIN_R 1
   11734  1.1  christos _ACEOF
   11735  1.1  christos 
   11736  1.4  christos else
   11737  1.4  christos   case " $LIBOBJS " in
   11738  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   11739  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   11740  1.4  christos  ;;
   11741  1.3  christos esac
   11742  1.1  christos 
   11743  1.1  christos fi
   11744  1.4  christos done
   11745  1.4  christos 
   11746  1.4  christos 
   11747  1.4  christos   if test $ac_cv_func_getlogin_r = no; then
   11748  1.4  christos 
   11749  1.4  christos 
   11750  1.4  christos 
   11751  1.4  christos   :
   11752  1.4  christos 
   11753  1.4  christos 
   11754  1.4  christos 
   11755  1.4  christos 
   11756  1.4  christos 
   11757  1.4  christos 
   11758  1.4  christos   :
   11759  1.4  christos 
   11760  1.4  christos 
   11761  1.4  christos 
   11762  1.3  christos 
   11763  1.3  christos 
   11764  1.1  christos 
   11765  1.1  christos 
   11766  1.1  christos 
   11767  1.1  christos 
   11768  1.1  christos 
   11769  1.3  christos   case " $LIBOBJS " in
   11770  1.4  christos   *" getlogin_r.$ac_objext "* ) ;;
   11771  1.4  christos   *) LIBOBJS="$LIBOBJS getlogin_r.$ac_objext"
   11772  1.3  christos  ;;
   11773  1.1  christos esac
   11774  1.1  christos 
   11775  1.1  christos 
   11776  1.4  christos   fi
   11777  1.4  christos 
   11778  1.1  christos 
   11779  1.4  christos   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
   11780  1.4  christos   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
   11781  1.4  christos   case " $LIBOBJS " in
   11782  1.4  christos   *" getndelim2.$ac_objext "* ) ;;
   11783  1.4  christos   *) case " $LIBOBJS " in
   11784  1.4  christos   *" getndelim2.$ac_objext "* ) ;;
   11785  1.4  christos   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
   11786  1.4  christos  ;;
   11787  1.4  christos esac
   11788  1.4  christos ;;
   11789  1.4  christos   esac
   11790  1.1  christos 
   11791  1.1  christos 
   11792  1.1  christos 
   11793  1.1  christos 
   11794  1.1  christos 
   11795  1.1  christos 
   11796  1.1  christos 
   11797  1.4  christos     :
   11798  1.1  christos 
   11799  1.1  christos 
   11800  1.1  christos 
   11801  1.4  christos   if test -n "$GETOPT_H"; then :
   11802  1.1  christos 
   11803  1.3  christos   case " $LIBOBJS " in
   11804  1.4  christos   *" getopt.$ac_objext "* ) ;;
   11805  1.4  christos   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
   11806  1.3  christos  ;;
   11807  1.1  christos esac
   11808  1.1  christos 
   11809  1.3  christos   case " $LIBOBJS " in
   11810  1.4  christos   *" getopt1.$ac_objext "* ) ;;
   11811  1.4  christos   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
   11812  1.3  christos  ;;
   11813  1.1  christos esac
   11814  1.1  christos 
   11815  1.4  christos 
   11816  1.4  christos   GETOPT_H=getopt.h
   11817  1.4  christos 
   11818  1.4  christos $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
   11819  1.4  christos 
   11820  1.4  christos 
   11821  1.4  christos 
   11822  1.4  christos   :
   11823  1.4  christos 
   11824  1.4  christos fi
   11825  1.4  christos 
   11826  1.1  christos 
   11827  1.1  christos 
   11828  1.1  christos 
   11829  1.1  christos 
   11830  1.1  christos   :
   11831  1.1  christos 
   11832  1.1  christos 
   11833  1.1  christos 
   11834  1.1  christos 
   11835  1.1  christos 
   11836  1.1  christos 
   11837  1.1  christos 
   11838  1.1  christos 
   11839  1.4  christos   for ac_header in OS.h
   11840  1.4  christos do :
   11841  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
   11842  1.4  christos if test "x$ac_cv_header_OS_h" = x""yes; then :
   11843  1.4  christos   cat >>confdefs.h <<_ACEOF
   11844  1.4  christos #define HAVE_OS_H 1
   11845  1.4  christos _ACEOF
   11846  1.4  christos 
   11847  1.4  christos fi
   11848  1.4  christos 
   11849  1.4  christos done
   11850  1.4  christos 
   11851  1.4  christos   for ac_func in getpagesize
   11852  1.4  christos do :
   11853  1.4  christos   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   11854  1.4  christos if test "x$ac_cv_func_getpagesize" = x""yes; then :
   11855  1.4  christos   cat >>confdefs.h <<_ACEOF
   11856  1.4  christos #define HAVE_GETPAGESIZE 1
   11857  1.4  christos _ACEOF
   11858  1.4  christos 
   11859  1.4  christos fi
   11860  1.4  christos done
   11861  1.4  christos 
   11862  1.4  christos 
   11863  1.4  christos 
   11864  1.4  christos 
   11865  1.4  christos 
   11866  1.4  christos 
   11867  1.1  christos   :
   11868  1.1  christos 
   11869  1.1  christos 
   11870  1.1  christos 
   11871  1.1  christos 
   11872  1.1  christos 
   11873  1.4  christos     case " $LIBOBJS " in
   11874  1.4  christos   *" getpass.$ac_objext "* ) ;;
   11875  1.4  christos   *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
   11876  1.4  christos  ;;
   11877  1.4  christos esac
   11878  1.4  christos 
   11879  1.1  christos 
   11880  1.1  christos 
   11881  1.4  christos   :
   11882  1.1  christos 
   11883  1.1  christos 
   11884  1.1  christos 
   11885  1.1  christos 
   11886  1.1  christos 
   11887  1.1  christos 
   11888  1.1  christos 
   11889  1.1  christos 
   11890  1.1  christos 
   11891  1.1  christos   :
   11892  1.1  christos 
   11893  1.1  christos 
   11894  1.1  christos 
   11895  1.1  christos 
   11896  1.1  christos 
   11897  1.1  christos 
   11898  1.1  christos 
   11899  1.1  christos 
   11900  1.1  christos 
   11901  1.1  christos 
   11902  1.1  christos 
   11903  1.1  christos 
   11904  1.4  christos   :
   11905  1.4  christos 
   11906  1.4  christos 
   11907  1.4  christos 
   11908  1.4  christos 
   11909  1.4  christos 
   11910  1.4  christos 
   11911  1.1  christos 
   11912  1.1  christos 
   11913  1.1  christos 
   11914  1.1  christos 
   11915  1.1  christos 
   11916  1.1  christos 
   11917  1.1  christos 
   11918  1.1  christos 
   11919  1.1  christos 
   11920  1.1  christos 
   11921  1.1  christos 
   11922  1.1  christos 
   11923  1.1  christos 
   11924  1.4  christos $as_echo "#define getpass gnu_getpass" >>confdefs.h
   11925  1.1  christos 
   11926  1.1  christos 
   11927  1.1  christos 
   11928  1.1  christos 
   11929  1.4  christos   case " $LIBOBJS " in
   11930  1.4  christos   *" gettime.$ac_objext "* ) ;;
   11931  1.4  christos   *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
   11932  1.4  christos  ;;
   11933  1.4  christos esac
   11934  1.1  christos 
   11935  1.1  christos 
   11936  1.1  christos 
   11937  1.1  christos 
   11938  1.1  christos 
   11939  1.4  christos   :
   11940  1.1  christos 
   11941  1.1  christos 
   11942  1.1  christos 
   11943  1.1  christos 
   11944  1.1  christos 
   11945  1.1  christos 
   11946  1.1  christos 
   11947  1.1  christos 
   11948  1.1  christos 
   11949  1.1  christos 
   11950  1.1  christos 
   11951  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
   11952  1.4  christos $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
   11953  1.4  christos if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then :
   11954  1.3  christos   $as_echo_n "(cached) " >&6
   11955  1.1  christos else
   11956  1.4  christos   if test "$cross_compiling" = yes; then :
   11957  1.4  christos   	 jm_cv_func_gettimeofday_clobber=yes
   11958  1.4  christos else
   11959  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11960  1.1  christos /* end confdefs.h.  */
   11961  1.1  christos 
   11962  1.4  christos #include <stdio.h>
   11963  1.4  christos #include <string.h>
   11964  1.1  christos 
   11965  1.4  christos #if TIME_WITH_SYS_TIME
   11966  1.4  christos # include <sys/time.h>
   11967  1.4  christos # include <time.h>
   11968  1.1  christos #else
   11969  1.4  christos # if HAVE_SYS_TIME_H
   11970  1.4  christos #  include <sys/time.h>
   11971  1.4  christos # else
   11972  1.4  christos #  include <time.h>
   11973  1.4  christos # endif
   11974  1.1  christos #endif
   11975  1.1  christos 
   11976  1.4  christos #include <stdlib.h>
   11977  1.1  christos 
   11978  1.1  christos int
   11979  1.1  christos main ()
   11980  1.1  christos {
   11981  1.4  christos   time_t t = 0;
   11982  1.4  christos   struct tm *lt;
   11983  1.4  christos   struct tm saved_lt;
   11984  1.4  christos   struct timeval tv;
   11985  1.4  christos   lt = localtime (&t);
   11986  1.4  christos   saved_lt = *lt;
   11987  1.4  christos   gettimeofday (&tv, NULL);
   11988  1.4  christos   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
   11989  1.4  christos     exit (1);
   11990  1.4  christos 
   11991  1.4  christos   exit (0);
   11992  1.1  christos }
   11993  1.4  christos 
   11994  1.1  christos _ACEOF
   11995  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   11996  1.4  christos   jm_cv_func_gettimeofday_clobber=no
   11997  1.1  christos else
   11998  1.4  christos   jm_cv_func_gettimeofday_clobber=yes
   11999  1.4  christos fi
   12000  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12001  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12002  1.4  christos fi
   12003  1.1  christos 
   12004  1.3  christos 
   12005  1.1  christos fi
   12006  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_gettimeofday_clobber" >&5
   12007  1.4  christos $as_echo "$jm_cv_func_gettimeofday_clobber" >&6; }
   12008  1.4  christos   if test $jm_cv_func_gettimeofday_clobber = yes; then
   12009  1.1  christos 
   12010  1.3  christos   case " $LIBOBJS " in
   12011  1.4  christos   *" gettimeofday.$ac_objext "* ) ;;
   12012  1.4  christos   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
   12013  1.3  christos  ;;
   12014  1.1  christos esac
   12015  1.1  christos 
   12016  1.1  christos 
   12017  1.4  christos $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
   12018  1.4  christos 
   12019  1.4  christos 
   12020  1.4  christos $as_echo "#define localtime rpl_localtime" >>confdefs.h
   12021  1.4  christos 
   12022  1.4  christos 
   12023  1.4  christos 
   12024  1.4  christos 
   12025  1.4  christos $as_echo "#define gettimeofday rpl_gettimeofday" >>confdefs.h
   12026  1.1  christos 
   12027  1.1  christos 
   12028  1.1  christos 
   12029  1.1  christos 
   12030  1.4  christos   fi
   12031  1.1  christos 
   12032  1.4  christos    GLOB_H=
   12033  1.4  christos   for ac_header in glob.h
   12034  1.4  christos do :
   12035  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
   12036  1.4  christos if test "x$ac_cv_header_glob_h" = x""yes; then :
   12037  1.4  christos   cat >>confdefs.h <<_ACEOF
   12038  1.4  christos #define HAVE_GLOB_H 1
   12039  1.4  christos _ACEOF
   12040  1.1  christos 
   12041  1.4  christos else
   12042  1.4  christos   GLOB_H=glob.h
   12043  1.4  christos fi
   12044  1.1  christos 
   12045  1.4  christos done
   12046  1.1  christos 
   12047  1.1  christos 
   12048  1.4  christos   if test -z "$GLOB_H"; then
   12049  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
   12050  1.4  christos $as_echo_n "checking for GNU glob interface version 1... " >&6; }
   12051  1.4  christos if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then :
   12052  1.4  christos   $as_echo_n "(cached) " >&6
   12053  1.4  christos else
   12054  1.4  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12055  1.4  christos /* end confdefs.h.  */
   12056  1.4  christos #include <gnu-versions.h>
   12057  1.4  christos char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
   12058  1.4  christos _ACEOF
   12059  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   12060  1.4  christos   gl_cv_gnu_glob_interface_version_1=yes
   12061  1.4  christos else
   12062  1.4  christos   gl_cv_gnu_glob_interface_version_1=no
   12063  1.4  christos fi
   12064  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12065  1.4  christos fi
   12066  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
   12067  1.4  christos $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
   12068  1.1  christos 
   12069  1.4  christos     if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
   12070  1.4  christos       GLOB_H=glob.h
   12071  1.4  christos     fi
   12072  1.4  christos   fi
   12073  1.1  christos 
   12074  1.4  christos   if test -z "$GLOB_H"; then
   12075  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
   12076  1.4  christos $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
   12077  1.4  christos if test "${gl_cv_glob_lists_symlinks+set}" = set; then :
   12078  1.4  christos   $as_echo_n "(cached) " >&6
   12079  1.4  christos else
   12080  1.4  christos        if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
   12081  1.4  christos         gl_cv_glob_lists_symlinks=maybe
   12082  1.4  christos       else
   12083  1.4  christos         # If we can't make a symlink, then we cannot test this issue.  Be
   12084  1.4  christos         # pessimistic about this.
   12085  1.4  christos         gl_cv_glob_lists_symlinks=no
   12086  1.4  christos       fi
   12087  1.1  christos 
   12088  1.4  christos       if test $gl_cv_glob_lists_symlinks = maybe; then
   12089  1.4  christos         if test "$cross_compiling" = yes; then :
   12090  1.4  christos   gl_cv_glob_lists_symlinks=no
   12091  1.1  christos else
   12092  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12093  1.1  christos /* end confdefs.h.  */
   12094  1.4  christos #include <stddef.h>
   12095  1.4  christos #include <glob.h>
   12096  1.1  christos int
   12097  1.1  christos main ()
   12098  1.1  christos {
   12099  1.4  christos glob_t found;
   12100  1.4  christos if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
   12101  1.3  christos   ;
   12102  1.1  christos   return 0;
   12103  1.3  christos }
   12104  1.3  christos _ACEOF
   12105  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12106  1.4  christos   gl_cv_glob_lists_symlinks=yes
   12107  1.3  christos else
   12108  1.4  christos   gl_cv_glob_lists_symlinks=no
   12109  1.4  christos fi
   12110  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12111  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12112  1.4  christos fi
   12113  1.3  christos 
   12114  1.4  christos       fi
   12115  1.3  christos fi
   12116  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
   12117  1.4  christos $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
   12118  1.4  christos 
   12119  1.4  christos     if test $gl_cv_glob_lists_symlinks = no; then
   12120  1.4  christos       GLOB_H=glob.h
   12121  1.4  christos     fi
   12122  1.4  christos   fi
   12123  1.3  christos 
   12124  1.4  christos   rm -f conf$$-globtest
   12125  1.1  christos 
   12126  1.4  christos   if test -n "$GLOB_H"; then
   12127  1.3  christos 
   12128  1.3  christos 
   12129  1.4  christos   :
   12130  1.1  christos 
   12131  1.1  christos 
   12132  1.1  christos 
   12133  1.1  christos 
   12134  1.1  christos 
   12135  1.1  christos 
   12136  1.1  christos 
   12137  1.1  christos 
   12138  1.4  christos   :
   12139  1.1  christos 
   12140  1.1  christos 
   12141  1.1  christos 
   12142  1.1  christos 
   12143  1.1  christos 
   12144  1.1  christos 
   12145  1.1  christos 
   12146  1.4  christos   :
   12147  1.1  christos 
   12148  1.4  christos   GLOB_H=glob.h
   12149  1.1  christos 
   12150  1.4  christos   case " $LIBOBJS " in
   12151  1.4  christos   *" glob.$ac_objext "* ) ;;
   12152  1.4  christos   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
   12153  1.4  christos  ;;
   12154  1.4  christos esac
   12155  1.1  christos 
   12156  1.1  christos 
   12157  1.1  christos 
   12158  1.4  christos   fi
   12159  1.3  christos 
   12160  1.1  christos 
   12161  1.1  christos 
   12162  1.1  christos 
   12163  1.1  christos 
   12164  1.4  christos     :
   12165  1.1  christos 
   12166  1.4  christos   for ac_header in stdlib.h
   12167  1.4  christos do :
   12168  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
   12169  1.4  christos if test "x$ac_cv_header_stdlib_h" = x""yes; then :
   12170  1.4  christos   cat >>confdefs.h <<_ACEOF
   12171  1.4  christos #define HAVE_STDLIB_H 1
   12172  1.4  christos _ACEOF
   12173  1.1  christos 
   12174  1.4  christos fi
   12175  1.1  christos 
   12176  1.4  christos done
   12177  1.1  christos 
   12178  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   12179  1.4  christos $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   12180  1.4  christos if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
   12181  1.3  christos   $as_echo_n "(cached) " >&6
   12182  1.1  christos else
   12183  1.4  christos   if test "$cross_compiling" = yes; then :
   12184  1.4  christos   ac_cv_func_malloc_0_nonnull=no
   12185  1.4  christos else
   12186  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12187  1.1  christos /* end confdefs.h.  */
   12188  1.4  christos #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   12189  1.4  christos # include <stdlib.h>
   12190  1.1  christos #else
   12191  1.4  christos char *malloc ();
   12192  1.1  christos #endif
   12193  1.1  christos 
   12194  1.1  christos int
   12195  1.1  christos main ()
   12196  1.1  christos {
   12197  1.4  christos return ! malloc (0);
   12198  1.1  christos   ;
   12199  1.1  christos   return 0;
   12200  1.1  christos }
   12201  1.1  christos _ACEOF
   12202  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12203  1.4  christos   ac_cv_func_malloc_0_nonnull=yes
   12204  1.1  christos else
   12205  1.4  christos   ac_cv_func_malloc_0_nonnull=no
   12206  1.4  christos fi
   12207  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12208  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12209  1.4  christos fi
   12210  1.1  christos 
   12211  1.1  christos fi
   12212  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   12213  1.4  christos $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
   12214  1.4  christos if test $ac_cv_func_malloc_0_nonnull = yes; then :
   12215  1.3  christos 
   12216  1.4  christos $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
   12217  1.1  christos 
   12218  1.1  christos else
   12219  1.4  christos   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
   12220  1.4  christos 
   12221  1.4  christos    case " $LIBOBJS " in
   12222  1.4  christos   *" malloc.$ac_objext "* ) ;;
   12223  1.4  christos   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   12224  1.3  christos  ;;
   12225  1.1  christos esac
   12226  1.1  christos 
   12227  1.4  christos 
   12228  1.4  christos $as_echo "#define malloc rpl_malloc" >>confdefs.h
   12229  1.4  christos 
   12230  1.1  christos fi
   12231  1.1  christos 
   12232  1.1  christos 
   12233  1.4  christos 
   12234  1.4  christos 
   12235  1.4  christos 
   12236  1.4  christos   :
   12237  1.4  christos 
   12238  1.1  christos 
   12239  1.1  christos 
   12240  1.1  christos 
   12241  1.1  christos 
   12242  1.1  christos 
   12243  1.1  christos 
   12244  1.1  christos 
   12245  1.1  christos 
   12246  1.4  christos   if test x$ac_cv_header_wchar_h = xyes && test x$ac_cv_header_wctype_h = xyes; then
   12247  1.4  christos   	case " $LIBOBJS " in
   12248  1.4  christos   *" mbchar.$ac_objext "* ) ;;
   12249  1.4  christos   *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
   12250  1.3  christos  ;;
   12251  1.1  christos esac
   12252  1.1  christos 
   12253  1.4  christos   fi
   12254  1.1  christos 
   12255  1.1  christos 
   12256  1.1  christos   :
   12257  1.1  christos 
   12258  1.1  christos 
   12259  1.1  christos 
   12260  1.1  christos   :
   12261  1.1  christos 
   12262  1.1  christos 
   12263  1.1  christos 
   12264  1.3  christos   case " $LIBOBJS " in
   12265  1.4  christos   *" md5.$ac_objext "* ) ;;
   12266  1.4  christos   *) LIBOBJS="$LIBOBJS md5.$ac_objext"
   12267  1.3  christos  ;;
   12268  1.1  christos esac
   12269  1.1  christos 
   12270  1.1  christos 
   12271  1.1  christos 
   12272  1.1  christos 
   12273  1.1  christos 
   12274  1.1  christos   :
   12275  1.1  christos 
   12276  1.1  christos 
   12277  1.4  christos   for ac_func in memchr
   12278  1.4  christos do :
   12279  1.4  christos   ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
   12280  1.4  christos if test "x$ac_cv_func_memchr" = x""yes; then :
   12281  1.4  christos   cat >>confdefs.h <<_ACEOF
   12282  1.4  christos #define HAVE_MEMCHR 1
   12283  1.4  christos _ACEOF
   12284  1.1  christos 
   12285  1.1  christos else
   12286  1.4  christos   case " $LIBOBJS " in
   12287  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12288  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12289  1.4  christos  ;;
   12290  1.3  christos esac
   12291  1.1  christos 
   12292  1.1  christos fi
   12293  1.4  christos done
   12294  1.3  christos 
   12295  1.1  christos 
   12296  1.4  christos   if test $ac_cv_func_memchr = no; then
   12297  1.4  christos 
   12298  1.4  christos   for ac_header in bp-sym.h
   12299  1.4  christos do :
   12300  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
   12301  1.4  christos if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
   12302  1.4  christos   cat >>confdefs.h <<_ACEOF
   12303  1.4  christos #define HAVE_BP_SYM_H 1
   12304  1.1  christos _ACEOF
   12305  1.1  christos 
   12306  1.1  christos fi
   12307  1.3  christos 
   12308  1.4  christos done
   12309  1.4  christos 
   12310  1.4  christos 
   12311  1.4  christos   fi
   12312  1.1  christos 
   12313  1.1  christos 
   12314  1.4  christos   for ac_func in memmove
   12315  1.4  christos do :
   12316  1.4  christos   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   12317  1.4  christos if test "x$ac_cv_func_memmove" = x""yes; then :
   12318  1.1  christos   cat >>confdefs.h <<_ACEOF
   12319  1.4  christos #define HAVE_MEMMOVE 1
   12320  1.1  christos _ACEOF
   12321  1.1  christos 
   12322  1.4  christos else
   12323  1.4  christos   case " $LIBOBJS " in
   12324  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12325  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12326  1.4  christos  ;;
   12327  1.4  christos esac
   12328  1.4  christos 
   12329  1.1  christos fi
   12330  1.4  christos done
   12331  1.4  christos 
   12332  1.4  christos 
   12333  1.4  christos   if test $ac_cv_func_memmove = no; then
   12334  1.4  christos 
   12335  1.4  christos   :
   12336  1.4  christos 
   12337  1.4  christos   fi
   12338  1.4  christos 
   12339  1.4  christos 
   12340  1.1  christos 
   12341  1.1  christos 
   12342  1.1  christos 
   12343  1.1  christos 
   12344  1.4  christos   for ac_func in mempcpy
   12345  1.4  christos do :
   12346  1.4  christos   ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
   12347  1.4  christos if test "x$ac_cv_func_mempcpy" = x""yes; then :
   12348  1.4  christos   cat >>confdefs.h <<_ACEOF
   12349  1.4  christos #define HAVE_MEMPCPY 1
   12350  1.4  christos _ACEOF
   12351  1.1  christos 
   12352  1.4  christos else
   12353  1.3  christos   case " $LIBOBJS " in
   12354  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12355  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12356  1.3  christos  ;;
   12357  1.1  christos esac
   12358  1.1  christos 
   12359  1.4  christos fi
   12360  1.4  christos done
   12361  1.4  christos 
   12362  1.1  christos 
   12363  1.4  christos   if test $ac_cv_func_mempcpy = no; then
   12364  1.1  christos 
   12365  1.4  christos   :
   12366  1.1  christos 
   12367  1.4  christos   fi
   12368  1.1  christos 
   12369  1.1  christos 
   12370  1.1  christos 
   12371  1.1  christos 
   12372  1.1  christos 
   12373  1.3  christos 
   12374  1.1  christos 
   12375  1.4  christos   :
   12376  1.1  christos 
   12377  1.1  christos 
   12378  1.1  christos 
   12379  1.1  christos 
   12380  1.1  christos 
   12381  1.1  christos 
   12382  1.4  christos   for ac_func in memrchr
   12383  1.4  christos do :
   12384  1.4  christos   ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
   12385  1.4  christos if test "x$ac_cv_func_memrchr" = x""yes; then :
   12386  1.4  christos   cat >>confdefs.h <<_ACEOF
   12387  1.4  christos #define HAVE_MEMRCHR 1
   12388  1.4  christos _ACEOF
   12389  1.1  christos 
   12390  1.1  christos else
   12391  1.4  christos   case " $LIBOBJS " in
   12392  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12393  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12394  1.4  christos  ;;
   12395  1.1  christos esac
   12396  1.4  christos 
   12397  1.1  christos fi
   12398  1.4  christos done
   12399  1.4  christos 
   12400  1.1  christos 
   12401  1.4  christos   if test $ac_cv_func_memrchr = no; then
   12402  1.4  christos     :
   12403  1.1  christos   fi
   12404  1.1  christos 
   12405  1.1  christos 
   12406  1.1  christos 
   12407  1.1  christos 
   12408  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir fails due to a trailing slash" >&5
   12409  1.4  christos $as_echo_n "checking whether mkdir fails due to a trailing slash... " >&6; }
   12410  1.4  christos if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then :
   12411  1.4  christos   $as_echo_n "(cached) " >&6
   12412  1.4  christos else
   12413  1.3  christos 
   12414  1.4  christos       # Arrange for deletion of the temporary directory this test might create.
   12415  1.4  christos       ac_clean_files="$ac_clean_files confdir-slash"
   12416  1.4  christos       if test "$cross_compiling" = yes; then :
   12417  1.4  christos   gl_cv_func_mkdir_trailing_slash_bug=yes
   12418  1.1  christos 
   12419  1.1  christos else
   12420  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12421  1.4  christos /* end confdefs.h.  */
   12422  1.4  christos 
   12423  1.4  christos #       include <sys/types.h>
   12424  1.4  christos #       include <sys/stat.h>
   12425  1.4  christos #       include <stdlib.h>
   12426  1.4  christos 	int main ()
   12427  1.4  christos 	{
   12428  1.4  christos 	  rmdir ("confdir-slash");
   12429  1.4  christos 	  exit (mkdir ("confdir-slash/", 0700));
   12430  1.4  christos 	}
   12431  1.1  christos 
   12432  1.4  christos _ACEOF
   12433  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12434  1.4  christos   gl_cv_func_mkdir_trailing_slash_bug=no
   12435  1.1  christos else
   12436  1.4  christos   gl_cv_func_mkdir_trailing_slash_bug=yes
   12437  1.1  christos fi
   12438  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12439  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12440  1.1  christos fi
   12441  1.1  christos 
   12442  1.1  christos 
   12443  1.1  christos 
   12444  1.1  christos fi
   12445  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
   12446  1.4  christos $as_echo "$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
   12447  1.1  christos 
   12448  1.4  christos   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
   12449  1.4  christos     case " $LIBOBJS " in
   12450  1.4  christos   *" mkdir.$ac_objext "* ) ;;
   12451  1.4  christos   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
   12452  1.4  christos  ;;
   12453  1.1  christos esac
   12454  1.1  christos 
   12455  1.1  christos 
   12456  1.4  christos $as_echo "#define mkdir rpl_mkdir" >>confdefs.h
   12457  1.1  christos 
   12458  1.4  christos     :
   12459  1.1  christos   fi
   12460  1.1  christos 
   12461  1.4  christos     for ac_func in mkstemp
   12462  1.4  christos do :
   12463  1.4  christos   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
   12464  1.4  christos if test "x$ac_cv_func_mkstemp" = x""yes; then :
   12465  1.4  christos   cat >>confdefs.h <<_ACEOF
   12466  1.4  christos #define HAVE_MKSTEMP 1
   12467  1.4  christos _ACEOF
   12468  1.1  christos 
   12469  1.4  christos else
   12470  1.4  christos   case " $LIBOBJS " in
   12471  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12472  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12473  1.4  christos  ;;
   12474  1.4  christos esac
   12475  1.1  christos 
   12476  1.3  christos fi
   12477  1.4  christos done
   12478  1.1  christos 
   12479  1.1  christos 
   12480  1.4  christos   if test $ac_cv_func_mkstemp = no; then
   12481  1.4  christos     gl_cv_func_mkstemp_limitations=yes
   12482  1.4  christos   else
   12483  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp limitations" >&5
   12484  1.4  christos $as_echo_n "checking for mkstemp limitations... " >&6; }
   12485  1.4  christos if test "${gl_cv_func_mkstemp_limitations+set}" = set; then :
   12486  1.4  christos   $as_echo_n "(cached) " >&6
   12487  1.4  christos else
   12488  1.1  christos 
   12489  1.4  christos         mkdir conftest.mkstemp
   12490  1.4  christos 	if test "$cross_compiling" = yes; then :
   12491  1.4  christos   gl_cv_func_mkstemp_limitations=yes
   12492  1.1  christos 
   12493  1.1  christos else
   12494  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12495  1.4  christos /* end confdefs.h.  */
   12496  1.3  christos 
   12497  1.4  christos #           include <stdlib.h>
   12498  1.4  christos #           include <unistd.h>
   12499  1.4  christos 	    int main ()
   12500  1.4  christos 	    {
   12501  1.4  christos 	      int i;
   12502  1.4  christos 	      for (i = 0; i < 70; i++)
   12503  1.4  christos 		{
   12504  1.4  christos 		  char template[] = "conftest.mkstemp/coXXXXXX";
   12505  1.4  christos 		  int fd = mkstemp (template);
   12506  1.4  christos 		  if (fd == -1)
   12507  1.4  christos 		    exit (1);
   12508  1.4  christos 		  close (fd);
   12509  1.4  christos 		}
   12510  1.4  christos 	      exit (0);
   12511  1.4  christos 	    }
   12512  1.1  christos 
   12513  1.4  christos _ACEOF
   12514  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12515  1.4  christos   gl_cv_func_mkstemp_limitations=no
   12516  1.1  christos else
   12517  1.4  christos   gl_cv_func_mkstemp_limitations=yes
   12518  1.1  christos fi
   12519  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12520  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12521  1.1  christos fi
   12522  1.1  christos 
   12523  1.4  christos         rm -rf conftest.mkstemp
   12524  1.1  christos 
   12525  1.1  christos 
   12526  1.4  christos fi
   12527  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkstemp_limitations" >&5
   12528  1.4  christos $as_echo "$gl_cv_func_mkstemp_limitations" >&6; }
   12529  1.4  christos   fi
   12530  1.1  christos 
   12531  1.4  christos   if test $gl_cv_func_mkstemp_limitations = yes; then
   12532  1.4  christos     case " $LIBOBJS " in
   12533  1.4  christos   *" mkstemp.$ac_objext "* ) ;;
   12534  1.4  christos   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
   12535  1.4  christos  ;;
   12536  1.4  christos esac
   12537  1.1  christos 
   12538  1.4  christos     case " $LIBOBJS " in
   12539  1.4  christos   *" tempname.$ac_objext "* ) ;;
   12540  1.4  christos   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
   12541  1.4  christos  ;;
   12542  1.4  christos esac
   12543  1.1  christos 
   12544  1.1  christos 
   12545  1.4  christos $as_echo "#define mkstemp rpl_mkstemp" >>confdefs.h
   12546  1.1  christos 
   12547  1.1  christos 
   12548  1.1  christos 
   12549  1.1  christos 
   12550  1.1  christos 
   12551  1.4  christos   :
   12552  1.1  christos 
   12553  1.1  christos 
   12554  1.1  christos 
   12555  1.1  christos 
   12556  1.1  christos 
   12557  1.1  christos 
   12558  1.1  christos 
   12559  1.1  christos 
   12560  1.1  christos 
   12561  1.1  christos 
   12562  1.1  christos 
   12563  1.4  christos   for ac_func in __secure_getenv gettimeofday
   12564  1.4  christos do :
   12565  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12566  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12567  1.4  christos eval as_val=\$$as_ac_var
   12568  1.4  christos    if test "x$as_val" = x""yes; then :
   12569  1.4  christos   cat >>confdefs.h <<_ACEOF
   12570  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12571  1.4  christos _ACEOF
   12572  1.1  christos 
   12573  1.3  christos fi
   12574  1.4  christos done
   12575  1.3  christos 
   12576  1.1  christos 
   12577  1.4  christos   :
   12578  1.1  christos 
   12579  1.1  christos 
   12580  1.1  christos 
   12581  1.1  christos 
   12582  1.1  christos 
   12583  1.1  christos 
   12584  1.1  christos 
   12585  1.4  christos   fi
   12586  1.1  christos 
   12587  1.1  christos 
   12588  1.1  christos 
   12589  1.4  christos   if test $ac_cv_func_working_mktime = no; then
   12590  1.1  christos 
   12591  1.4  christos $as_echo "#define mktime rpl_mktime" >>confdefs.h
   12592  1.1  christos 
   12593  1.4  christos     :
   12594  1.4  christos   fi
   12595  1.1  christos 
   12596  1.1  christos 
   12597  1.1  christos 
   12598  1.1  christos 
   12599  1.4  christos  nanosleep_save_libs=$LIBS
   12600  1.1  christos 
   12601  1.4  christos  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
   12602  1.4  christos  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
   12603  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
   12604  1.4  christos $as_echo_n "checking for library containing nanosleep... " >&6; }
   12605  1.4  christos if test "${ac_cv_search_nanosleep+set}" = set; then :
   12606  1.3  christos   $as_echo_n "(cached) " >&6
   12607  1.1  christos else
   12608  1.4  christos   ac_func_search_save_LIBS=$LIBS
   12609  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12610  1.1  christos /* end confdefs.h.  */
   12611  1.4  christos 
   12612  1.4  christos /* Override any GCC internal prototype to avoid an error.
   12613  1.4  christos    Use char because int might match the return type of a GCC
   12614  1.4  christos    builtin and then its argument prototype would still apply.  */
   12615  1.4  christos #ifdef __cplusplus
   12616  1.4  christos extern "C"
   12617  1.4  christos #endif
   12618  1.4  christos char nanosleep ();
   12619  1.1  christos int
   12620  1.1  christos main ()
   12621  1.1  christos {
   12622  1.4  christos return nanosleep ();
   12623  1.1  christos   ;
   12624  1.1  christos   return 0;
   12625  1.1  christos }
   12626  1.1  christos _ACEOF
   12627  1.4  christos for ac_lib in '' rt posix4; do
   12628  1.4  christos   if test -z "$ac_lib"; then
   12629  1.4  christos     ac_res="none required"
   12630  1.4  christos   else
   12631  1.4  christos     ac_res=-l$ac_lib
   12632  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12633  1.4  christos   fi
   12634  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   12635  1.4  christos   ac_cv_search_nanosleep=$ac_res
   12636  1.1  christos fi
   12637  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   12638  1.4  christos     conftest$ac_exeext
   12639  1.4  christos   if test "${ac_cv_search_nanosleep+set}" = set; then :
   12640  1.4  christos   break
   12641  1.1  christos fi
   12642  1.4  christos done
   12643  1.4  christos if test "${ac_cv_search_nanosleep+set}" = set; then :
   12644  1.1  christos 
   12645  1.1  christos else
   12646  1.4  christos   ac_cv_search_nanosleep=no
   12647  1.4  christos fi
   12648  1.4  christos rm conftest.$ac_ext
   12649  1.4  christos LIBS=$ac_func_search_save_LIBS
   12650  1.1  christos fi
   12651  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
   12652  1.4  christos $as_echo "$ac_cv_search_nanosleep" >&6; }
   12653  1.4  christos ac_res=$ac_cv_search_nanosleep
   12654  1.4  christos if test "$ac_res" != no; then :
   12655  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12656  1.4  christos   test "$ac_cv_search_nanosleep" = "none required" ||
   12657  1.4  christos 	         LIB_NANOSLEEP=$ac_cv_search_nanosleep
   12658  1.1  christos fi
   12659  1.1  christos 
   12660  1.1  christos 
   12661  1.1  christos 
   12662  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nanosleep works" >&5
   12663  1.4  christos $as_echo_n "checking whether nanosleep works... " >&6; }
   12664  1.4  christos if test "${jm_cv_func_nanosleep_works+set}" = set; then :
   12665  1.4  christos   $as_echo_n "(cached) " >&6
   12666  1.1  christos else
   12667  1.3  christos 
   12668  1.1  christos 
   12669  1.1  christos 
   12670  1.4  christos   :
   12671  1.1  christos 
   12672  1.1  christos 
   12673  1.1  christos 
   12674  1.1  christos 
   12675  1.1  christos 
   12676  1.4  christos    if test "$cross_compiling" = yes; then :
   12677  1.4  christos   	 jm_cv_func_nanosleep_works=no
   12678  1.4  christos else
   12679  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12680  1.4  christos /* end confdefs.h.  */
   12681  1.1  christos 
   12682  1.4  christos #   if TIME_WITH_SYS_TIME
   12683  1.4  christos #    include <sys/time.h>
   12684  1.4  christos #    include <time.h>
   12685  1.4  christos #   else
   12686  1.4  christos #    if HAVE_SYS_TIME_H
   12687  1.4  christos #     include <sys/time.h>
   12688  1.4  christos #    else
   12689  1.4  christos #     include <time.h>
   12690  1.4  christos #    endif
   12691  1.4  christos #   endif
   12692  1.1  christos 
   12693  1.4  christos     int
   12694  1.4  christos     main ()
   12695  1.4  christos     {
   12696  1.4  christos       struct timespec ts_sleep, ts_remaining;
   12697  1.4  christos       ts_sleep.tv_sec = 0;
   12698  1.4  christos       ts_sleep.tv_nsec = 1;
   12699  1.4  christos       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
   12700  1.4  christos     }
   12701  1.1  christos 
   12702  1.1  christos _ACEOF
   12703  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12704  1.4  christos   jm_cv_func_nanosleep_works=yes
   12705  1.1  christos else
   12706  1.4  christos   jm_cv_func_nanosleep_works=no
   12707  1.1  christos fi
   12708  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12709  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12710  1.1  christos fi
   12711  1.1  christos 
   12712  1.1  christos 
   12713  1.4  christos fi
   12714  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_nanosleep_works" >&5
   12715  1.4  christos $as_echo "$jm_cv_func_nanosleep_works" >&6; }
   12716  1.4  christos   if test $jm_cv_func_nanosleep_works = no; then
   12717  1.4  christos     case " $LIBOBJS " in
   12718  1.4  christos   *" nanosleep.$ac_objext "* ) ;;
   12719  1.4  christos   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
   12720  1.4  christos  ;;
   12721  1.4  christos esac
   12722  1.1  christos 
   12723  1.1  christos 
   12724  1.4  christos $as_echo "#define nanosleep rpl_nanosleep" >>confdefs.h
   12725  1.1  christos 
   12726  1.1  christos 
   12727  1.1  christos 
   12728  1.4  christos   :
   12729  1.1  christos 
   12730  1.1  christos 
   12731  1.1  christos 
   12732  1.1  christos 
   12733  1.3  christos 
   12734  1.3  christos 
   12735  1.4  christos   :
   12736  1.1  christos 
   12737  1.3  christos 
   12738  1.3  christos 
   12739  1.1  christos 
   12740  1.1  christos 
   12741  1.1  christos 
   12742  1.1  christos   fi
   12743  1.1  christos 
   12744  1.4  christos  LIBS=$nanosleep_save_libs
   12745  1.1  christos 
   12746  1.1  christos 
   12747  1.1  christos 
   12748  1.1  christos 
   12749  1.4  christos   for ac_func in openat
   12750  1.4  christos do :
   12751  1.4  christos   ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
   12752  1.4  christos if test "x$ac_cv_func_openat" = x""yes; then :
   12753  1.4  christos   cat >>confdefs.h <<_ACEOF
   12754  1.4  christos #define HAVE_OPENAT 1
   12755  1.4  christos _ACEOF
   12756  1.1  christos 
   12757  1.4  christos else
   12758  1.4  christos   case " $LIBOBJS " in
   12759  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   12760  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   12761  1.4  christos  ;;
   12762  1.4  christos esac
   12763  1.1  christos 
   12764  1.4  christos fi
   12765  1.4  christos done
   12766  1.1  christos 
   12767  1.1  christos 
   12768  1.4  christos   case $ac_cv_func_openat in
   12769  1.4  christos   yes) ;;
   12770  1.4  christos   *)
   12771  1.1  christos 
   12772  1.4  christos $as_echo "#define __OPENAT_PREFIX rpl_" >>confdefs.h
   12773  1.1  christos 
   12774  1.1  christos 
   12775  1.1  christos 
   12776  1.4  christos ;;
   12777  1.4  christos   esac
   12778  1.1  christos 
   12779  1.1  christos 
   12780  1.1  christos 
   12781  1.3  christos 
   12782  1.1  christos 
   12783  1.4  christos   case " $LIBOBJS " in
   12784  1.4  christos   *" pagealign_alloc.$ac_objext "* ) ;;
   12785  1.4  christos   *) LIBOBJS="$LIBOBJS pagealign_alloc.$ac_objext"
   12786  1.4  christos  ;;
   12787  1.3  christos esac
   12788  1.3  christos 
   12789  1.3  christos 
   12790  1.1  christos 
   12791  1.1  christos 
   12792  1.3  christos 
   12793  1.4  christos   :
   12794  1.3  christos 
   12795  1.1  christos 
   12796  1.1  christos 
   12797  1.1  christos 
   12798  1.1  christos 
   12799  1.1  christos 
   12800  1.4  christos   :
   12801  1.1  christos 
   12802  1.1  christos 
   12803  1.1  christos 
   12804  1.1  christos 
   12805  1.1  christos 
   12806  1.1  christos 
   12807  1.1  christos 
   12808  1.1  christos 
   12809  1.1  christos 
   12810  1.1  christos 
   12811  1.1  christos 
   12812  1.4  christos   :
   12813  1.1  christos 
   12814  1.1  christos 
   12815  1.1  christos 
   12816  1.1  christos 
   12817  1.1  christos 
   12818  1.1  christos 
   12819  1.1  christos 
   12820  1.1  christos 
   12821  1.1  christos 
   12822  1.1  christos 
   12823  1.1  christos 
   12824  1.4  christos   case " $LIBOBJS " in
   12825  1.4  christos   *" quotearg.$ac_objext "* ) ;;
   12826  1.4  christos   *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
   12827  1.4  christos  ;;
   12828  1.3  christos esac
   12829  1.1  christos 
   12830  1.3  christos 
   12831  1.1  christos 
   12832  1.4  christos   :
   12833  1.4  christos 
   12834  1.1  christos 
   12835  1.1  christos 
   12836  1.1  christos 
   12837  1.1  christos 
   12838  1.1  christos 
   12839  1.1  christos 
   12840  1.1  christos 
   12841  1.1  christos 
   12842  1.4  christos   :
   12843  1.1  christos 
   12844  1.1  christos 
   12845  1.1  christos 
   12846  1.1  christos 
   12847  1.1  christos 
   12848  1.3  christos 
   12849  1.1  christos 
   12850  1.1  christos 
   12851  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
   12852  1.4  christos $as_echo_n "checking for mbstate_t... " >&6; }
   12853  1.4  christos if test "${ac_cv_type_mbstate_t+set}" = set; then :
   12854  1.3  christos   $as_echo_n "(cached) " >&6
   12855  1.1  christos else
   12856  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12857  1.1  christos /* end confdefs.h.  */
   12858  1.1  christos $ac_includes_default
   12859  1.4  christos #	    include <wchar.h>
   12860  1.1  christos int
   12861  1.1  christos main ()
   12862  1.1  christos {
   12863  1.4  christos mbstate_t x; return sizeof x;
   12864  1.1  christos   ;
   12865  1.1  christos   return 0;
   12866  1.1  christos }
   12867  1.1  christos _ACEOF
   12868  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   12869  1.4  christos   ac_cv_type_mbstate_t=yes
   12870  1.1  christos else
   12871  1.4  christos   ac_cv_type_mbstate_t=no
   12872  1.4  christos fi
   12873  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12874  1.4  christos fi
   12875  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
   12876  1.4  christos $as_echo "$ac_cv_type_mbstate_t" >&6; }
   12877  1.4  christos    if test $ac_cv_type_mbstate_t = yes; then
   12878  1.4  christos 
   12879  1.4  christos $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
   12880  1.4  christos 
   12881  1.4  christos    else
   12882  1.1  christos 
   12883  1.4  christos $as_echo "#define mbstate_t int" >>confdefs.h
   12884  1.3  christos 
   12885  1.4  christos    fi
   12886  1.3  christos 
   12887  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
   12888  1.4  christos $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
   12889  1.4  christos if test "${gl_cv_func_mbrtowc+set}" = set; then :
   12890  1.4  christos   $as_echo_n "(cached) " >&6
   12891  1.1  christos else
   12892  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12893  1.1  christos /* end confdefs.h.  */
   12894  1.4  christos #include <wchar.h>
   12895  1.1  christos int
   12896  1.1  christos main ()
   12897  1.1  christos {
   12898  1.4  christos wchar_t wc;
   12899  1.4  christos               char const s[] = "";
   12900  1.4  christos               size_t n = 1;
   12901  1.4  christos               mbstate_t state;
   12902  1.4  christos               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
   12903  1.1  christos   ;
   12904  1.1  christos   return 0;
   12905  1.1  christos }
   12906  1.1  christos _ACEOF
   12907  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   12908  1.4  christos   gl_cv_func_mbrtowc=yes
   12909  1.1  christos else
   12910  1.4  christos   gl_cv_func_mbrtowc=no
   12911  1.1  christos fi
   12912  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   12913  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   12914  1.1  christos fi
   12915  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5
   12916  1.4  christos $as_echo "$gl_cv_func_mbrtowc" >&6; }
   12917  1.4  christos   if test $gl_cv_func_mbrtowc = yes; then
   12918  1.4  christos 
   12919  1.4  christos $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
   12920  1.3  christos 
   12921  1.4  christos   fi
   12922  1.3  christos 
   12923  1.1  christos 
   12924  1.1  christos 
   12925  1.4  christos   for ac_func in readlink
   12926  1.4  christos do :
   12927  1.4  christos   ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
   12928  1.4  christos if test "x$ac_cv_func_readlink" = x""yes; then :
   12929  1.4  christos   cat >>confdefs.h <<_ACEOF
   12930  1.4  christos #define HAVE_READLINK 1
   12931  1.1  christos _ACEOF
   12932  1.1  christos 
   12933  1.1  christos fi
   12934  1.4  christos done
   12935  1.4  christos 
   12936  1.4  christos   if test $ac_cv_func_readlink = no; then
   12937  1.4  christos     case " $LIBOBJS " in
   12938  1.4  christos   *" readlink.$ac_objext "* ) ;;
   12939  1.4  christos   *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
   12940  1.4  christos  ;;
   12941  1.4  christos esac
   12942  1.1  christos 
   12943  1.1  christos 
   12944  1.4  christos   :
   12945  1.4  christos 
   12946  1.4  christos   fi
   12947  1.1  christos 
   12948  1.4  christos   for ac_header in stdlib.h
   12949  1.4  christos do :
   12950  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
   12951  1.4  christos if test "x$ac_cv_header_stdlib_h" = x""yes; then :
   12952  1.4  christos   cat >>confdefs.h <<_ACEOF
   12953  1.4  christos #define HAVE_STDLIB_H 1
   12954  1.4  christos _ACEOF
   12955  1.1  christos 
   12956  1.4  christos fi
   12957  1.1  christos 
   12958  1.4  christos done
   12959  1.1  christos 
   12960  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
   12961  1.4  christos $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
   12962  1.4  christos if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
   12963  1.4  christos   $as_echo_n "(cached) " >&6
   12964  1.4  christos else
   12965  1.4  christos   if test "$cross_compiling" = yes; then :
   12966  1.4  christos   ac_cv_func_realloc_0_nonnull=no
   12967  1.4  christos else
   12968  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12969  1.4  christos /* end confdefs.h.  */
   12970  1.4  christos #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   12971  1.4  christos # include <stdlib.h>
   12972  1.4  christos #else
   12973  1.4  christos char *realloc ();
   12974  1.4  christos #endif
   12975  1.1  christos 
   12976  1.4  christos int
   12977  1.4  christos main ()
   12978  1.4  christos {
   12979  1.4  christos return ! realloc (0, 0);
   12980  1.4  christos   ;
   12981  1.4  christos   return 0;
   12982  1.4  christos }
   12983  1.1  christos _ACEOF
   12984  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   12985  1.4  christos   ac_cv_func_realloc_0_nonnull=yes
   12986  1.4  christos else
   12987  1.4  christos   ac_cv_func_realloc_0_nonnull=no
   12988  1.4  christos fi
   12989  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12990  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12991  1.4  christos fi
   12992  1.4  christos 
   12993  1.4  christos fi
   12994  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
   12995  1.4  christos $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
   12996  1.4  christos if test $ac_cv_func_realloc_0_nonnull = yes; then :
   12997  1.1  christos 
   12998  1.4  christos $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
   12999  1.1  christos 
   13000  1.4  christos else
   13001  1.4  christos   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
   13002  1.1  christos 
   13003  1.4  christos    case " $LIBOBJS " in
   13004  1.4  christos   *" realloc.$ac_objext "* ) ;;
   13005  1.4  christos   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
   13006  1.4  christos  ;;
   13007  1.4  christos esac
   13008  1.1  christos 
   13009  1.1  christos 
   13010  1.4  christos $as_echo "#define realloc rpl_realloc" >>confdefs.h
   13011  1.1  christos 
   13012  1.4  christos fi
   13013  1.1  christos 
   13014  1.1  christos 
   13015  1.1  christos 
   13016  1.1  christos 
   13017  1.4  christos $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
   13018  1.1  christos 
   13019  1.1  christos 
   13020  1.3  christos 
   13021  1.1  christos 
   13022  1.1  christos 
   13023  1.4  christos # Check whether --with-included-regex was given.
   13024  1.4  christos if test "${with_included_regex+set}" = set; then :
   13025  1.4  christos   withval=$with_included_regex;
   13026  1.1  christos fi
   13027  1.3  christos 
   13028  1.1  christos 
   13029  1.4  christos   case $with_included_regex in
   13030  1.4  christos   yes|no) ac_use_included_regex=$with_included_regex
   13031  1.4  christos 	;;
   13032  1.4  christos   '')
   13033  1.4  christos     # If the system regex support is good enough that it passes the the
   13034  1.4  christos     # following run test, then default to *not* using the included regex.c.
   13035  1.4  christos     # If cross compiling, assume the test would fail and use the included
   13036  1.4  christos     # regex.c.  The first failing regular expression is from `Spencer ere
   13037  1.4  christos     # test #75' in grep-2.3.
   13038  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
   13039  1.4  christos $as_echo_n "checking for working re_compile_pattern... " >&6; }
   13040  1.4  christos if test "${gl_cv_func_re_compile_pattern_broken+set}" = set; then :
   13041  1.3  christos   $as_echo_n "(cached) " >&6
   13042  1.1  christos else
   13043  1.4  christos   if test "$cross_compiling" = yes; then :
   13044  1.4  christos          gl_cv_func_re_compile_pattern_broken=yes
   13045  1.4  christos else
   13046  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13047  1.4  christos /* end confdefs.h.  */
   13048  1.4  christos $ac_includes_default
   13049  1.4  christos 	   #include <regex.h>
   13050  1.4  christos int
   13051  1.4  christos main ()
   13052  1.4  christos {
   13053  1.4  christos static struct re_pattern_buffer regex;
   13054  1.4  christos 	    const char *s;
   13055  1.4  christos 	    struct re_registers regs;
   13056  1.4  christos 	    /* Use the POSIX-compliant spelling with leading REG_,
   13057  1.4  christos 	       rather than the traditional GNU spelling with leading RE_,
   13058  1.4  christos 	       so that we reject older libc implementations.  */
   13059  1.4  christos 	    re_set_syntax (REG_SYNTAX_POSIX_EGREP);
   13060  1.4  christos 	    memset (&regex, 0, sizeof (regex));
   13061  1.4  christos 	    s = re_compile_pattern ("a[:]:]b\n", 9, &regex);
   13062  1.4  christos 	    /* This should fail with _Invalid character class name_ error.  */
   13063  1.4  christos 	    if (!s)
   13064  1.4  christos 	      exit (1);
   13065  1.4  christos 
   13066  1.4  christos 	    /* This should succeed, but does not for e.g. glibc-2.1.3.  */
   13067  1.4  christos 	    memset (&regex, 0, sizeof (regex));
   13068  1.4  christos 	    s = re_compile_pattern ("{1", 2, &regex);
   13069  1.1  christos 
   13070  1.4  christos 	    if (s)
   13071  1.4  christos 	      exit (1);
   13072  1.1  christos 
   13073  1.4  christos 	    /* The following example is derived from a problem report
   13074  1.4  christos 	       against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
   13075  1.4  christos 	    memset (&regex, 0, sizeof (regex));
   13076  1.4  christos 	    s = re_compile_pattern ("[an\371]*n", 7, &regex);
   13077  1.4  christos 	    if (s)
   13078  1.4  christos 	      exit (1);
   13079  1.1  christos 
   13080  1.4  christos 	    /* This should match, but does not for e.g. glibc-2.2.1.  */
   13081  1.4  christos 	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
   13082  1.4  christos 	      exit (1);
   13083  1.1  christos 
   13084  1.4  christos 	    memset (&regex, 0, sizeof (regex));
   13085  1.4  christos 	    s = re_compile_pattern ("x", 1, &regex);
   13086  1.4  christos 	    if (s)
   13087  1.4  christos 	      exit (1);
   13088  1.1  christos 
   13089  1.4  christos 	    /* The version of regex.c in e.g. GNU libc-2.2.93 did not
   13090  1.4  christos 	       work with a negative RANGE argument.  */
   13091  1.4  christos 	    if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
   13092  1.4  christos 	      exit (1);
   13093  1.1  christos 
   13094  1.4  christos 	    /* The version of regex.c in older versions of gnulib
   13095  1.4  christos 	       ignored REG_IGNORE_CASE (which was then called RE_ICASE).
   13096  1.4  christos 	       Detect that problem too.  */
   13097  1.4  christos 	    memset (&regex, 0, sizeof (regex));
   13098  1.4  christos 	    re_set_syntax (REG_SYNTAX_EMACS | REG_IGNORE_CASE);
   13099  1.4  christos 	    s = re_compile_pattern ("x", 1, &regex);
   13100  1.4  christos 	    if (s)
   13101  1.4  christos 	      exit (1);
   13102  1.3  christos 
   13103  1.4  christos 	    if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
   13104  1.4  christos 	      exit (1);
   13105  1.1  christos 
   13106  1.4  christos 	    /* REG_STARTEND was added to glibc on 2004-01-15.
   13107  1.4  christos 	       Reject older versions.  */
   13108  1.4  christos 	    if (! REG_STARTEND)
   13109  1.4  christos 	      exit (1);
   13110  1.1  christos 
   13111  1.4  christos 	    /* Reject hosts whose regoff_t values are too narrow.
   13112  1.4  christos 	       These include glibc 2.3.5 on hosts with 64-bit off_t
   13113  1.4  christos 	       and 32-bit int, and Solaris 10 on hosts with 32-bit int
   13114  1.4  christos 	       and _FILE_OFFSET_BITS=64.  */
   13115  1.4  christos 	    if (sizeof (regoff_t) < sizeof (off_t))
   13116  1.4  christos 	      exit (1);
   13117  1.1  christos 
   13118  1.4  christos 	    exit (0);
   13119  1.1  christos   ;
   13120  1.1  christos   return 0;
   13121  1.1  christos }
   13122  1.1  christos _ACEOF
   13123  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   13124  1.4  christos   gl_cv_func_re_compile_pattern_broken=no
   13125  1.1  christos else
   13126  1.4  christos   gl_cv_func_re_compile_pattern_broken=yes
   13127  1.1  christos fi
   13128  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13129  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13130  1.1  christos fi
   13131  1.3  christos 
   13132  1.1  christos fi
   13133  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_broken" >&5
   13134  1.4  christos $as_echo "$gl_cv_func_re_compile_pattern_broken" >&6; }
   13135  1.4  christos     ac_use_included_regex=$gl_cv_func_re_compile_pattern_broken
   13136  1.4  christos     ;;
   13137  1.4  christos   *) as_fn_error "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
   13138  1.4  christos     ;;
   13139  1.4  christos   esac
   13140  1.1  christos 
   13141  1.4  christos   if test $ac_use_included_regex = yes; then
   13142  1.4  christos     case " $LIBOBJS " in
   13143  1.4  christos   *" regex.$ac_objext "* ) ;;
   13144  1.4  christos   *) LIBOBJS="$LIBOBJS regex.$ac_objext"
   13145  1.4  christos  ;;
   13146  1.4  christos esac
   13147  1.1  christos 
   13148  1.1  christos 
   13149  1.1  christos 
   13150  1.1  christos 
   13151  1.1  christos 
   13152  1.1  christos 
   13153  1.4  christos   :
   13154  1.1  christos 
   13155  1.1  christos 
   13156  1.1  christos 
   13157  1.1  christos 
   13158  1.1  christos 
   13159  1.1  christos 
   13160  1.1  christos 
   13161  1.1  christos 
   13162  1.1  christos 
   13163  1.1  christos 
   13164  1.1  christos 
   13165  1.1  christos 
   13166  1.1  christos   :
   13167  1.1  christos 
   13168  1.1  christos 
   13169  1.1  christos 
   13170  1.1  christos 
   13171  1.1  christos 
   13172  1.1  christos 
   13173  1.1  christos 
   13174  1.1  christos 
   13175  1.1  christos 
   13176  1.1  christos 
   13177  1.1  christos 
   13178  1.1  christos 
   13179  1.1  christos 
   13180  1.1  christos 
   13181  1.1  christos 
   13182  1.1  christos 
   13183  1.1  christos 
   13184  1.1  christos 
   13185  1.4  christos   fi
   13186  1.1  christos 
   13187  1.1  christos 
   13188  1.4  christos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is broken" >&5
   13189  1.4  christos $as_echo_n "checking whether rename is broken... " >&6; }
   13190  1.4  christos if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then :
   13191  1.4  christos   $as_echo_n "(cached) " >&6
   13192  1.4  christos else
   13193  1.1  christos 
   13194  1.4  christos     rm -rf conftest.d1 conftest.d2
   13195  1.4  christos     mkdir conftest.d1 ||
   13196  1.4  christos       as_fn_error "cannot create temporary directory" "$LINENO" 5
   13197  1.4  christos     if test "$cross_compiling" = yes; then :
   13198  1.4  christos         vb_cv_func_rename_trailing_slash_bug=yes
   13199  1.4  christos else
   13200  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13201  1.4  christos /* end confdefs.h.  */
   13202  1.1  christos 
   13203  1.4  christos #       include <stdio.h>
   13204  1.4  christos         int
   13205  1.4  christos         main ()
   13206  1.4  christos         {
   13207  1.4  christos           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
   13208  1.4  christos         }
   13209  1.1  christos 
   13210  1.4  christos _ACEOF
   13211  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   13212  1.4  christos   vb_cv_func_rename_trailing_slash_bug=no
   13213  1.4  christos else
   13214  1.4  christos   vb_cv_func_rename_trailing_slash_bug=yes
   13215  1.4  christos fi
   13216  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13217  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13218  1.4  christos fi
   13219  1.1  christos 
   13220  1.1  christos 
   13221  1.4  christos       rm -rf conftest.d1 conftest.d2
   13222  1.1  christos 
   13223  1.4  christos fi
   13224  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vb_cv_func_rename_trailing_slash_bug" >&5
   13225  1.4  christos $as_echo "$vb_cv_func_rename_trailing_slash_bug" >&6; }
   13226  1.4  christos   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
   13227  1.4  christos     case " $LIBOBJS " in
   13228  1.4  christos   *" rename.$ac_objext "* ) ;;
   13229  1.4  christos   *) LIBOBJS="$LIBOBJS rename.$ac_objext"
   13230  1.4  christos  ;;
   13231  1.4  christos esac
   13232  1.1  christos 
   13233  1.1  christos 
   13234  1.4  christos $as_echo "#define rename rpl_rename" >>confdefs.h
   13235  1.1  christos 
   13236  1.1  christos 
   13237  1.4  christos $as_echo "#define RENAME_TRAILING_SLASH_BUG 1" >>confdefs.h
   13238  1.1  christos 
   13239  1.4  christos     :
   13240  1.4  christos   fi
   13241  1.1  christos 
   13242  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
   13243  1.4  christos $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
   13244  1.4  christos if test "${gl_cv_c_restrict+set}" = set; then :
   13245  1.3  christos   $as_echo_n "(cached) " >&6
   13246  1.1  christos else
   13247  1.4  christos   gl_cv_c_restrict=no
   13248  1.4  christos    # Try the official restrict keyword, then gcc's __restrict, and
   13249  1.4  christos    # the less common variants.
   13250  1.4  christos    for ac_kw in restrict __restrict __restrict__ _Restrict; do
   13251  1.4  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13252  1.1  christos /* end confdefs.h.  */
   13253  1.4  christos float * $ac_kw x;
   13254  1.1  christos _ACEOF
   13255  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13256  1.4  christos   gl_cv_c_restrict=$ac_kw; break
   13257  1.1  christos fi
   13258  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13259  1.4  christos    done
   13260  1.3  christos 
   13261  1.1  christos fi
   13262  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_restrict" >&5
   13263  1.4  christos $as_echo "$gl_cv_c_restrict" >&6; }
   13264  1.4  christos  case $gl_cv_c_restrict in
   13265  1.4  christos    restrict) ;;
   13266  1.4  christos    no)
   13267  1.4  christos $as_echo "#define restrict /**/" >>confdefs.h
   13268  1.4  christos  ;;
   13269  1.4  christos    *)  cat >>confdefs.h <<_ACEOF
   13270  1.4  christos #define restrict $gl_cv_c_restrict
   13271  1.1  christos _ACEOF
   13272  1.4  christos  ;;
   13273  1.4  christos  esac
   13274  1.4  christos 
   13275  1.1  christos 
   13276  1.4  christos   for ac_func in rpmatch
   13277  1.4  christos do :
   13278  1.4  christos   ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch"
   13279  1.4  christos if test "x$ac_cv_func_rpmatch" = x""yes; then :
   13280  1.4  christos   cat >>confdefs.h <<_ACEOF
   13281  1.4  christos #define HAVE_RPMATCH 1
   13282  1.1  christos _ACEOF
   13283  1.4  christos 
   13284  1.4  christos else
   13285  1.4  christos   case " $LIBOBJS " in
   13286  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   13287  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13288  1.4  christos  ;;
   13289  1.3  christos esac
   13290  1.1  christos 
   13291  1.1  christos fi
   13292  1.4  christos done
   13293  1.4  christos 
   13294  1.4  christos 
   13295  1.4  christos   if test $ac_cv_func_rpmatch = no; then
   13296  1.4  christos     :
   13297  1.4  christos   fi
   13298  1.3  christos 
   13299  1.1  christos 
   13300  1.1  christos 
   13301  1.4  christos   case " $LIBOBJS " in
   13302  1.4  christos   *" save-cwd.$ac_objext "* ) ;;
   13303  1.4  christos   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
   13304  1.4  christos  ;;
   13305  1.3  christos esac
   13306  1.1  christos 
   13307  1.1  christos 
   13308  1.4  christos   :
   13309  1.4  christos 
   13310  1.4  christos 
   13311  1.4  christos 
   13312  1.4  christos 
   13313  1.3  christos 
   13314  1.1  christos 
   13315  1.4  christos   :
   13316  1.3  christos 
   13317  1.3  christos 
   13318  1.1  christos 
   13319  1.1  christos 
   13320  1.3  christos 
   13321  1.1  christos 
   13322  1.1  christos 
   13323  1.4  christos   for ac_func in setenv unsetenv
   13324  1.4  christos do :
   13325  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13326  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13327  1.4  christos eval as_val=\$$as_ac_var
   13328  1.4  christos    if test "x$as_val" = x""yes; then :
   13329  1.4  christos   cat >>confdefs.h <<_ACEOF
   13330  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13331  1.1  christos _ACEOF
   13332  1.4  christos 
   13333  1.4  christos else
   13334  1.4  christos   case " $LIBOBJS " in
   13335  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   13336  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13337  1.4  christos  ;;
   13338  1.3  christos esac
   13339  1.1  christos 
   13340  1.1  christos fi
   13341  1.4  christos done
   13342  1.4  christos 
   13343  1.3  christos 
   13344  1.4  christos   if test $ac_cv_func_setenv = no; then
   13345  1.3  christos 
   13346  1.3  christos 
   13347  1.1  christos 
   13348  1.4  christos   :
   13349  1.1  christos 
   13350  1.1  christos 
   13351  1.1  christos 
   13352  1.3  christos 
   13353  1.3  christos 
   13354  1.4  christos   for ac_header in search.h
   13355  1.4  christos do :
   13356  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
   13357  1.4  christos if test "x$ac_cv_header_search_h" = x""yes; then :
   13358  1.4  christos   cat >>confdefs.h <<_ACEOF
   13359  1.4  christos #define HAVE_SEARCH_H 1
   13360  1.1  christos _ACEOF
   13361  1.1  christos 
   13362  1.1  christos fi
   13363  1.3  christos 
   13364  1.4  christos done
   13365  1.1  christos 
   13366  1.4  christos   for ac_func in tsearch
   13367  1.4  christos do :
   13368  1.4  christos   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
   13369  1.4  christos if test "x$ac_cv_func_tsearch" = x""yes; then :
   13370  1.4  christos   cat >>confdefs.h <<_ACEOF
   13371  1.4  christos #define HAVE_TSEARCH 1
   13372  1.1  christos _ACEOF
   13373  1.1  christos 
   13374  1.4  christos fi
   13375  1.4  christos done
   13376  1.4  christos 
   13377  1.4  christos 
   13378  1.4  christos 
   13379  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno is properly declared" >&5
   13380  1.4  christos $as_echo_n "checking if errno is properly declared... " >&6; }
   13381  1.4  christos   if test "${gt_cv_var_errno_declaration+set}" = set; then :
   13382  1.4  christos   $as_echo_n "(cached) " >&6
   13383  1.4  christos else
   13384  1.4  christos 
   13385  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13386  1.1  christos /* end confdefs.h.  */
   13387  1.4  christos #include <errno.h>
   13388  1.4  christos       extern struct { int foo; } errno;
   13389  1.1  christos int
   13390  1.1  christos main ()
   13391  1.1  christos {
   13392  1.4  christos errno.foo = 1;
   13393  1.1  christos   ;
   13394  1.1  christos   return 0;
   13395  1.1  christos }
   13396  1.1  christos _ACEOF
   13397  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13398  1.4  christos   gt_cv_var_errno_declaration=no
   13399  1.1  christos else
   13400  1.4  christos   gt_cv_var_errno_declaration=yes
   13401  1.1  christos fi
   13402  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13403  1.4  christos fi
   13404  1.1  christos 
   13405  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_errno_declaration" >&5
   13406  1.4  christos $as_echo "$gt_cv_var_errno_declaration" >&6; }
   13407  1.4  christos   if test $gt_cv_var_errno_declaration = yes; then
   13408  1.3  christos 
   13409  1.4  christos $as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
   13410  1.3  christos 
   13411  1.4  christos   fi
   13412  1.1  christos 
   13413  1.1  christos 
   13414  1.3  christos 
   13415  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
   13416  1.4  christos $as_echo_n "checking if environ is properly declared... " >&6; }
   13417  1.4  christos   if test "${gt_cv_var_environ_declaration+set}" = set; then :
   13418  1.4  christos   $as_echo_n "(cached) " >&6
   13419  1.1  christos else
   13420  1.4  christos 
   13421  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13422  1.1  christos /* end confdefs.h.  */
   13423  1.4  christos #include <unistd.h>
   13424  1.4  christos       extern struct { int foo; } environ;
   13425  1.1  christos int
   13426  1.1  christos main ()
   13427  1.1  christos {
   13428  1.4  christos environ.foo = 1;
   13429  1.1  christos   ;
   13430  1.1  christos   return 0;
   13431  1.1  christos }
   13432  1.1  christos _ACEOF
   13433  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13434  1.4  christos   gt_cv_var_environ_declaration=no
   13435  1.1  christos else
   13436  1.4  christos   gt_cv_var_environ_declaration=yes
   13437  1.1  christos fi
   13438  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13439  1.1  christos fi
   13440  1.4  christos 
   13441  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
   13442  1.4  christos $as_echo "$gt_cv_var_environ_declaration" >&6; }
   13443  1.4  christos   if test $gt_cv_var_environ_declaration = yes; then
   13444  1.4  christos 
   13445  1.4  christos $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
   13446  1.4  christos 
   13447  1.4  christos   fi
   13448  1.4  christos 
   13449  1.4  christos 
   13450  1.4  christos   fi
   13451  1.4  christos   if test $ac_cv_func_unsetenv = no; then
   13452  1.4  christos 
   13453  1.4  christos 
   13454  1.4  christos   :
   13455  1.3  christos 
   13456  1.3  christos 
   13457  1.3  christos 
   13458  1.1  christos 
   13459  1.1  christos 
   13460  1.1  christos 
   13461  1.1  christos 
   13462  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno is properly declared" >&5
   13463  1.4  christos $as_echo_n "checking if errno is properly declared... " >&6; }
   13464  1.4  christos   if test "${gt_cv_var_errno_declaration+set}" = set; then :
   13465  1.3  christos   $as_echo_n "(cached) " >&6
   13466  1.1  christos else
   13467  1.4  christos 
   13468  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13469  1.1  christos /* end confdefs.h.  */
   13470  1.4  christos #include <errno.h>
   13471  1.4  christos       extern struct { int foo; } errno;
   13472  1.1  christos int
   13473  1.1  christos main ()
   13474  1.1  christos {
   13475  1.4  christos errno.foo = 1;
   13476  1.1  christos   ;
   13477  1.1  christos   return 0;
   13478  1.1  christos }
   13479  1.1  christos _ACEOF
   13480  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13481  1.4  christos   gt_cv_var_errno_declaration=no
   13482  1.4  christos else
   13483  1.4  christos   gt_cv_var_errno_declaration=yes
   13484  1.4  christos fi
   13485  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13486  1.4  christos fi
   13487  1.4  christos 
   13488  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_errno_declaration" >&5
   13489  1.4  christos $as_echo "$gt_cv_var_errno_declaration" >&6; }
   13490  1.4  christos   if test $gt_cv_var_errno_declaration = yes; then
   13491  1.4  christos 
   13492  1.4  christos $as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
   13493  1.4  christos 
   13494  1.4  christos   fi
   13495  1.1  christos 
   13496  1.1  christos 
   13497  1.3  christos 
   13498  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
   13499  1.4  christos $as_echo_n "checking if environ is properly declared... " >&6; }
   13500  1.4  christos   if test "${gt_cv_var_environ_declaration+set}" = set; then :
   13501  1.4  christos   $as_echo_n "(cached) " >&6
   13502  1.1  christos else
   13503  1.1  christos 
   13504  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13505  1.1  christos /* end confdefs.h.  */
   13506  1.4  christos #include <unistd.h>
   13507  1.4  christos       extern struct { int foo; } environ;
   13508  1.1  christos int
   13509  1.1  christos main ()
   13510  1.1  christos {
   13511  1.4  christos environ.foo = 1;
   13512  1.1  christos   ;
   13513  1.1  christos   return 0;
   13514  1.1  christos }
   13515  1.1  christos _ACEOF
   13516  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13517  1.4  christos   gt_cv_var_environ_declaration=no
   13518  1.4  christos else
   13519  1.4  christos   gt_cv_var_environ_declaration=yes
   13520  1.4  christos fi
   13521  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13522  1.4  christos fi
   13523  1.4  christos 
   13524  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
   13525  1.4  christos $as_echo "$gt_cv_var_environ_declaration" >&6; }
   13526  1.4  christos   if test $gt_cv_var_environ_declaration = yes; then
   13527  1.4  christos 
   13528  1.4  christos $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
   13529  1.4  christos 
   13530  1.4  christos   fi
   13531  1.4  christos 
   13532  1.4  christos 
   13533  1.4  christos   else
   13534  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
   13535  1.4  christos $as_echo_n "checking for unsetenv() return type... " >&6; }
   13536  1.4  christos if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
   13537  1.4  christos   $as_echo_n "(cached) " >&6
   13538  1.4  christos else
   13539  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13540  1.1  christos /* end confdefs.h.  */
   13541  1.4  christos #include <stdlib.h>
   13542  1.4  christos extern
   13543  1.4  christos #ifdef __cplusplus
   13544  1.4  christos "C"
   13545  1.4  christos #endif
   13546  1.4  christos #if defined(__STDC__) || defined(__cplusplus)
   13547  1.4  christos int unsetenv (const char *name);
   13548  1.4  christos #else
   13549  1.4  christos int unsetenv();
   13550  1.4  christos #endif
   13551  1.4  christos 
   13552  1.1  christos int
   13553  1.1  christos main ()
   13554  1.1  christos {
   13555  1.1  christos 
   13556  1.1  christos   ;
   13557  1.1  christos   return 0;
   13558  1.1  christos }
   13559  1.1  christos _ACEOF
   13560  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13561  1.4  christos   gt_cv_func_unsetenv_ret='int'
   13562  1.1  christos else
   13563  1.4  christos   gt_cv_func_unsetenv_ret='void'
   13564  1.4  christos fi
   13565  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13566  1.4  christos fi
   13567  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
   13568  1.4  christos $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
   13569  1.4  christos     if test $gt_cv_func_unsetenv_ret = 'void'; then
   13570  1.4  christos 
   13571  1.4  christos $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
   13572  1.4  christos 
   13573  1.4  christos     fi
   13574  1.4  christos   fi
   13575  1.4  christos 
   13576  1.4  christos 
   13577  1.4  christos   for ac_header in stdint.h
   13578  1.4  christos do :
   13579  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
   13580  1.4  christos if test "x$ac_cv_header_stdint_h" = x""yes; then :
   13581  1.4  christos   cat >>confdefs.h <<_ACEOF
   13582  1.4  christos #define HAVE_STDINT_H 1
   13583  1.4  christos _ACEOF
   13584  1.4  christos 
   13585  1.4  christos fi
   13586  1.4  christos 
   13587  1.4  christos done
   13588  1.4  christos 
   13589  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
   13590  1.4  christos $as_echo_n "checking for SIZE_MAX... " >&6; }
   13591  1.4  christos   result=
   13592  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13593  1.4  christos /* end confdefs.h.  */
   13594  1.4  christos 
   13595  1.4  christos #include <limits.h>
   13596  1.4  christos #if HAVE_STDINT_H
   13597  1.4  christos #include <stdint.h>
   13598  1.4  christos #endif
   13599  1.4  christos #ifdef SIZE_MAX
   13600  1.4  christos Found it
   13601  1.4  christos #endif
   13602  1.1  christos 
   13603  1.4  christos _ACEOF
   13604  1.4  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13605  1.4  christos   $EGREP "Found it" >/dev/null 2>&1; then :
   13606  1.4  christos   result=yes
   13607  1.1  christos fi
   13608  1.4  christos rm -f conftest*
   13609  1.4  christos 
   13610  1.4  christos   if test -z "$result"; then
   13611  1.4  christos                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
   13612  1.3  christos 
   13613  1.1  christos else
   13614  1.4  christos   result=?
   13615  1.4  christos fi
   13616  1.4  christos 
   13617  1.4  christos 
   13618  1.4  christos     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
   13619  1.1  christos 
   13620  1.4  christos else
   13621  1.4  christos   result=?
   13622  1.1  christos fi
   13623  1.3  christos 
   13624  1.4  christos 
   13625  1.4  christos     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
   13626  1.4  christos 
   13627  1.4  christos else
   13628  1.4  christos   result=?
   13629  1.1  christos fi
   13630  1.3  christos 
   13631  1.4  christos 
   13632  1.4  christos     if test "$fits_in_uint" = 1; then
   13633  1.4  christos                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13634  1.1  christos /* end confdefs.h.  */
   13635  1.4  christos #include <stddef.h>
   13636  1.4  christos         extern size_t foo;
   13637  1.4  christos         extern unsigned long foo;
   13638  1.4  christos 
   13639  1.1  christos int
   13640  1.1  christos main ()
   13641  1.1  christos {
   13642  1.1  christos 
   13643  1.1  christos   ;
   13644  1.1  christos   return 0;
   13645  1.1  christos }
   13646  1.1  christos _ACEOF
   13647  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13648  1.4  christos   fits_in_uint=0
   13649  1.4  christos fi
   13650  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13651  1.4  christos     fi
   13652  1.4  christos     if test -z "$result"; then
   13653  1.4  christos       if test "$fits_in_uint" = 1; then
   13654  1.4  christos         result="$res_hi$res_lo"U
   13655  1.4  christos       else
   13656  1.4  christos         result="$res_hi$res_lo"UL
   13657  1.4  christos       fi
   13658  1.4  christos     else
   13659  1.4  christos             result='~(size_t)0'
   13660  1.4  christos     fi
   13661  1.4  christos   fi
   13662  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
   13663  1.4  christos $as_echo "$result" >&6; }
   13664  1.4  christos   if test "$result" != yes; then
   13665  1.4  christos 
   13666  1.4  christos cat >>confdefs.h <<_ACEOF
   13667  1.4  christos #define SIZE_MAX $result
   13668  1.4  christos _ACEOF
   13669  1.4  christos 
   13670  1.4  christos   fi
   13671  1.1  christos 
   13672  1.3  christos 
   13673  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
   13674  1.4  christos $as_echo_n "checking for ssize_t... " >&6; }
   13675  1.4  christos if test "${gt_cv_ssize_t+set}" = set; then :
   13676  1.4  christos   $as_echo_n "(cached) " >&6
   13677  1.1  christos else
   13678  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13679  1.1  christos /* end confdefs.h.  */
   13680  1.4  christos #include <sys/types.h>
   13681  1.1  christos int
   13682  1.1  christos main ()
   13683  1.1  christos {
   13684  1.4  christos int x = sizeof (ssize_t *) + sizeof (ssize_t);
   13685  1.1  christos   ;
   13686  1.1  christos   return 0;
   13687  1.1  christos }
   13688  1.1  christos _ACEOF
   13689  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13690  1.4  christos   gt_cv_ssize_t=yes
   13691  1.1  christos else
   13692  1.4  christos   gt_cv_ssize_t=no
   13693  1.4  christos fi
   13694  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13695  1.4  christos fi
   13696  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
   13697  1.4  christos $as_echo "$gt_cv_ssize_t" >&6; }
   13698  1.4  christos   if test $gt_cv_ssize_t = no; then
   13699  1.4  christos 
   13700  1.4  christos $as_echo "#define ssize_t int" >>confdefs.h
   13701  1.4  christos 
   13702  1.4  christos   fi
   13703  1.4  christos 
   13704  1.4  christos 
   13705  1.4  christos 
   13706  1.4  christos 
   13707  1.4  christos 
   13708  1.4  christos 
   13709  1.4  christos 
   13710  1.4  christos 
   13711  1.4  christos 
   13712  1.4  christos   # Define two additional variables used in the Makefile substitution.
   13713  1.4  christos 
   13714  1.4  christos   if test "$ac_cv_header_stdbool_h" = yes; then
   13715  1.4  christos     STDBOOL_H=''
   13716  1.4  christos   else
   13717  1.4  christos     STDBOOL_H='stdbool.h'
   13718  1.4  christos   fi
   13719  1.4  christos 
   13720  1.1  christos 
   13721  1.4  christos   if test "$ac_cv_type__Bool" = yes; then
   13722  1.4  christos     HAVE__BOOL=1
   13723  1.4  christos   else
   13724  1.4  christos     HAVE__BOOL=0
   13725  1.4  christos   fi
   13726  1.3  christos 
   13727  1.3  christos 
   13728  1.3  christos 
   13729  1.4  christos for ac_header in sys/inttypes.h
   13730  1.4  christos do :
   13731  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
   13732  1.4  christos if test "x$ac_cv_header_sys_inttypes_h" = x""yes; then :
   13733  1.4  christos   cat >>confdefs.h <<_ACEOF
   13734  1.4  christos #define HAVE_SYS_INTTYPES_H 1
   13735  1.1  christos _ACEOF
   13736  1.1  christos 
   13737  1.4  christos fi
   13738  1.1  christos 
   13739  1.4  christos done
   13740  1.1  christos 
   13741  1.1  christos 
   13742  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
   13743  1.4  christos $as_echo_n "checking for stdint.h... " >&6; }
   13744  1.4  christos if test "${gl_cv_header_stdint_h+set}" = set; then :
   13745  1.3  christos   $as_echo_n "(cached) " >&6
   13746  1.1  christos else
   13747  1.4  christos 
   13748  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13749  1.1  christos /* end confdefs.h.  */
   13750  1.4  christos #include <stdint.h>
   13751  1.1  christos int
   13752  1.1  christos main ()
   13753  1.1  christos {
   13754  1.3  christos 
   13755  1.1  christos   ;
   13756  1.1  christos   return 0;
   13757  1.1  christos }
   13758  1.1  christos _ACEOF
   13759  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13760  1.4  christos   gl_cv_header_stdint_h=yes
   13761  1.4  christos else
   13762  1.4  christos   gl_cv_header_stdint_h=no
   13763  1.4  christos fi
   13764  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13765  1.4  christos fi
   13766  1.4  christos 
   13767  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
   13768  1.4  christos $as_echo "$gl_cv_header_stdint_h" >&6; }
   13769  1.4  christos if test $gl_cv_header_stdint_h = yes; then
   13770  1.4  christos 
   13771  1.4  christos $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
   13772  1.4  christos 
   13773  1.4  christos   STDINT_H=''
   13774  1.4  christos else
   13775  1.4  christos   STDINT_H='stdint.h'
   13776  1.4  christos 
   13777  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'long' is 64 bit wide" >&5
   13778  1.4  christos $as_echo_n "checking whether 'long' is 64 bit wide... " >&6; }
   13779  1.4  christos if test "${gl_cv_long_bitsize_64+set}" = set; then :
   13780  1.4  christos   $as_echo_n "(cached) " >&6
   13781  1.4  christos else
   13782  1.4  christos 
   13783  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13784  1.1  christos /* end confdefs.h.  */
   13785  1.4  christos 
   13786  1.4  christos #define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
   13787  1.4  christos #define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
   13788  1.4  christos typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
   13789  1.4  christos 
   13790  1.1  christos int
   13791  1.1  christos main ()
   13792  1.1  christos {
   13793  1.1  christos 
   13794  1.1  christos   ;
   13795  1.1  christos   return 0;
   13796  1.1  christos }
   13797  1.1  christos _ACEOF
   13798  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13799  1.4  christos   gl_cv_long_bitsize_64=yes
   13800  1.1  christos else
   13801  1.4  christos   gl_cv_long_bitsize_64=no
   13802  1.4  christos fi
   13803  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13804  1.4  christos fi
   13805  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_bitsize_64" >&5
   13806  1.4  christos $as_echo "$gl_cv_long_bitsize_64" >&6; }
   13807  1.4  christos   if test $gl_cv_long_bitsize_64 = yes; then
   13808  1.4  christos     HAVE_LONG_64BIT=1
   13809  1.4  christos   else
   13810  1.4  christos     HAVE_LONG_64BIT=0
   13811  1.4  christos   fi
   13812  1.1  christos 
   13813  1.3  christos 
   13814  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'long long' is 64 bit wide" >&5
   13815  1.4  christos $as_echo_n "checking whether 'long long' is 64 bit wide... " >&6; }
   13816  1.4  christos if test "${gl_cv_longlong_bitsize_64+set}" = set; then :
   13817  1.4  christos   $as_echo_n "(cached) " >&6
   13818  1.1  christos else
   13819  1.1  christos 
   13820  1.4  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13821  1.1  christos /* end confdefs.h.  */
   13822  1.4  christos 
   13823  1.4  christos #define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
   13824  1.4  christos #define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
   13825  1.4  christos typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
   13826  1.4  christos 
   13827  1.1  christos int
   13828  1.1  christos main ()
   13829  1.1  christos {
   13830  1.1  christos 
   13831  1.1  christos   ;
   13832  1.1  christos   return 0;
   13833  1.1  christos }
   13834  1.1  christos _ACEOF
   13835  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   13836  1.4  christos   gl_cv_longlong_bitsize_64=yes
   13837  1.4  christos else
   13838  1.4  christos   gl_cv_longlong_bitsize_64=no
   13839  1.4  christos fi
   13840  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13841  1.4  christos fi
   13842  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_longlong_bitsize_64" >&5
   13843  1.4  christos $as_echo "$gl_cv_longlong_bitsize_64" >&6; }
   13844  1.4  christos   if test $gl_cv_longlong_bitsize_64 = yes; then
   13845  1.4  christos     HAVE_LONG_LONG_64BIT=1
   13846  1.4  christos   else
   13847  1.4  christos     HAVE_LONG_LONG_64BIT=0
   13848  1.4  christos   fi
   13849  1.4  christos 
   13850  1.4  christos 
   13851  1.4  christos fi
   13852  1.4  christos 
   13853  1.4  christos 
   13854  1.4  christos 
   13855  1.4  christos 
   13856  1.4  christos       case " $LIBOBJS " in
   13857  1.4  christos   *" strcasecmp.$ac_objext "* ) ;;
   13858  1.4  christos   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
   13859  1.4  christos  ;;
   13860  1.3  christos esac
   13861  1.4  christos 
   13862  1.4  christos 
   13863  1.4  christos $as_echo "#define strcasecmp rpl_strcasecmp" >>confdefs.h
   13864  1.4  christos 
   13865  1.4  christos 
   13866  1.4  christos 
   13867  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
   13868  1.4  christos $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
   13869  1.4  christos if test "${gl_cv_func_mbrtowc+set}" = set; then :
   13870  1.4  christos   $as_echo_n "(cached) " >&6
   13871  1.4  christos else
   13872  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13873  1.1  christos /* end confdefs.h.  */
   13874  1.4  christos #include <wchar.h>
   13875  1.1  christos int
   13876  1.1  christos main ()
   13877  1.1  christos {
   13878  1.4  christos wchar_t wc;
   13879  1.4  christos               char const s[] = "";
   13880  1.4  christos               size_t n = 1;
   13881  1.4  christos               mbstate_t state;
   13882  1.4  christos               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
   13883  1.1  christos   ;
   13884  1.1  christos   return 0;
   13885  1.1  christos }
   13886  1.1  christos _ACEOF
   13887  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   13888  1.4  christos   gl_cv_func_mbrtowc=yes
   13889  1.4  christos else
   13890  1.4  christos   gl_cv_func_mbrtowc=no
   13891  1.4  christos fi
   13892  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   13893  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   13894  1.4  christos fi
   13895  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5
   13896  1.4  christos $as_echo "$gl_cv_func_mbrtowc" >&6; }
   13897  1.4  christos   if test $gl_cv_func_mbrtowc = yes; then
   13898  1.4  christos 
   13899  1.4  christos $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
   13900  1.4  christos 
   13901  1.4  christos   fi
   13902  1.4  christos 
   13903  1.4  christos 
   13904  1.4  christos 
   13905  1.4  christos 
   13906  1.4  christos   for ac_func in strncasecmp
   13907  1.4  christos do :
   13908  1.4  christos   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
   13909  1.4  christos if test "x$ac_cv_func_strncasecmp" = x""yes; then :
   13910  1.4  christos   cat >>confdefs.h <<_ACEOF
   13911  1.4  christos #define HAVE_STRNCASECMP 1
   13912  1.4  christos _ACEOF
   13913  1.4  christos 
   13914  1.4  christos else
   13915  1.4  christos   case " $LIBOBJS " in
   13916  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   13917  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13918  1.4  christos  ;;
   13919  1.3  christos esac
   13920  1.4  christos 
   13921  1.4  christos fi
   13922  1.4  christos done
   13923  1.4  christos 
   13924  1.4  christos 
   13925  1.4  christos   if test $ac_cv_func_strncasecmp = no; then
   13926  1.4  christos 
   13927  1.4  christos   :
   13928  1.4  christos 
   13929  1.4  christos   fi
   13930  1.4  christos 
   13931  1.4  christos 
   13932  1.4  christos 
   13933  1.4  christos 
   13934  1.4  christos 
   13935  1.4  christos   for ac_func in strdup
   13936  1.4  christos do :
   13937  1.4  christos   ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   13938  1.4  christos if test "x$ac_cv_func_strdup" = x""yes; then :
   13939  1.4  christos   cat >>confdefs.h <<_ACEOF
   13940  1.4  christos #define HAVE_STRDUP 1
   13941  1.4  christos _ACEOF
   13942  1.4  christos 
   13943  1.1  christos else
   13944  1.4  christos   case " $LIBOBJS " in
   13945  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   13946  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13947  1.4  christos  ;;
   13948  1.4  christos esac
   13949  1.1  christos 
   13950  1.1  christos fi
   13951  1.4  christos done
   13952  1.4  christos 
   13953  1.4  christos 
   13954  1.4  christos 
   13955  1.4  christos   :
   13956  1.4  christos 
   13957  1.4  christos 
   13958  1.4  christos 
   13959  1.4  christos 
   13960  1.4  christos 
   13961  1.4  christos   :
   13962  1.4  christos 
   13963  1.4  christos 
   13964  1.4  christos   for ac_func in strerror
   13965  1.4  christos do :
   13966  1.4  christos   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
   13967  1.4  christos if test "x$ac_cv_func_strerror" = x""yes; then :
   13968  1.4  christos   cat >>confdefs.h <<_ACEOF
   13969  1.4  christos #define HAVE_STRERROR 1
   13970  1.4  christos _ACEOF
   13971  1.3  christos 
   13972  1.1  christos else
   13973  1.4  christos   case " $LIBOBJS " in
   13974  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   13975  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13976  1.4  christos  ;;
   13977  1.4  christos esac
   13978  1.4  christos 
   13979  1.4  christos fi
   13980  1.4  christos done
   13981  1.4  christos 
   13982  1.4  christos 
   13983  1.4  christos   if test $ac_cv_func_strerror = no; then
   13984  1.4  christos 
   13985  1.4  christos   :
   13986  1.4  christos 
   13987  1.4  christos   fi
   13988  1.4  christos 
   13989  1.4  christos 
   13990  1.4  christos 
   13991  1.4  christos       case " $LIBOBJS " in
   13992  1.4  christos   *" strstr.$ac_objext "* ) ;;
   13993  1.4  christos   *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
   13994  1.4  christos  ;;
   13995  1.4  christos esac
   13996  1.1  christos 
   13997  1.3  christos 
   13998  1.3  christos 
   13999  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
   14000  1.4  christos $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
   14001  1.4  christos if test "${gl_cv_func_mbrtowc+set}" = set; then :
   14002  1.4  christos   $as_echo_n "(cached) " >&6
   14003  1.4  christos else
   14004  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14005  1.1  christos /* end confdefs.h.  */
   14006  1.4  christos #include <wchar.h>
   14007  1.1  christos int
   14008  1.1  christos main ()
   14009  1.1  christos {
   14010  1.4  christos wchar_t wc;
   14011  1.4  christos               char const s[] = "";
   14012  1.4  christos               size_t n = 1;
   14013  1.4  christos               mbstate_t state;
   14014  1.4  christos               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
   14015  1.1  christos   ;
   14016  1.1  christos   return 0;
   14017  1.1  christos }
   14018  1.1  christos _ACEOF
   14019  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   14020  1.4  christos   gl_cv_func_mbrtowc=yes
   14021  1.1  christos else
   14022  1.4  christos   gl_cv_func_mbrtowc=no
   14023  1.4  christos fi
   14024  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   14025  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   14026  1.4  christos fi
   14027  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5
   14028  1.4  christos $as_echo "$gl_cv_func_mbrtowc" >&6; }
   14029  1.4  christos   if test $gl_cv_func_mbrtowc = yes; then
   14030  1.4  christos 
   14031  1.4  christos $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
   14032  1.4  christos 
   14033  1.4  christos   fi
   14034  1.1  christos 
   14035  1.3  christos 
   14036  1.1  christos 
   14037  1.1  christos 
   14038  1.4  christos   for ac_func in strtol
   14039  1.4  christos do :
   14040  1.4  christos   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
   14041  1.4  christos if test "x$ac_cv_func_strtol" = x""yes; then :
   14042  1.4  christos   cat >>confdefs.h <<_ACEOF
   14043  1.4  christos #define HAVE_STRTOL 1
   14044  1.1  christos _ACEOF
   14045  1.4  christos 
   14046  1.4  christos else
   14047  1.4  christos   case " $LIBOBJS " in
   14048  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   14049  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   14050  1.4  christos  ;;
   14051  1.3  christos esac
   14052  1.1  christos 
   14053  1.1  christos fi
   14054  1.4  christos done
   14055  1.4  christos 
   14056  1.4  christos 
   14057  1.4  christos   if test $ac_cv_func_strtol = no; then
   14058  1.4  christos 
   14059  1.4  christos 
   14060  1.4  christos 
   14061  1.4  christos   :
   14062  1.4  christos 
   14063  1.4  christos 
   14064  1.4  christos 
   14065  1.4  christos 
   14066  1.4  christos 
   14067  1.3  christos 
   14068  1.4  christos   fi
   14069  1.3  christos 
   14070  1.3  christos 
   14071  1.4  christos   for ac_func in strtoul
   14072  1.4  christos do :
   14073  1.4  christos   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
   14074  1.4  christos if test "x$ac_cv_func_strtoul" = x""yes; then :
   14075  1.4  christos   cat >>confdefs.h <<_ACEOF
   14076  1.4  christos #define HAVE_STRTOUL 1
   14077  1.1  christos _ACEOF
   14078  1.1  christos 
   14079  1.4  christos else
   14080  1.4  christos   case " $LIBOBJS " in
   14081  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   14082  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   14083  1.4  christos  ;;
   14084  1.4  christos esac
   14085  1.1  christos 
   14086  1.1  christos fi
   14087  1.4  christos done
   14088  1.4  christos 
   14089  1.4  christos 
   14090  1.4  christos   if test $ac_cv_func_strtoul = no; then
   14091  1.4  christos 
   14092  1.4  christos 
   14093  1.4  christos 
   14094  1.4  christos 
   14095  1.4  christos   :
   14096  1.4  christos 
   14097  1.4  christos 
   14098  1.4  christos 
   14099  1.4  christos 
   14100  1.4  christos 
   14101  1.4  christos 
   14102  1.4  christos 
   14103  1.4  christos   fi
   14104  1.4  christos 
   14105  1.4  christos 
   14106  1.4  christos 
   14107  1.1  christos 
   14108  1.1  christos 
   14109  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
   14110  1.4  christos $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
   14111  1.4  christos if test "${gl_cv_time_r_posix+set}" = set; then :
   14112  1.3  christos   $as_echo_n "(cached) " >&6
   14113  1.1  christos else
   14114  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14115  1.1  christos /* end confdefs.h.  */
   14116  1.4  christos #include <time.h>
   14117  1.1  christos int
   14118  1.1  christos main ()
   14119  1.1  christos {
   14120  1.4  christos /* We don't need to append 'restrict's to the argument types,
   14121  1.4  christos 	   even though the POSIX signature has the 'restrict's,
   14122  1.4  christos 	   since C99 says they can't affect type compatibility.  */
   14123  1.4  christos 	struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
   14124  1.1  christos   ;
   14125  1.1  christos   return 0;
   14126  1.1  christos }
   14127  1.1  christos _ACEOF
   14128  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   14129  1.4  christos   gl_cv_time_r_posix=yes
   14130  1.4  christos else
   14131  1.4  christos   gl_cv_time_r_posix=no
   14132  1.4  christos fi
   14133  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14134  1.4  christos fi
   14135  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
   14136  1.4  christos $as_echo "$gl_cv_time_r_posix" >&6; }
   14137  1.4  christos   if test $gl_cv_time_r_posix = yes; then
   14138  1.4  christos 
   14139  1.4  christos $as_echo "#define HAVE_TIME_R_POSIX 1" >>confdefs.h
   14140  1.4  christos 
   14141  1.4  christos   else
   14142  1.4  christos     case " $LIBOBJS " in
   14143  1.4  christos   *" time_r.$ac_objext "* ) ;;
   14144  1.4  christos   *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
   14145  1.4  christos  ;;
   14146  1.3  christos esac
   14147  1.1  christos 
   14148  1.1  christos 
   14149  1.4  christos   :
   14150  1.4  christos 
   14151  1.4  christos   fi
   14152  1.4  christos 
   14153  1.4  christos 
   14154  1.4  christos 
   14155  1.4  christos 
   14156  1.4  christos 
   14157  1.4  christos 
   14158  1.4  christos 
   14159  1.4  christos   :
   14160  1.4  christos 
   14161  1.4  christos 
   14162  1.4  christos 
   14163  1.4  christos 
   14164  1.4  christos 
   14165  1.4  christos 
   14166  1.4  christos 
   14167  1.4  christos 
   14168  1.4  christos 
   14169  1.4  christos 
   14170  1.4  christos   :
   14171  1.4  christos 
   14172  1.4  christos 
   14173  1.4  christos 
   14174  1.4  christos 
   14175  1.3  christos 
   14176  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
   14177  1.4  christos $as_echo_n "checking for struct timespec... " >&6; }
   14178  1.4  christos if test "${fu_cv_sys_struct_timespec+set}" = set; then :
   14179  1.4  christos   $as_echo_n "(cached) " >&6
   14180  1.1  christos else
   14181  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14182  1.4  christos /* end confdefs.h.  */
   14183  1.1  christos 
   14184  1.4  christos #      if TIME_WITH_SYS_TIME
   14185  1.4  christos #       include <sys/time.h>
   14186  1.4  christos #       include <time.h>
   14187  1.4  christos #      else
   14188  1.4  christos #       if HAVE_SYS_TIME_H
   14189  1.4  christos #        include <sys/time.h>
   14190  1.4  christos #       else
   14191  1.4  christos #        include <time.h>
   14192  1.4  christos #       endif
   14193  1.4  christos #      endif
   14194  1.1  christos 
   14195  1.1  christos int
   14196  1.1  christos main ()
   14197  1.1  christos {
   14198  1.4  christos static struct timespec x; x.tv_sec = x.tv_nsec;
   14199  1.1  christos   ;
   14200  1.1  christos   return 0;
   14201  1.1  christos }
   14202  1.1  christos _ACEOF
   14203  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   14204  1.4  christos   fu_cv_sys_struct_timespec=yes
   14205  1.1  christos else
   14206  1.4  christos   fu_cv_sys_struct_timespec=no
   14207  1.4  christos fi
   14208  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14209  1.1  christos 
   14210  1.1  christos fi
   14211  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_struct_timespec" >&5
   14212  1.4  christos $as_echo "$fu_cv_sys_struct_timespec" >&6; }
   14213  1.4  christos 
   14214  1.4  christos   if test $fu_cv_sys_struct_timespec = yes; then
   14215  1.4  christos 
   14216  1.4  christos $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
   14217  1.4  christos 
   14218  1.4  christos   fi
   14219  1.4  christos 
   14220  1.3  christos 
   14221  1.1  christos 
   14222  1.3  christos 
   14223  1.4  christos   ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
   14224  1.4  christos "
   14225  1.4  christos if test "x$ac_cv_have_decl_nanosleep" = x""yes; then :
   14226  1.4  christos   ac_have_decl=1
   14227  1.4  christos else
   14228  1.4  christos   ac_have_decl=0
   14229  1.1  christos fi
   14230  1.3  christos 
   14231  1.4  christos cat >>confdefs.h <<_ACEOF
   14232  1.4  christos #define HAVE_DECL_NANOSLEEP $ac_have_decl
   14233  1.1  christos _ACEOF
   14234  1.4  christos 
   14235  1.4  christos 
   14236  1.4  christos 
   14237  1.4  christos 
   14238  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tzset clobbers localtime buffer" >&5
   14239  1.4  christos $as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; }
   14240  1.4  christos if test "${gl_cv_func_tzset_clobber+set}" = set; then :
   14241  1.4  christos   $as_echo_n "(cached) " >&6
   14242  1.4  christos else
   14243  1.4  christos 
   14244  1.4  christos   if test "$cross_compiling" = yes; then :
   14245  1.4  christos   gl_cv_func_tzset_clobber=yes
   14246  1.4  christos else
   14247  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14248  1.1  christos /* end confdefs.h.  */
   14249  1.4  christos 
   14250  1.4  christos #if TIME_WITH_SYS_TIME
   14251  1.4  christos # include <sys/time.h>
   14252  1.4  christos # include <time.h>
   14253  1.4  christos #else
   14254  1.4  christos # if HAVE_SYS_TIME_H
   14255  1.4  christos #  include <sys/time.h>
   14256  1.4  christos # else
   14257  1.4  christos #  include <time.h>
   14258  1.4  christos # endif
   14259  1.4  christos #endif
   14260  1.4  christos #include <stdlib.h>
   14261  1.4  christos 
   14262  1.1  christos int
   14263  1.1  christos main ()
   14264  1.1  christos {
   14265  1.4  christos   time_t t1 = 853958121;
   14266  1.4  christos   struct tm *p, s;
   14267  1.4  christos   putenv ("TZ=GMT0");
   14268  1.4  christos   p = localtime (&t1);
   14269  1.4  christos   s = *p;
   14270  1.4  christos   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
   14271  1.4  christos   tzset ();
   14272  1.4  christos   exit (p->tm_year != s.tm_year
   14273  1.4  christos         || p->tm_mon != s.tm_mon
   14274  1.4  christos         || p->tm_mday != s.tm_mday
   14275  1.4  christos         || p->tm_hour != s.tm_hour
   14276  1.4  christos         || p->tm_min != s.tm_min
   14277  1.4  christos         || p->tm_sec != s.tm_sec);
   14278  1.4  christos }
   14279  1.1  christos 
   14280  1.1  christos _ACEOF
   14281  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   14282  1.4  christos   gl_cv_func_tzset_clobber=no
   14283  1.1  christos else
   14284  1.4  christos   gl_cv_func_tzset_clobber=yes
   14285  1.4  christos fi
   14286  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14287  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14288  1.4  christos fi
   14289  1.1  christos 
   14290  1.1  christos fi
   14291  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tzset_clobber" >&5
   14292  1.4  christos $as_echo "$gl_cv_func_tzset_clobber" >&6; }
   14293  1.4  christos 
   14294  1.4  christos 
   14295  1.4  christos $as_echo "#define HAVE_RUN_TZSET_TEST 1" >>confdefs.h
   14296  1.4  christos 
   14297  1.3  christos 
   14298  1.4  christos   if test $gl_cv_func_tzset_clobber = yes; then
   14299  1.4  christos 
   14300  1.4  christos   case " $LIBOBJS " in
   14301  1.4  christos   *" gettimeofday.$ac_objext "* ) ;;
   14302  1.4  christos   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
   14303  1.4  christos  ;;
   14304  1.1  christos esac
   14305  1.1  christos 
   14306  1.1  christos 
   14307  1.4  christos $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
   14308  1.4  christos 
   14309  1.4  christos 
   14310  1.4  christos $as_echo "#define localtime rpl_localtime" >>confdefs.h
   14311  1.4  christos 
   14312  1.4  christos 
   14313  1.4  christos 
   14314  1.4  christos 
   14315  1.4  christos $as_echo "#define tzset rpl_tzset" >>confdefs.h
   14316  1.4  christos 
   14317  1.4  christos 
   14318  1.4  christos $as_echo "#define TZSET_CLOBBERS_LOCALTIME_BUFFER 1" >>confdefs.h
   14319  1.4  christos 
   14320  1.4  christos   fi
   14321  1.4  christos 
   14322  1.4  christos 
   14323  1.4  christos 
   14324  1.4  christos   case " $LIBOBJS " in
   14325  1.4  christos   *" dup-safer.$ac_objext "* ) ;;
   14326  1.4  christos   *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
   14327  1.4  christos  ;;
   14328  1.4  christos esac
   14329  1.4  christos 
   14330  1.4  christos   case " $LIBOBJS " in
   14331  1.4  christos   *" fd-safer.$ac_objext "* ) ;;
   14332  1.4  christos   *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
   14333  1.4  christos  ;;
   14334  1.3  christos esac
   14335  1.4  christos 
   14336  1.4  christos   case " $LIBOBJS " in
   14337  1.4  christos   *" pipe-safer.$ac_objext "* ) ;;
   14338  1.4  christos   *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
   14339  1.4  christos  ;;
   14340  1.3  christos esac
   14341  1.1  christos 
   14342  1.3  christos 
   14343  1.3  christos 
   14344  1.3  christos 
   14345  1.4  christos   :
   14346  1.4  christos 
   14347  1.4  christos 
   14348  1.4  christos 
   14349  1.4  christos 
   14350  1.4  christos 
   14351  1.4  christos 
   14352  1.4  christos 
   14353  1.4  christos 
   14354  1.4  christos   :
   14355  1.4  christos 
   14356  1.4  christos 
   14357  1.4  christos 
   14358  1.4  christos 
   14359  1.4  christos 
   14360  1.4  christos 
   14361  1.4  christos 
   14362  1.4  christos 
   14363  1.4  christos 
   14364  1.4  christos 
   14365  1.4  christos 
   14366  1.4  christos $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
   14367  1.4  christos 
   14368  1.4  christos 
   14369  1.4  christos 
   14370  1.4  christos 
   14371  1.4  christos 
   14372  1.4  christos   :
   14373  1.4  christos 
   14374  1.4  christos 
   14375  1.4  christos 
   14376  1.4  christos 
   14377  1.4  christos 
   14378  1.4  christos 
   14379  1.4  christos 
   14380  1.4  christos 
   14381  1.4  christos 
   14382  1.4  christos 
   14383  1.4  christos 
   14384  1.4  christos 
   14385  1.4  christos 
   14386  1.4  christos 
   14387  1.1  christos 
   14388  1.1  christos 
   14389  1.1  christos 
   14390  1.1  christos 
   14391  1.3  christos 
   14392  1.1  christos 
   14393  1.1  christos 
   14394  1.3  christos 
   14395  1.1  christos 
   14396  1.1  christos 
   14397  1.1  christos 
   14398  1.1  christos 
   14399  1.3  christos 
   14400  1.1  christos 
   14401  1.3  christos 
   14402  1.3  christos 
   14403  1.1  christos 
   14404  1.1  christos 
   14405  1.3  christos 
   14406  1.1  christos 
   14407  1.1  christos 
   14408  1.1  christos 
   14409  1.3  christos 
   14410  1.3  christos 
   14411  1.3  christos 
   14412  1.1  christos 
   14413  1.1  christos 
   14414  1.1  christos 
   14415  1.1  christos 
   14416  1.1  christos 
   14417  1.4  christos   for ac_func in vasnprintf
   14418  1.4  christos do :
   14419  1.4  christos   ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf"
   14420  1.4  christos if test "x$ac_cv_func_vasnprintf" = x""yes; then :
   14421  1.4  christos   cat >>confdefs.h <<_ACEOF
   14422  1.4  christos #define HAVE_VASNPRINTF 1
   14423  1.1  christos _ACEOF
   14424  1.1  christos 
   14425  1.4  christos else
   14426  1.4  christos   case " $LIBOBJS " in
   14427  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   14428  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   14429  1.4  christos  ;;
   14430  1.3  christos esac
   14431  1.1  christos 
   14432  1.1  christos fi
   14433  1.4  christos done
   14434  1.3  christos 
   14435  1.1  christos 
   14436  1.4  christos   if test $ac_cv_func_vasnprintf = no; then
   14437  1.4  christos     case " $LIBOBJS " in
   14438  1.4  christos   *" printf-args.$ac_objext "* ) ;;
   14439  1.4  christos   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
   14440  1.4  christos  ;;
   14441  1.4  christos esac
   14442  1.1  christos 
   14443  1.4  christos     case " $LIBOBJS " in
   14444  1.4  christos   *" printf-parse.$ac_objext "* ) ;;
   14445  1.4  christos   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
   14446  1.4  christos  ;;
   14447  1.3  christos esac
   14448  1.1  christos 
   14449  1.4  christos     case " $LIBOBJS " in
   14450  1.4  christos   *" asnprintf.$ac_objext "* ) ;;
   14451  1.4  christos   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
   14452  1.4  christos  ;;
   14453  1.3  christos esac
   14454  1.1  christos 
   14455  1.3  christos 
   14456  1.1  christos 
   14457  1.3  christos 
   14458  1.3  christos 
   14459  1.1  christos 
   14460  1.1  christos 
   14461  1.3  christos 
   14462  1.1  christos 
   14463  1.1  christos 
   14464  1.1  christos 
   14465  1.3  christos 
   14466  1.3  christos 
   14467  1.3  christos 
   14468  1.4  christos   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
   14469  1.4  christos if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
   14470  1.4  christos 
   14471  1.1  christos cat >>confdefs.h <<_ACEOF
   14472  1.4  christos #define HAVE_PTRDIFF_T 1
   14473  1.1  christos _ACEOF
   14474  1.1  christos 
   14475  1.1  christos 
   14476  1.1  christos fi
   14477  1.1  christos 
   14478  1.1  christos 
   14479  1.1  christos 
   14480  1.1  christos 
   14481  1.3  christos 
   14482  1.1  christos 
   14483  1.1  christos 
   14484  1.1  christos 
   14485  1.4  christos 
   14486  1.4  christos   for ac_func in snprintf wcslen
   14487  1.4  christos do :
   14488  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14489  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14490  1.4  christos eval as_val=\$$as_ac_var
   14491  1.4  christos    if test "x$as_val" = x""yes; then :
   14492  1.4  christos   cat >>confdefs.h <<_ACEOF
   14493  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14494  1.1  christos _ACEOF
   14495  1.1  christos 
   14496  1.1  christos fi
   14497  1.4  christos done
   14498  1.4  christos 
   14499  1.3  christos 
   14500  1.1  christos 
   14501  1.1  christos 
   14502  1.4  christos   fi
   14503  1.1  christos 
   14504  1.1  christos 
   14505  1.4  christos   for ac_func in vasprintf
   14506  1.4  christos do :
   14507  1.4  christos   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
   14508  1.4  christos if test "x$ac_cv_func_vasprintf" = x""yes; then :
   14509  1.4  christos   cat >>confdefs.h <<_ACEOF
   14510  1.4  christos #define HAVE_VASPRINTF 1
   14511  1.1  christos _ACEOF
   14512  1.4  christos 
   14513  1.4  christos else
   14514  1.4  christos   case " $LIBOBJS " in
   14515  1.4  christos   *" $ac_func.$ac_objext "* ) ;;
   14516  1.4  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   14517  1.4  christos  ;;
   14518  1.3  christos esac
   14519  1.1  christos 
   14520  1.4  christos fi
   14521  1.4  christos done
   14522  1.1  christos 
   14523  1.1  christos 
   14524  1.4  christos   if test $ac_cv_func_vasprintf = no; then
   14525  1.4  christos     case " $LIBOBJS " in
   14526  1.4  christos   *" asprintf.$ac_objext "* ) ;;
   14527  1.4  christos   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   14528  1.4  christos  ;;
   14529  1.3  christos esac
   14530  1.1  christos 
   14531  1.3  christos 
   14532  1.1  christos 
   14533  1.3  christos 
   14534  1.3  christos 
   14535  1.4  christos   fi
   14536  1.1  christos 
   14537  1.1  christos 
   14538  1.1  christos 
   14539  1.4  christos   case " $LIBOBJS " in
   14540  1.4  christos   *" xmalloc.$ac_objext "* ) ;;
   14541  1.4  christos   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
   14542  1.4  christos  ;;
   14543  1.3  christos esac
   14544  1.1  christos 
   14545  1.3  christos 
   14546  1.4  christos 
   14547  1.4  christos   :
   14548  1.4  christos 
   14549  1.4  christos 
   14550  1.4  christos 
   14551  1.4  christos   :
   14552  1.4  christos 
   14553  1.4  christos 
   14554  1.4  christos 
   14555  1.4  christos 
   14556  1.4  christos   case " $LIBOBJS " in
   14557  1.4  christos   *" xgetcwd.$ac_objext "* ) ;;
   14558  1.4  christos   *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
   14559  1.4  christos  ;;
   14560  1.1  christos esac
   14561  1.1  christos 
   14562  1.1  christos 
   14563  1.1  christos 
   14564  1.1  christos 
   14565  1.1  christos 
   14566  1.4  christos 
   14567  1.4  christos 
   14568  1.4  christos   :
   14569  1.4  christos 
   14570  1.4  christos 
   14571  1.4  christos 
   14572  1.4  christos 
   14573  1.4  christos 
   14574  1.4  christos 
   14575  1.3  christos 
   14576  1.3  christos 
   14577  1.3  christos 
   14578  1.4  christos   for ac_header in stdint.h
   14579  1.4  christos do :
   14580  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
   14581  1.4  christos if test "x$ac_cv_header_stdint_h" = x""yes; then :
   14582  1.4  christos   cat >>confdefs.h <<_ACEOF
   14583  1.4  christos #define HAVE_STDINT_H 1
   14584  1.1  christos _ACEOF
   14585  1.1  christos 
   14586  1.1  christos fi
   14587  1.1  christos 
   14588  1.4  christos done
   14589  1.1  christos 
   14590  1.1  christos 
   14591  1.1  christos 
   14592  1.1  christos 
   14593  1.4  christos   case " $LIBOBJS " in
   14594  1.4  christos   *" yesno.$ac_objext "* ) ;;
   14595  1.4  christos   *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
   14596  1.4  christos  ;;
   14597  1.3  christos esac
   14598  1.1  christos 
   14599  1.1  christos 
   14600  1.4  christos     :
   14601  1.4  christos 
   14602  1.4  christos 
   14603  1.4  christos # The error module still poses merge problems.
   14604  1.4  christos ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   14605  1.4  christos if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
   14606  1.4  christos   ac_have_decl=1
   14607  1.4  christos else
   14608  1.4  christos   ac_have_decl=0
   14609  1.4  christos fi
   14610  1.4  christos 
   14611  1.4  christos cat >>confdefs.h <<_ACEOF
   14612  1.4  christos #define HAVE_DECL_STRERROR_R $ac_have_decl
   14613  1.4  christos _ACEOF
   14614  1.1  christos 
   14615  1.4  christos for ac_func in strerror_r
   14616  1.4  christos do :
   14617  1.4  christos   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
   14618  1.4  christos if test "x$ac_cv_func_strerror_r" = x""yes; then :
   14619  1.4  christos   cat >>confdefs.h <<_ACEOF
   14620  1.4  christos #define HAVE_STRERROR_R 1
   14621  1.1  christos _ACEOF
   14622  1.1  christos 
   14623  1.1  christos fi
   14624  1.4  christos done
   14625  1.3  christos 
   14626  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
   14627  1.4  christos $as_echo_n "checking whether strerror_r returns char *... " >&6; }
   14628  1.4  christos if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
   14629  1.4  christos   $as_echo_n "(cached) " >&6
   14630  1.1  christos else
   14631  1.1  christos 
   14632  1.4  christos     ac_cv_func_strerror_r_char_p=no
   14633  1.4  christos     if test $ac_cv_have_decl_strerror_r = yes; then
   14634  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14635  1.1  christos /* end confdefs.h.  */
   14636  1.4  christos $ac_includes_default
   14637  1.1  christos int
   14638  1.1  christos main ()
   14639  1.1  christos {
   14640  1.4  christos 
   14641  1.4  christos 	  char buf[100];
   14642  1.4  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   14643  1.4  christos 	  char *p = strerror_r (0, buf, sizeof buf);
   14644  1.4  christos 	  return !p || x;
   14645  1.1  christos 
   14646  1.1  christos   ;
   14647  1.1  christos   return 0;
   14648  1.1  christos }
   14649  1.1  christos _ACEOF
   14650  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   14651  1.4  christos   ac_cv_func_strerror_r_char_p=yes
   14652  1.4  christos fi
   14653  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14654  1.4  christos     else
   14655  1.4  christos       # strerror_r is not declared.  Choose between
   14656  1.4  christos       # systems that have relatively inaccessible declarations for the
   14657  1.4  christos       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   14658  1.4  christos       # former has a strerror_r that returns char*, while the latter
   14659  1.4  christos       # has a strerror_r that returns `int'.
   14660  1.4  christos       # This test should segfault on the DEC system.
   14661  1.4  christos       if test "$cross_compiling" = yes; then :
   14662  1.4  christos   :
   14663  1.4  christos else
   14664  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14665  1.1  christos /* end confdefs.h.  */
   14666  1.4  christos $ac_includes_default
   14667  1.4  christos 	extern char *strerror_r ();
   14668  1.1  christos int
   14669  1.1  christos main ()
   14670  1.1  christos {
   14671  1.4  christos char buf[100];
   14672  1.4  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   14673  1.4  christos 	  return ! isalpha (x);
   14674  1.1  christos   ;
   14675  1.1  christos   return 0;
   14676  1.1  christos }
   14677  1.1  christos _ACEOF
   14678  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   14679  1.4  christos   ac_cv_func_strerror_r_char_p=yes
   14680  1.4  christos fi
   14681  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14682  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14683  1.4  christos fi
   14684  1.4  christos 
   14685  1.4  christos     fi
   14686  1.1  christos 
   14687  1.1  christos fi
   14688  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
   14689  1.4  christos $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
   14690  1.4  christos if test $ac_cv_func_strerror_r_char_p = yes; then
   14691  1.3  christos 
   14692  1.4  christos $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
   14693  1.1  christos 
   14694  1.1  christos fi
   14695  1.3  christos 
   14696  1.3  christos 
   14697  1.4  christos 
   14698  1.4  christos 
   14699  1.4  christos 
   14700  1.4  christos   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
   14701  1.4  christos 
   14702  1.4  christos     test $ac_cv_type_long_long = yes \
   14703  1.4  christos       && ac_type='long long' \
   14704  1.4  christos       || ac_type='long'
   14705  1.4  christos 
   14706  1.4  christos cat >>confdefs.h <<_ACEOF
   14707  1.4  christos #define intmax_t $ac_type
   14708  1.1  christos _ACEOF
   14709  1.4  christos 
   14710  1.4  christos   else
   14711  1.4  christos 
   14712  1.4  christos $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
   14713  1.4  christos 
   14714  1.4  christos   fi
   14715  1.4  christos 
   14716  1.4  christos 
   14717  1.4  christos 
   14718  1.4  christos 
   14719  1.1  christos 
   14720  1.1  christos 
   14721  1.1  christos 
   14722  1.4  christos  GLOB_H=
   14723  1.4  christos   for ac_header in glob.h
   14724  1.4  christos do :
   14725  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
   14726  1.4  christos if test "x$ac_cv_header_glob_h" = x""yes; then :
   14727  1.4  christos   cat >>confdefs.h <<_ACEOF
   14728  1.4  christos #define HAVE_GLOB_H 1
   14729  1.1  christos _ACEOF
   14730  1.4  christos 
   14731  1.1  christos else
   14732  1.4  christos   GLOB_H=glob.h
   14733  1.1  christos fi
   14734  1.3  christos 
   14735  1.1  christos done
   14736  1.4  christos 
   14737  1.4  christos 
   14738  1.4  christos   if test -z "$GLOB_H"; then
   14739  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
   14740  1.4  christos $as_echo_n "checking for GNU glob interface version 1... " >&6; }
   14741  1.4  christos if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then :
   14742  1.4  christos   $as_echo_n "(cached) " >&6
   14743  1.1  christos else
   14744  1.4  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14745  1.4  christos /* end confdefs.h.  */
   14746  1.4  christos #include <gnu-versions.h>
   14747  1.4  christos char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
   14748  1.1  christos _ACEOF
   14749  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   14750  1.4  christos   gl_cv_gnu_glob_interface_version_1=yes
   14751  1.4  christos else
   14752  1.4  christos   gl_cv_gnu_glob_interface_version_1=no
   14753  1.4  christos fi
   14754  1.4  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14755  1.4  christos fi
   14756  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
   14757  1.4  christos $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
   14758  1.4  christos 
   14759  1.4  christos     if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
   14760  1.4  christos       GLOB_H=glob.h
   14761  1.4  christos     fi
   14762  1.4  christos   fi
   14763  1.4  christos 
   14764  1.4  christos   if test -z "$GLOB_H"; then
   14765  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
   14766  1.4  christos $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
   14767  1.4  christos if test "${gl_cv_glob_lists_symlinks+set}" = set; then :
   14768  1.4  christos   $as_echo_n "(cached) " >&6
   14769  1.4  christos else
   14770  1.4  christos        if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
   14771  1.4  christos         gl_cv_glob_lists_symlinks=maybe
   14772  1.4  christos       else
   14773  1.4  christos         # If we can't make a symlink, then we cannot test this issue.  Be
   14774  1.4  christos         # pessimistic about this.
   14775  1.4  christos         gl_cv_glob_lists_symlinks=no
   14776  1.4  christos       fi
   14777  1.1  christos 
   14778  1.4  christos       if test $gl_cv_glob_lists_symlinks = maybe; then
   14779  1.4  christos         if test "$cross_compiling" = yes; then :
   14780  1.4  christos   gl_cv_glob_lists_symlinks=no
   14781  1.4  christos else
   14782  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14783  1.4  christos /* end confdefs.h.  */
   14784  1.4  christos #include <stddef.h>
   14785  1.4  christos #include <glob.h>
   14786  1.1  christos int
   14787  1.1  christos main ()
   14788  1.1  christos {
   14789  1.4  christos glob_t found;
   14790  1.4  christos if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
   14791  1.1  christos   ;
   14792  1.1  christos   return 0;
   14793  1.1  christos }
   14794  1.1  christos _ACEOF
   14795  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   14796  1.4  christos   gl_cv_glob_lists_symlinks=yes
   14797  1.1  christos else
   14798  1.4  christos   gl_cv_glob_lists_symlinks=no
   14799  1.1  christos fi
   14800  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14801  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14802  1.1  christos fi
   14803  1.4  christos 
   14804  1.4  christos       fi
   14805  1.1  christos fi
   14806  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
   14807  1.4  christos $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
   14808  1.4  christos 
   14809  1.4  christos     if test $gl_cv_glob_lists_symlinks = no; then
   14810  1.4  christos       GLOB_H=glob.h
   14811  1.4  christos     fi
   14812  1.4  christos   fi
   14813  1.4  christos 
   14814  1.4  christos   rm -f conf$$-globtest
   14815  1.4  christos 
   14816  1.4  christos   if test -n "$GLOB_H"; then
   14817  1.4  christos 
   14818  1.4  christos 
   14819  1.4  christos   :
   14820  1.4  christos 
   14821  1.4  christos 
   14822  1.4  christos 
   14823  1.4  christos 
   14824  1.4  christos 
   14825  1.4  christos 
   14826  1.4  christos 
   14827  1.4  christos 
   14828  1.4  christos   :
   14829  1.4  christos 
   14830  1.4  christos 
   14831  1.4  christos 
   14832  1.4  christos 
   14833  1.4  christos 
   14834  1.4  christos 
   14835  1.4  christos 
   14836  1.4  christos   :
   14837  1.4  christos 
   14838  1.4  christos   GLOB_H=glob.h
   14839  1.4  christos 
   14840  1.4  christos   case " $LIBOBJS " in
   14841  1.4  christos   *" glob.$ac_objext "* ) ;;
   14842  1.4  christos   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
   14843  1.4  christos  ;;
   14844  1.4  christos esac
   14845  1.4  christos 
   14846  1.4  christos 
   14847  1.4  christos 
   14848  1.4  christos   fi
   14849  1.4  christos 
   14850  1.4  christos 
   14851  1.4  christos #
   14852  1.4  christos # End GNULIB stuff.
   14853  1.4  christos #
   14854  1.4  christos 
   14855  1.3  christos 
   14856  1.3  christos 
   14857  1.4  christos # Check for function existance.
   14858  1.4  christos for ac_func in \
   14859  1.4  christos 	fchdir \
   14860  1.4  christos 	fchmod \
   14861  1.4  christos 	fsync \
   14862  1.4  christos 	ftime \
   14863  1.4  christos 	geteuid \
   14864  1.4  christos 	getgroups \
   14865  1.4  christos 	getpagesize \
   14866  1.4  christos 	gettimeofday \
   14867  1.4  christos 	initgroups \
   14868  1.4  christos 	login \
   14869  1.4  christos 	logout \
   14870  1.4  christos 	mknod \
   14871  1.4  christos 	regcomp \
   14872  1.4  christos 	regerror \
   14873  1.4  christos 	regexec \
   14874  1.4  christos 	regfree \
   14875  1.4  christos 	sigaction \
   14876  1.4  christos 	sigblock \
   14877  1.4  christos 	sigprocmask \
   14878  1.4  christos 	sigsetmask \
   14879  1.4  christos 	sigvec \
   14880  1.4  christos 	timezone \
   14881  1.4  christos 	tzset \
   14882  1.4  christos 	vprintf \
   14883  1.4  christos 	wait3 \
   14884  1.3  christos 
   14885  1.4  christos do :
   14886  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14887  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14888  1.4  christos eval as_val=\$$as_ac_var
   14889  1.4  christos    if test "x$as_val" = x""yes; then :
   14890  1.4  christos   cat >>confdefs.h <<_ACEOF
   14891  1.4  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14892  1.1  christos _ACEOF
   14893  1.1  christos 
   14894  1.4  christos fi
   14895  1.4  christos done
   14896  1.1  christos 
   14897  1.1  christos 
   14898  1.4  christos if test $cross_compiling = yes ; then
   14899  1.1  christos 
   14900  1.4  christos $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
   14901  1.1  christos 
   14902  1.4  christos else
   14903  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   14904  1.3  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14905  1.3  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14906  1.3  christos # This bug is HP SR number 8606223364.
   14907  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
   14908  1.4  christos $as_echo_n "checking size of char... " >&6; }
   14909  1.4  christos if test "${ac_cv_sizeof_char+set}" = set; then :
   14910  1.3  christos   $as_echo_n "(cached) " >&6
   14911  1.1  christos else
   14912  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
   14913  1.1  christos 
   14914  1.1  christos else
   14915  1.4  christos   if test "$ac_cv_type_char" = yes; then
   14916  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14917  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14918  1.4  christos { as_fn_set_status 77
   14919  1.4  christos as_fn_error "cannot compute sizeof (char)
   14920  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   14921  1.4  christos    else
   14922  1.4  christos      ac_cv_sizeof_char=0
   14923  1.4  christos    fi
   14924  1.4  christos fi
   14925  1.1  christos 
   14926  1.1  christos fi
   14927  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
   14928  1.4  christos $as_echo "$ac_cv_sizeof_char" >&6; }
   14929  1.4  christos 
   14930  1.3  christos 
   14931  1.1  christos 
   14932  1.4  christos cat >>confdefs.h <<_ACEOF
   14933  1.4  christos #define SIZEOF_CHAR $ac_cv_sizeof_char
   14934  1.1  christos _ACEOF
   14935  1.1  christos 
   14936  1.1  christos 
   14937  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized char" >&5
   14938  1.4  christos $as_echo_n "checking for uniquely sized char... " >&6; }
   14939  1.4  christos if test "${ccvs_cv_unique_int_type_char+set}" = set; then :
   14940  1.4  christos   $as_echo_n "(cached) " >&6
   14941  1.1  christos else
   14942  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   14943  1.4  christos 			|grep "($ac_cv_sizeof_char)" >/dev/null ; then
   14944  1.4  christos 			ccvs_cv_unique_int_type_char=no
   14945  1.4  christos 		else
   14946  1.4  christos 			ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
   14947  1.4  christos 		fi
   14948  1.4  christos fi
   14949  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_char" >&5
   14950  1.4  christos $as_echo "$ccvs_cv_unique_int_type_char" >&6; }
   14951  1.4  christos 	if test $ccvs_cv_unique_int_type_char != no ; then
   14952  1.1  christos 
   14953  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_CHAR 1" >>confdefs.h
   14954  1.3  christos 
   14955  1.4  christos 	fi
   14956  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   14957  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14958  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14959  1.4  christos # This bug is HP SR number 8606223364.
   14960  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   14961  1.4  christos $as_echo_n "checking size of short... " >&6; }
   14962  1.4  christos if test "${ac_cv_sizeof_short+set}" = set; then :
   14963  1.4  christos   $as_echo_n "(cached) " >&6
   14964  1.1  christos else
   14965  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   14966  1.1  christos 
   14967  1.4  christos else
   14968  1.4  christos   if test "$ac_cv_type_short" = yes; then
   14969  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14970  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14971  1.4  christos { as_fn_set_status 77
   14972  1.4  christos as_fn_error "cannot compute sizeof (short)
   14973  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   14974  1.4  christos    else
   14975  1.4  christos      ac_cv_sizeof_short=0
   14976  1.4  christos    fi
   14977  1.1  christos fi
   14978  1.3  christos 
   14979  1.1  christos fi
   14980  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   14981  1.4  christos $as_echo "$ac_cv_sizeof_short" >&6; }
   14982  1.4  christos 
   14983  1.3  christos 
   14984  1.1  christos 
   14985  1.4  christos cat >>confdefs.h <<_ACEOF
   14986  1.4  christos #define SIZEOF_SHORT $ac_cv_sizeof_short
   14987  1.1  christos _ACEOF
   14988  1.1  christos 
   14989  1.3  christos 
   14990  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized short" >&5
   14991  1.4  christos $as_echo_n "checking for uniquely sized short... " >&6; }
   14992  1.4  christos if test "${ccvs_cv_unique_int_type_short+set}" = set; then :
   14993  1.4  christos   $as_echo_n "(cached) " >&6
   14994  1.1  christos else
   14995  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   14996  1.4  christos 			|grep "($ac_cv_sizeof_short)" >/dev/null ; then
   14997  1.4  christos 			ccvs_cv_unique_int_type_short=no
   14998  1.4  christos 		else
   14999  1.4  christos 			ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
   15000  1.4  christos 		fi
   15001  1.4  christos fi
   15002  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_short" >&5
   15003  1.4  christos $as_echo "$ccvs_cv_unique_int_type_short" >&6; }
   15004  1.4  christos 	if test $ccvs_cv_unique_int_type_short != no ; then
   15005  1.1  christos 
   15006  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_SHORT 1" >>confdefs.h
   15007  1.1  christos 
   15008  1.4  christos 	fi
   15009  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   15010  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15011  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15012  1.4  christos # This bug is HP SR number 8606223364.
   15013  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   15014  1.4  christos $as_echo_n "checking size of int... " >&6; }
   15015  1.4  christos if test "${ac_cv_sizeof_int+set}" = set; then :
   15016  1.4  christos   $as_echo_n "(cached) " >&6
   15017  1.1  christos else
   15018  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   15019  1.1  christos 
   15020  1.4  christos else
   15021  1.4  christos   if test "$ac_cv_type_int" = yes; then
   15022  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15023  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15024  1.4  christos { as_fn_set_status 77
   15025  1.4  christos as_fn_error "cannot compute sizeof (int)
   15026  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15027  1.3  christos    else
   15028  1.4  christos      ac_cv_sizeof_int=0
   15029  1.3  christos    fi
   15030  1.1  christos fi
   15031  1.4  christos 
   15032  1.1  christos fi
   15033  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   15034  1.4  christos $as_echo "$ac_cv_sizeof_int" >&6; }
   15035  1.3  christos 
   15036  1.3  christos 
   15037  1.3  christos 
   15038  1.1  christos cat >>confdefs.h <<_ACEOF
   15039  1.4  christos #define SIZEOF_INT $ac_cv_sizeof_int
   15040  1.1  christos _ACEOF
   15041  1.1  christos 
   15042  1.1  christos 
   15043  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized int" >&5
   15044  1.4  christos $as_echo_n "checking for uniquely sized int... " >&6; }
   15045  1.4  christos if test "${ccvs_cv_unique_int_type_int+set}" = set; then :
   15046  1.3  christos   $as_echo_n "(cached) " >&6
   15047  1.1  christos else
   15048  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15049  1.4  christos 			|grep "($ac_cv_sizeof_int)" >/dev/null ; then
   15050  1.4  christos 			ccvs_cv_unique_int_type_int=no
   15051  1.1  christos 		else
   15052  1.4  christos 			ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
   15053  1.1  christos 		fi
   15054  1.1  christos fi
   15055  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_int" >&5
   15056  1.4  christos $as_echo "$ccvs_cv_unique_int_type_int" >&6; }
   15057  1.4  christos 	if test $ccvs_cv_unique_int_type_int != no ; then
   15058  1.1  christos 
   15059  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_INT 1" >>confdefs.h
   15060  1.1  christos 
   15061  1.1  christos 	fi
   15062  1.3  christos 	# The cast to long int works around a bug in the HP C Compiler
   15063  1.3  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15064  1.3  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15065  1.3  christos # This bug is HP SR number 8606223364.
   15066  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   15067  1.4  christos $as_echo_n "checking size of long... " >&6; }
   15068  1.4  christos if test "${ac_cv_sizeof_long+set}" = set; then :
   15069  1.3  christos   $as_echo_n "(cached) " >&6
   15070  1.1  christos else
   15071  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   15072  1.1  christos 
   15073  1.1  christos else
   15074  1.4  christos   if test "$ac_cv_type_long" = yes; then
   15075  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15076  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15077  1.4  christos { as_fn_set_status 77
   15078  1.4  christos as_fn_error "cannot compute sizeof (long)
   15079  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15080  1.4  christos    else
   15081  1.4  christos      ac_cv_sizeof_long=0
   15082  1.4  christos    fi
   15083  1.4  christos fi
   15084  1.1  christos 
   15085  1.1  christos fi
   15086  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   15087  1.4  christos $as_echo "$ac_cv_sizeof_long" >&6; }
   15088  1.4  christos 
   15089  1.3  christos 
   15090  1.1  christos 
   15091  1.4  christos cat >>confdefs.h <<_ACEOF
   15092  1.4  christos #define SIZEOF_LONG $ac_cv_sizeof_long
   15093  1.1  christos _ACEOF
   15094  1.1  christos 
   15095  1.1  christos 
   15096  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long" >&5
   15097  1.4  christos $as_echo_n "checking for uniquely sized long... " >&6; }
   15098  1.4  christos if test "${ccvs_cv_unique_int_type_long+set}" = set; then :
   15099  1.4  christos   $as_echo_n "(cached) " >&6
   15100  1.1  christos else
   15101  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15102  1.4  christos 			|grep "($ac_cv_sizeof_long)" >/dev/null ; then
   15103  1.4  christos 			ccvs_cv_unique_int_type_long=no
   15104  1.4  christos 		else
   15105  1.4  christos 			ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
   15106  1.4  christos 		fi
   15107  1.4  christos fi
   15108  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_long" >&5
   15109  1.4  christos $as_echo "$ccvs_cv_unique_int_type_long" >&6; }
   15110  1.4  christos 	if test $ccvs_cv_unique_int_type_long != no ; then
   15111  1.1  christos 
   15112  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_LONG 1" >>confdefs.h
   15113  1.3  christos 
   15114  1.4  christos 	fi
   15115  1.4  christos 	if test $ac_cv_type_long_long != no; then
   15116  1.4  christos 		# The cast to long int works around a bug in the HP C Compiler
   15117  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15118  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15119  1.4  christos # This bug is HP SR number 8606223364.
   15120  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   15121  1.4  christos $as_echo_n "checking size of long long... " >&6; }
   15122  1.4  christos if test "${ac_cv_sizeof_long_long+set}" = set; then :
   15123  1.4  christos   $as_echo_n "(cached) " >&6
   15124  1.1  christos else
   15125  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   15126  1.1  christos 
   15127  1.4  christos else
   15128  1.4  christos   if test "$ac_cv_type_long_long" = yes; then
   15129  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15130  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15131  1.4  christos { as_fn_set_status 77
   15132  1.4  christos as_fn_error "cannot compute sizeof (long long)
   15133  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15134  1.4  christos    else
   15135  1.4  christos      ac_cv_sizeof_long_long=0
   15136  1.4  christos    fi
   15137  1.1  christos fi
   15138  1.3  christos 
   15139  1.1  christos fi
   15140  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   15141  1.4  christos $as_echo "$ac_cv_sizeof_long_long" >&6; }
   15142  1.4  christos 
   15143  1.3  christos 
   15144  1.1  christos 
   15145  1.4  christos cat >>confdefs.h <<_ACEOF
   15146  1.4  christos #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   15147  1.1  christos _ACEOF
   15148  1.1  christos 
   15149  1.3  christos 
   15150  1.4  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long long" >&5
   15151  1.4  christos $as_echo_n "checking for uniquely sized long long... " >&6; }
   15152  1.4  christos if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then :
   15153  1.4  christos   $as_echo_n "(cached) " >&6
   15154  1.1  christos else
   15155  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15156  1.4  christos 				|grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
   15157  1.4  christos 				ccvs_cv_unique_int_type_long_long=no
   15158  1.4  christos 			else
   15159  1.4  christos 				ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
   15160  1.4  christos 			fi
   15161  1.4  christos fi
   15162  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_long_long" >&5
   15163  1.4  christos $as_echo "$ccvs_cv_unique_int_type_long_long" >&6; }
   15164  1.4  christos 		if test $ccvs_cv_unique_int_type_long_long != no ; then
   15165  1.1  christos 
   15166  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_LONG_LONG 1" >>confdefs.h
   15167  1.1  christos 
   15168  1.4  christos 		fi
   15169  1.4  christos 	fi
   15170  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   15171  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15172  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15173  1.4  christos # This bug is HP SR number 8606223364.
   15174  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   15175  1.4  christos $as_echo_n "checking size of size_t... " >&6; }
   15176  1.4  christos if test "${ac_cv_sizeof_size_t+set}" = set; then :
   15177  1.4  christos   $as_echo_n "(cached) " >&6
   15178  1.1  christos else
   15179  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   15180  1.1  christos 
   15181  1.4  christos else
   15182  1.4  christos   if test "$ac_cv_type_size_t" = yes; then
   15183  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15184  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15185  1.4  christos { as_fn_set_status 77
   15186  1.4  christos as_fn_error "cannot compute sizeof (size_t)
   15187  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15188  1.3  christos    else
   15189  1.4  christos      ac_cv_sizeof_size_t=0
   15190  1.3  christos    fi
   15191  1.1  christos fi
   15192  1.4  christos 
   15193  1.1  christos fi
   15194  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   15195  1.4  christos $as_echo "$ac_cv_sizeof_size_t" >&6; }
   15196  1.3  christos 
   15197  1.3  christos 
   15198  1.3  christos 
   15199  1.1  christos cat >>confdefs.h <<_ACEOF
   15200  1.4  christos #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   15201  1.1  christos _ACEOF
   15202  1.1  christos 
   15203  1.1  christos 
   15204  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized size_t" >&5
   15205  1.4  christos $as_echo_n "checking for uniquely sized size_t... " >&6; }
   15206  1.4  christos if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then :
   15207  1.3  christos   $as_echo_n "(cached) " >&6
   15208  1.1  christos else
   15209  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15210  1.4  christos 			|grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
   15211  1.4  christos 			ccvs_cv_unique_int_type_size_t=no
   15212  1.1  christos 		else
   15213  1.4  christos 			ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
   15214  1.1  christos 		fi
   15215  1.1  christos fi
   15216  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_size_t" >&5
   15217  1.4  christos $as_echo "$ccvs_cv_unique_int_type_size_t" >&6; }
   15218  1.4  christos 	if test $ccvs_cv_unique_int_type_size_t != no ; then
   15219  1.1  christos 
   15220  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_SIZE_T 1" >>confdefs.h
   15221  1.1  christos 
   15222  1.1  christos 	fi
   15223  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   15224  1.3  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15225  1.3  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15226  1.3  christos # This bug is HP SR number 8606223364.
   15227  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
   15228  1.4  christos $as_echo_n "checking size of ptrdiff_t... " >&6; }
   15229  1.4  christos if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then :
   15230  1.3  christos   $as_echo_n "(cached) " >&6
   15231  1.1  christos else
   15232  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t"        "$ac_includes_default"; then :
   15233  1.3  christos 
   15234  1.1  christos else
   15235  1.4  christos   if test "$ac_cv_type_ptrdiff_t" = yes; then
   15236  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15237  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15238  1.4  christos { as_fn_set_status 77
   15239  1.4  christos as_fn_error "cannot compute sizeof (ptrdiff_t)
   15240  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15241  1.4  christos    else
   15242  1.4  christos      ac_cv_sizeof_ptrdiff_t=0
   15243  1.4  christos    fi
   15244  1.4  christos fi
   15245  1.1  christos 
   15246  1.1  christos fi
   15247  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
   15248  1.4  christos $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
   15249  1.3  christos 
   15250  1.1  christos 
   15251  1.1  christos 
   15252  1.4  christos cat >>confdefs.h <<_ACEOF
   15253  1.4  christos #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
   15254  1.1  christos _ACEOF
   15255  1.4  christos 
   15256  1.4  christos 
   15257  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized ptrdiff_t" >&5
   15258  1.4  christos $as_echo_n "checking for uniquely sized ptrdiff_t... " >&6; }
   15259  1.4  christos if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then :
   15260  1.4  christos   $as_echo_n "(cached) " >&6
   15261  1.1  christos else
   15262  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15263  1.4  christos 			|grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
   15264  1.4  christos 			ccvs_cv_unique_int_type_ptrdiff_t=no
   15265  1.4  christos 		else
   15266  1.4  christos 			ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
   15267  1.4  christos 		fi
   15268  1.4  christos fi
   15269  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
   15270  1.4  christos $as_echo "$ccvs_cv_unique_int_type_ptrdiff_t" >&6; }
   15271  1.4  christos 	if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
   15272  1.1  christos 
   15273  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_PTRDIFF_T 1" >>confdefs.h
   15274  1.3  christos 
   15275  1.4  christos 	fi
   15276  1.4  christos 	if test $gt_cv_c_wint_t != no; then
   15277  1.4  christos 		# The cast to long int works around a bug in the HP C Compiler
   15278  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15279  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15280  1.4  christos # This bug is HP SR number 8606223364.
   15281  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wint_t" >&5
   15282  1.4  christos $as_echo_n "checking size of wint_t... " >&6; }
   15283  1.4  christos if test "${ac_cv_sizeof_wint_t+set}" = set; then :
   15284  1.4  christos   $as_echo_n "(cached) " >&6
   15285  1.1  christos else
   15286  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wint_t))" "ac_cv_sizeof_wint_t"        "#include <stdio.h>
   15287  1.4  christos #include <wchar.h>
   15288  1.4  christos 
   15289  1.4  christos "; then :
   15290  1.1  christos 
   15291  1.4  christos else
   15292  1.4  christos   if test "$ac_cv_type_wint_t" = yes; then
   15293  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15294  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15295  1.4  christos { as_fn_set_status 77
   15296  1.4  christos as_fn_error "cannot compute sizeof (wint_t)
   15297  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15298  1.4  christos    else
   15299  1.4  christos      ac_cv_sizeof_wint_t=0
   15300  1.4  christos    fi
   15301  1.1  christos fi
   15302  1.3  christos 
   15303  1.1  christos fi
   15304  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wint_t" >&5
   15305  1.4  christos $as_echo "$ac_cv_sizeof_wint_t" >&6; }
   15306  1.4  christos 
   15307  1.3  christos 
   15308  1.4  christos 
   15309  1.4  christos cat >>confdefs.h <<_ACEOF
   15310  1.4  christos #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
   15311  1.1  christos _ACEOF
   15312  1.1  christos 
   15313  1.4  christos 
   15314  1.4  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized wint_t" >&5
   15315  1.4  christos $as_echo_n "checking for uniquely sized wint_t... " >&6; }
   15316  1.4  christos if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then :
   15317  1.4  christos   $as_echo_n "(cached) " >&6
   15318  1.1  christos else
   15319  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15320  1.4  christos 				|grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
   15321  1.4  christos 				ccvs_cv_unique_int_type_wint_t=no
   15322  1.4  christos 			else
   15323  1.4  christos 				ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
   15324  1.4  christos 			fi
   15325  1.4  christos fi
   15326  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_wint_t" >&5
   15327  1.4  christos $as_echo "$ccvs_cv_unique_int_type_wint_t" >&6; }
   15328  1.4  christos 		if test $ccvs_cv_unique_int_type_wint_t != no ; then
   15329  1.1  christos 
   15330  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_WINT_T 1" >>confdefs.h
   15331  1.3  christos 
   15332  1.4  christos 		fi
   15333  1.4  christos 	fi
   15334  1.4  christos 	if test $gt_cv_c_intmax_t != no; then
   15335  1.4  christos 		# The cast to long int works around a bug in the HP C Compiler
   15336  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15337  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15338  1.4  christos # This bug is HP SR number 8606223364.
   15339  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
   15340  1.4  christos $as_echo_n "checking size of intmax_t... " >&6; }
   15341  1.4  christos if test "${ac_cv_sizeof_intmax_t+set}" = set; then :
   15342  1.4  christos   $as_echo_n "(cached) " >&6
   15343  1.1  christos else
   15344  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "#include <stdio.h>
   15345  1.4  christos #ifdef HAVE_INTTYPES_H
   15346  1.4  christos #include <inttypes.h>
   15347  1.4  christos #else
   15348  1.4  christos #ifdef HAVE_STDINT_H
   15349  1.4  christos #include <stdint.h>
   15350  1.4  christos #endif
   15351  1.4  christos #endif
   15352  1.1  christos 
   15353  1.4  christos "; then :
   15354  1.1  christos 
   15355  1.1  christos else
   15356  1.4  christos   if test "$ac_cv_type_intmax_t" = yes; then
   15357  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15358  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15359  1.4  christos { as_fn_set_status 77
   15360  1.4  christos as_fn_error "cannot compute sizeof (intmax_t)
   15361  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15362  1.3  christos    else
   15363  1.4  christos      ac_cv_sizeof_intmax_t=0
   15364  1.3  christos    fi
   15365  1.1  christos fi
   15366  1.4  christos 
   15367  1.1  christos fi
   15368  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
   15369  1.4  christos $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
   15370  1.3  christos 
   15371  1.3  christos 
   15372  1.3  christos 
   15373  1.1  christos cat >>confdefs.h <<_ACEOF
   15374  1.4  christos #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
   15375  1.1  christos _ACEOF
   15376  1.1  christos 
   15377  1.1  christos 
   15378  1.4  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized intmax_t" >&5
   15379  1.4  christos $as_echo_n "checking for uniquely sized intmax_t... " >&6; }
   15380  1.4  christos if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then :
   15381  1.3  christos   $as_echo_n "(cached) " >&6
   15382  1.1  christos else
   15383  1.4  christos   if set |grep ^ccvs_cv_unique_int_type_ \
   15384  1.4  christos 				|grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
   15385  1.4  christos 				ccvs_cv_unique_int_type_intmax_t=no
   15386  1.1  christos 			else
   15387  1.4  christos 				ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
   15388  1.1  christos 			fi
   15389  1.1  christos fi
   15390  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_intmax_t" >&5
   15391  1.4  christos $as_echo "$ccvs_cv_unique_int_type_intmax_t" >&6; }
   15392  1.4  christos 		if test $ccvs_cv_unique_int_type_intmax_t != no ; then
   15393  1.1  christos 
   15394  1.4  christos $as_echo "#define UNIQUE_INT_TYPE_INTMAX_T 1" >>confdefs.h
   15395  1.1  christos 
   15396  1.1  christos 		fi
   15397  1.1  christos 	fi
   15398  1.4  christos 
   15399  1.4  christos 				# The cast to long int works around a bug in the HP C Compiler
   15400  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15401  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15402  1.4  christos # This bug is HP SR number 8606223364.
   15403  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
   15404  1.4  christos $as_echo_n "checking size of float... " >&6; }
   15405  1.4  christos if test "${ac_cv_sizeof_float+set}" = set; then :
   15406  1.4  christos   $as_echo_n "(cached) " >&6
   15407  1.4  christos else
   15408  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
   15409  1.4  christos 
   15410  1.4  christos else
   15411  1.4  christos   if test "$ac_cv_type_float" = yes; then
   15412  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15413  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15414  1.4  christos { as_fn_set_status 77
   15415  1.4  christos as_fn_error "cannot compute sizeof (float)
   15416  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15417  1.4  christos    else
   15418  1.4  christos      ac_cv_sizeof_float=0
   15419  1.4  christos    fi
   15420  1.4  christos fi
   15421  1.4  christos 
   15422  1.1  christos fi
   15423  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
   15424  1.4  christos $as_echo "$ac_cv_sizeof_float" >&6; }
   15425  1.1  christos 
   15426  1.1  christos 
   15427  1.4  christos 
   15428  1.4  christos cat >>confdefs.h <<_ACEOF
   15429  1.4  christos #define SIZEOF_FLOAT $ac_cv_sizeof_float
   15430  1.1  christos _ACEOF
   15431  1.1  christos 
   15432  1.1  christos 
   15433  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized float" >&5
   15434  1.4  christos $as_echo_n "checking for uniquely sized float... " >&6; }
   15435  1.4  christos if test "${ccvs_cv_unique_float_type_float+set}" = set; then :
   15436  1.4  christos   $as_echo_n "(cached) " >&6
   15437  1.4  christos else
   15438  1.4  christos   if set |grep ^ccvs_cv_unique_float_type_ \
   15439  1.4  christos 			|grep "($ac_cv_sizeof_float)" >/dev/null ; then
   15440  1.4  christos 			ccvs_cv_unique_float_type_float=no
   15441  1.4  christos 		else
   15442  1.4  christos 			ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
   15443  1.4  christos 		fi
   15444  1.4  christos fi
   15445  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_float" >&5
   15446  1.4  christos $as_echo "$ccvs_cv_unique_float_type_float" >&6; }
   15447  1.4  christos 	if test $ccvs_cv_unique_float_type_float != no ; then
   15448  1.4  christos 
   15449  1.4  christos $as_echo "#define UNIQUE_FLOAT_TYPE_FLOAT 1" >>confdefs.h
   15450  1.4  christos 
   15451  1.4  christos 	fi
   15452  1.4  christos 	# The cast to long int works around a bug in the HP C Compiler
   15453  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15454  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15455  1.4  christos # This bug is HP SR number 8606223364.
   15456  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
   15457  1.4  christos $as_echo_n "checking size of double... " >&6; }
   15458  1.4  christos if test "${ac_cv_sizeof_double+set}" = set; then :
   15459  1.4  christos   $as_echo_n "(cached) " >&6
   15460  1.4  christos else
   15461  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
   15462  1.4  christos 
   15463  1.4  christos else
   15464  1.4  christos   if test "$ac_cv_type_double" = yes; then
   15465  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15466  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15467  1.4  christos { as_fn_set_status 77
   15468  1.4  christos as_fn_error "cannot compute sizeof (double)
   15469  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15470  1.4  christos    else
   15471  1.4  christos      ac_cv_sizeof_double=0
   15472  1.4  christos    fi
   15473  1.4  christos fi
   15474  1.4  christos 
   15475  1.4  christos fi
   15476  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
   15477  1.4  christos $as_echo "$ac_cv_sizeof_double" >&6; }
   15478  1.1  christos 
   15479  1.1  christos 
   15480  1.1  christos 
   15481  1.4  christos cat >>confdefs.h <<_ACEOF
   15482  1.4  christos #define SIZEOF_DOUBLE $ac_cv_sizeof_double
   15483  1.1  christos _ACEOF
   15484  1.1  christos 
   15485  1.1  christos 
   15486  1.4  christos 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized double" >&5
   15487  1.4  christos $as_echo_n "checking for uniquely sized double... " >&6; }
   15488  1.4  christos if test "${ccvs_cv_unique_float_type_double+set}" = set; then :
   15489  1.4  christos   $as_echo_n "(cached) " >&6
   15490  1.4  christos else
   15491  1.4  christos   if set |grep ^ccvs_cv_unique_float_type_ \
   15492  1.4  christos 			|grep "($ac_cv_sizeof_double)" >/dev/null ; then
   15493  1.4  christos 			ccvs_cv_unique_float_type_double=no
   15494  1.4  christos 		else
   15495  1.4  christos 			ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
   15496  1.4  christos 		fi
   15497  1.4  christos fi
   15498  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_double" >&5
   15499  1.4  christos $as_echo "$ccvs_cv_unique_float_type_double" >&6; }
   15500  1.4  christos 	if test $ccvs_cv_unique_float_type_double != no ; then
   15501  1.1  christos 
   15502  1.4  christos $as_echo "#define UNIQUE_FLOAT_TYPE_DOUBLE 1" >>confdefs.h
   15503  1.1  christos 
   15504  1.4  christos 	fi
   15505  1.4  christos 	if test $gt_cv_c_long_double != no; then
   15506  1.4  christos 		# The cast to long int works around a bug in the HP C Compiler
   15507  1.4  christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15508  1.4  christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15509  1.4  christos # This bug is HP SR number 8606223364.
   15510  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
   15511  1.4  christos $as_echo_n "checking size of long double... " >&6; }
   15512  1.4  christos if test "${ac_cv_sizeof_long_double+set}" = set; then :
   15513  1.3  christos   $as_echo_n "(cached) " >&6
   15514  1.1  christos else
   15515  1.4  christos   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
   15516  1.4  christos 
   15517  1.1  christos else
   15518  1.4  christos   if test "$ac_cv_type_long_double" = yes; then
   15519  1.4  christos      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15520  1.4  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15521  1.4  christos { as_fn_set_status 77
   15522  1.4  christos as_fn_error "cannot compute sizeof (long double)
   15523  1.4  christos See \`config.log' for more details." "$LINENO" 5; }; }
   15524  1.4  christos    else
   15525  1.4  christos      ac_cv_sizeof_long_double=0
   15526  1.4  christos    fi
   15527  1.4  christos fi
   15528  1.1  christos 
   15529  1.1  christos fi
   15530  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
   15531  1.4  christos $as_echo "$ac_cv_sizeof_long_double" >&6; }
   15532  1.4  christos 
   15533  1.3  christos 
   15534  1.1  christos 
   15535  1.4  christos cat >>confdefs.h <<_ACEOF
   15536  1.4  christos #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
   15537  1.1  christos _ACEOF
   15538  1.1  christos 
   15539  1.3  christos 
   15540  1.4  christos 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long double" >&5
   15541  1.4  christos $as_echo_n "checking for uniquely sized long double... " >&6; }
   15542  1.4  christos if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then :
   15543  1.3  christos   $as_echo_n "(cached) " >&6
   15544  1.1  christos else
   15545  1.4  christos   if set |grep ^ccvs_cv_unique_float_type_ \
   15546  1.4  christos 				|grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
   15547  1.4  christos 				ccvs_cv_unique_float_type_long_double=no
   15548  1.4  christos 			else
   15549  1.4  christos 				ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
   15550  1.4  christos 			fi
   15551  1.1  christos fi
   15552  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_long_double" >&5
   15553  1.4  christos $as_echo "$ccvs_cv_unique_float_type_long_double" >&6; }
   15554  1.4  christos 		if test $ccvs_cv_unique_float_type_long_double != no ; then
   15555  1.4  christos 
   15556  1.4  christos $as_echo "#define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1" >>confdefs.h
   15557  1.1  christos 
   15558  1.4  christos 		fi
   15559  1.4  christos 	fi
   15560  1.1  christos fi
   15561  1.1  christos 
   15562  1.1  christos 
   15563  1.4  christos $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
   15564  1.1  christos 
   15565  1.1  christos 
   15566  1.4  christos $as_echo "#define HAVE_MEMCHR 1" >>confdefs.h
   15567  1.1  christos 
   15568  1.1  christos 
   15569  1.1  christos 
   15570  1.4  christos $as_echo "#define REGEX_MALLOC 1" >>confdefs.h
   15571  1.1  christos 
   15572  1.1  christos 
   15573  1.4  christos $as_echo "#define _REGEX_RE_COMP 1" >>confdefs.h
   15574  1.1  christos 
   15575  1.4  christos for ac_header in vfork.h
   15576  1.4  christos do :
   15577  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   15578  1.4  christos if test "x$ac_cv_header_vfork_h" = x""yes; then :
   15579  1.4  christos   cat >>confdefs.h <<_ACEOF
   15580  1.4  christos #define HAVE_VFORK_H 1
   15581  1.1  christos _ACEOF
   15582  1.1  christos 
   15583  1.1  christos fi
   15584  1.3  christos 
   15585  1.4  christos done
   15586  1.4  christos 
   15587  1.4  christos for ac_func in fork vfork
   15588  1.4  christos do :
   15589  1.4  christos   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15590  1.4  christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15591  1.4  christos eval as_val=\$$as_ac_var
   15592  1.4  christos    if test "x$as_val" = x""yes; then :
   15593  1.1  christos   cat >>confdefs.h <<_ACEOF
   15594  1.3  christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15595  1.1  christos _ACEOF
   15596  1.1  christos 
   15597  1.1  christos fi
   15598  1.1  christos done
   15599  1.1  christos 
   15600  1.1  christos if test "x$ac_cv_func_fork" = xyes; then
   15601  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   15602  1.3  christos $as_echo_n "checking for working fork... " >&6; }
   15603  1.4  christos if test "${ac_cv_func_fork_works+set}" = set; then :
   15604  1.3  christos   $as_echo_n "(cached) " >&6
   15605  1.1  christos else
   15606  1.4  christos   if test "$cross_compiling" = yes; then :
   15607  1.1  christos   ac_cv_func_fork_works=cross
   15608  1.1  christos else
   15609  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15610  1.3  christos /* end confdefs.h.  */
   15611  1.3  christos $ac_includes_default
   15612  1.3  christos int
   15613  1.3  christos main ()
   15614  1.3  christos {
   15615  1.3  christos 
   15616  1.3  christos 	  /* By Ruediger Kuhlmann. */
   15617  1.3  christos 	  return fork () < 0;
   15618  1.3  christos 
   15619  1.3  christos   ;
   15620  1.3  christos   return 0;
   15621  1.3  christos }
   15622  1.1  christos _ACEOF
   15623  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   15624  1.1  christos   ac_cv_func_fork_works=yes
   15625  1.1  christos else
   15626  1.4  christos   ac_cv_func_fork_works=no
   15627  1.1  christos fi
   15628  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15629  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15630  1.1  christos fi
   15631  1.3  christos 
   15632  1.1  christos fi
   15633  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   15634  1.3  christos $as_echo "$ac_cv_func_fork_works" >&6; }
   15635  1.1  christos 
   15636  1.1  christos else
   15637  1.1  christos   ac_cv_func_fork_works=$ac_cv_func_fork
   15638  1.1  christos fi
   15639  1.1  christos if test "x$ac_cv_func_fork_works" = xcross; then
   15640  1.1  christos   case $host in
   15641  1.1  christos     *-*-amigaos* | *-*-msdosdjgpp*)
   15642  1.1  christos       # Override, as these systems have only a dummy fork() stub
   15643  1.1  christos       ac_cv_func_fork_works=no
   15644  1.1  christos       ;;
   15645  1.1  christos     *)
   15646  1.1  christos       ac_cv_func_fork_works=yes
   15647  1.1  christos       ;;
   15648  1.1  christos   esac
   15649  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   15650  1.3  christos $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   15651  1.1  christos fi
   15652  1.1  christos ac_cv_func_vfork_works=$ac_cv_func_vfork
   15653  1.1  christos if test "x$ac_cv_func_vfork" = xyes; then
   15654  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   15655  1.3  christos $as_echo_n "checking for working vfork... " >&6; }
   15656  1.4  christos if test "${ac_cv_func_vfork_works+set}" = set; then :
   15657  1.3  christos   $as_echo_n "(cached) " >&6
   15658  1.1  christos else
   15659  1.4  christos   if test "$cross_compiling" = yes; then :
   15660  1.1  christos   ac_cv_func_vfork_works=cross
   15661  1.1  christos else
   15662  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15663  1.1  christos /* end confdefs.h.  */
   15664  1.1  christos /* Thanks to Paul Eggert for this test.  */
   15665  1.3  christos $ac_includes_default
   15666  1.1  christos #include <sys/wait.h>
   15667  1.3  christos #ifdef HAVE_VFORK_H
   15668  1.1  christos # include <vfork.h>
   15669  1.1  christos #endif
   15670  1.1  christos /* On some sparc systems, changes by the child to local and incoming
   15671  1.1  christos    argument registers are propagated back to the parent.  The compiler
   15672  1.1  christos    is told about this with #include <vfork.h>, but some compilers
   15673  1.1  christos    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   15674  1.1  christos    static variable whose address is put into a register that is
   15675  1.1  christos    clobbered by the vfork.  */
   15676  1.1  christos static void
   15677  1.1  christos #ifdef __cplusplus
   15678  1.1  christos sparc_address_test (int arg)
   15679  1.1  christos # else
   15680  1.1  christos sparc_address_test (arg) int arg;
   15681  1.1  christos #endif
   15682  1.1  christos {
   15683  1.1  christos   static pid_t child;
   15684  1.1  christos   if (!child) {
   15685  1.1  christos     child = vfork ();
   15686  1.1  christos     if (child < 0) {
   15687  1.1  christos       perror ("vfork");
   15688  1.1  christos       _exit(2);
   15689  1.1  christos     }
   15690  1.1  christos     if (!child) {
   15691  1.1  christos       arg = getpid();
   15692  1.1  christos       write(-1, "", 0);
   15693  1.1  christos       _exit (arg);
   15694  1.1  christos     }
   15695  1.1  christos   }
   15696  1.1  christos }
   15697  1.1  christos 
   15698  1.1  christos int
   15699  1.1  christos main ()
   15700  1.1  christos {
   15701  1.1  christos   pid_t parent = getpid ();
   15702  1.1  christos   pid_t child;
   15703  1.1  christos 
   15704  1.1  christos   sparc_address_test (0);
   15705  1.1  christos 
   15706  1.1  christos   child = vfork ();
   15707  1.1  christos 
   15708  1.1  christos   if (child == 0) {
   15709  1.1  christos     /* Here is another test for sparc vfork register problems.  This
   15710  1.1  christos        test uses lots of local variables, at least as many local
   15711  1.1  christos        variables as main has allocated so far including compiler
   15712  1.1  christos        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   15713  1.1  christos        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   15714  1.1  christos        reuse the register of parent for one of the local variables,
   15715  1.1  christos        since it will think that parent can't possibly be used any more
   15716  1.1  christos        in this routine.  Assigning to the local variable will thus
   15717  1.1  christos        munge parent in the parent process.  */
   15718  1.1  christos     pid_t
   15719  1.1  christos       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   15720  1.1  christos       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   15721  1.1  christos     /* Convince the compiler that p..p7 are live; otherwise, it might
   15722  1.1  christos        use the same hardware register for all 8 local variables.  */
   15723  1.1  christos     if (p != p1 || p != p2 || p != p3 || p != p4
   15724  1.1  christos 	|| p != p5 || p != p6 || p != p7)
   15725  1.1  christos       _exit(1);
   15726  1.1  christos 
   15727  1.1  christos     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   15728  1.1  christos        from child file descriptors.  If the child closes a descriptor
   15729  1.1  christos        before it execs or exits, this munges the parent's descriptor
   15730  1.1  christos        as well.  Test for this by closing stdout in the child.  */
   15731  1.1  christos     _exit(close(fileno(stdout)) != 0);
   15732  1.1  christos   } else {
   15733  1.1  christos     int status;
   15734  1.1  christos     struct stat st;
   15735  1.1  christos 
   15736  1.1  christos     while (wait(&status) != child)
   15737  1.1  christos       ;
   15738  1.3  christos     return (
   15739  1.1  christos 	 /* Was there some problem with vforking?  */
   15740  1.1  christos 	 child < 0
   15741  1.1  christos 
   15742  1.1  christos 	 /* Did the child fail?  (This shouldn't happen.)  */
   15743  1.1  christos 	 || status
   15744  1.1  christos 
   15745  1.1  christos 	 /* Did the vfork/compiler bug occur?  */
   15746  1.1  christos 	 || parent != getpid()
   15747  1.1  christos 
   15748  1.1  christos 	 /* Did the file descriptor bug occur?  */
   15749  1.1  christos 	 || fstat(fileno(stdout), &st) != 0
   15750  1.1  christos 	 );
   15751  1.1  christos   }
   15752  1.1  christos }
   15753  1.1  christos _ACEOF
   15754  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   15755  1.1  christos   ac_cv_func_vfork_works=yes
   15756  1.1  christos else
   15757  1.4  christos   ac_cv_func_vfork_works=no
   15758  1.1  christos fi
   15759  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15760  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15761  1.1  christos fi
   15762  1.3  christos 
   15763  1.1  christos fi
   15764  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   15765  1.3  christos $as_echo "$ac_cv_func_vfork_works" >&6; }
   15766  1.1  christos 
   15767  1.1  christos fi;
   15768  1.1  christos if test "x$ac_cv_func_fork_works" = xcross; then
   15769  1.1  christos   ac_cv_func_vfork_works=$ac_cv_func_vfork
   15770  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   15771  1.3  christos $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   15772  1.1  christos fi
   15773  1.1  christos 
   15774  1.1  christos if test "x$ac_cv_func_vfork_works" = xyes; then
   15775  1.1  christos 
   15776  1.4  christos $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   15777  1.1  christos 
   15778  1.1  christos else
   15779  1.1  christos 
   15780  1.4  christos $as_echo "#define vfork fork" >>confdefs.h
   15781  1.1  christos 
   15782  1.1  christos fi
   15783  1.1  christos if test "x$ac_cv_func_fork_works" = xyes; then
   15784  1.1  christos 
   15785  1.4  christos $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   15786  1.1  christos 
   15787  1.1  christos fi
   15788  1.1  christos 
   15789  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
   15790  1.3  christos $as_echo_n "checking whether closedir returns void... " >&6; }
   15791  1.4  christos if test "${ac_cv_func_closedir_void+set}" = set; then :
   15792  1.3  christos   $as_echo_n "(cached) " >&6
   15793  1.1  christos else
   15794  1.4  christos   if test "$cross_compiling" = yes; then :
   15795  1.1  christos   ac_cv_func_closedir_void=yes
   15796  1.1  christos else
   15797  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15798  1.1  christos /* end confdefs.h.  */
   15799  1.1  christos $ac_includes_default
   15800  1.1  christos #include <$ac_header_dirent>
   15801  1.1  christos #ifndef __cplusplus
   15802  1.1  christos int closedir ();
   15803  1.1  christos #endif
   15804  1.1  christos 
   15805  1.1  christos int
   15806  1.1  christos main ()
   15807  1.1  christos {
   15808  1.3  christos return closedir (opendir (".")) != 0;
   15809  1.1  christos   ;
   15810  1.1  christos   return 0;
   15811  1.1  christos }
   15812  1.1  christos _ACEOF
   15813  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   15814  1.1  christos   ac_cv_func_closedir_void=no
   15815  1.1  christos else
   15816  1.4  christos   ac_cv_func_closedir_void=yes
   15817  1.1  christos fi
   15818  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15819  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15820  1.1  christos fi
   15821  1.3  christos 
   15822  1.1  christos fi
   15823  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
   15824  1.3  christos $as_echo "$ac_cv_func_closedir_void" >&6; }
   15825  1.1  christos if test $ac_cv_func_closedir_void = yes; then
   15826  1.1  christos 
   15827  1.4  christos $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
   15828  1.1  christos 
   15829  1.1  christos fi
   15830  1.1  christos 
   15831  1.1  christos 
   15832  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
   15833  1.3  christos $as_echo_n "checking for library containing getspnam... " >&6; }
   15834  1.4  christos if test "${ac_cv_search_getspnam+set}" = set; then :
   15835  1.3  christos   $as_echo_n "(cached) " >&6
   15836  1.1  christos else
   15837  1.1  christos   ac_func_search_save_LIBS=$LIBS
   15838  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15839  1.1  christos /* end confdefs.h.  */
   15840  1.1  christos 
   15841  1.3  christos /* Override any GCC internal prototype to avoid an error.
   15842  1.3  christos    Use char because int might match the return type of a GCC
   15843  1.3  christos    builtin and then its argument prototype would still apply.  */
   15844  1.1  christos #ifdef __cplusplus
   15845  1.1  christos extern "C"
   15846  1.1  christos #endif
   15847  1.1  christos char getspnam ();
   15848  1.1  christos int
   15849  1.1  christos main ()
   15850  1.1  christos {
   15851  1.3  christos return getspnam ();
   15852  1.1  christos   ;
   15853  1.1  christos   return 0;
   15854  1.1  christos }
   15855  1.1  christos _ACEOF
   15856  1.3  christos for ac_lib in '' sec gen; do
   15857  1.3  christos   if test -z "$ac_lib"; then
   15858  1.3  christos     ac_res="none required"
   15859  1.3  christos   else
   15860  1.3  christos     ac_res=-l$ac_lib
   15861  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15862  1.3  christos   fi
   15863  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   15864  1.3  christos   ac_cv_search_getspnam=$ac_res
   15865  1.3  christos fi
   15866  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   15867  1.4  christos     conftest$ac_exeext
   15868  1.4  christos   if test "${ac_cv_search_getspnam+set}" = set; then :
   15869  1.3  christos   break
   15870  1.3  christos fi
   15871  1.3  christos done
   15872  1.4  christos if test "${ac_cv_search_getspnam+set}" = set; then :
   15873  1.4  christos 
   15874  1.3  christos else
   15875  1.3  christos   ac_cv_search_getspnam=no
   15876  1.3  christos fi
   15877  1.3  christos rm conftest.$ac_ext
   15878  1.3  christos LIBS=$ac_func_search_save_LIBS
   15879  1.1  christos fi
   15880  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
   15881  1.3  christos $as_echo "$ac_cv_search_getspnam" >&6; }
   15882  1.3  christos ac_res=$ac_cv_search_getspnam
   15883  1.4  christos if test "$ac_res" != no; then :
   15884  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15885  1.3  christos 
   15886  1.4  christos $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
   15887  1.1  christos 
   15888  1.3  christos fi
   15889  1.3  christos 
   15890  1.3  christos 
   15891  1.3  christos 
   15892  1.3  christos 
   15893  1.3  christos 
   15894  1.3  christos 
   15895  1.3  christos 
   15896  1.3  christos 
   15897  1.3  christos   :
   15898  1.3  christos 
   15899  1.3  christos 
   15900  1.3  christos 
   15901  1.3  christos 
   15902  1.3  christos 
   15903  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
   15904  1.3  christos $as_echo_n "checking whether utime accepts a null argument... " >&6; }
   15905  1.4  christos if test "${ac_cv_func_utime_null+set}" = set; then :
   15906  1.3  christos   $as_echo_n "(cached) " >&6
   15907  1.3  christos else
   15908  1.1  christos   rm -f conftest.data; >conftest.data
   15909  1.1  christos # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
   15910  1.4  christos if test "$cross_compiling" = yes; then :
   15911  1.4  christos   ac_cv_func_utime_null='guessing yes'
   15912  1.1  christos else
   15913  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15914  1.1  christos /* end confdefs.h.  */
   15915  1.1  christos $ac_includes_default
   15916  1.3  christos 	       #ifdef HAVE_UTIME_H
   15917  1.3  christos 	       # include <utime.h>
   15918  1.3  christos 	       #endif
   15919  1.1  christos int
   15920  1.1  christos main ()
   15921  1.1  christos {
   15922  1.1  christos struct stat s, t;
   15923  1.3  christos   return ! (stat ("conftest.data", &s) == 0
   15924  1.3  christos 	    && utime ("conftest.data", 0) == 0
   15925  1.3  christos 	    && stat ("conftest.data", &t) == 0
   15926  1.3  christos 	    && t.st_mtime >= s.st_mtime
   15927  1.3  christos 	    && t.st_mtime - s.st_mtime < 120);
   15928  1.1  christos   ;
   15929  1.1  christos   return 0;
   15930  1.1  christos }
   15931  1.1  christos _ACEOF
   15932  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   15933  1.1  christos   ac_cv_func_utime_null=yes
   15934  1.1  christos else
   15935  1.4  christos   ac_cv_func_utime_null=no
   15936  1.1  christos fi
   15937  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15938  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15939  1.1  christos fi
   15940  1.3  christos 
   15941  1.1  christos fi
   15942  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
   15943  1.3  christos $as_echo "$ac_cv_func_utime_null" >&6; }
   15944  1.4  christos if test "x$ac_cv_func_utime_null" != xno; then
   15945  1.4  christos   ac_cv_func_utime_null=yes
   15946  1.1  christos 
   15947  1.4  christos $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
   15948  1.1  christos 
   15949  1.1  christos fi
   15950  1.1  christos rm -f conftest.data
   15951  1.1  christos 
   15952  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
   15953  1.3  christos $as_echo_n "checking for long file names... " >&6; }
   15954  1.4  christos if test "${ac_cv_sys_long_file_names+set}" = set; then :
   15955  1.3  christos   $as_echo_n "(cached) " >&6
   15956  1.1  christos else
   15957  1.1  christos   ac_cv_sys_long_file_names=yes
   15958  1.1  christos # Test for long file names in all the places we know might matter:
   15959  1.1  christos #      .		the current directory, where building will happen
   15960  1.1  christos #      $prefix/lib	where we will be installing things
   15961  1.1  christos #      $exec_prefix/lib	likewise
   15962  1.1  christos #      $TMPDIR		if set, where it might want to write temporary files
   15963  1.1  christos #      /tmp		where it might want to write temporary files
   15964  1.1  christos #      /var/tmp		likewise
   15965  1.1  christos #      /usr/tmp		likewise
   15966  1.3  christos for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
   15967  1.3  christos   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
   15968  1.3  christos   # in the usual case where exec_prefix is '${prefix}'.
   15969  1.3  christos   case $ac_dir in #(
   15970  1.3  christos     . | /* | ?:[\\/]*) ;; #(
   15971  1.3  christos     *) continue;;
   15972  1.3  christos   esac
   15973  1.3  christos   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
   15974  1.1  christos   ac_xdir=$ac_dir/cf$$
   15975  1.3  christos   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
   15976  1.1  christos   ac_tf1=$ac_xdir/conftest9012345
   15977  1.1  christos   ac_tf2=$ac_xdir/conftest9012346
   15978  1.3  christos   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
   15979  1.1  christos     ac_cv_sys_long_file_names=no
   15980  1.3  christos   rm -f -r "$ac_xdir" 2>/dev/null
   15981  1.3  christos   test $ac_cv_sys_long_file_names = no && break
   15982  1.1  christos done
   15983  1.1  christos fi
   15984  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
   15985  1.3  christos $as_echo "$ac_cv_sys_long_file_names" >&6; }
   15986  1.1  christos if test $ac_cv_sys_long_file_names = yes; then
   15987  1.1  christos 
   15988  1.4  christos $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
   15989  1.1  christos 
   15990  1.1  christos fi
   15991  1.1  christos 
   15992  1.1  christos 
   15993  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports %p" >&5
   15994  1.3  christos $as_echo_n "checking whether printf supports %p... " >&6; }
   15995  1.4  christos if test "${cvs_cv_func_printf_ptr+set}" = set; then :
   15996  1.3  christos   $as_echo_n "(cached) " >&6
   15997  1.1  christos else
   15998  1.4  christos   if test "$cross_compiling" = yes; then :
   15999  1.4  christos   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16000  1.3  christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16001  1.4  christos as_fn_error "cannot run test program while cross compiling
   16002  1.4  christos See \`config.log' for more details." "$LINENO" 5; }
   16003  1.1  christos else
   16004  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16005  1.1  christos /* end confdefs.h.  */
   16006  1.1  christos #include <stdio.h>
   16007  1.1  christos /* If printf supports %p, exit 0. */
   16008  1.1  christos int
   16009  1.1  christos main ()
   16010  1.1  christos {
   16011  1.1  christos   void *p1, *p2;
   16012  1.1  christos   char buf[256];
   16013  1.1  christos   p1 = &p1; p2 = &p2;
   16014  1.1  christos   sprintf(buf, "%p", p1);
   16015  1.1  christos   exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
   16016  1.1  christos }
   16017  1.1  christos _ACEOF
   16018  1.4  christos if ac_fn_c_try_run "$LINENO"; then :
   16019  1.1  christos   cvs_cv_func_printf_ptr=yes
   16020  1.1  christos else
   16021  1.4  christos   cvs_cv_func_printf_ptr=no
   16022  1.1  christos fi
   16023  1.4  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16024  1.4  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16025  1.1  christos fi
   16026  1.3  christos 
   16027  1.1  christos rm -f core core.* *.core
   16028  1.1  christos fi
   16029  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cvs_cv_func_printf_ptr" >&5
   16030  1.3  christos $as_echo "$cvs_cv_func_printf_ptr" >&6; }
   16031  1.1  christos if test $cvs_cv_func_printf_ptr = yes; then
   16032  1.1  christos 
   16033  1.4  christos $as_echo "#define HAVE_PRINTF_PTR 1" >>confdefs.h
   16034  1.1  christos 
   16035  1.1  christos fi
   16036  1.1  christos 
   16037  1.1  christos 
   16038  1.1  christos # Try to find connect and gethostbyname.
   16039  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
   16040  1.3  christos $as_echo_n "checking for main in -lnsl... " >&6; }
   16041  1.4  christos if test "${ac_cv_lib_nsl_main+set}" = set; then :
   16042  1.3  christos   $as_echo_n "(cached) " >&6
   16043  1.1  christos else
   16044  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16045  1.1  christos LIBS="-lnsl  $LIBS"
   16046  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16047  1.1  christos /* end confdefs.h.  */
   16048  1.1  christos 
   16049  1.1  christos 
   16050  1.1  christos int
   16051  1.1  christos main ()
   16052  1.1  christos {
   16053  1.3  christos return main ();
   16054  1.1  christos   ;
   16055  1.1  christos   return 0;
   16056  1.1  christos }
   16057  1.1  christos _ACEOF
   16058  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16059  1.1  christos   ac_cv_lib_nsl_main=yes
   16060  1.1  christos else
   16061  1.4  christos   ac_cv_lib_nsl_main=no
   16062  1.1  christos fi
   16063  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16064  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16065  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16066  1.1  christos fi
   16067  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
   16068  1.3  christos $as_echo "$ac_cv_lib_nsl_main" >&6; }
   16069  1.4  christos if test "x$ac_cv_lib_nsl_main" = x""yes; then :
   16070  1.1  christos   cat >>confdefs.h <<_ACEOF
   16071  1.1  christos #define HAVE_LIBNSL 1
   16072  1.1  christos _ACEOF
   16073  1.1  christos 
   16074  1.1  christos   LIBS="-lnsl $LIBS"
   16075  1.1  christos 
   16076  1.1  christos fi
   16077  1.1  christos 
   16078  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
   16079  1.3  christos $as_echo_n "checking for library containing connect... " >&6; }
   16080  1.4  christos if test "${ac_cv_search_connect+set}" = set; then :
   16081  1.3  christos   $as_echo_n "(cached) " >&6
   16082  1.1  christos else
   16083  1.1  christos   ac_func_search_save_LIBS=$LIBS
   16084  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16085  1.1  christos /* end confdefs.h.  */
   16086  1.1  christos 
   16087  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16088  1.3  christos    Use char because int might match the return type of a GCC
   16089  1.3  christos    builtin and then its argument prototype would still apply.  */
   16090  1.1  christos #ifdef __cplusplus
   16091  1.1  christos extern "C"
   16092  1.1  christos #endif
   16093  1.1  christos char connect ();
   16094  1.1  christos int
   16095  1.1  christos main ()
   16096  1.1  christos {
   16097  1.3  christos return connect ();
   16098  1.1  christos   ;
   16099  1.1  christos   return 0;
   16100  1.1  christos }
   16101  1.1  christos _ACEOF
   16102  1.3  christos for ac_lib in '' xnet socket inet; do
   16103  1.3  christos   if test -z "$ac_lib"; then
   16104  1.3  christos     ac_res="none required"
   16105  1.3  christos   else
   16106  1.3  christos     ac_res=-l$ac_lib
   16107  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16108  1.3  christos   fi
   16109  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   16110  1.3  christos   ac_cv_search_connect=$ac_res
   16111  1.1  christos fi
   16112  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16113  1.4  christos     conftest$ac_exeext
   16114  1.4  christos   if test "${ac_cv_search_connect+set}" = set; then :
   16115  1.3  christos   break
   16116  1.3  christos fi
   16117  1.3  christos done
   16118  1.4  christos if test "${ac_cv_search_connect+set}" = set; then :
   16119  1.4  christos 
   16120  1.1  christos else
   16121  1.3  christos   ac_cv_search_connect=no
   16122  1.1  christos fi
   16123  1.3  christos rm conftest.$ac_ext
   16124  1.1  christos LIBS=$ac_func_search_save_LIBS
   16125  1.1  christos fi
   16126  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
   16127  1.3  christos $as_echo "$ac_cv_search_connect" >&6; }
   16128  1.3  christos ac_res=$ac_cv_search_connect
   16129  1.4  christos if test "$ac_res" != no; then :
   16130  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16131  1.1  christos 
   16132  1.4  christos $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
   16133  1.1  christos 
   16134  1.1  christos fi
   16135  1.1  christos 
   16136  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   16137  1.3  christos $as_echo_n "checking for library containing gethostbyname... " >&6; }
   16138  1.4  christos if test "${ac_cv_search_gethostbyname+set}" = set; then :
   16139  1.3  christos   $as_echo_n "(cached) " >&6
   16140  1.1  christos else
   16141  1.1  christos   ac_func_search_save_LIBS=$LIBS
   16142  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16143  1.1  christos /* end confdefs.h.  */
   16144  1.1  christos 
   16145  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16146  1.3  christos    Use char because int might match the return type of a GCC
   16147  1.3  christos    builtin and then its argument prototype would still apply.  */
   16148  1.1  christos #ifdef __cplusplus
   16149  1.1  christos extern "C"
   16150  1.1  christos #endif
   16151  1.1  christos char gethostbyname ();
   16152  1.1  christos int
   16153  1.1  christos main ()
   16154  1.1  christos {
   16155  1.3  christos return gethostbyname ();
   16156  1.1  christos   ;
   16157  1.1  christos   return 0;
   16158  1.1  christos }
   16159  1.1  christos _ACEOF
   16160  1.3  christos for ac_lib in '' netinet; do
   16161  1.3  christos   if test -z "$ac_lib"; then
   16162  1.3  christos     ac_res="none required"
   16163  1.3  christos   else
   16164  1.3  christos     ac_res=-l$ac_lib
   16165  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16166  1.3  christos   fi
   16167  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   16168  1.3  christos   ac_cv_search_gethostbyname=$ac_res
   16169  1.1  christos fi
   16170  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16171  1.4  christos     conftest$ac_exeext
   16172  1.4  christos   if test "${ac_cv_search_gethostbyname+set}" = set; then :
   16173  1.3  christos   break
   16174  1.3  christos fi
   16175  1.3  christos done
   16176  1.4  christos if test "${ac_cv_search_gethostbyname+set}" = set; then :
   16177  1.4  christos 
   16178  1.1  christos else
   16179  1.3  christos   ac_cv_search_gethostbyname=no
   16180  1.1  christos fi
   16181  1.3  christos rm conftest.$ac_ext
   16182  1.1  christos LIBS=$ac_func_search_save_LIBS
   16183  1.1  christos fi
   16184  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   16185  1.3  christos $as_echo "$ac_cv_search_gethostbyname" >&6; }
   16186  1.3  christos ac_res=$ac_cv_search_gethostbyname
   16187  1.4  christos if test "$ac_res" != no; then :
   16188  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16189  1.1  christos 
   16190  1.1  christos fi
   16191  1.1  christos 
   16192  1.1  christos 
   16193  1.1  christos 
   16194  1.1  christos 
   16195  1.1  christos 
   16196  1.1  christos 
   16197  1.1  christos KRB4=/usr/kerberos
   16198  1.1  christos 
   16199  1.1  christos 
   16200  1.3  christos # Check whether --with-krb4 was given.
   16201  1.4  christos if test "${with_krb4+set}" = set; then :
   16202  1.3  christos   withval=$with_krb4; KRB4=$with_krb4
   16203  1.3  christos fi
   16204  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KRB4 in $KRB4" >&5
   16205  1.3  christos $as_echo_n "checking for KRB4 in $KRB4... " >&6; }
   16206  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   16207  1.3  christos $as_echo "" >&6; }
   16208  1.1  christos 
   16209  1.1  christos 
   16210  1.1  christos krb_h=
   16211  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb.h" >&5
   16212  1.3  christos $as_echo_n "checking for krb.h... " >&6; }
   16213  1.1  christos if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
   16214  1.1  christos    hold_cflags=$CFLAGS
   16215  1.1  christos    CFLAGS="$CFLAGS -I$KRB4/include"
   16216  1.4  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16217  1.1  christos /* end confdefs.h.  */
   16218  1.1  christos #include <krb.h>
   16219  1.1  christos int
   16220  1.1  christos main ()
   16221  1.1  christos {
   16222  1.1  christos int i;
   16223  1.1  christos   ;
   16224  1.1  christos   return 0;
   16225  1.1  christos }
   16226  1.1  christos _ACEOF
   16227  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16228  1.1  christos   krb_h=yes krb_incdir=$KRB4/include
   16229  1.1  christos else
   16230  1.4  christos   CFLAGS=$hold_cflags
   16231  1.4  christos            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16232  1.1  christos /* end confdefs.h.  */
   16233  1.1  christos #include <krb.h>
   16234  1.1  christos int
   16235  1.1  christos main ()
   16236  1.1  christos {
   16237  1.1  christos int i;
   16238  1.1  christos   ;
   16239  1.1  christos   return 0;
   16240  1.1  christos }
   16241  1.1  christos _ACEOF
   16242  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16243  1.1  christos   krb_h=yes krb_incdir=
   16244  1.1  christos fi
   16245  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16246  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16247  1.1  christos fi
   16248  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16249  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16250  1.1  christos    CFLAGS=$hold_cflags
   16251  1.1  christos else
   16252  1.4  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16253  1.1  christos /* end confdefs.h.  */
   16254  1.1  christos #include <krb.h>
   16255  1.1  christos int
   16256  1.1  christos main ()
   16257  1.1  christos {
   16258  1.1  christos int i;
   16259  1.1  christos   ;
   16260  1.1  christos   return 0;
   16261  1.1  christos }
   16262  1.1  christos _ACEOF
   16263  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16264  1.1  christos   krb_h=yes krb_incdir=
   16265  1.1  christos fi
   16266  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16267  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16268  1.1  christos fi
   16269  1.1  christos if test -z "$krb_h"; then
   16270  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16271  1.1  christos /* end confdefs.h.  */
   16272  1.1  christos #include <krb.h>
   16273  1.1  christos int
   16274  1.1  christos main ()
   16275  1.1  christos {
   16276  1.1  christos int i;
   16277  1.1  christos   ;
   16278  1.1  christos   return 0;
   16279  1.1  christos }
   16280  1.1  christos _ACEOF
   16281  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16282  1.1  christos   krb_h=yes krb_incdir=
   16283  1.1  christos else
   16284  1.4  christos   if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
   16285  1.1  christos        hold_cflags=$CFLAGS
   16286  1.1  christos        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
   16287  1.4  christos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16288  1.1  christos /* end confdefs.h.  */
   16289  1.1  christos #include <krb.h>
   16290  1.1  christos int
   16291  1.1  christos main ()
   16292  1.1  christos {
   16293  1.1  christos int i;
   16294  1.1  christos   ;
   16295  1.1  christos   return 0;
   16296  1.1  christos }
   16297  1.1  christos _ACEOF
   16298  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16299  1.1  christos   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
   16300  1.1  christos fi
   16301  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16302  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16303  1.1  christos        CFLAGS=$hold_cflags
   16304  1.1  christos      fi
   16305  1.1  christos fi
   16306  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16307  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16308  1.1  christos fi
   16309  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_h" >&5
   16310  1.3  christos $as_echo "$krb_h" >&6; }
   16311  1.1  christos 
   16312  1.1  christos if test -n "$krb_h"; then
   16313  1.1  christos   krb_lib=
   16314  1.1  christos   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
   16315  1.1  christos        hold_ldflags=$LDFLAGS
   16316  1.1  christos        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
   16317  1.4  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lkrb" >&5
   16318  1.3  christos $as_echo_n "checking for printf in -lkrb... " >&6; }
   16319  1.4  christos if test "${ac_cv_lib_krb_printf+set}" = set; then :
   16320  1.3  christos   $as_echo_n "(cached) " >&6
   16321  1.1  christos else
   16322  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16323  1.1  christos LIBS="-lkrb  $LIBS"
   16324  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16325  1.1  christos /* end confdefs.h.  */
   16326  1.1  christos 
   16327  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16328  1.3  christos    Use char because int might match the return type of a GCC
   16329  1.3  christos    builtin and then its argument prototype would still apply.  */
   16330  1.1  christos #ifdef __cplusplus
   16331  1.1  christos extern "C"
   16332  1.1  christos #endif
   16333  1.1  christos char printf ();
   16334  1.1  christos int
   16335  1.1  christos main ()
   16336  1.1  christos {
   16337  1.3  christos return printf ();
   16338  1.1  christos   ;
   16339  1.1  christos   return 0;
   16340  1.1  christos }
   16341  1.1  christos _ACEOF
   16342  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16343  1.1  christos   ac_cv_lib_krb_printf=yes
   16344  1.1  christos else
   16345  1.4  christos   ac_cv_lib_krb_printf=no
   16346  1.1  christos fi
   16347  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16348  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16349  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16350  1.1  christos fi
   16351  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5
   16352  1.3  christos $as_echo "$ac_cv_lib_krb_printf" >&6; }
   16353  1.4  christos if test "x$ac_cv_lib_krb_printf" = x""yes; then :
   16354  1.1  christos   krb_lib=yes krb_libdir=${KRB4}/lib
   16355  1.1  christos else
   16356  1.1  christos   LDFLAGS=$hold_ldflags
   16357  1.1  christos             # Using open here instead of printf so we don't
   16358  1.1  christos             # get confused by the cached value for printf from above.
   16359  1.4  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lkrb" >&5
   16360  1.3  christos $as_echo_n "checking for open in -lkrb... " >&6; }
   16361  1.4  christos if test "${ac_cv_lib_krb_open+set}" = set; then :
   16362  1.3  christos   $as_echo_n "(cached) " >&6
   16363  1.1  christos else
   16364  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16365  1.1  christos LIBS="-lkrb  $LIBS"
   16366  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16367  1.1  christos /* end confdefs.h.  */
   16368  1.1  christos 
   16369  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16370  1.3  christos    Use char because int might match the return type of a GCC
   16371  1.3  christos    builtin and then its argument prototype would still apply.  */
   16372  1.1  christos #ifdef __cplusplus
   16373  1.1  christos extern "C"
   16374  1.1  christos #endif
   16375  1.1  christos char open ();
   16376  1.1  christos int
   16377  1.1  christos main ()
   16378  1.1  christos {
   16379  1.3  christos return open ();
   16380  1.1  christos   ;
   16381  1.1  christos   return 0;
   16382  1.1  christos }
   16383  1.1  christos _ACEOF
   16384  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16385  1.3  christos   ac_cv_lib_krb_open=yes
   16386  1.3  christos else
   16387  1.4  christos   ac_cv_lib_krb_open=no
   16388  1.1  christos fi
   16389  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16390  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16391  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16392  1.1  christos fi
   16393  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_open" >&5
   16394  1.3  christos $as_echo "$ac_cv_lib_krb_open" >&6; }
   16395  1.4  christos if test "x$ac_cv_lib_krb_open" = x""yes; then :
   16396  1.1  christos   krb_lib=yes krb_libdir=
   16397  1.1  christos fi
   16398  1.1  christos 
   16399  1.1  christos fi
   16400  1.1  christos 
   16401  1.1  christos        LDFLAGS=$hold_ldflags
   16402  1.1  christos   else
   16403  1.4  christos        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lkrb" >&5
   16404  1.3  christos $as_echo_n "checking for printf in -lkrb... " >&6; }
   16405  1.4  christos if test "${ac_cv_lib_krb_printf+set}" = set; then :
   16406  1.3  christos   $as_echo_n "(cached) " >&6
   16407  1.1  christos else
   16408  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16409  1.1  christos LIBS="-lkrb  $LIBS"
   16410  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16411  1.1  christos /* end confdefs.h.  */
   16412  1.1  christos 
   16413  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16414  1.3  christos    Use char because int might match the return type of a GCC
   16415  1.3  christos    builtin and then its argument prototype would still apply.  */
   16416  1.1  christos #ifdef __cplusplus
   16417  1.1  christos extern "C"
   16418  1.1  christos #endif
   16419  1.1  christos char printf ();
   16420  1.1  christos int
   16421  1.1  christos main ()
   16422  1.1  christos {
   16423  1.3  christos return printf ();
   16424  1.1  christos   ;
   16425  1.1  christos   return 0;
   16426  1.1  christos }
   16427  1.1  christos _ACEOF
   16428  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16429  1.1  christos   ac_cv_lib_krb_printf=yes
   16430  1.1  christos else
   16431  1.4  christos   ac_cv_lib_krb_printf=no
   16432  1.1  christos fi
   16433  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16434  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16435  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16436  1.1  christos fi
   16437  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5
   16438  1.3  christos $as_echo "$ac_cv_lib_krb_printf" >&6; }
   16439  1.4  christos if test "x$ac_cv_lib_krb_printf" = x""yes; then :
   16440  1.1  christos   krb_lib=yes krb_libdir=
   16441  1.1  christos fi
   16442  1.1  christos 
   16443  1.4  christos        ac_fn_c_check_func "$LINENO" "krb_recvauth" "ac_cv_func_krb_recvauth"
   16444  1.4  christos if test "x$ac_cv_func_krb_recvauth" = x""yes; then :
   16445  1.1  christos   krb_lib=yes krb_libdir=
   16446  1.1  christos fi
   16447  1.1  christos 
   16448  1.1  christos   fi
   16449  1.1  christos   if test -n "$krb_lib"; then
   16450  1.1  christos 
   16451  1.4  christos $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
   16452  1.1  christos 
   16453  1.1  christos     cvs_client_objects="$cvs_client_objects kerberos4-client.o"
   16454  1.1  christos     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
   16455  1.1  christos     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
   16456  1.1  christos     # -ldes in the command line.  Don't do it permanently so that we honor
   16457  1.1  christos     # the user's setting for LDFLAGS
   16458  1.1  christos     hold_ldflags=$LDFLAGS
   16459  1.1  christos     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
   16460  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -ldes" >&5
   16461  1.3  christos $as_echo_n "checking for printf in -ldes... " >&6; }
   16462  1.4  christos if test "${ac_cv_lib_des_printf+set}" = set; then :
   16463  1.3  christos   $as_echo_n "(cached) " >&6
   16464  1.1  christos else
   16465  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16466  1.1  christos LIBS="-ldes  $LIBS"
   16467  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16468  1.1  christos /* end confdefs.h.  */
   16469  1.1  christos 
   16470  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16471  1.3  christos    Use char because int might match the return type of a GCC
   16472  1.3  christos    builtin and then its argument prototype would still apply.  */
   16473  1.1  christos #ifdef __cplusplus
   16474  1.1  christos extern "C"
   16475  1.1  christos #endif
   16476  1.1  christos char printf ();
   16477  1.1  christos int
   16478  1.1  christos main ()
   16479  1.1  christos {
   16480  1.3  christos return printf ();
   16481  1.1  christos   ;
   16482  1.1  christos   return 0;
   16483  1.1  christos }
   16484  1.1  christos _ACEOF
   16485  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16486  1.1  christos   ac_cv_lib_des_printf=yes
   16487  1.1  christos else
   16488  1.4  christos   ac_cv_lib_des_printf=no
   16489  1.1  christos fi
   16490  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16491  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16492  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16493  1.1  christos fi
   16494  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_printf" >&5
   16495  1.3  christos $as_echo "$ac_cv_lib_des_printf" >&6; }
   16496  1.4  christos if test "x$ac_cv_lib_des_printf" = x""yes; then :
   16497  1.1  christos   LIBS="${LIBS} -ldes"
   16498  1.1  christos fi
   16499  1.1  christos 
   16500  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_recvauth in -lkrb" >&5
   16501  1.3  christos $as_echo_n "checking for krb_recvauth in -lkrb... " >&6; }
   16502  1.4  christos if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then :
   16503  1.3  christos   $as_echo_n "(cached) " >&6
   16504  1.1  christos else
   16505  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16506  1.1  christos LIBS="-lkrb  $LIBS"
   16507  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16508  1.1  christos /* end confdefs.h.  */
   16509  1.1  christos 
   16510  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16511  1.3  christos    Use char because int might match the return type of a GCC
   16512  1.3  christos    builtin and then its argument prototype would still apply.  */
   16513  1.1  christos #ifdef __cplusplus
   16514  1.1  christos extern "C"
   16515  1.1  christos #endif
   16516  1.1  christos char krb_recvauth ();
   16517  1.1  christos int
   16518  1.1  christos main ()
   16519  1.1  christos {
   16520  1.3  christos return krb_recvauth ();
   16521  1.1  christos   ;
   16522  1.1  christos   return 0;
   16523  1.1  christos }
   16524  1.1  christos _ACEOF
   16525  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16526  1.1  christos   ac_cv_lib_krb_krb_recvauth=yes
   16527  1.1  christos else
   16528  1.4  christos   ac_cv_lib_krb_krb_recvauth=no
   16529  1.1  christos fi
   16530  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16531  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16532  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16533  1.1  christos fi
   16534  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_recvauth" >&5
   16535  1.3  christos $as_echo "$ac_cv_lib_krb_krb_recvauth" >&6; }
   16536  1.4  christos if test "x$ac_cv_lib_krb_krb_recvauth" = x""yes; then :
   16537  1.1  christos   cat >>confdefs.h <<_ACEOF
   16538  1.1  christos #define HAVE_LIBKRB 1
   16539  1.1  christos _ACEOF
   16540  1.1  christos 
   16541  1.1  christos   LIBS="-lkrb $LIBS"
   16542  1.1  christos 
   16543  1.1  christos fi
   16544  1.1  christos 
   16545  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_recvauth in -lkrb4" >&5
   16546  1.3  christos $as_echo_n "checking for krb_recvauth in -lkrb4... " >&6; }
   16547  1.4  christos if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then :
   16548  1.3  christos   $as_echo_n "(cached) " >&6
   16549  1.1  christos else
   16550  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   16551  1.1  christos LIBS="-lkrb4  $LIBS"
   16552  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16553  1.1  christos /* end confdefs.h.  */
   16554  1.1  christos 
   16555  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16556  1.3  christos    Use char because int might match the return type of a GCC
   16557  1.3  christos    builtin and then its argument prototype would still apply.  */
   16558  1.1  christos #ifdef __cplusplus
   16559  1.1  christos extern "C"
   16560  1.1  christos #endif
   16561  1.1  christos char krb_recvauth ();
   16562  1.1  christos int
   16563  1.1  christos main ()
   16564  1.1  christos {
   16565  1.3  christos return krb_recvauth ();
   16566  1.1  christos   ;
   16567  1.1  christos   return 0;
   16568  1.1  christos }
   16569  1.1  christos _ACEOF
   16570  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   16571  1.1  christos   ac_cv_lib_krb4_krb_recvauth=yes
   16572  1.1  christos else
   16573  1.4  christos   ac_cv_lib_krb4_krb_recvauth=no
   16574  1.1  christos fi
   16575  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16576  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   16577  1.1  christos LIBS=$ac_check_lib_save_LIBS
   16578  1.1  christos fi
   16579  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_recvauth" >&5
   16580  1.3  christos $as_echo "$ac_cv_lib_krb4_krb_recvauth" >&6; }
   16581  1.4  christos if test "x$ac_cv_lib_krb4_krb_recvauth" = x""yes; then :
   16582  1.1  christos   cat >>confdefs.h <<_ACEOF
   16583  1.1  christos #define HAVE_LIBKRB4 1
   16584  1.1  christos _ACEOF
   16585  1.1  christos 
   16586  1.1  christos   LIBS="-lkrb4 $LIBS"
   16587  1.1  christos 
   16588  1.1  christos fi
   16589  1.1  christos 
   16590  1.1  christos     LDFLAGS=$hold_ldflags
   16591  1.1  christos     if test -n "$krb_incdir"; then
   16592  1.1  christos       CPPFLAGS="$CPPFLAGS -I$krb_incdir"
   16593  1.1  christos     fi
   16594  1.1  christos   fi
   16595  1.1  christos fi
   16596  1.1  christos for ac_func in krb_get_err_text
   16597  1.4  christos do :
   16598  1.4  christos   ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
   16599  1.4  christos if test "x$ac_cv_func_krb_get_err_text" = x""yes; then :
   16600  1.1  christos   cat >>confdefs.h <<_ACEOF
   16601  1.4  christos #define HAVE_KRB_GET_ERR_TEXT 1
   16602  1.1  christos _ACEOF
   16603  1.1  christos 
   16604  1.1  christos fi
   16605  1.1  christos done
   16606  1.1  christos 
   16607  1.1  christos 
   16608  1.1  christos 
   16609  1.1  christos 
   16610  1.1  christos #
   16611  1.1  christos # Use --with-gssapi[=DIR] to enable GSSAPI support.
   16612  1.1  christos #
   16613  1.1  christos # defaults to enabled with DIR in default list below
   16614  1.1  christos #
   16615  1.1  christos # Search for /SUNHEA/ and read the comments about this default below.
   16616  1.1  christos #
   16617  1.1  christos 
   16618  1.3  christos # Check whether --with-gssapi was given.
   16619  1.4  christos if test "${with_gssapi+set}" = set; then :
   16620  1.3  christos   withval=$with_gssapi;
   16621  1.1  christos else
   16622  1.1  christos   with_gssapi=yes
   16623  1.3  christos fi
   16624  1.3  christos 
   16625  1.1  christos #
   16626  1.1  christos # Try to locate a GSSAPI installation if no location was specified, assuming
   16627  1.1  christos # GSSAPI was enabled (the default).
   16628  1.1  christos #
   16629  1.1  christos if test -n "$acx_gssapi_cv_gssapi"; then
   16630  1.1  christos   # Granted, this is a slightly ugly way to print this info, but the
   16631  1.1  christos   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
   16632  1.1  christos   # AC_CACHE_CHECK worse
   16633  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5
   16634  1.3  christos $as_echo_n "checking for GSSAPI... " >&6; }
   16635  1.1  christos else :; fi
   16636  1.4  christos if test "${acx_gssapi_cv_gssapi+set}" = set; then :
   16637  1.3  christos   $as_echo_n "(cached) " >&6
   16638  1.1  christos else
   16639  1.1  christos 
   16640  1.1  christos if test x$with_gssapi = xyes; then
   16641  1.1  christos   # --with but no location specified
   16642  1.1  christos   # assume a gssapi.h or gssapi/gssapi.h locates our install.
   16643  1.1  christos   #
   16644  1.1  christos   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
   16645  1.1  christos   # package installs gssapi.h whether or not the necessary libraries are
   16646  1.1  christos   # installed.  I'm still not sure whether to consider this a bug.  The long
   16647  1.1  christos   # way around is to not consider GSSPAI installed unless gss_import_name is
   16648  1.1  christos   # found, but that brings up a lot of other hassles, like continuing to let
   16649  1.1  christos   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
   16650  1.1  christos   # as a debugging aid.  The short way around is to disable GSSAPI by default,
   16651  1.1  christos   # but I think Sun users have been faced with this for awhile and I haven't
   16652  1.1  christos   # heard many complaints.
   16653  1.1  christos   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
   16654  1.1  christos   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
   16655  1.1  christos     if test x$acx_gssapi_cv_gssapi = xno; then
   16656  1.1  christos       break
   16657  1.1  christos     fi
   16658  1.1  christos     if test x$acx_gssapi_cv_gssapi = xyes; then
   16659  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5
   16660  1.3  christos $as_echo_n "checking for GSSAPI... " >&6; }
   16661  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   16662  1.3  christos $as_echo "" >&6; }
   16663  1.1  christos     else
   16664  1.1  christos       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
   16665  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
   16666  1.3  christos $as_echo_n "checking for GSSAPI in $acx_gssapi_cv_gssapi... " >&6; }
   16667  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   16668  1.3  christos $as_echo "" >&6; }
   16669  1.1  christos     fi
   16670  1.1  christos     unset ac_cv_header_gssapi_h
   16671  1.1  christos     unset ac_cv_header_gssapi_gssapi_h
   16672  1.1  christos     unset ac_cv_header_krb5_h
   16673  1.4  christos     for ac_header in gssapi.h gssapi/gssapi.h krb5.h
   16674  1.4  christos do :
   16675  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16676  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16677  1.4  christos eval as_val=\$$as_ac_Header
   16678  1.4  christos    if test "x$as_val" = x""yes; then :
   16679  1.1  christos   cat >>confdefs.h <<_ACEOF
   16680  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16681  1.1  christos _ACEOF
   16682  1.1  christos 
   16683  1.1  christos fi
   16684  1.1  christos 
   16685  1.1  christos done
   16686  1.1  christos 
   16687  1.1  christos     if (test "$ac_cv_header_gssapi_h" = yes ||
   16688  1.1  christos 	  test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
   16689  1.1  christos 	test "$ac_cv_header_krb5_h" = yes; then
   16690  1.1  christos       break
   16691  1.1  christos     fi
   16692  1.1  christos   done
   16693  1.1  christos   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
   16694  1.1  christos else
   16695  1.1  christos   acx_gssapi_cv_gssapi=$with_gssapi
   16696  1.1  christos fi
   16697  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5
   16698  1.3  christos $as_echo_n "checking for GSSAPI... " >&6; }
   16699  1.1  christos 
   16700  1.1  christos fi
   16701  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_gssapi_cv_gssapi" >&5
   16702  1.3  christos $as_echo "$acx_gssapi_cv_gssapi" >&6; }
   16703  1.1  christos 
   16704  1.1  christos #
   16705  1.1  christos # Set up GSSAPI includes for later use.  We don't bother to check for
   16706  1.1  christos # $acx_gssapi_cv_gssapi=no here since that will be caught later.
   16707  1.1  christos #
   16708  1.1  christos if test x$acx_gssapi_cv_gssapi = xyes; then
   16709  1.1  christos   # no special includes necessary
   16710  1.1  christos   GSSAPI_INCLUDES=""
   16711  1.1  christos else
   16712  1.1  christos   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
   16713  1.1  christos   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
   16714  1.1  christos fi
   16715  1.1  christos 
   16716  1.1  christos #
   16717  1.1  christos # Get the rest of the information CVS needs to compile with GSSAPI support
   16718  1.1  christos #
   16719  1.1  christos if test x$acx_gssapi_cv_gssapi != xno; then
   16720  1.1  christos   # define HAVE_GSSAPI and set up the includes
   16721  1.1  christos 
   16722  1.4  christos $as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h
   16723  1.1  christos 
   16724  1.1  christos   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
   16725  1.1  christos 
   16726  1.1  christos   cvs_client_objects="$cvs_client_objects gssapi-client.o"
   16727  1.1  christos 
   16728  1.1  christos   # locate any other headers
   16729  1.4  christos       for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
   16730  1.4  christos do :
   16731  1.4  christos   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16732  1.4  christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16733  1.4  christos eval as_val=\$$as_ac_Header
   16734  1.4  christos    if test "x$as_val" = x""yes; then :
   16735  1.1  christos   cat >>confdefs.h <<_ACEOF
   16736  1.3  christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16737  1.1  christos _ACEOF
   16738  1.1  christos 
   16739  1.1  christos fi
   16740  1.1  christos 
   16741  1.1  christos done
   16742  1.1  christos 
   16743  1.1  christos   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
   16744  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
   16745  1.3  christos $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
   16746  1.4  christos if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then :
   16747  1.3  christos   $as_echo_n "(cached) " >&6
   16748  1.1  christos else
   16749  1.1  christos 
   16750  1.1  christos     acx_gssapi_cv_gss_c_nt_hostbased_service=no
   16751  1.1  christos     if test "$ac_cv_header_gssapi_h" = "yes"; then
   16752  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16753  1.1  christos /* end confdefs.h.  */
   16754  1.1  christos #include <gssapi.h>
   16755  1.1  christos 
   16756  1.1  christos _ACEOF
   16757  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16758  1.4  christos   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
   16759  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
   16760  1.1  christos else
   16761  1.1  christos 
   16762  1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16763  1.1  christos /* end confdefs.h.  */
   16764  1.1  christos #include <gssapi.h>
   16765  1.1  christos 
   16766  1.1  christos _ACEOF
   16767  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16768  1.4  christos   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then :
   16769  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
   16770  1.1  christos fi
   16771  1.1  christos rm -f conftest*
   16772  1.1  christos 
   16773  1.1  christos 
   16774  1.1  christos fi
   16775  1.1  christos rm -f conftest*
   16776  1.1  christos 
   16777  1.1  christos     fi
   16778  1.1  christos     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
   16779  1.1  christos        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
   16780  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16781  1.1  christos /* end confdefs.h.  */
   16782  1.1  christos #include <gssapi/gssapi.h>
   16783  1.1  christos 
   16784  1.1  christos _ACEOF
   16785  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16786  1.4  christos   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
   16787  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
   16788  1.1  christos else
   16789  1.1  christos 
   16790  1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16791  1.1  christos /* end confdefs.h.  */
   16792  1.1  christos #include <gssapi/gssapi.h>
   16793  1.1  christos 
   16794  1.1  christos _ACEOF
   16795  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16796  1.4  christos   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then :
   16797  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
   16798  1.1  christos fi
   16799  1.1  christos rm -f conftest*
   16800  1.1  christos 
   16801  1.1  christos 
   16802  1.1  christos fi
   16803  1.1  christos rm -f conftest*
   16804  1.1  christos 
   16805  1.1  christos     else :; fi
   16806  1.1  christos     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
   16807  1.1  christos        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
   16808  1.4  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16809  1.1  christos /* end confdefs.h.  */
   16810  1.1  christos #include <gssapi/gssapi_generic.h>
   16811  1.1  christos 
   16812  1.1  christos _ACEOF
   16813  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16814  1.4  christos   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
   16815  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
   16816  1.1  christos else
   16817  1.1  christos 
   16818  1.4  christos 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16819  1.1  christos /* end confdefs.h.  */
   16820  1.1  christos #include <gssapi/gssapi_generic.h>
   16821  1.1  christos 
   16822  1.1  christos _ACEOF
   16823  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16824  1.4  christos   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then :
   16825  1.1  christos   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
   16826  1.1  christos fi
   16827  1.1  christos rm -f conftest*
   16828  1.1  christos 
   16829  1.1  christos 
   16830  1.1  christos fi
   16831  1.1  christos rm -f conftest*
   16832  1.1  christos 
   16833  1.1  christos     else :; fi
   16834  1.1  christos 
   16835  1.1  christos fi
   16836  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
   16837  1.3  christos $as_echo "$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6; }
   16838  1.1  christos   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
   16839  1.1  christos      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
   16840  1.1  christos     # don't define for yes since that means it already means something and
   16841  1.1  christos     # don't define for no since we'd rather the compiler catch the error
   16842  1.1  christos     # It's debatable whether we'd prefer that the compiler catch the error
   16843  1.1  christos     #  - it seems our estranged developer is more likely to be familiar with
   16844  1.1  christos     #	 the intricacies of the compiler than with those of autoconf, but by
   16845  1.1  christos     #	 the same token, maybe we'd rather alert them to the fact that most
   16846  1.1  christos     #	 of the support they need to fix the problem is installed if they can
   16847  1.1  christos     #	 simply locate the appropriate symbol.
   16848  1.1  christos 
   16849  1.1  christos cat >>confdefs.h <<_ACEOF
   16850  1.1  christos #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
   16851  1.1  christos _ACEOF
   16852  1.1  christos 
   16853  1.1  christos   else :; fi
   16854  1.1  christos 
   16855  1.1  christos   # Expect the libs to be installed parallel to the headers
   16856  1.1  christos   #
   16857  1.1  christos   # We could try once with and once without, but I'm not sure it's worth the
   16858  1.1  christos   # trouble.
   16859  1.1  christos   if test x$acx_gssapi_cv_gssapi != xyes; then
   16860  1.1  christos     if test -z "$LIBS"; then
   16861  1.1  christos       LIBS="-L$acx_gssapi_cv_gssapi/lib"
   16862  1.1  christos     else
   16863  1.1  christos       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
   16864  1.1  christos     fi
   16865  1.1  christos   else :; fi
   16866  1.1  christos 
   16867  1.1  christos       #
   16868  1.1  christos   # Some of the order below is particular due to library dependencies
   16869  1.1  christos   #
   16870  1.1  christos 
   16871  1.1  christos   #
   16872  1.1  christos   # des			Heimdal K 0.3d, but Heimdal seems to be set up such
   16873  1.1  christos   #			that it could have been installed from elsewhere.
   16874  1.1  christos   #
   16875  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing des_set_odd_parity" >&5
   16876  1.3  christos $as_echo_n "checking for library containing des_set_odd_parity... " >&6; }
   16877  1.4  christos if test "${ac_cv_search_des_set_odd_parity+set}" = set; then :
   16878  1.3  christos   $as_echo_n "(cached) " >&6
   16879  1.1  christos else
   16880  1.1  christos   ac_func_search_save_LIBS=$LIBS
   16881  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16882  1.1  christos /* end confdefs.h.  */
   16883  1.1  christos 
   16884  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16885  1.3  christos    Use char because int might match the return type of a GCC
   16886  1.3  christos    builtin and then its argument prototype would still apply.  */
   16887  1.1  christos #ifdef __cplusplus
   16888  1.1  christos extern "C"
   16889  1.1  christos #endif
   16890  1.1  christos char des_set_odd_parity ();
   16891  1.1  christos int
   16892  1.1  christos main ()
   16893  1.1  christos {
   16894  1.3  christos return des_set_odd_parity ();
   16895  1.1  christos   ;
   16896  1.1  christos   return 0;
   16897  1.1  christos }
   16898  1.1  christos _ACEOF
   16899  1.3  christos for ac_lib in '' des; do
   16900  1.3  christos   if test -z "$ac_lib"; then
   16901  1.3  christos     ac_res="none required"
   16902  1.3  christos   else
   16903  1.3  christos     ac_res=-l$ac_lib
   16904  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16905  1.3  christos   fi
   16906  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   16907  1.3  christos   ac_cv_search_des_set_odd_parity=$ac_res
   16908  1.1  christos fi
   16909  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16910  1.4  christos     conftest$ac_exeext
   16911  1.4  christos   if test "${ac_cv_search_des_set_odd_parity+set}" = set; then :
   16912  1.3  christos   break
   16913  1.3  christos fi
   16914  1.3  christos done
   16915  1.4  christos if test "${ac_cv_search_des_set_odd_parity+set}" = set; then :
   16916  1.4  christos 
   16917  1.1  christos else
   16918  1.3  christos   ac_cv_search_des_set_odd_parity=no
   16919  1.1  christos fi
   16920  1.3  christos rm conftest.$ac_ext
   16921  1.1  christos LIBS=$ac_func_search_save_LIBS
   16922  1.1  christos fi
   16923  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_des_set_odd_parity" >&5
   16924  1.3  christos $as_echo "$ac_cv_search_des_set_odd_parity" >&6; }
   16925  1.3  christos ac_res=$ac_cv_search_des_set_odd_parity
   16926  1.4  christos if test "$ac_res" != no; then :
   16927  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16928  1.1  christos 
   16929  1.1  christos fi
   16930  1.1  christos 
   16931  1.1  christos 
   16932  1.1  christos   #
   16933  1.1  christos   # com_err		Heimdal K 0.3d
   16934  1.1  christos   #
   16935  1.1  christos   # com_err		MIT K5 v1.2.2-beta1
   16936  1.1  christos   #
   16937  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
   16938  1.3  christos $as_echo_n "checking for library containing com_err... " >&6; }
   16939  1.4  christos if test "${ac_cv_search_com_err+set}" = set; then :
   16940  1.3  christos   $as_echo_n "(cached) " >&6
   16941  1.1  christos else
   16942  1.1  christos   ac_func_search_save_LIBS=$LIBS
   16943  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16944  1.1  christos /* end confdefs.h.  */
   16945  1.1  christos 
   16946  1.3  christos /* Override any GCC internal prototype to avoid an error.
   16947  1.3  christos    Use char because int might match the return type of a GCC
   16948  1.3  christos    builtin and then its argument prototype would still apply.  */
   16949  1.1  christos #ifdef __cplusplus
   16950  1.1  christos extern "C"
   16951  1.1  christos #endif
   16952  1.1  christos char com_err ();
   16953  1.1  christos int
   16954  1.1  christos main ()
   16955  1.1  christos {
   16956  1.3  christos return com_err ();
   16957  1.1  christos   ;
   16958  1.1  christos   return 0;
   16959  1.1  christos }
   16960  1.1  christos _ACEOF
   16961  1.3  christos for ac_lib in '' com_err; do
   16962  1.3  christos   if test -z "$ac_lib"; then
   16963  1.3  christos     ac_res="none required"
   16964  1.3  christos   else
   16965  1.3  christos     ac_res=-l$ac_lib
   16966  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16967  1.3  christos   fi
   16968  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   16969  1.3  christos   ac_cv_search_com_err=$ac_res
   16970  1.1  christos fi
   16971  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   16972  1.4  christos     conftest$ac_exeext
   16973  1.4  christos   if test "${ac_cv_search_com_err+set}" = set; then :
   16974  1.3  christos   break
   16975  1.3  christos fi
   16976  1.3  christos done
   16977  1.4  christos if test "${ac_cv_search_com_err+set}" = set; then :
   16978  1.4  christos 
   16979  1.1  christos else
   16980  1.3  christos   ac_cv_search_com_err=no
   16981  1.1  christos fi
   16982  1.3  christos rm conftest.$ac_ext
   16983  1.1  christos LIBS=$ac_func_search_save_LIBS
   16984  1.1  christos fi
   16985  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
   16986  1.3  christos $as_echo "$ac_cv_search_com_err" >&6; }
   16987  1.3  christos ac_res=$ac_cv_search_com_err
   16988  1.4  christos if test "$ac_res" != no; then :
   16989  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16990  1.1  christos 
   16991  1.1  christos fi
   16992  1.1  christos 
   16993  1.1  christos 
   16994  1.1  christos   #
   16995  1.1  christos   # asn1		Heimdal K 0.3d		-lcom_err
   16996  1.1  christos   #
   16997  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initialize_asn1_error_table_r" >&5
   16998  1.3  christos $as_echo_n "checking for library containing initialize_asn1_error_table_r... " >&6; }
   16999  1.4  christos if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then :
   17000  1.3  christos   $as_echo_n "(cached) " >&6
   17001  1.1  christos else
   17002  1.1  christos   ac_func_search_save_LIBS=$LIBS
   17003  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17004  1.1  christos /* end confdefs.h.  */
   17005  1.1  christos 
   17006  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17007  1.3  christos    Use char because int might match the return type of a GCC
   17008  1.1  christos    builtin and then its argument prototype would still apply.  */
   17009  1.1  christos #ifdef __cplusplus
   17010  1.1  christos extern "C"
   17011  1.1  christos #endif
   17012  1.1  christos char initialize_asn1_error_table_r ();
   17013  1.1  christos int
   17014  1.1  christos main ()
   17015  1.1  christos {
   17016  1.3  christos return initialize_asn1_error_table_r ();
   17017  1.1  christos   ;
   17018  1.1  christos   return 0;
   17019  1.1  christos }
   17020  1.1  christos _ACEOF
   17021  1.3  christos for ac_lib in '' asn1; do
   17022  1.3  christos   if test -z "$ac_lib"; then
   17023  1.3  christos     ac_res="none required"
   17024  1.3  christos   else
   17025  1.3  christos     ac_res=-l$ac_lib
   17026  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17027  1.3  christos   fi
   17028  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17029  1.3  christos   ac_cv_search_initialize_asn1_error_table_r=$ac_res
   17030  1.1  christos fi
   17031  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17032  1.4  christos     conftest$ac_exeext
   17033  1.4  christos   if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then :
   17034  1.3  christos   break
   17035  1.1  christos fi
   17036  1.3  christos done
   17037  1.4  christos if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then :
   17038  1.4  christos 
   17039  1.3  christos else
   17040  1.3  christos   ac_cv_search_initialize_asn1_error_table_r=no
   17041  1.1  christos fi
   17042  1.3  christos rm conftest.$ac_ext
   17043  1.1  christos LIBS=$ac_func_search_save_LIBS
   17044  1.1  christos fi
   17045  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
   17046  1.3  christos $as_echo "$ac_cv_search_initialize_asn1_error_table_r" >&6; }
   17047  1.3  christos ac_res=$ac_cv_search_initialize_asn1_error_table_r
   17048  1.4  christos if test "$ac_res" != no; then :
   17049  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17050  1.1  christos 
   17051  1.1  christos fi
   17052  1.1  christos 
   17053  1.1  christos 
   17054  1.1  christos   #
   17055  1.3  christos   # resolv		required, but not installed by Heimdal K 0.3d
   17056  1.3  christos   #
   17057  1.3  christos   # resolv		MIT K5 1.2.2-beta1
   17058  1.3  christos   # 			Linux 2.2.17
   17059  1.1  christos   #
   17060  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
   17061  1.3  christos $as_echo_n "checking for library containing __dn_expand... " >&6; }
   17062  1.4  christos if test "${ac_cv_search___dn_expand+set}" = set; then :
   17063  1.3  christos   $as_echo_n "(cached) " >&6
   17064  1.1  christos else
   17065  1.1  christos   ac_func_search_save_LIBS=$LIBS
   17066  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17067  1.1  christos /* end confdefs.h.  */
   17068  1.1  christos 
   17069  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17070  1.3  christos    Use char because int might match the return type of a GCC
   17071  1.3  christos    builtin and then its argument prototype would still apply.  */
   17072  1.1  christos #ifdef __cplusplus
   17073  1.1  christos extern "C"
   17074  1.1  christos #endif
   17075  1.3  christos char __dn_expand ();
   17076  1.1  christos int
   17077  1.1  christos main ()
   17078  1.1  christos {
   17079  1.3  christos return __dn_expand ();
   17080  1.1  christos   ;
   17081  1.1  christos   return 0;
   17082  1.1  christos }
   17083  1.1  christos _ACEOF
   17084  1.3  christos for ac_lib in '' resolv; do
   17085  1.3  christos   if test -z "$ac_lib"; then
   17086  1.3  christos     ac_res="none required"
   17087  1.3  christos   else
   17088  1.3  christos     ac_res=-l$ac_lib
   17089  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17090  1.3  christos   fi
   17091  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17092  1.3  christos   ac_cv_search___dn_expand=$ac_res
   17093  1.3  christos fi
   17094  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17095  1.4  christos     conftest$ac_exeext
   17096  1.4  christos   if test "${ac_cv_search___dn_expand+set}" = set; then :
   17097  1.3  christos   break
   17098  1.3  christos fi
   17099  1.3  christos done
   17100  1.4  christos if test "${ac_cv_search___dn_expand+set}" = set; then :
   17101  1.4  christos 
   17102  1.3  christos else
   17103  1.3  christos   ac_cv_search___dn_expand=no
   17104  1.3  christos fi
   17105  1.3  christos rm conftest.$ac_ext
   17106  1.3  christos LIBS=$ac_func_search_save_LIBS
   17107  1.3  christos fi
   17108  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
   17109  1.3  christos $as_echo "$ac_cv_search___dn_expand" >&6; }
   17110  1.3  christos ac_res=$ac_cv_search___dn_expand
   17111  1.4  christos if test "$ac_res" != no; then :
   17112  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17113  1.3  christos 
   17114  1.1  christos fi
   17115  1.3  christos 
   17116  1.3  christos 
   17117  1.3  christos   #
   17118  1.3  christos   # crypto             Need by gssapi under FreeBSD 5.4
   17119  1.3  christos   #
   17120  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RC4" >&5
   17121  1.3  christos $as_echo_n "checking for library containing RC4... " >&6; }
   17122  1.4  christos if test "${ac_cv_search_RC4+set}" = set; then :
   17123  1.3  christos   $as_echo_n "(cached) " >&6
   17124  1.3  christos else
   17125  1.3  christos   ac_func_search_save_LIBS=$LIBS
   17126  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17127  1.1  christos /* end confdefs.h.  */
   17128  1.1  christos 
   17129  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17130  1.3  christos    Use char because int might match the return type of a GCC
   17131  1.3  christos    builtin and then its argument prototype would still apply.  */
   17132  1.1  christos #ifdef __cplusplus
   17133  1.1  christos extern "C"
   17134  1.1  christos #endif
   17135  1.3  christos char RC4 ();
   17136  1.1  christos int
   17137  1.1  christos main ()
   17138  1.1  christos {
   17139  1.3  christos return RC4 ();
   17140  1.1  christos   ;
   17141  1.1  christos   return 0;
   17142  1.1  christos }
   17143  1.1  christos _ACEOF
   17144  1.3  christos for ac_lib in '' crypto; do
   17145  1.3  christos   if test -z "$ac_lib"; then
   17146  1.3  christos     ac_res="none required"
   17147  1.3  christos   else
   17148  1.3  christos     ac_res=-l$ac_lib
   17149  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17150  1.3  christos   fi
   17151  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17152  1.3  christos   ac_cv_search_RC4=$ac_res
   17153  1.1  christos fi
   17154  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17155  1.4  christos     conftest$ac_exeext
   17156  1.4  christos   if test "${ac_cv_search_RC4+set}" = set; then :
   17157  1.3  christos   break
   17158  1.3  christos fi
   17159  1.3  christos done
   17160  1.4  christos if test "${ac_cv_search_RC4+set}" = set; then :
   17161  1.4  christos 
   17162  1.3  christos else
   17163  1.3  christos   ac_cv_search_RC4=no
   17164  1.1  christos fi
   17165  1.3  christos rm conftest.$ac_ext
   17166  1.1  christos LIBS=$ac_func_search_save_LIBS
   17167  1.1  christos fi
   17168  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RC4" >&5
   17169  1.3  christos $as_echo "$ac_cv_search_RC4" >&6; }
   17170  1.3  christos ac_res=$ac_cv_search_RC4
   17171  1.4  christos if test "$ac_res" != no; then :
   17172  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17173  1.1  christos 
   17174  1.1  christos fi
   17175  1.1  christos 
   17176  1.1  christos 
   17177  1.1  christos   #
   17178  1.3  christos   # crypt              Needed by roken under FreeBSD 4.6.
   17179  1.1  christos   #
   17180  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
   17181  1.3  christos $as_echo_n "checking for library containing crypt... " >&6; }
   17182  1.4  christos if test "${ac_cv_search_crypt+set}" = set; then :
   17183  1.3  christos   $as_echo_n "(cached) " >&6
   17184  1.1  christos else
   17185  1.1  christos   ac_func_search_save_LIBS=$LIBS
   17186  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17187  1.1  christos /* end confdefs.h.  */
   17188  1.1  christos 
   17189  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17190  1.3  christos    Use char because int might match the return type of a GCC
   17191  1.3  christos    builtin and then its argument prototype would still apply.  */
   17192  1.1  christos #ifdef __cplusplus
   17193  1.1  christos extern "C"
   17194  1.1  christos #endif
   17195  1.3  christos char crypt ();
   17196  1.1  christos int
   17197  1.1  christos main ()
   17198  1.1  christos {
   17199  1.3  christos return crypt ();
   17200  1.1  christos   ;
   17201  1.1  christos   return 0;
   17202  1.1  christos }
   17203  1.1  christos _ACEOF
   17204  1.3  christos for ac_lib in '' crypt; do
   17205  1.3  christos   if test -z "$ac_lib"; then
   17206  1.3  christos     ac_res="none required"
   17207  1.3  christos   else
   17208  1.3  christos     ac_res=-l$ac_lib
   17209  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17210  1.3  christos   fi
   17211  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17212  1.3  christos   ac_cv_search_crypt=$ac_res
   17213  1.3  christos fi
   17214  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17215  1.4  christos     conftest$ac_exeext
   17216  1.4  christos   if test "${ac_cv_search_crypt+set}" = set; then :
   17217  1.3  christos   break
   17218  1.3  christos fi
   17219  1.3  christos done
   17220  1.4  christos if test "${ac_cv_search_crypt+set}" = set; then :
   17221  1.4  christos 
   17222  1.3  christos else
   17223  1.3  christos   ac_cv_search_crypt=no
   17224  1.3  christos fi
   17225  1.3  christos rm conftest.$ac_ext
   17226  1.3  christos LIBS=$ac_func_search_save_LIBS
   17227  1.3  christos fi
   17228  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
   17229  1.3  christos $as_echo "$ac_cv_search_crypt" >&6; }
   17230  1.3  christos ac_res=$ac_cv_search_crypt
   17231  1.4  christos if test "$ac_res" != no; then :
   17232  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17233  1.3  christos 
   17234  1.1  christos fi
   17235  1.3  christos 
   17236  1.3  christos 
   17237  1.3  christos   #
   17238  1.3  christos   # roken		Heimdal K 0.3d		-lresolv
   17239  1.3  christos   # roken               FreeBSD 4.6             -lcrypt
   17240  1.3  christos   #
   17241  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_gethostbyaddr" >&5
   17242  1.3  christos $as_echo_n "checking for library containing roken_gethostbyaddr... " >&6; }
   17243  1.4  christos if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then :
   17244  1.3  christos   $as_echo_n "(cached) " >&6
   17245  1.3  christos else
   17246  1.3  christos   ac_func_search_save_LIBS=$LIBS
   17247  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17248  1.1  christos /* end confdefs.h.  */
   17249  1.1  christos 
   17250  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17251  1.3  christos    Use char because int might match the return type of a GCC
   17252  1.3  christos    builtin and then its argument prototype would still apply.  */
   17253  1.1  christos #ifdef __cplusplus
   17254  1.1  christos extern "C"
   17255  1.1  christos #endif
   17256  1.1  christos char roken_gethostbyaddr ();
   17257  1.1  christos int
   17258  1.1  christos main ()
   17259  1.1  christos {
   17260  1.3  christos return roken_gethostbyaddr ();
   17261  1.1  christos   ;
   17262  1.1  christos   return 0;
   17263  1.1  christos }
   17264  1.1  christos _ACEOF
   17265  1.3  christos for ac_lib in '' roken; do
   17266  1.3  christos   if test -z "$ac_lib"; then
   17267  1.3  christos     ac_res="none required"
   17268  1.3  christos   else
   17269  1.3  christos     ac_res=-l$ac_lib
   17270  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17271  1.3  christos   fi
   17272  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17273  1.3  christos   ac_cv_search_roken_gethostbyaddr=$ac_res
   17274  1.3  christos fi
   17275  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17276  1.4  christos     conftest$ac_exeext
   17277  1.4  christos   if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then :
   17278  1.3  christos   break
   17279  1.1  christos fi
   17280  1.3  christos done
   17281  1.4  christos if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then :
   17282  1.4  christos 
   17283  1.3  christos else
   17284  1.3  christos   ac_cv_search_roken_gethostbyaddr=no
   17285  1.1  christos fi
   17286  1.3  christos rm conftest.$ac_ext
   17287  1.1  christos LIBS=$ac_func_search_save_LIBS
   17288  1.1  christos fi
   17289  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_gethostbyaddr" >&5
   17290  1.3  christos $as_echo "$ac_cv_search_roken_gethostbyaddr" >&6; }
   17291  1.3  christos ac_res=$ac_cv_search_roken_gethostbyaddr
   17292  1.4  christos if test "$ac_res" != no; then :
   17293  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17294  1.1  christos 
   17295  1.1  christos fi
   17296  1.1  christos 
   17297  1.1  christos 
   17298  1.1  christos   #
   17299  1.4  christos   # k5crypto		MIT K5 v1.2.2-beta1
   17300  1.1  christos   #
   17301  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing valid_enctype" >&5
   17302  1.4  christos $as_echo_n "checking for library containing valid_enctype... " >&6; }
   17303  1.4  christos if test "${ac_cv_search_valid_enctype+set}" = set; then :
   17304  1.3  christos   $as_echo_n "(cached) " >&6
   17305  1.1  christos else
   17306  1.1  christos   ac_func_search_save_LIBS=$LIBS
   17307  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17308  1.1  christos /* end confdefs.h.  */
   17309  1.1  christos 
   17310  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17311  1.3  christos    Use char because int might match the return type of a GCC
   17312  1.3  christos    builtin and then its argument prototype would still apply.  */
   17313  1.1  christos #ifdef __cplusplus
   17314  1.1  christos extern "C"
   17315  1.1  christos #endif
   17316  1.4  christos char valid_enctype ();
   17317  1.1  christos int
   17318  1.1  christos main ()
   17319  1.1  christos {
   17320  1.4  christos return valid_enctype ();
   17321  1.1  christos   ;
   17322  1.1  christos   return 0;
   17323  1.1  christos }
   17324  1.1  christos _ACEOF
   17325  1.4  christos for ac_lib in '' k5crypto; do
   17326  1.3  christos   if test -z "$ac_lib"; then
   17327  1.3  christos     ac_res="none required"
   17328  1.3  christos   else
   17329  1.3  christos     ac_res=-l$ac_lib
   17330  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17331  1.3  christos   fi
   17332  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17333  1.4  christos   ac_cv_search_valid_enctype=$ac_res
   17334  1.1  christos fi
   17335  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17336  1.4  christos     conftest$ac_exeext
   17337  1.4  christos   if test "${ac_cv_search_valid_enctype+set}" = set; then :
   17338  1.3  christos   break
   17339  1.3  christos fi
   17340  1.3  christos done
   17341  1.4  christos if test "${ac_cv_search_valid_enctype+set}" = set; then :
   17342  1.4  christos 
   17343  1.1  christos else
   17344  1.4  christos   ac_cv_search_valid_enctype=no
   17345  1.1  christos fi
   17346  1.3  christos rm conftest.$ac_ext
   17347  1.1  christos LIBS=$ac_func_search_save_LIBS
   17348  1.1  christos fi
   17349  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_valid_enctype" >&5
   17350  1.4  christos $as_echo "$ac_cv_search_valid_enctype" >&6; }
   17351  1.4  christos ac_res=$ac_cv_search_valid_enctype
   17352  1.4  christos if test "$ac_res" != no; then :
   17353  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17354  1.1  christos 
   17355  1.1  christos fi
   17356  1.1  christos 
   17357  1.1  christos 
   17358  1.1  christos   #
   17359  1.4  christos   # gen			? ? ?			Needed on Irix 5.3 with some
   17360  1.4  christos   #			Irix 5.3		version of Kerberos.  I'm not
   17361  1.4  christos   #						sure which since Irix didn't
   17362  1.4  christos   #						get any testing this time
   17363  1.4  christos   #						around.  Original comment:
   17364  1.1  christos   #
   17365  1.4  christos   # This is necessary on Irix 5.3, in order to link against libkrb5 --
   17366  1.4  christos   # there, an_to_ln.o refers to things defined only in -lgen.
   17367  1.1  christos   #
   17368  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compile" >&5
   17369  1.4  christos $as_echo_n "checking for library containing compile... " >&6; }
   17370  1.4  christos if test "${ac_cv_search_compile+set}" = set; then :
   17371  1.3  christos   $as_echo_n "(cached) " >&6
   17372  1.1  christos else
   17373  1.1  christos   ac_func_search_save_LIBS=$LIBS
   17374  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17375  1.1  christos /* end confdefs.h.  */
   17376  1.1  christos 
   17377  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17378  1.3  christos    Use char because int might match the return type of a GCC
   17379  1.3  christos    builtin and then its argument prototype would still apply.  */
   17380  1.1  christos #ifdef __cplusplus
   17381  1.1  christos extern "C"
   17382  1.1  christos #endif
   17383  1.4  christos char compile ();
   17384  1.1  christos int
   17385  1.1  christos main ()
   17386  1.1  christos {
   17387  1.4  christos return compile ();
   17388  1.1  christos   ;
   17389  1.1  christos   return 0;
   17390  1.1  christos }
   17391  1.1  christos _ACEOF
   17392  1.4  christos for ac_lib in '' gen; do
   17393  1.3  christos   if test -z "$ac_lib"; then
   17394  1.3  christos     ac_res="none required"
   17395  1.3  christos   else
   17396  1.3  christos     ac_res=-l$ac_lib
   17397  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17398  1.3  christos   fi
   17399  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17400  1.4  christos   ac_cv_search_compile=$ac_res
   17401  1.1  christos fi
   17402  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17403  1.4  christos     conftest$ac_exeext
   17404  1.4  christos   if test "${ac_cv_search_compile+set}" = set; then :
   17405  1.3  christos   break
   17406  1.3  christos fi
   17407  1.3  christos done
   17408  1.4  christos if test "${ac_cv_search_compile+set}" = set; then :
   17409  1.4  christos 
   17410  1.1  christos else
   17411  1.4  christos   ac_cv_search_compile=no
   17412  1.1  christos fi
   17413  1.3  christos rm conftest.$ac_ext
   17414  1.1  christos LIBS=$ac_func_search_save_LIBS
   17415  1.1  christos fi
   17416  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compile" >&5
   17417  1.4  christos $as_echo "$ac_cv_search_compile" >&6; }
   17418  1.4  christos ac_res=$ac_cv_search_compile
   17419  1.4  christos if test "$ac_res" != no; then :
   17420  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17421  1.1  christos 
   17422  1.1  christos fi
   17423  1.1  christos 
   17424  1.1  christos 
   17425  1.1  christos   #
   17426  1.4  christos   # krb5		? ? ?			-lgen -l???
   17427  1.4  christos   #			Irix 5.3
   17428  1.4  christos   #
   17429  1.4  christos   # krb5		MIT K5 v1.1.1
   17430  1.4  christos   #
   17431  1.4  christos   # krb5		MIT K5 v1.2.2-beta1	-lcrypto -lcom_err
   17432  1.4  christos   # 			Linux 2.2.17
   17433  1.4  christos   #
   17434  1.4  christos   # krb5		MIT K5 v1.2.2-beta1	-lcrypto -lcom_err -lresolv
   17435  1.4  christos   #
   17436  1.4  christos   # krb5		Heimdal K 0.3d		-lasn1 -lroken -ldes
   17437  1.1  christos   #
   17438  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_free_context" >&5
   17439  1.4  christos $as_echo_n "checking for library containing krb5_free_context... " >&6; }
   17440  1.4  christos if test "${ac_cv_search_krb5_free_context+set}" = set; then :
   17441  1.3  christos   $as_echo_n "(cached) " >&6
   17442  1.1  christos else
   17443  1.4  christos   ac_func_search_save_LIBS=$LIBS
   17444  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17445  1.1  christos /* end confdefs.h.  */
   17446  1.1  christos 
   17447  1.4  christos /* Override any GCC internal prototype to avoid an error.
   17448  1.4  christos    Use char because int might match the return type of a GCC
   17449  1.4  christos    builtin and then its argument prototype would still apply.  */
   17450  1.4  christos #ifdef __cplusplus
   17451  1.4  christos extern "C"
   17452  1.4  christos #endif
   17453  1.4  christos char krb5_free_context ();
   17454  1.4  christos int
   17455  1.4  christos main ()
   17456  1.4  christos {
   17457  1.4  christos return krb5_free_context ();
   17458  1.4  christos   ;
   17459  1.4  christos   return 0;
   17460  1.4  christos }
   17461  1.1  christos _ACEOF
   17462  1.4  christos for ac_lib in '' krb5; do
   17463  1.4  christos   if test -z "$ac_lib"; then
   17464  1.4  christos     ac_res="none required"
   17465  1.4  christos   else
   17466  1.4  christos     ac_res=-l$ac_lib
   17467  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17468  1.4  christos   fi
   17469  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17470  1.4  christos   ac_cv_search_krb5_free_context=$ac_res
   17471  1.1  christos fi
   17472  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17473  1.4  christos     conftest$ac_exeext
   17474  1.4  christos   if test "${ac_cv_search_krb5_free_context+set}" = set; then :
   17475  1.4  christos   break
   17476  1.1  christos fi
   17477  1.4  christos done
   17478  1.4  christos if test "${ac_cv_search_krb5_free_context+set}" = set; then :
   17479  1.1  christos 
   17480  1.4  christos else
   17481  1.4  christos   ac_cv_search_krb5_free_context=no
   17482  1.1  christos fi
   17483  1.4  christos rm conftest.$ac_ext
   17484  1.4  christos LIBS=$ac_func_search_save_LIBS
   17485  1.1  christos fi
   17486  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_free_context" >&5
   17487  1.4  christos $as_echo "$ac_cv_search_krb5_free_context" >&6; }
   17488  1.4  christos ac_res=$ac_cv_search_krb5_free_context
   17489  1.4  christos if test "$ac_res" != no; then :
   17490  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17491  1.1  christos 
   17492  1.1  christos fi
   17493  1.1  christos 
   17494  1.1  christos 
   17495  1.1  christos   #
   17496  1.4  christos   # gssapi_krb5		Only lib needed with MIT K5 v1.2.1, so find it first in
   17497  1.4  christos   #			order to prefer MIT Kerberos.  If both MIT & Heimdal
   17498  1.4  christos   #			Kerberos are installed and in the path, this will leave
   17499  1.4  christos   #			some of the libraries above in LIBS unnecessarily, but
   17500  1.4  christos   #			noone would ever do that, right?
   17501  1.4  christos   #
   17502  1.4  christos   # gssapi_krb5		MIT K5 v1.2.2-beta1	-lkrb5
   17503  1.1  christos   #
   17504  1.4  christos   # gssapi		Heimdal K 0.3d		-lkrb5
   17505  1.1  christos   #
   17506  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_import_name" >&5
   17507  1.4  christos $as_echo_n "checking for library containing gss_import_name... " >&6; }
   17508  1.4  christos if test "${ac_cv_search_gss_import_name+set}" = set; then :
   17509  1.4  christos   $as_echo_n "(cached) " >&6
   17510  1.4  christos else
   17511  1.4  christos   ac_func_search_save_LIBS=$LIBS
   17512  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17513  1.1  christos /* end confdefs.h.  */
   17514  1.4  christos 
   17515  1.4  christos /* Override any GCC internal prototype to avoid an error.
   17516  1.4  christos    Use char because int might match the return type of a GCC
   17517  1.4  christos    builtin and then its argument prototype would still apply.  */
   17518  1.4  christos #ifdef __cplusplus
   17519  1.4  christos extern "C"
   17520  1.4  christos #endif
   17521  1.4  christos char gss_import_name ();
   17522  1.1  christos int
   17523  1.1  christos main ()
   17524  1.1  christos {
   17525  1.4  christos return gss_import_name ();
   17526  1.1  christos   ;
   17527  1.1  christos   return 0;
   17528  1.1  christos }
   17529  1.1  christos _ACEOF
   17530  1.4  christos for ac_lib in '' gssapi_krb5 gssapi; do
   17531  1.4  christos   if test -z "$ac_lib"; then
   17532  1.4  christos     ac_res="none required"
   17533  1.4  christos   else
   17534  1.4  christos     ac_res=-l$ac_lib
   17535  1.4  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17536  1.4  christos   fi
   17537  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17538  1.4  christos   ac_cv_search_gss_import_name=$ac_res
   17539  1.4  christos fi
   17540  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17541  1.4  christos     conftest$ac_exeext
   17542  1.4  christos   if test "${ac_cv_search_gss_import_name+set}" = set; then :
   17543  1.4  christos   break
   17544  1.4  christos fi
   17545  1.4  christos done
   17546  1.4  christos if test "${ac_cv_search_gss_import_name+set}" = set; then :
   17547  1.4  christos 
   17548  1.1  christos else
   17549  1.4  christos   ac_cv_search_gss_import_name=no
   17550  1.4  christos fi
   17551  1.4  christos rm conftest.$ac_ext
   17552  1.4  christos LIBS=$ac_func_search_save_LIBS
   17553  1.4  christos fi
   17554  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_import_name" >&5
   17555  1.4  christos $as_echo "$ac_cv_search_gss_import_name" >&6; }
   17556  1.4  christos ac_res=$ac_cv_search_gss_import_name
   17557  1.4  christos if test "$ac_res" != no; then :
   17558  1.4  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17559  1.1  christos 
   17560  1.1  christos fi
   17561  1.3  christos 
   17562  1.1  christos fi
   17563  1.1  christos 
   17564  1.1  christos 
   17565  1.1  christos 
   17566  1.1  christos 
   17567  1.1  christos # What remote shell transport should our client cvs default to using?
   17568  1.1  christos 
   17569  1.3  christos # Check whether --with-rsh was given.
   17570  1.4  christos if test "${with_rsh+set}" = set; then :
   17571  1.3  christos   withval=$with_rsh;
   17572  1.1  christos else
   17573  1.1  christos   with_rsh="ssh rsh"
   17574  1.3  christos fi
   17575  1.3  christos 
   17576  1.1  christos 
   17577  1.1  christos if test no = "$with_rsh"; then
   17578  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
   17579  1.3  christos $as_echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
   17580  1.1  christos   with_rsh=rsh
   17581  1.1  christos elif test yes = "$with_rsh"; then
   17582  1.1  christos   # Make --with-rsh mean the same thing as --with-rsh=rsh
   17583  1.1  christos   with_rsh=rsh
   17584  1.1  christos fi
   17585  1.1  christos 
   17586  1.1  christos if echo $with_rsh |grep ^/ >/dev/null; then
   17587  1.1  christos   # If $with_rsh is an absolute path, issue a warning if the executable
   17588  1.1  christos   # doesn't exist or isn't usable, but then trust the user and use it
   17589  1.1  christos   # regardless
   17590  1.1  christos   with_default_rsh=$with_rsh
   17591  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a remote shell" >&5
   17592  1.3  christos $as_echo_n "checking for a remote shell... " >&6; }
   17593  1.1  christos   if ! test -f $with_rsh \
   17594  1.1  christos       || ! test -x $with_rsh; then
   17595  1.1  christos     # warn the user that they may encounter problems
   17596  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_rsh is not a path to an executable file" >&5
   17597  1.3  christos $as_echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
   17598  1.1  christos   fi
   17599  1.1  christos else
   17600  1.1  christos   # Search for a remote shell
   17601  1.1  christos   for ac_prog in $with_rsh
   17602  1.1  christos do
   17603  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   17604  1.1  christos set dummy $ac_prog; ac_word=$2
   17605  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17606  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   17607  1.4  christos if test "${ac_cv_prog_with_default_rsh+set}" = set; then :
   17608  1.3  christos   $as_echo_n "(cached) " >&6
   17609  1.1  christos else
   17610  1.1  christos   if test -n "$with_default_rsh"; then
   17611  1.1  christos   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
   17612  1.1  christos else
   17613  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17614  1.1  christos for as_dir in $PATH
   17615  1.1  christos do
   17616  1.1  christos   IFS=$as_save_IFS
   17617  1.1  christos   test -z "$as_dir" && as_dir=.
   17618  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   17619  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   17620  1.1  christos     ac_cv_prog_with_default_rsh="$ac_prog"
   17621  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17622  1.1  christos     break 2
   17623  1.1  christos   fi
   17624  1.1  christos done
   17625  1.4  christos   done
   17626  1.3  christos IFS=$as_save_IFS
   17627  1.1  christos 
   17628  1.1  christos fi
   17629  1.1  christos fi
   17630  1.1  christos with_default_rsh=$ac_cv_prog_with_default_rsh
   17631  1.1  christos if test -n "$with_default_rsh"; then
   17632  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_default_rsh" >&5
   17633  1.3  christos $as_echo "$with_default_rsh" >&6; }
   17634  1.1  christos else
   17635  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17636  1.3  christos $as_echo "no" >&6; }
   17637  1.1  christos fi
   17638  1.1  christos 
   17639  1.3  christos 
   17640  1.1  christos   test -n "$with_default_rsh" && break
   17641  1.1  christos done
   17642  1.1  christos test -n "$with_default_rsh" || with_default_rsh=""rsh""
   17643  1.1  christos 
   17644  1.1  christos fi
   17645  1.1  christos 
   17646  1.1  christos 
   17647  1.1  christos cat >>confdefs.h <<_ACEOF
   17648  1.1  christos #define RSH_DFLT "$with_default_rsh"
   17649  1.1  christos _ACEOF
   17650  1.1  christos 
   17651  1.1  christos RSH_DFLT=$with_default_rsh
   17652  1.1  christos 
   17653  1.1  christos 
   17654  1.1  christos 
   17655  1.1  christos 
   17656  1.1  christos 
   17657  1.1  christos # Let the confiscator request a specific editor
   17658  1.1  christos 
   17659  1.3  christos # Check whether --with-editor was given.
   17660  1.4  christos if test "${with_editor+set}" = set; then :
   17661  1.3  christos   withval=$with_editor;
   17662  1.1  christos else
   17663  1.1  christos   with_editor=yes
   17664  1.3  christos fi
   17665  1.3  christos 
   17666  1.1  christos 
   17667  1.1  christos # If --with-editor was supplied with an argument, let it override $EDITOR from
   17668  1.1  christos # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
   17669  1.1  christos # will let the value of EDITOR ride when it is set rather than searching.  We
   17670  1.1  christos # ignore the --without-editor case since it will be caught below.
   17671  1.1  christos if test -n "$EDITOR" && test yes != $with_editor; then
   17672  1.4  christos   { EDITOR=; unset EDITOR;}
   17673  1.1  christos fi
   17674  1.1  christos 
   17675  1.1  christos # Set the default when --with-editor wasn't supplied or when it was supplied
   17676  1.1  christos # without an argument.
   17677  1.1  christos if test yes = $with_editor; then
   17678  1.1  christos   with_editor="vim vi emacs nano pico edit"
   17679  1.1  christos fi
   17680  1.1  christos 
   17681  1.1  christos if echo $with_editor |grep ^/ >/dev/null; then
   17682  1.1  christos   # If $with_editor is an absolute path, issue a warning if the executable
   17683  1.1  christos   # doesn't exist or isn't usable, but then trust the user and use it
   17684  1.1  christos   # regardless
   17685  1.1  christos   EDITOR=$with_editor
   17686  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an editor" >&5
   17687  1.3  christos $as_echo_n "checking for an editor... " >&6; }
   17688  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EDITOR" >&5
   17689  1.3  christos $as_echo "$EDITOR" >&6; }
   17690  1.1  christos   if ! test -f $with_editor \
   17691  1.1  christos       || ! test -x $with_editor; then
   17692  1.1  christos     # warn the user that they may encounter problems
   17693  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$with_editor' is not a path to an executable file" >&5
   17694  1.3  christos $as_echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
   17695  1.1  christos   fi
   17696  1.1  christos elif test no != "${with_editor}"; then
   17697  1.1  christos   # Search for an editor
   17698  1.1  christos   for ac_prog in $with_editor
   17699  1.1  christos do
   17700  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   17701  1.1  christos set dummy $ac_prog; ac_word=$2
   17702  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17703  1.3  christos $as_echo_n "checking for $ac_word... " >&6; }
   17704  1.4  christos if test "${ac_cv_prog_EDITOR+set}" = set; then :
   17705  1.3  christos   $as_echo_n "(cached) " >&6
   17706  1.1  christos else
   17707  1.1  christos   if test -n "$EDITOR"; then
   17708  1.1  christos   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
   17709  1.1  christos else
   17710  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17711  1.1  christos for as_dir in $PATH
   17712  1.1  christos do
   17713  1.1  christos   IFS=$as_save_IFS
   17714  1.1  christos   test -z "$as_dir" && as_dir=.
   17715  1.4  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   17716  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   17717  1.1  christos     ac_cv_prog_EDITOR="$ac_prog"
   17718  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17719  1.1  christos     break 2
   17720  1.1  christos   fi
   17721  1.1  christos done
   17722  1.4  christos   done
   17723  1.3  christos IFS=$as_save_IFS
   17724  1.1  christos 
   17725  1.1  christos fi
   17726  1.1  christos fi
   17727  1.1  christos EDITOR=$ac_cv_prog_EDITOR
   17728  1.1  christos if test -n "$EDITOR"; then
   17729  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EDITOR" >&5
   17730  1.3  christos $as_echo "$EDITOR" >&6; }
   17731  1.1  christos else
   17732  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17733  1.3  christos $as_echo "no" >&6; }
   17734  1.1  christos fi
   17735  1.1  christos 
   17736  1.3  christos 
   17737  1.1  christos   test -n "$EDITOR" && break
   17738  1.1  christos done
   17739  1.1  christos test -n "$EDITOR" || EDITOR="no"
   17740  1.1  christos 
   17741  1.1  christos     if test no = "${EDITOR}"; then
   17742  1.4  christos       as_fn_error "
   17743  1.1  christos     Failed to find a text file editor.  CVS cannot be compiled
   17744  1.1  christos     without a default log message editor.  Searched for
   17745  1.4  christos     \`$with_editor'.  Try \`configure --with-editor'." "$LINENO" 5
   17746  1.1  christos     fi
   17747  1.1  christos else
   17748  1.4  christos   as_fn_error "
   17749  1.1  christos     CVS cannot be compiled without a default log message editor.
   17750  1.4  christos     Try \`configure --with-editor'." "$LINENO" 5
   17751  1.1  christos fi
   17752  1.1  christos 
   17753  1.1  christos 
   17754  1.1  christos cat >>confdefs.h <<_ACEOF
   17755  1.1  christos #define EDITOR_DFLT "$EDITOR"
   17756  1.1  christos _ACEOF
   17757  1.1  christos 
   17758  1.1  christos 
   17759  1.1  christos 
   17760  1.1  christos 
   17761  1.1  christos 
   17762  1.1  christos 
   17763  1.3  christos # Check whether --with-hardcoded-pam-service-name was given.
   17764  1.4  christos if test "${with_hardcoded_pam_service_name+set}" = set; then :
   17765  1.3  christos   withval=$with_hardcoded_pam_service_name;
   17766  1.1  christos else
   17767  1.1  christos   with_hardcoded_pam_service_name=cvs
   17768  1.3  christos fi
   17769  1.3  christos 
   17770  1.1  christos 
   17771  1.1  christos if test "x$with_hardcoded_pam_service_name" = xno ||
   17772  1.1  christos    test "x$with_hardcoded_pam_service_name" = xprogram_name; then
   17773  1.1  christos 
   17774  1.4  christos $as_echo "#define PAM_SERVICE_NAME program_name" >>confdefs.h
   17775  1.1  christos 
   17776  1.1  christos else
   17777  1.1  christos   if test x"$with_hardcoded_pam_service_name" = xyes; then
   17778  1.1  christos     with_hardcoded_pam_service_name=cvs
   17779  1.1  christos   fi
   17780  1.1  christos   cat >>confdefs.h <<_ACEOF
   17781  1.1  christos #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
   17782  1.1  christos _ACEOF
   17783  1.1  christos 
   17784  1.1  christos fi
   17785  1.1  christos 
   17786  1.1  christos 
   17787  1.1  christos 
   17788  1.1  christos 
   17789  1.3  christos # Check whether --with-tmpdir was given.
   17790  1.4  christos if test "${with_tmpdir+set}" = set; then :
   17791  1.3  christos   withval=$with_tmpdir;
   17792  1.3  christos fi
   17793  1.1  christos 
   17794  1.1  christos 
   17795  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for temporary directory" >&5
   17796  1.3  christos $as_echo_n "checking for temporary directory... " >&6; }
   17797  1.1  christos if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
   17798  1.1  christos   for with_tmpdir in /tmp /var/tmp no; do
   17799  1.1  christos     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
   17800  1.1  christos         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
   17801  1.1  christos       break
   17802  1.1  christos     fi
   17803  1.1  christos   done
   17804  1.1  christos   if test no = "$with_tmpdir"; then
   17805  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
   17806  1.3  christos $as_echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
   17807  1.1  christos     with_tmpdir=/tmp
   17808  1.1  christos   fi
   17809  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5
   17810  1.3  christos $as_echo "$with_tmpdir" >&6; }
   17811  1.1  christos elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
   17812  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5
   17813  1.3  christos $as_echo "$with_tmpdir" >&6; }
   17814  1.4  christos   as_fn_error "--with-tmpdir requires an absolute path." "$LINENO" 5
   17815  1.1  christos elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
   17816  1.1  christos         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
   17817  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5
   17818  1.3  christos $as_echo "$with_tmpdir" >&6; }
   17819  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: User supplied temporary directory ('$with_tmpdir') does not
   17820  1.1  christos      exist or lacks sufficient permissions for read/write." >&5
   17821  1.3  christos $as_echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
   17822  1.1  christos      exist or lacks sufficient permissions for read/write." >&2;}
   17823  1.1  christos fi
   17824  1.1  christos 
   17825  1.1  christos 
   17826  1.1  christos cat >>confdefs.h <<_ACEOF
   17827  1.1  christos #define TMPDIR_DFLT "$with_tmpdir"
   17828  1.1  christos _ACEOF
   17829  1.1  christos 
   17830  1.1  christos 
   17831  1.1  christos 
   17832  1.1  christos 
   17833  1.1  christos 
   17834  1.1  christos 
   17835  1.3  christos # Check whether --with-umask was given.
   17836  1.4  christos if test "${with_umask+set}" = set; then :
   17837  1.3  christos   withval=$with_umask;
   17838  1.3  christos fi
   17839  1.1  christos 
   17840  1.1  christos 
   17841  1.1  christos if test -z "$with_umask" || test yes = "$with_umask"; then
   17842  1.1  christos   with_umask=002
   17843  1.1  christos elif test no = "$with_umask"; then
   17844  1.1  christos   with_umask=000
   17845  1.1  christos fi
   17846  1.1  christos 
   17847  1.1  christos 
   17848  1.1  christos cat >>confdefs.h <<_ACEOF
   17849  1.1  christos #define UMASK_DFLT $with_umask
   17850  1.1  christos _ACEOF
   17851  1.1  christos 
   17852  1.1  christos 
   17853  1.1  christos 
   17854  1.1  christos 
   17855  1.3  christos # Check whether --with-cvs-admin-group was given.
   17856  1.4  christos if test "${with_cvs_admin_group+set}" = set; then :
   17857  1.3  christos   withval=$with_cvs_admin_group;
   17858  1.1  christos else
   17859  1.1  christos   with_cvs_admin_group=cvsadmin
   17860  1.3  christos fi
   17861  1.3  christos 
   17862  1.1  christos 
   17863  1.1  christos if test yes = "$with_cvs_admin_group"; then
   17864  1.1  christos   with_cvs_admin_group=cvsadmin
   17865  1.1  christos fi
   17866  1.1  christos if test no != "$with_cvs_admin_group"; then
   17867  1.1  christos 
   17868  1.1  christos cat >>confdefs.h <<_ACEOF
   17869  1.1  christos #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
   17870  1.1  christos _ACEOF
   17871  1.1  christos 
   17872  1.1  christos fi
   17873  1.1  christos 
   17874  1.1  christos 
   17875  1.3  christos # Check whether --enable-cvs-ndbm was given.
   17876  1.4  christos if test "${enable_cvs_ndbm+set}" = set; then :
   17877  1.3  christos   enableval=$enable_cvs_ndbm;
   17878  1.1  christos else
   17879  1.1  christos   enable_cvs_ndbm=yes
   17880  1.3  christos fi
   17881  1.3  christos 
   17882  1.1  christos if test no != "$enable_cvs_ndbm"; then
   17883  1.1  christos 
   17884  1.4  christos $as_echo "#define MY_NDBM 1" >>confdefs.h
   17885  1.1  christos 
   17886  1.1  christos fi
   17887  1.1  christos 
   17888  1.1  christos 
   17889  1.1  christos 
   17890  1.1  christos 
   17891  1.1  christos 
   17892  1.1  christos 
   17893  1.1  christos 
   17894  1.1  christos 
   17895  1.1  christos 
   17896  1.1  christos # Check for options requesting client and server feature. If none are
   17897  1.1  christos # given and we have connect(), we want the full client & server arrangement.
   17898  1.3  christos # Check whether --enable-client was given.
   17899  1.4  christos if test "${enable_client+set}" = set; then :
   17900  1.3  christos   enableval=$enable_client;
   17901  1.1  christos else
   17902  1.1  christos   enable_client=$ac_cv_search_connect
   17903  1.3  christos fi
   17904  1.3  christos 
   17905  1.1  christos if test no != "$enable_client"; then
   17906  1.1  christos 
   17907  1.4  christos $as_echo "#define CLIENT_SUPPORT 1" >>confdefs.h
   17908  1.1  christos 
   17909  1.1  christos fi
   17910  1.1  christos 
   17911  1.1  christos 
   17912  1.1  christos 
   17913  1.3  christos # Check whether --enable-password-authenticated-client was given.
   17914  1.4  christos if test "${enable_password_authenticated_client+set}" = set; then :
   17915  1.3  christos   enableval=$enable_password_authenticated_client;
   17916  1.1  christos else
   17917  1.1  christos   enable_password_authenticated_client=$enable_client
   17918  1.3  christos fi
   17919  1.3  christos 
   17920  1.1  christos 
   17921  1.1  christos if test xno != "x$enable_password_authenticated_client"; then
   17922  1.1  christos   if test xno != "x$enable_client"; then
   17923  1.1  christos 
   17924  1.4  christos $as_echo "#define AUTH_CLIENT_SUPPORT 1" >>confdefs.h
   17925  1.1  christos 
   17926  1.1  christos   else
   17927  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-password-authenticated-client is meaningless with
   17928  1.1  christos        the CVS client disabled (--disable-client)" >&5
   17929  1.3  christos $as_echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
   17930  1.1  christos        the CVS client disabled (--disable-client)" >&2;}
   17931  1.1  christos   fi
   17932  1.1  christos fi
   17933  1.1  christos 
   17934  1.1  christos 
   17935  1.1  christos 
   17936  1.1  christos 
   17937  1.3  christos # Check whether --enable-server was given.
   17938  1.4  christos if test "${enable_server+set}" = set; then :
   17939  1.3  christos   enableval=$enable_server;
   17940  1.1  christos else
   17941  1.3  christos   enable_server=$ac_cv_search_connect
   17942  1.3  christos fi
   17943  1.3  christos 
   17944  1.3  christos 
   17945  1.3  christos if test no != "$enable_server"; then
   17946  1.3  christos 
   17947  1.4  christos $as_echo "#define SERVER_SUPPORT 1" >>confdefs.h
   17948  1.3  christos 
   17949  1.1  christos 
   17950  1.4  christos             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
   17951  1.3  christos $as_echo_n "checking for library containing crypt... " >&6; }
   17952  1.4  christos if test "${ac_cv_search_crypt+set}" = set; then :
   17953  1.3  christos   $as_echo_n "(cached) " >&6
   17954  1.3  christos else
   17955  1.3  christos   ac_func_search_save_LIBS=$LIBS
   17956  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17957  1.1  christos /* end confdefs.h.  */
   17958  1.1  christos 
   17959  1.3  christos /* Override any GCC internal prototype to avoid an error.
   17960  1.3  christos    Use char because int might match the return type of a GCC
   17961  1.3  christos    builtin and then its argument prototype would still apply.  */
   17962  1.1  christos #ifdef __cplusplus
   17963  1.1  christos extern "C"
   17964  1.1  christos #endif
   17965  1.1  christos char crypt ();
   17966  1.1  christos int
   17967  1.1  christos main ()
   17968  1.1  christos {
   17969  1.3  christos return crypt ();
   17970  1.1  christos   ;
   17971  1.1  christos   return 0;
   17972  1.1  christos }
   17973  1.1  christos _ACEOF
   17974  1.3  christos for ac_lib in '' crypt; do
   17975  1.3  christos   if test -z "$ac_lib"; then
   17976  1.3  christos     ac_res="none required"
   17977  1.3  christos   else
   17978  1.3  christos     ac_res=-l$ac_lib
   17979  1.3  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17980  1.3  christos   fi
   17981  1.4  christos   if ac_fn_c_try_link "$LINENO"; then :
   17982  1.3  christos   ac_cv_search_crypt=$ac_res
   17983  1.3  christos fi
   17984  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   17985  1.4  christos     conftest$ac_exeext
   17986  1.4  christos   if test "${ac_cv_search_crypt+set}" = set; then :
   17987  1.3  christos   break
   17988  1.1  christos fi
   17989  1.3  christos done
   17990  1.4  christos if test "${ac_cv_search_crypt+set}" = set; then :
   17991  1.4  christos 
   17992  1.3  christos else
   17993  1.3  christos   ac_cv_search_crypt=no
   17994  1.1  christos fi
   17995  1.3  christos rm conftest.$ac_ext
   17996  1.1  christos LIBS=$ac_func_search_save_LIBS
   17997  1.1  christos fi
   17998  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
   17999  1.3  christos $as_echo "$ac_cv_search_crypt" >&6; }
   18000  1.3  christos ac_res=$ac_cv_search_crypt
   18001  1.4  christos if test "$ac_res" != no; then :
   18002  1.3  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18003  1.1  christos 
   18004  1.4  christos $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
   18005  1.1  christos 
   18006  1.1  christos 
   18007  1.4  christos $as_echo "#define AUTH_SERVER_SUPPORT 1" >>confdefs.h
   18008  1.1  christos 
   18009  1.1  christos fi
   18010  1.1  christos 
   18011  1.3  christos           # Check whether --enable-server-flow-control was given.
   18012  1.4  christos if test "${enable_server_flow_control+set}" = set; then :
   18013  1.3  christos   enableval=$enable_server_flow_control; if test yes = $enable_server_flow_control; then
   18014  1.1  christos        enable_server_flow_control=1M,2M
   18015  1.1  christos      fi
   18016  1.1  christos else
   18017  1.1  christos   enable_server_flow_control=1M,2M
   18018  1.3  christos fi
   18019  1.3  christos 
   18020  1.1  christos   if test no != $enable_server_flow_control; then
   18021  1.1  christos     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
   18022  1.1  christos     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
   18023  1.1  christos     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
   18024  1.1  christos     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
   18025  1.1  christos     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
   18026  1.1  christos     case $ccvs_lwm_E in
   18027  1.1  christos         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
   18028  1.1  christos         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
   18029  1.1  christos         k) ccvs_lwm="$ccvs_lwm * 1024";;
   18030  1.1  christos         b | '') ;;
   18031  1.4  christos         *) as_fn_error "Can't parse argument to --enable-server-flow-control
   18032  1.4  christos                         ('$enable_server_flow_control') as <lwm>,<hwm>" "$LINENO" 5
   18033  1.1  christos       esac
   18034  1.1  christos     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
   18035  1.1  christos     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
   18036  1.1  christos     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
   18037  1.1  christos     case $ccvs_hwm_E in
   18038  1.1  christos         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
   18039  1.1  christos         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
   18040  1.1  christos         k) ccvs_hwm="$ccvs_hwm * 1024";;
   18041  1.1  christos         b | '') ccvs_hwm="$ccvs_hwm";;
   18042  1.4  christos         *) as_fn_error "Can't parse argument to --enable-server-flow-control
   18043  1.4  christos                         ('$enable_server_flow_control') as <lwm>,<hwm>" "$LINENO" 5
   18044  1.1  christos       esac
   18045  1.1  christos 
   18046  1.1  christos 
   18047  1.4  christos $as_echo "#define SERVER_FLOWCONTROL 1" >>confdefs.h
   18048  1.1  christos 
   18049  1.1  christos 
   18050  1.1  christos cat >>confdefs.h <<_ACEOF
   18051  1.1  christos #define SERVER_LO_WATER ($ccvs_lwm)
   18052  1.1  christos _ACEOF
   18053  1.1  christos 
   18054  1.1  christos 
   18055  1.1  christos cat >>confdefs.h <<_ACEOF
   18056  1.1  christos #define SERVER_HI_WATER ($ccvs_hwm)
   18057  1.1  christos _ACEOF
   18058  1.1  christos 
   18059  1.1  christos   fi # enable_server_flow_control
   18060  1.1  christos fi # enable_server
   18061  1.1  christos 
   18062  1.1  christos 
   18063  1.1  christos 
   18064  1.1  christos 
   18065  1.3  christos # Check whether --enable-proxy was given.
   18066  1.4  christos if test "${enable_proxy+set}" = set; then :
   18067  1.3  christos   enableval=$enable_proxy;
   18068  1.1  christos else
   18069  1.1  christos   if test xno != "x$enable_client" && test xno != "x$enable_server"; then
   18070  1.1  christos      enable_proxy=yes
   18071  1.1  christos    else
   18072  1.1  christos      enable_proxy=no
   18073  1.1  christos    fi
   18074  1.3  christos fi
   18075  1.3  christos 
   18076  1.1  christos 
   18077  1.1  christos if test no != "$enable_proxy"; then
   18078  1.1  christos   if test xno = "x$enable_client" || test xno = "x$enable_server"; then
   18079  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-proxy is meaningless when either the CVS client or the
   18080  1.1  christos        CVS server is disabled (--disable-client and --disable-server)." >&5
   18081  1.3  christos $as_echo "$as_me: WARNING: --enable-proxy is meaningless when either the CVS client or the
   18082  1.1  christos        CVS server is disabled (--disable-client and --disable-server)." >&2;}
   18083  1.1  christos   else
   18084  1.1  christos 
   18085  1.4  christos $as_echo "#define PROXY_SUPPORT 1" >>confdefs.h
   18086  1.1  christos 
   18087  1.1  christos   fi
   18088  1.1  christos fi
   18089  1.1  christos 
   18090  1.1  christos 
   18091  1.1  christos 
   18092  1.3  christos # Check whether --enable-pam was given.
   18093  1.4  christos if test "${enable_pam+set}" = set; then :
   18094  1.3  christos   enableval=$enable_pam;
   18095  1.1  christos else
   18096  1.1  christos   enable_pam=no
   18097  1.1  christos 
   18098  1.3  christos fi
   18099  1.3  christos 
   18100  1.1  christos 
   18101  1.1  christos if test yes = $enable_pam; then
   18102  1.1  christos   ac_pam_header_available=
   18103  1.1  christos 
   18104  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
   18105  1.4  christos if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
   18106  1.1  christos 
   18107  1.1  christos 
   18108  1.4  christos $as_echo "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
   18109  1.1  christos 
   18110  1.1  christos     ac_pam_header_available=1
   18111  1.1  christos fi
   18112  1.1  christos 
   18113  1.1  christos 
   18114  1.1  christos 
   18115  1.1  christos   if test -z "$ac_pam_header_available"; then
   18116  1.4  christos   ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
   18117  1.4  christos if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
   18118  1.1  christos 
   18119  1.1  christos 
   18120  1.4  christos $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
   18121  1.1  christos 
   18122  1.1  christos     ac_pam_header_available=1
   18123  1.1  christos fi
   18124  1.1  christos 
   18125  1.1  christos 
   18126  1.1  christos   fi
   18127  1.1  christos 
   18128  1.1  christos   if test -z "$ac_pam_header_available"; then
   18129  1.4  christos     as_fn_error "Could not find PAM headers" "$LINENO" 5
   18130  1.1  christos   else
   18131  1.1  christos 
   18132  1.4  christos $as_echo "#define HAVE_PAM 1" >>confdefs.h
   18133  1.1  christos 
   18134  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
   18135  1.3  christos $as_echo_n "checking for pam_start in -lpam... " >&6; }
   18136  1.4  christos if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
   18137  1.3  christos   $as_echo_n "(cached) " >&6
   18138  1.1  christos else
   18139  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   18140  1.1  christos LIBS="-lpam  $LIBS"
   18141  1.4  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18142  1.1  christos /* end confdefs.h.  */
   18143  1.1  christos 
   18144  1.3  christos /* Override any GCC internal prototype to avoid an error.
   18145  1.3  christos    Use char because int might match the return type of a GCC
   18146  1.3  christos    builtin and then its argument prototype would still apply.  */
   18147  1.1  christos #ifdef __cplusplus
   18148  1.1  christos extern "C"
   18149  1.1  christos #endif
   18150  1.1  christos char pam_start ();
   18151  1.1  christos int
   18152  1.1  christos main ()
   18153  1.1  christos {
   18154  1.3  christos return pam_start ();
   18155  1.1  christos   ;
   18156  1.1  christos   return 0;
   18157  1.1  christos }
   18158  1.1  christos _ACEOF
   18159  1.4  christos if ac_fn_c_try_link "$LINENO"; then :
   18160  1.1  christos   ac_cv_lib_pam_pam_start=yes
   18161  1.1  christos else
   18162  1.4  christos   ac_cv_lib_pam_pam_start=no
   18163  1.1  christos fi
   18164  1.4  christos rm -f core conftest.err conftest.$ac_objext \
   18165  1.4  christos     conftest$ac_exeext conftest.$ac_ext
   18166  1.1  christos LIBS=$ac_check_lib_save_LIBS
   18167  1.1  christos fi
   18168  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
   18169  1.3  christos $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
   18170  1.4  christos if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
   18171  1.1  christos   LIBS="${LIBS} -lpam"
   18172  1.1  christos else
   18173  1.4  christos   as_fn_error "Could not find PAM libraries but the headers exist.
   18174  1.1  christos       Give the --disable-pam option to compile without PAM support (or fix
   18175  1.4  christos       your broken configuration)" "$LINENO" 5
   18176  1.1  christos 
   18177  1.1  christos fi
   18178  1.1  christos 
   18179  1.1  christos   fi
   18180  1.1  christos fi
   18181  1.1  christos 
   18182  1.1  christos 
   18183  1.1  christos 
   18184  1.1  christos 
   18185  1.3  christos # Check whether --enable-case-sensitivity was given.
   18186  1.4  christos if test "${enable_case_sensitivity+set}" = set; then :
   18187  1.3  christos   enableval=$enable_case_sensitivity; case "$enable_case_sensitivity" in
   18188  1.1  christos        yes | no | auto) ;;
   18189  1.1  christos        *)
   18190  1.4  christos           as_fn_error "Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." "$LINENO" 5
   18191  1.1  christos           ;;
   18192  1.1  christos      esac
   18193  1.1  christos else
   18194  1.1  christos   enable_case_sensitivity=auto
   18195  1.3  christos fi
   18196  1.3  christos 
   18197  1.1  christos 
   18198  1.1  christos acx_forced=' (forced)'
   18199  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a case sensitive file system" >&5
   18200  1.3  christos $as_echo_n "checking for a case sensitive file system... " >&6; }
   18201  1.1  christos if test $enable_case_sensitivity = auto; then
   18202  1.4  christos         if test "${acx_cv_case_sensitive+set}" = set; then :
   18203  1.3  christos   $as_echo_n "(cached) " >&6
   18204  1.1  christos else
   18205  1.1  christos    rm -f ac_TEST_filenames_CASE_sensitive
   18206  1.1  christos     echo foo >ac_test_filenames_case_sensitive
   18207  1.1  christos     if test -f ac_TEST_filenames_CASE_sensitive; then
   18208  1.1  christos       acx_cv_case_sensitive=no
   18209  1.1  christos     else
   18210  1.1  christos       acx_cv_case_sensitive=yes
   18211  1.1  christos     fi
   18212  1.1  christos     rm ac_test_filenames_case_sensitive
   18213  1.1  christos 
   18214  1.1  christos fi
   18215  1.1  christos 
   18216  1.1  christos   enable_case_sensitivity=$acx_cv_case_sensitive
   18217  1.1  christos   acx_forced=
   18218  1.1  christos fi
   18219  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_sensitivity$acx_forced" >&5
   18220  1.3  christos $as_echo "$enable_case_sensitivity$acx_forced" >&6; }
   18221  1.1  christos if test $enable_case_sensitivity = no; then
   18222  1.1  christos 
   18223  1.4  christos $as_echo "#define FILENAMES_CASE_INSENSITIVE 1" >>confdefs.h
   18224  1.1  christos 
   18225  1.3  christos       case " $LIBOBJS " in
   18226  1.1  christos   *" fncase.$ac_objext "* ) ;;
   18227  1.3  christos   *) LIBOBJS="$LIBOBJS fncase.$ac_objext"
   18228  1.3  christos  ;;
   18229  1.1  christos esac
   18230  1.1  christos 
   18231  1.1  christos fi
   18232  1.1  christos 
   18233  1.1  christos 
   18234  1.1  christos 
   18235  1.1  christos 
   18236  1.3  christos # Check whether --enable-encryption was given.
   18237  1.4  christos if test "${enable_encryption+set}" = set; then :
   18238  1.3  christos   enableval=$enable_encryption;
   18239  1.1  christos else
   18240  1.1  christos   enable_encryption=no
   18241  1.3  christos fi
   18242  1.3  christos 
   18243  1.1  christos if test "x$enable_encryption" = xyes; then
   18244  1.1  christos   if test xno = "x$with_client" && test xno = "x$with_server"; then
   18245  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-encryption is meaningless when neither the CVS client
   18246  1.1  christos        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
   18247  1.3  christos $as_echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
   18248  1.1  christos        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
   18249  1.1  christos   else
   18250  1.1  christos 
   18251  1.4  christos $as_echo "#define ENCRYPTION 1" >>confdefs.h
   18252  1.1  christos 
   18253  1.1  christos   fi
   18254  1.1  christos fi
   18255  1.1  christos 
   18256  1.1  christos 
   18257  1.1  christos 
   18258  1.1  christos 
   18259  1.3  christos # Check whether --enable-force-editor was given.
   18260  1.4  christos if test "${enable_force_editor+set}" = set; then :
   18261  1.3  christos   enableval=$enable_force_editor;
   18262  1.1  christos else
   18263  1.1  christos   enable_force_editor=no
   18264  1.3  christos fi
   18265  1.3  christos 
   18266  1.1  christos 
   18267  1.1  christos if test yes = "$enable_force_editor"; then
   18268  1.1  christos 
   18269  1.4  christos $as_echo "#define FORCE_USE_EDITOR 1" >>confdefs.h
   18270  1.1  christos 
   18271  1.1  christos fi
   18272  1.1  christos 
   18273  1.1  christos 
   18274  1.1  christos 
   18275  1.1  christos 
   18276  1.1  christos # Check for options requesting client and server feature. If none are
   18277  1.1  christos # given and we have connect(), we want the full client & server arrangement.
   18278  1.3  christos # Check whether --enable-lock-compatibility was given.
   18279  1.4  christos if test "${enable_lock_compatibility+set}" = set; then :
   18280  1.3  christos   enableval=$enable_lock_compatibility;
   18281  1.1  christos else
   18282  1.1  christos   enable_lock_compatibility=yes
   18283  1.3  christos fi
   18284  1.3  christos 
   18285  1.1  christos 
   18286  1.1  christos if test x$enable_lock_compatibility = xyes; then
   18287  1.1  christos 
   18288  1.4  christos $as_echo "#define LOCK_COMPATIBILITY 1" >>confdefs.h
   18289  1.1  christos 
   18290  1.1  christos fi
   18291  1.1  christos 
   18292  1.1  christos 
   18293  1.1  christos 
   18294  1.1  christos 
   18295  1.3  christos # Check whether --enable-rootcommit was given.
   18296  1.4  christos if test "${enable_rootcommit+set}" = set; then :
   18297  1.3  christos   enableval=$enable_rootcommit;
   18298  1.1  christos else
   18299  1.1  christos   enable_rootcommit=no
   18300  1.3  christos fi
   18301  1.3  christos 
   18302  1.1  christos if test "$enable_rootcommit" = no; then
   18303  1.1  christos 
   18304  1.4  christos $as_echo "#define CVS_BADROOT 1" >>confdefs.h
   18305  1.1  christos 
   18306  1.1  christos fi
   18307  1.1  christos 
   18308  1.1  christos 
   18309  1.3  christos # Check whether --enable-old-info-support was given.
   18310  1.4  christos if test "${enable_old_info_support+set}" = set; then :
   18311  1.3  christos   enableval=$enable_old_info_support;
   18312  1.1  christos else
   18313  1.1  christos   enable_old_info_format_support=yes
   18314  1.3  christos fi
   18315  1.3  christos 
   18316  1.1  christos if test "$enable_old_info_format_support" = yes; then
   18317  1.1  christos 
   18318  1.4  christos $as_echo "#define SUPPORT_OLD_INFO_FMT_STRINGS 1" >>confdefs.h
   18319  1.1  christos 
   18320  1.1  christos fi
   18321  1.1  christos 
   18322  1.1  christos 
   18323  1.1  christos 
   18324  1.1  christos 
   18325  1.3  christos # Check whether --enable-config-override was given.
   18326  1.4  christos if test "${enable_config_override+set}" = set; then :
   18327  1.3  christos   enableval=$enable_config_override;
   18328  1.1  christos else
   18329  1.1  christos   # $sysconfdir may still contain variable references.  By default, this will
   18330  1.1  christos    # be to $prefix, and $prefix won't be set to its default value until later.
   18331  1.1  christos    # Compromise without setting $prefix for the rest of the file.
   18332  1.1  christos    cvs_save_prefix=$prefix
   18333  1.1  christos    if test "X$prefix" = XNONE; then
   18334  1.1  christos      prefix=$ac_prefix_default
   18335  1.1  christos    fi
   18336  1.1  christos    eval enable_config_override=`echo $sysconfdir/cvs.conf,$sysconfdir/cvs/`
   18337  1.1  christos    prefix=$cvs_save_prefix
   18338  1.3  christos fi
   18339  1.3  christos 
   18340  1.1  christos 
   18341  1.1  christos if test x"$enable_config_override" = xyes; then
   18342  1.1  christos   enable_config_override=/
   18343  1.1  christos fi
   18344  1.1  christos 
   18345  1.1  christos if test x"$enable_config_override" = xno; then :; else
   18346  1.1  christos   save_IFS=$IFS
   18347  1.1  christos   IFS=,
   18348  1.1  christos   arrayinit=""
   18349  1.1  christos   for path in $enable_config_override; do
   18350  1.1  christos     IFS=$save_IFS
   18351  1.1  christos     case "$path" in
   18352  1.1  christos       [\\/$]* | ?:[\\/]* )
   18353  1.1  christos 	arrayinit="$arrayinit\"$path\", "
   18354  1.1  christos 	;;
   18355  1.4  christos       *)  as_fn_error "expected comma separated list of absolute directory
   18356  1.1  christos            names for --enable-config-override, or \`no', not:
   18357  1.1  christos            \`$enable_config_override'
   18358  1.4  christos            (\`$path' invalid.)" "$LINENO" 5;;
   18359  1.1  christos     esac
   18360  1.1  christos   done
   18361  1.1  christos   arrayinit="${arrayinit}NULL"
   18362  1.1  christos 
   18363  1.1  christos 
   18364  1.1  christos cat >>confdefs.h <<_ACEOF
   18365  1.1  christos #define ALLOW_CONFIG_OVERRIDE $arrayinit
   18366  1.1  christos _ACEOF
   18367  1.1  christos 
   18368  1.1  christos fi
   18369  1.1  christos 
   18370  1.1  christos 
   18371  1.1  christos 
   18372  1.1  christos 
   18373  1.1  christos 
   18374  1.1  christos 
   18375  1.1  christos 
   18376  1.1  christos 
   18377  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin32" >&5
   18378  1.3  christos $as_echo_n "checking for cygwin32... " >&6; }
   18379  1.4  christos if test "${ccvs_cv_sys_cygwin32+set}" = set; then :
   18380  1.3  christos   $as_echo_n "(cached) " >&6
   18381  1.1  christos else
   18382  1.4  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18383  1.1  christos /* end confdefs.h.  */
   18384  1.1  christos 
   18385  1.1  christos int
   18386  1.1  christos main ()
   18387  1.1  christos {
   18388  1.1  christos return __CYGWIN32__;
   18389  1.1  christos   ;
   18390  1.1  christos   return 0;
   18391  1.1  christos }
   18392  1.1  christos _ACEOF
   18393  1.4  christos if ac_fn_c_try_compile "$LINENO"; then :
   18394  1.1  christos   ccvs_cv_sys_cygwin32=yes
   18395  1.1  christos else
   18396  1.4  christos   ccvs_cv_sys_cygwin32=no
   18397  1.1  christos fi
   18398  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18399  1.1  christos fi
   18400  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_sys_cygwin32" >&5
   18401  1.3  christos $as_echo "$ccvs_cv_sys_cygwin32" >&6; }
   18402  1.1  christos if test $ccvs_cv_sys_cygwin32 = yes; then
   18403  1.1  christos   LIBS="$LIBS -ladvapi32"
   18404  1.1  christos 
   18405  1.1  christos 
   18406  1.4  christos $as_echo "#define UTIME_EXPECTS_WRITABLE 1" >>confdefs.h
   18407  1.1  christos 
   18408  1.1  christos 
   18409  1.1  christos 
   18410  1.4  christos $as_echo "#define USE_SETMODE_STDOUT 1" >>confdefs.h
   18411  1.1  christos 
   18412  1.1  christos 
   18413  1.4  christos $as_echo "#define HAVE_SETMODE 1" >>confdefs.h
   18414  1.1  christos 
   18415  1.1  christos fi
   18416  1.1  christos 
   18417  1.3  christos ac_config_files="$ac_config_files contrib/validate_repo"
   18418  1.1  christos 
   18419  1.3  christos ac_config_files="$ac_config_files contrib/clmerge"
   18420  1.1  christos 
   18421  1.3  christos ac_config_files="$ac_config_files contrib/cln_hist"
   18422  1.1  christos 
   18423  1.3  christos ac_config_files="$ac_config_files contrib/commit_prep"
   18424  1.1  christos 
   18425  1.3  christos ac_config_files="$ac_config_files contrib/cvs_acls"
   18426  1.1  christos 
   18427  1.3  christos ac_config_files="$ac_config_files contrib/log"
   18428  1.1  christos 
   18429  1.3  christos ac_config_files="$ac_config_files contrib/log_accum"
   18430  1.1  christos 
   18431  1.3  christos ac_config_files="$ac_config_files contrib/mfpipe"
   18432  1.1  christos 
   18433  1.3  christos ac_config_files="$ac_config_files contrib/pvcs2rcs"
   18434  1.1  christos 
   18435  1.3  christos ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
   18436  1.1  christos 
   18437  1.3  christos ac_config_files="$ac_config_files contrib/rcslock"
   18438  1.1  christos 
   18439  1.3  christos ac_config_files="$ac_config_files contrib/sccs2rcs"
   18440  1.1  christos 
   18441  1.3  christos ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
   18442  1.1  christos 
   18443  1.3  christos ac_config_files="$ac_config_files src/cvsbug"
   18444  1.1  christos 
   18445  1.1  christos 
   18446  1.4  christos ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile doc/i18n/Makefile doc/i18n/pt_BR/Makefile lib/Makefile maint-aux/Makefile man/Makefile src/Makefile src/sanity.config.sh"
   18447  1.4  christos 
   18448  1.1  christos 
   18449  1.1  christos 
   18450  1.1  christos cat >confcache <<\_ACEOF
   18451  1.1  christos # This file is a shell script that caches the results of configure
   18452  1.1  christos # tests run on this system so they can be shared between configure
   18453  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   18454  1.1  christos # It is not useful on other systems.  If it contains results you don't
   18455  1.1  christos # want to keep, you may remove or edit it.
   18456  1.1  christos #
   18457  1.1  christos # config.status only pays attention to the cache file if you give it
   18458  1.1  christos # the --recheck option to rerun configure.
   18459  1.1  christos #
   18460  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   18461  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   18462  1.1  christos # following values.
   18463  1.1  christos 
   18464  1.1  christos _ACEOF
   18465  1.1  christos 
   18466  1.1  christos # The following way of writing the cache mishandles newlines in values,
   18467  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   18468  1.3  christos # So, we kill variables containing newlines.
   18469  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   18470  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   18471  1.3  christos (
   18472  1.3  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   18473  1.3  christos     eval ac_val=\$$ac_var
   18474  1.3  christos     case $ac_val in #(
   18475  1.3  christos     *${as_nl}*)
   18476  1.3  christos       case $ac_var in #(
   18477  1.4  christos       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   18478  1.3  christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   18479  1.3  christos       esac
   18480  1.3  christos       case $ac_var in #(
   18481  1.3  christos       _ | IFS | as_nl) ;; #(
   18482  1.3  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   18483  1.4  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   18484  1.3  christos       esac ;;
   18485  1.3  christos     esac
   18486  1.3  christos   done
   18487  1.3  christos 
   18488  1.1  christos   (set) 2>&1 |
   18489  1.3  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   18490  1.3  christos     *${as_nl}ac_space=\ *)
   18491  1.4  christos       # `set' does not quote correctly, so add quotes: double-quote
   18492  1.4  christos       # substitution turns \\\\ into \\, and sed turns \\ into \.
   18493  1.1  christos       sed -n \
   18494  1.1  christos 	"s/'/'\\\\''/g;
   18495  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   18496  1.3  christos       ;; #(
   18497  1.1  christos     *)
   18498  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   18499  1.3  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   18500  1.1  christos       ;;
   18501  1.3  christos     esac |
   18502  1.3  christos     sort
   18503  1.3  christos ) |
   18504  1.1  christos   sed '
   18505  1.3  christos      /^ac_cv_env_/b end
   18506  1.1  christos      t clear
   18507  1.3  christos      :clear
   18508  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   18509  1.1  christos      t end
   18510  1.3  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   18511  1.3  christos      :end' >>confcache
   18512  1.3  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   18513  1.3  christos   if test -w "$cache_file"; then
   18514  1.3  christos     test "x$cache_file" != "x/dev/null" &&
   18515  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   18516  1.3  christos $as_echo "$as_me: updating cache $cache_file" >&6;}
   18517  1.1  christos     cat confcache >$cache_file
   18518  1.1  christos   else
   18519  1.4  christos     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   18520  1.3  christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   18521  1.1  christos   fi
   18522  1.1  christos fi
   18523  1.1  christos rm -f confcache
   18524  1.1  christos 
   18525  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   18526  1.1  christos # Let make expand exec_prefix.
   18527  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   18528  1.1  christos 
   18529  1.1  christos DEFS=-DHAVE_CONFIG_H
   18530  1.1  christos 
   18531  1.1  christos ac_libobjs=
   18532  1.1  christos ac_ltlibobjs=
   18533  1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   18534  1.1  christos   # 1. Remove the extension, and $U if already installed.
   18535  1.3  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   18536  1.3  christos   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   18537  1.3  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   18538  1.3  christos   #    will be set to the directory where LIBOBJS objects are built.
   18539  1.4  christos   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   18540  1.4  christos   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   18541  1.1  christos done
   18542  1.1  christos LIBOBJS=$ac_libobjs
   18543  1.1  christos 
   18544  1.1  christos LTLIBOBJS=$ac_ltlibobjs
   18545  1.1  christos 
   18546  1.1  christos 
   18547  1.4  christos  if test -n "$EXEEXT"; then
   18548  1.4  christos   am__EXEEXT_TRUE=
   18549  1.4  christos   am__EXEEXT_FALSE='#'
   18550  1.4  christos else
   18551  1.4  christos   am__EXEEXT_TRUE='#'
   18552  1.4  christos   am__EXEEXT_FALSE=
   18553  1.4  christos fi
   18554  1.4  christos 
   18555  1.1  christos if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   18556  1.4  christos   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
   18557  1.4  christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18558  1.1  christos fi
   18559  1.1  christos if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   18560  1.4  christos   as_fn_error "conditional \"AMDEP\" was never defined.
   18561  1.4  christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18562  1.1  christos fi
   18563  1.1  christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   18564  1.4  christos   as_fn_error "conditional \"am__fastdepCC\" was never defined.
   18565  1.4  christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18566  1.1  christos fi
   18567  1.1  christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   18568  1.4  christos   as_fn_error "conditional \"am__fastdepCC\" was never defined.
   18569  1.4  christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18570  1.1  christos fi
   18571  1.1  christos if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
   18572  1.4  christos   as_fn_error "conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
   18573  1.4  christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18574  1.1  christos fi
   18575  1.1  christos 
   18576  1.3  christos 
   18577  1.1  christos : ${CONFIG_STATUS=./config.status}
   18578  1.3  christos ac_write_fail=0
   18579  1.1  christos ac_clean_files_save=$ac_clean_files
   18580  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   18581  1.4  christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   18582  1.3  christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   18583  1.4  christos as_write_fail=0
   18584  1.4  christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   18585  1.1  christos #! $SHELL
   18586  1.1  christos # Generated by $as_me.
   18587  1.1  christos # Run this file to recreate the current configuration.
   18588  1.1  christos # Compiler output produced by configure, useful for debugging
   18589  1.1  christos # configure, is in config.log if it exists.
   18590  1.1  christos 
   18591  1.1  christos debug=false
   18592  1.1  christos ac_cs_recheck=false
   18593  1.1  christos ac_cs_silent=false
   18594  1.4  christos 
   18595  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   18596  1.4  christos export SHELL
   18597  1.4  christos _ASEOF
   18598  1.4  christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   18599  1.4  christos ## -------------------- ##
   18600  1.4  christos ## M4sh Initialization. ##
   18601  1.4  christos ## -------------------- ##
   18602  1.1  christos 
   18603  1.3  christos # Be more Bourne compatible
   18604  1.3  christos DUALCASE=1; export DUALCASE # for MKS sh
   18605  1.4  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18606  1.1  christos   emulate sh
   18607  1.1  christos   NULLCMD=:
   18608  1.3  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   18609  1.1  christos   # is contrary to our usage.  Disable this feature.
   18610  1.1  christos   alias -g '${1+"$@"}'='"$@"'
   18611  1.3  christos   setopt NO_GLOB_SUBST
   18612  1.3  christos else
   18613  1.4  christos   case `(set -o) 2>/dev/null` in #(
   18614  1.4  christos   *posix*) :
   18615  1.4  christos     set -o posix ;; #(
   18616  1.4  christos   *) :
   18617  1.4  christos      ;;
   18618  1.3  christos esac
   18619  1.3  christos fi
   18620  1.3  christos 
   18621  1.3  christos 
   18622  1.3  christos as_nl='
   18623  1.3  christos '
   18624  1.3  christos export as_nl
   18625  1.3  christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
   18626  1.3  christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   18627  1.3  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   18628  1.3  christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   18629  1.4  christos # Prefer a ksh shell builtin over an external printf program on Solaris,
   18630  1.4  christos # but without wasting forks for bash or zsh.
   18631  1.4  christos if test -z "$BASH_VERSION$ZSH_VERSION" \
   18632  1.4  christos     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   18633  1.4  christos   as_echo='print -r --'
   18634  1.4  christos   as_echo_n='print -rn --'
   18635  1.4  christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   18636  1.3  christos   as_echo='printf %s\n'
   18637  1.3  christos   as_echo_n='printf %s'
   18638  1.3  christos else
   18639  1.3  christos   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   18640  1.3  christos     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   18641  1.3  christos     as_echo_n='/usr/ucb/echo -n'
   18642  1.3  christos   else
   18643  1.3  christos     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   18644  1.3  christos     as_echo_n_body='eval
   18645  1.3  christos       arg=$1;
   18646  1.4  christos       case $arg in #(
   18647  1.3  christos       *"$as_nl"*)
   18648  1.3  christos 	expr "X$arg" : "X\\(.*\\)$as_nl";
   18649  1.3  christos 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   18650  1.3  christos       esac;
   18651  1.3  christos       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   18652  1.3  christos     '
   18653  1.3  christos     export as_echo_n_body
   18654  1.3  christos     as_echo_n='sh -c $as_echo_n_body as_echo'
   18655  1.3  christos   fi
   18656  1.3  christos   export as_echo_body
   18657  1.3  christos   as_echo='sh -c $as_echo_body as_echo'
   18658  1.3  christos fi
   18659  1.3  christos 
   18660  1.3  christos # The user is always right.
   18661  1.3  christos if test "${PATH_SEPARATOR+set}" != set; then
   18662  1.3  christos   PATH_SEPARATOR=:
   18663  1.3  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   18664  1.3  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   18665  1.3  christos       PATH_SEPARATOR=';'
   18666  1.3  christos   }
   18667  1.1  christos fi
   18668  1.1  christos 
   18669  1.1  christos 
   18670  1.3  christos # IFS
   18671  1.3  christos # We need space, tab and new line, in precisely that order.  Quoting is
   18672  1.3  christos # there to prevent editors from complaining about space-tab.
   18673  1.3  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   18674  1.3  christos # splitting by setting IFS to empty value.)
   18675  1.3  christos IFS=" ""	$as_nl"
   18676  1.3  christos 
   18677  1.3  christos # Find who we are.  Look in the path if we contain no directory separator.
   18678  1.4  christos case $0 in #((
   18679  1.3  christos   *[\\/]* ) as_myself=$0 ;;
   18680  1.3  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18681  1.3  christos for as_dir in $PATH
   18682  1.3  christos do
   18683  1.3  christos   IFS=$as_save_IFS
   18684  1.3  christos   test -z "$as_dir" && as_dir=.
   18685  1.4  christos     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   18686  1.4  christos   done
   18687  1.3  christos IFS=$as_save_IFS
   18688  1.3  christos 
   18689  1.3  christos      ;;
   18690  1.3  christos esac
   18691  1.3  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   18692  1.3  christos # in which case we are not to be found in the path.
   18693  1.3  christos if test "x$as_myself" = x; then
   18694  1.3  christos   as_myself=$0
   18695  1.3  christos fi
   18696  1.3  christos if test ! -f "$as_myself"; then
   18697  1.3  christos   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   18698  1.4  christos   exit 1
   18699  1.3  christos fi
   18700  1.3  christos 
   18701  1.4  christos # Unset variables that we do not need and which cause bugs (e.g. in
   18702  1.4  christos # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   18703  1.4  christos # suppresses any "Segmentation fault" message there.  '((' could
   18704  1.4  christos # trigger a bug in pdksh 5.2.14.
   18705  1.4  christos for as_var in BASH_ENV ENV MAIL MAILPATH
   18706  1.4  christos do eval test x\${$as_var+set} = xset \
   18707  1.4  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   18708  1.3  christos done
   18709  1.1  christos PS1='$ '
   18710  1.1  christos PS2='> '
   18711  1.1  christos PS4='+ '
   18712  1.1  christos 
   18713  1.1  christos # NLS nuisances.
   18714  1.3  christos LC_ALL=C
   18715  1.3  christos export LC_ALL
   18716  1.3  christos LANGUAGE=C
   18717  1.3  christos export LANGUAGE
   18718  1.1  christos 
   18719  1.4  christos # CDPATH.
   18720  1.4  christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   18721  1.4  christos 
   18722  1.4  christos 
   18723  1.4  christos # as_fn_error ERROR [LINENO LOG_FD]
   18724  1.4  christos # ---------------------------------
   18725  1.4  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   18726  1.4  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   18727  1.4  christos # script with status $?, using 1 if that was 0.
   18728  1.4  christos as_fn_error ()
   18729  1.4  christos {
   18730  1.4  christos   as_status=$?; test $as_status -eq 0 && as_status=1
   18731  1.4  christos   if test "$3"; then
   18732  1.4  christos     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   18733  1.4  christos     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   18734  1.4  christos   fi
   18735  1.4  christos   $as_echo "$as_me: error: $1" >&2
   18736  1.4  christos   as_fn_exit $as_status
   18737  1.4  christos } # as_fn_error
   18738  1.4  christos 
   18739  1.4  christos 
   18740  1.4  christos # as_fn_set_status STATUS
   18741  1.4  christos # -----------------------
   18742  1.4  christos # Set $? to STATUS, without forking.
   18743  1.4  christos as_fn_set_status ()
   18744  1.4  christos {
   18745  1.4  christos   return $1
   18746  1.4  christos } # as_fn_set_status
   18747  1.4  christos 
   18748  1.4  christos # as_fn_exit STATUS
   18749  1.4  christos # -----------------
   18750  1.4  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   18751  1.4  christos as_fn_exit ()
   18752  1.4  christos {
   18753  1.4  christos   set +e
   18754  1.4  christos   as_fn_set_status $1
   18755  1.4  christos   exit $1
   18756  1.4  christos } # as_fn_exit
   18757  1.4  christos 
   18758  1.4  christos # as_fn_unset VAR
   18759  1.4  christos # ---------------
   18760  1.4  christos # Portably unset VAR.
   18761  1.4  christos as_fn_unset ()
   18762  1.4  christos {
   18763  1.4  christos   { eval $1=; unset $1;}
   18764  1.4  christos }
   18765  1.4  christos as_unset=as_fn_unset
   18766  1.4  christos # as_fn_append VAR VALUE
   18767  1.4  christos # ----------------------
   18768  1.4  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
   18769  1.4  christos # advantage of any shell optimizations that allow amortized linear growth over
   18770  1.4  christos # repeated appends, instead of the typical quadratic growth present in naive
   18771  1.4  christos # implementations.
   18772  1.4  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   18773  1.4  christos   eval 'as_fn_append ()
   18774  1.4  christos   {
   18775  1.4  christos     eval $1+=\$2
   18776  1.4  christos   }'
   18777  1.4  christos else
   18778  1.4  christos   as_fn_append ()
   18779  1.4  christos   {
   18780  1.4  christos     eval $1=\$$1\$2
   18781  1.4  christos   }
   18782  1.4  christos fi # as_fn_append
   18783  1.4  christos 
   18784  1.4  christos # as_fn_arith ARG...
   18785  1.4  christos # ------------------
   18786  1.4  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
   18787  1.4  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
   18788  1.4  christos # must be portable across $(()) and expr.
   18789  1.4  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   18790  1.4  christos   eval 'as_fn_arith ()
   18791  1.4  christos   {
   18792  1.4  christos     as_val=$(( $* ))
   18793  1.4  christos   }'
   18794  1.4  christos else
   18795  1.4  christos   as_fn_arith ()
   18796  1.4  christos   {
   18797  1.4  christos     as_val=`expr "$@" || test $? -eq 1`
   18798  1.4  christos   }
   18799  1.4  christos fi # as_fn_arith
   18800  1.4  christos 
   18801  1.4  christos 
   18802  1.3  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   18803  1.3  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   18804  1.1  christos   as_expr=expr
   18805  1.1  christos else
   18806  1.1  christos   as_expr=false
   18807  1.1  christos fi
   18808  1.1  christos 
   18809  1.3  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   18810  1.1  christos   as_basename=basename
   18811  1.1  christos else
   18812  1.1  christos   as_basename=false
   18813  1.1  christos fi
   18814  1.1  christos 
   18815  1.4  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   18816  1.4  christos   as_dirname=dirname
   18817  1.4  christos else
   18818  1.4  christos   as_dirname=false
   18819  1.4  christos fi
   18820  1.1  christos 
   18821  1.3  christos as_me=`$as_basename -- "$0" ||
   18822  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   18823  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   18824  1.3  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   18825  1.3  christos $as_echo X/"$0" |
   18826  1.3  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   18827  1.3  christos 	    s//\1/
   18828  1.3  christos 	    q
   18829  1.3  christos 	  }
   18830  1.3  christos 	  /^X\/\(\/\/\)$/{
   18831  1.3  christos 	    s//\1/
   18832  1.3  christos 	    q
   18833  1.3  christos 	  }
   18834  1.3  christos 	  /^X\/\(\/\).*/{
   18835  1.3  christos 	    s//\1/
   18836  1.3  christos 	    q
   18837  1.3  christos 	  }
   18838  1.3  christos 	  s/.*/./; q'`
   18839  1.1  christos 
   18840  1.4  christos # Avoid depending upon Character Ranges.
   18841  1.4  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   18842  1.4  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   18843  1.4  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   18844  1.4  christos as_cr_digits='0123456789'
   18845  1.4  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   18846  1.3  christos 
   18847  1.3  christos ECHO_C= ECHO_N= ECHO_T=
   18848  1.4  christos case `echo -n x` in #(((((
   18849  1.3  christos -n*)
   18850  1.4  christos   case `echo 'xy\c'` in
   18851  1.3  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   18852  1.4  christos   xy)  ECHO_C='\c';;
   18853  1.4  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   18854  1.4  christos        ECHO_T='	';;
   18855  1.3  christos   esac;;
   18856  1.3  christos *)
   18857  1.3  christos   ECHO_N='-n';;
   18858  1.1  christos esac
   18859  1.1  christos 
   18860  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   18861  1.3  christos if test -d conf$$.dir; then
   18862  1.3  christos   rm -f conf$$.dir/conf$$.file
   18863  1.3  christos else
   18864  1.3  christos   rm -f conf$$.dir
   18865  1.3  christos   mkdir conf$$.dir 2>/dev/null
   18866  1.3  christos fi
   18867  1.3  christos if (echo >conf$$.file) 2>/dev/null; then
   18868  1.3  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
   18869  1.3  christos     as_ln_s='ln -s'
   18870  1.3  christos     # ... but there are two gotchas:
   18871  1.3  christos     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   18872  1.3  christos     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   18873  1.3  christos     # In both cases, we have to default to `cp -p'.
   18874  1.3  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   18875  1.3  christos       as_ln_s='cp -p'
   18876  1.3  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
   18877  1.3  christos     as_ln_s=ln
   18878  1.3  christos   else
   18879  1.1  christos     as_ln_s='cp -p'
   18880  1.1  christos   fi
   18881  1.1  christos else
   18882  1.1  christos   as_ln_s='cp -p'
   18883  1.1  christos fi
   18884  1.3  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   18885  1.3  christos rmdir conf$$.dir 2>/dev/null
   18886  1.1  christos 
   18887  1.4  christos 
   18888  1.4  christos # as_fn_mkdir_p
   18889  1.4  christos # -------------
   18890  1.4  christos # Create "$as_dir" as a directory, including parents if necessary.
   18891  1.4  christos as_fn_mkdir_p ()
   18892  1.4  christos {
   18893  1.4  christos 
   18894  1.4  christos   case $as_dir in #(
   18895  1.4  christos   -*) as_dir=./$as_dir;;
   18896  1.4  christos   esac
   18897  1.4  christos   test -d "$as_dir" || eval $as_mkdir_p || {
   18898  1.4  christos     as_dirs=
   18899  1.4  christos     while :; do
   18900  1.4  christos       case $as_dir in #(
   18901  1.4  christos       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   18902  1.4  christos       *) as_qdir=$as_dir;;
   18903  1.4  christos       esac
   18904  1.4  christos       as_dirs="'$as_qdir' $as_dirs"
   18905  1.4  christos       as_dir=`$as_dirname -- "$as_dir" ||
   18906  1.4  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   18907  1.4  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   18908  1.4  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   18909  1.4  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   18910  1.4  christos $as_echo X"$as_dir" |
   18911  1.4  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   18912  1.4  christos 	    s//\1/
   18913  1.4  christos 	    q
   18914  1.4  christos 	  }
   18915  1.4  christos 	  /^X\(\/\/\)[^/].*/{
   18916  1.4  christos 	    s//\1/
   18917  1.4  christos 	    q
   18918  1.4  christos 	  }
   18919  1.4  christos 	  /^X\(\/\/\)$/{
   18920  1.4  christos 	    s//\1/
   18921  1.4  christos 	    q
   18922  1.4  christos 	  }
   18923  1.4  christos 	  /^X\(\/\).*/{
   18924  1.4  christos 	    s//\1/
   18925  1.4  christos 	    q
   18926  1.4  christos 	  }
   18927  1.4  christos 	  s/.*/./; q'`
   18928  1.4  christos       test -d "$as_dir" && break
   18929  1.4  christos     done
   18930  1.4  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   18931  1.4  christos   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   18932  1.4  christos 
   18933  1.4  christos 
   18934  1.4  christos } # as_fn_mkdir_p
   18935  1.1  christos if mkdir -p . 2>/dev/null; then
   18936  1.4  christos   as_mkdir_p='mkdir -p "$as_dir"'
   18937  1.1  christos else
   18938  1.1  christos   test -d ./-p && rmdir ./-p
   18939  1.1  christos   as_mkdir_p=false
   18940  1.1  christos fi
   18941  1.1  christos 
   18942  1.3  christos if test -x / >/dev/null 2>&1; then
   18943  1.3  christos   as_test_x='test -x'
   18944  1.3  christos else
   18945  1.3  christos   if ls -dL / >/dev/null 2>&1; then
   18946  1.3  christos     as_ls_L_option=L
   18947  1.3  christos   else
   18948  1.3  christos     as_ls_L_option=
   18949  1.3  christos   fi
   18950  1.3  christos   as_test_x='
   18951  1.3  christos     eval sh -c '\''
   18952  1.3  christos       if test -d "$1"; then
   18953  1.3  christos 	test -d "$1/.";
   18954  1.3  christos       else
   18955  1.4  christos 	case $1 in #(
   18956  1.3  christos 	-*)set "./$1";;
   18957  1.3  christos 	esac;
   18958  1.4  christos 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   18959  1.3  christos 	???[sx]*):;;*)false;;esac;fi
   18960  1.3  christos     '\'' sh
   18961  1.3  christos   '
   18962  1.3  christos fi
   18963  1.3  christos as_executable_p=$as_test_x
   18964  1.1  christos 
   18965  1.1  christos # Sed expression to map a string onto a valid CPP name.
   18966  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   18967  1.1  christos 
   18968  1.1  christos # Sed expression to map a string onto a valid variable name.
   18969  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   18970  1.1  christos 
   18971  1.1  christos 
   18972  1.1  christos exec 6>&1
   18973  1.4  christos ## ----------------------------------- ##
   18974  1.4  christos ## Main body of $CONFIG_STATUS script. ##
   18975  1.4  christos ## ----------------------------------- ##
   18976  1.4  christos _ASEOF
   18977  1.4  christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   18978  1.1  christos 
   18979  1.4  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18980  1.4  christos # Save the log message, to keep $0 and so on meaningful, and to
   18981  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   18982  1.3  christos # values after options handling.
   18983  1.3  christos ac_log="
   18984  1.1  christos This file was extended by Concurrent Versions System (CVS) $as_me 1.12.13, which was
   18985  1.4  christos generated by GNU Autoconf 2.65.  Invocation command line was
   18986  1.1  christos 
   18987  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   18988  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   18989  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   18990  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   18991  1.1  christos   $ $0 $@
   18992  1.1  christos 
   18993  1.3  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   18994  1.3  christos "
   18995  1.3  christos 
   18996  1.1  christos _ACEOF
   18997  1.1  christos 
   18998  1.3  christos case $ac_config_files in *"
   18999  1.3  christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
   19000  1.3  christos esac
   19001  1.1  christos 
   19002  1.3  christos case $ac_config_headers in *"
   19003  1.3  christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   19004  1.3  christos esac
   19005  1.1  christos 
   19006  1.1  christos 
   19007  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19008  1.3  christos # Files that config.status was made for.
   19009  1.3  christos config_files="$ac_config_files"
   19010  1.3  christos config_headers="$ac_config_headers"
   19011  1.3  christos config_commands="$ac_config_commands"
   19012  1.1  christos 
   19013  1.3  christos _ACEOF
   19014  1.1  christos 
   19015  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19016  1.1  christos ac_cs_usage="\
   19017  1.4  christos \`$as_me' instantiates files and other configuration actions
   19018  1.4  christos from templates according to the current configuration.  Unless the files
   19019  1.4  christos and actions are specified as TAGs, all are instantiated by default.
   19020  1.1  christos 
   19021  1.4  christos Usage: $0 [OPTION]... [TAG]...
   19022  1.1  christos 
   19023  1.1  christos   -h, --help       print this help, then exit
   19024  1.3  christos   -V, --version    print version number and configuration settings, then exit
   19025  1.4  christos       --config     print configuration, then exit
   19026  1.3  christos   -q, --quiet, --silent
   19027  1.3  christos                    do not print progress messages
   19028  1.1  christos   -d, --debug      don't remove temporary files
   19029  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   19030  1.3  christos       --file=FILE[:TEMPLATE]
   19031  1.3  christos                    instantiate the configuration file FILE
   19032  1.3  christos       --header=FILE[:TEMPLATE]
   19033  1.3  christos                    instantiate the configuration header FILE
   19034  1.1  christos 
   19035  1.1  christos Configuration files:
   19036  1.1  christos $config_files
   19037  1.1  christos 
   19038  1.1  christos Configuration headers:
   19039  1.1  christos $config_headers
   19040  1.1  christos 
   19041  1.1  christos Configuration commands:
   19042  1.1  christos $config_commands
   19043  1.1  christos 
   19044  1.4  christos Report bugs to <bug-cvs (at] nongnu.org>."
   19045  1.3  christos 
   19046  1.1  christos _ACEOF
   19047  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19048  1.4  christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   19049  1.1  christos ac_cs_version="\\
   19050  1.1  christos Concurrent Versions System (CVS) config.status 1.12.13
   19051  1.4  christos configured by $0, generated by GNU Autoconf 2.65,
   19052  1.4  christos   with options \\"\$ac_cs_config\\"
   19053  1.1  christos 
   19054  1.4  christos Copyright (C) 2009 Free Software Foundation, Inc.
   19055  1.1  christos This config.status script is free software; the Free Software Foundation
   19056  1.1  christos gives unlimited permission to copy, distribute and modify it."
   19057  1.3  christos 
   19058  1.3  christos ac_pwd='$ac_pwd'
   19059  1.3  christos srcdir='$srcdir'
   19060  1.3  christos INSTALL='$INSTALL'
   19061  1.3  christos MKDIR_P='$MKDIR_P'
   19062  1.3  christos AWK='$AWK'
   19063  1.3  christos test -n "\$AWK" || AWK=awk
   19064  1.1  christos _ACEOF
   19065  1.1  christos 
   19066  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19067  1.3  christos # The default lists apply if the user does not specify any file.
   19068  1.1  christos ac_need_defaults=:
   19069  1.1  christos while test $# != 0
   19070  1.1  christos do
   19071  1.1  christos   case $1 in
   19072  1.1  christos   --*=*)
   19073  1.3  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   19074  1.3  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   19075  1.1  christos     ac_shift=:
   19076  1.1  christos     ;;
   19077  1.3  christos   *)
   19078  1.1  christos     ac_option=$1
   19079  1.1  christos     ac_optarg=$2
   19080  1.1  christos     ac_shift=shift
   19081  1.1  christos     ;;
   19082  1.1  christos   esac
   19083  1.1  christos 
   19084  1.1  christos   case $ac_option in
   19085  1.1  christos   # Handling of the options.
   19086  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   19087  1.1  christos     ac_cs_recheck=: ;;
   19088  1.3  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   19089  1.3  christos     $as_echo "$ac_cs_version"; exit ;;
   19090  1.4  christos   --config | --confi | --conf | --con | --co | --c )
   19091  1.4  christos     $as_echo "$ac_cs_config"; exit ;;
   19092  1.3  christos   --debug | --debu | --deb | --de | --d | -d )
   19093  1.1  christos     debug=: ;;
   19094  1.1  christos   --file | --fil | --fi | --f )
   19095  1.1  christos     $ac_shift
   19096  1.3  christos     case $ac_optarg in
   19097  1.3  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   19098  1.3  christos     esac
   19099  1.4  christos     as_fn_append CONFIG_FILES " '$ac_optarg'"
   19100  1.1  christos     ac_need_defaults=false;;
   19101  1.1  christos   --header | --heade | --head | --hea )
   19102  1.1  christos     $ac_shift
   19103  1.3  christos     case $ac_optarg in
   19104  1.3  christos     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   19105  1.3  christos     esac
   19106  1.4  christos     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   19107  1.1  christos     ac_need_defaults=false;;
   19108  1.3  christos   --he | --h)
   19109  1.3  christos     # Conflict between --help and --header
   19110  1.4  christos     as_fn_error "ambiguous option: \`$1'
   19111  1.4  christos Try \`$0 --help' for more information.";;
   19112  1.3  christos   --help | --hel | -h )
   19113  1.3  christos     $as_echo "$ac_cs_usage"; exit ;;
   19114  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   19115  1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   19116  1.1  christos     ac_cs_silent=: ;;
   19117  1.1  christos 
   19118  1.1  christos   # This is an error.
   19119  1.4  christos   -*) as_fn_error "unrecognized option: \`$1'
   19120  1.4  christos Try \`$0 --help' for more information." ;;
   19121  1.1  christos 
   19122  1.4  christos   *) as_fn_append ac_config_targets " $1"
   19123  1.3  christos      ac_need_defaults=false ;;
   19124  1.1  christos 
   19125  1.1  christos   esac
   19126  1.1  christos   shift
   19127  1.1  christos done
   19128  1.1  christos 
   19129  1.1  christos ac_configure_extra_args=
   19130  1.1  christos 
   19131  1.1  christos if $ac_cs_silent; then
   19132  1.1  christos   exec 6>/dev/null
   19133  1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   19134  1.1  christos fi
   19135  1.1  christos 
   19136  1.1  christos _ACEOF
   19137  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19138  1.1  christos if \$ac_cs_recheck; then
   19139  1.3  christos   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   19140  1.3  christos   shift
   19141  1.3  christos   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   19142  1.3  christos   CONFIG_SHELL='$SHELL'
   19143  1.3  christos   export CONFIG_SHELL
   19144  1.3  christos   exec "\$@"
   19145  1.1  christos fi
   19146  1.1  christos 
   19147  1.1  christos _ACEOF
   19148  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19149  1.3  christos exec 5>>config.log
   19150  1.3  christos {
   19151  1.3  christos   echo
   19152  1.3  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   19153  1.3  christos ## Running $as_me. ##
   19154  1.3  christos _ASBOX
   19155  1.3  christos   $as_echo "$ac_log"
   19156  1.3  christos } >&5
   19157  1.1  christos 
   19158  1.3  christos _ACEOF
   19159  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19160  1.1  christos #
   19161  1.3  christos # INIT-COMMANDS
   19162  1.1  christos #
   19163  1.1  christos AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   19164  1.1  christos 
   19165  1.1  christos _ACEOF
   19166  1.1  christos 
   19167  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19168  1.1  christos 
   19169  1.3  christos # Handling of arguments.
   19170  1.1  christos for ac_config_target in $ac_config_targets
   19171  1.1  christos do
   19172  1.3  christos   case $ac_config_target in
   19173  1.3  christos     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   19174  1.3  christos     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   19175  1.3  christos     "contrib/validate_repo") CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
   19176  1.3  christos     "contrib/clmerge") CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
   19177  1.3  christos     "contrib/cln_hist") CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
   19178  1.3  christos     "contrib/commit_prep") CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
   19179  1.3  christos     "contrib/cvs_acls") CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
   19180  1.3  christos     "contrib/log") CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
   19181  1.3  christos     "contrib/log_accum") CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
   19182  1.3  christos     "contrib/mfpipe") CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
   19183  1.3  christos     "contrib/pvcs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
   19184  1.3  christos     "contrib/rcs2log") CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
   19185  1.3  christos     "contrib/rcslock") CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
   19186  1.3  christos     "contrib/sccs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
   19187  1.3  christos     "doc/mkman") CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
   19188  1.3  christos     "src/cvsbug") CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
   19189  1.3  christos     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   19190  1.3  christos     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
   19191  1.3  christos     "contrib/pam/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
   19192  1.3  christos     "cvs.spec") CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
   19193  1.3  christos     "diff/Makefile") CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
   19194  1.3  christos     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   19195  1.3  christos     "doc/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES doc/i18n/Makefile" ;;
   19196  1.3  christos     "doc/i18n/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES doc/i18n/pt_BR/Makefile" ;;
   19197  1.3  christos     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   19198  1.3  christos     "maint-aux/Makefile") CONFIG_FILES="$CONFIG_FILES maint-aux/Makefile" ;;
   19199  1.3  christos     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
   19200  1.3  christos     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
   19201  1.3  christos     "src/sanity.config.sh") CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
   19202  1.4  christos 
   19203  1.4  christos   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   19204  1.1  christos   esac
   19205  1.1  christos done
   19206  1.1  christos 
   19207  1.3  christos 
   19208  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   19209  1.1  christos # then the envvar interface is used.  Set only those that are not.
   19210  1.1  christos # We use the long form for the default assignment because of an extremely
   19211  1.1  christos # bizarre bug on SunOS 4.1.3.
   19212  1.1  christos if $ac_need_defaults; then
   19213  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   19214  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   19215  1.1  christos   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   19216  1.1  christos fi
   19217  1.1  christos 
   19218  1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   19219  1.3  christos # simply because there is no reason against having it here, and in addition,
   19220  1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   19221  1.3  christos # Hook for its removal unless debugging.
   19222  1.3  christos # Note that there is a small window in which the directory will not be cleaned:
   19223  1.3  christos # after its creation but before its name has been assigned to `$tmp'.
   19224  1.1  christos $debug ||
   19225  1.1  christos {
   19226  1.3  christos   tmp=
   19227  1.3  christos   trap 'exit_status=$?
   19228  1.3  christos   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   19229  1.3  christos ' 0
   19230  1.4  christos   trap 'as_fn_exit 1' 1 2 13 15
   19231  1.1  christos }
   19232  1.1  christos # Create a (secure) tmp directory for tmp files.
   19233  1.1  christos 
   19234  1.1  christos {
   19235  1.3  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   19236  1.1  christos   test -n "$tmp" && test -d "$tmp"
   19237  1.1  christos }  ||
   19238  1.1  christos {
   19239  1.3  christos   tmp=./conf$$-$RANDOM
   19240  1.3  christos   (umask 077 && mkdir "$tmp")
   19241  1.4  christos } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   19242  1.1  christos 
   19243  1.3  christos # Set up the scripts for CONFIG_FILES section.
   19244  1.3  christos # No need to generate them if there are no CONFIG_FILES.
   19245  1.3  christos # This happens for instance with `./config.status config.h'.
   19246  1.3  christos if test -n "$CONFIG_FILES"; then
   19247  1.3  christos 
   19248  1.3  christos if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   19249  1.3  christos   ac_cs_awk_getline=:
   19250  1.3  christos   ac_cs_awk_pipe_init=
   19251  1.3  christos   ac_cs_awk_read_file='
   19252  1.3  christos       while ((getline aline < (F[key])) > 0)
   19253  1.3  christos 	print(aline)
   19254  1.3  christos       close(F[key])'
   19255  1.3  christos   ac_cs_awk_pipe_fini=
   19256  1.3  christos else
   19257  1.3  christos   ac_cs_awk_getline=false
   19258  1.3  christos   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   19259  1.3  christos   ac_cs_awk_read_file='
   19260  1.3  christos       print "|#_!!_#|"
   19261  1.3  christos       print "cat " F[key] " &&"
   19262  1.3  christos       '$ac_cs_awk_pipe_init
   19263  1.3  christos   # The final `:' finishes the AND list.
   19264  1.3  christos   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   19265  1.3  christos fi
   19266  1.4  christos ac_cr=`echo X | tr X '\015'`
   19267  1.4  christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
   19268  1.4  christos # But we know of no other shell where ac_cr would be empty at this
   19269  1.4  christos # point, so we can use a bashism as a fallback.
   19270  1.4  christos if test "x$ac_cr" = x; then
   19271  1.4  christos   eval ac_cr=\$\'\\r\'
   19272  1.4  christos fi
   19273  1.3  christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   19274  1.3  christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   19275  1.4  christos   ac_cs_awk_cr='\r'
   19276  1.3  christos else
   19277  1.3  christos   ac_cs_awk_cr=$ac_cr
   19278  1.3  christos fi
   19279  1.3  christos 
   19280  1.3  christos echo 'BEGIN {' >"$tmp/subs1.awk" &&
   19281  1.3  christos _ACEOF
   19282  1.3  christos 
   19283  1.3  christos # Create commands to substitute file output variables.
   19284  1.3  christos {
   19285  1.3  christos   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   19286  1.3  christos   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   19287  1.3  christos   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   19288  1.3  christos   echo "_ACAWK" &&
   19289  1.3  christos   echo "_ACEOF"
   19290  1.3  christos } >conf$$files.sh &&
   19291  1.3  christos . ./conf$$files.sh ||
   19292  1.4  christos   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   19293  1.3  christos rm -f conf$$files.sh
   19294  1.3  christos 
   19295  1.3  christos {
   19296  1.3  christos   echo "cat >conf$$subs.awk <<_ACEOF" &&
   19297  1.3  christos   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   19298  1.3  christos   echo "_ACEOF"
   19299  1.3  christos } >conf$$subs.sh ||
   19300  1.4  christos   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   19301  1.3  christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   19302  1.3  christos ac_delim='%!_!# '
   19303  1.3  christos for ac_last_try in false false false false false :; do
   19304  1.3  christos   . ./conf$$subs.sh ||
   19305  1.4  christos     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   19306  1.3  christos 
   19307  1.3  christos   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   19308  1.3  christos   if test $ac_delim_n = $ac_delim_num; then
   19309  1.3  christos     break
   19310  1.3  christos   elif $ac_last_try; then
   19311  1.4  christos     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   19312  1.3  christos   else
   19313  1.3  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   19314  1.3  christos   fi
   19315  1.3  christos done
   19316  1.3  christos rm -f conf$$subs.sh
   19317  1.3  christos 
   19318  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19319  1.3  christos cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   19320  1.3  christos _ACEOF
   19321  1.3  christos sed -n '
   19322  1.3  christos h
   19323  1.3  christos s/^/S["/; s/!.*/"]=/
   19324  1.3  christos p
   19325  1.3  christos g
   19326  1.3  christos s/^[^!]*!//
   19327  1.3  christos :repl
   19328  1.3  christos t repl
   19329  1.3  christos s/'"$ac_delim"'$//
   19330  1.3  christos t delim
   19331  1.3  christos :nl
   19332  1.3  christos h
   19333  1.4  christos s/\(.\{148\}\)..*/\1/
   19334  1.3  christos t more1
   19335  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   19336  1.3  christos p
   19337  1.3  christos n
   19338  1.3  christos b repl
   19339  1.3  christos :more1
   19340  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   19341  1.3  christos p
   19342  1.3  christos g
   19343  1.3  christos s/.\{148\}//
   19344  1.3  christos t nl
   19345  1.3  christos :delim
   19346  1.3  christos h
   19347  1.4  christos s/\(.\{148\}\)..*/\1/
   19348  1.3  christos t more2
   19349  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/"/
   19350  1.3  christos p
   19351  1.3  christos b
   19352  1.3  christos :more2
   19353  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   19354  1.3  christos p
   19355  1.3  christos g
   19356  1.3  christos s/.\{148\}//
   19357  1.3  christos t delim
   19358  1.3  christos ' <conf$$subs.awk | sed '
   19359  1.3  christos /^[^""]/{
   19360  1.3  christos   N
   19361  1.3  christos   s/\n//
   19362  1.3  christos }
   19363  1.3  christos ' >>$CONFIG_STATUS || ac_write_fail=1
   19364  1.3  christos rm -f conf$$subs.awk
   19365  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19366  1.3  christos _ACAWK
   19367  1.3  christos cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   19368  1.3  christos   for (key in S) S_is_set[key] = 1
   19369  1.3  christos   FS = ""
   19370  1.3  christos   \$ac_cs_awk_pipe_init
   19371  1.3  christos }
   19372  1.3  christos {
   19373  1.3  christos   line = $ 0
   19374  1.3  christos   nfields = split(line, field, "@")
   19375  1.3  christos   substed = 0
   19376  1.3  christos   len = length(field[1])
   19377  1.3  christos   for (i = 2; i < nfields; i++) {
   19378  1.3  christos     key = field[i]
   19379  1.3  christos     keylen = length(key)
   19380  1.3  christos     if (S_is_set[key]) {
   19381  1.3  christos       value = S[key]
   19382  1.3  christos       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   19383  1.3  christos       len += length(value) + length(field[++i])
   19384  1.3  christos       substed = 1
   19385  1.3  christos     } else
   19386  1.3  christos       len += 1 + keylen
   19387  1.3  christos   }
   19388  1.3  christos   if (nfields == 3 && !substed) {
   19389  1.3  christos     key = field[2]
   19390  1.3  christos     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   19391  1.3  christos       \$ac_cs_awk_read_file
   19392  1.3  christos       next
   19393  1.3  christos     }
   19394  1.3  christos   }
   19395  1.3  christos   print line
   19396  1.3  christos }
   19397  1.3  christos \$ac_cs_awk_pipe_fini
   19398  1.3  christos _ACAWK
   19399  1.3  christos _ACEOF
   19400  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19401  1.3  christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   19402  1.3  christos   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   19403  1.3  christos else
   19404  1.3  christos   cat
   19405  1.3  christos fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   19406  1.4  christos   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   19407  1.1  christos _ACEOF
   19408  1.1  christos 
   19409  1.3  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   19410  1.3  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   19411  1.3  christos # trailing colons and then remove the whole line if VPATH becomes empty
   19412  1.3  christos # (actually we leave an empty line to preserve line numbers).
   19413  1.3  christos if test "x$srcdir" = x.; then
   19414  1.3  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   19415  1.3  christos s/:*\$(srcdir):*/:/
   19416  1.3  christos s/:*\${srcdir}:*/:/
   19417  1.3  christos s/:*@srcdir@:*/:/
   19418  1.3  christos s/^\([^=]*=[	 ]*\):*/\1/
   19419  1.3  christos s/:*$//
   19420  1.3  christos s/^[^=]*=[	 ]*$//
   19421  1.3  christos }'
   19422  1.3  christos fi
   19423  1.1  christos 
   19424  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19425  1.3  christos fi # test -n "$CONFIG_FILES"
   19426  1.1  christos 
   19427  1.3  christos # Set up the scripts for CONFIG_HEADERS section.
   19428  1.3  christos # No need to generate them if there are no CONFIG_HEADERS.
   19429  1.3  christos # This happens for instance with `./config.status Makefile'.
   19430  1.3  christos if test -n "$CONFIG_HEADERS"; then
   19431  1.3  christos cat >"$tmp/defines.awk" <<\_ACAWK ||
   19432  1.3  christos BEGIN {
   19433  1.3  christos _ACEOF
   19434  1.3  christos 
   19435  1.3  christos # Transform confdefs.h into an awk script `defines.awk', embedded as
   19436  1.3  christos # here-document in config.status, that substitutes the proper values into
   19437  1.3  christos # config.h.in to produce config.h.
   19438  1.3  christos 
   19439  1.3  christos # Create a delimiter string that does not exist in confdefs.h, to ease
   19440  1.3  christos # handling of long lines.
   19441  1.3  christos ac_delim='%!_!# '
   19442  1.3  christos for ac_last_try in false false :; do
   19443  1.3  christos   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   19444  1.3  christos   if test -z "$ac_t"; then
   19445  1.3  christos     break
   19446  1.3  christos   elif $ac_last_try; then
   19447  1.4  christos     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   19448  1.3  christos   else
   19449  1.3  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   19450  1.1  christos   fi
   19451  1.3  christos done
   19452  1.1  christos 
   19453  1.3  christos # For the awk script, D is an array of macro values keyed by name,
   19454  1.3  christos # likewise P contains macro parameters if any.  Preserve backslash
   19455  1.3  christos # newline sequences.
   19456  1.3  christos 
   19457  1.3  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   19458  1.3  christos sed -n '
   19459  1.3  christos s/.\{148\}/&'"$ac_delim"'/g
   19460  1.3  christos t rset
   19461  1.3  christos :rset
   19462  1.3  christos s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   19463  1.3  christos t def
   19464  1.3  christos d
   19465  1.3  christos :def
   19466  1.3  christos s/\\$//
   19467  1.3  christos t bsnl
   19468  1.3  christos s/["\\]/\\&/g
   19469  1.3  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   19470  1.3  christos D["\1"]=" \3"/p
   19471  1.3  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   19472  1.3  christos d
   19473  1.3  christos :bsnl
   19474  1.3  christos s/["\\]/\\&/g
   19475  1.3  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   19476  1.3  christos D["\1"]=" \3\\\\\\n"\\/p
   19477  1.3  christos t cont
   19478  1.3  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   19479  1.3  christos t cont
   19480  1.3  christos d
   19481  1.3  christos :cont
   19482  1.3  christos n
   19483  1.3  christos s/.\{148\}/&'"$ac_delim"'/g
   19484  1.3  christos t clear
   19485  1.3  christos :clear
   19486  1.3  christos s/\\$//
   19487  1.3  christos t bsnlc
   19488  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
   19489  1.3  christos d
   19490  1.3  christos :bsnlc
   19491  1.3  christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   19492  1.3  christos b cont
   19493  1.3  christos ' <confdefs.h | sed '
   19494  1.3  christos s/'"$ac_delim"'/"\\\
   19495  1.3  christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
   19496  1.3  christos 
   19497  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19498  1.3  christos   for (key in D) D_is_set[key] = 1
   19499  1.3  christos   FS = ""
   19500  1.3  christos }
   19501  1.3  christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   19502  1.3  christos   line = \$ 0
   19503  1.3  christos   split(line, arg, " ")
   19504  1.3  christos   if (arg[1] == "#") {
   19505  1.3  christos     defundef = arg[2]
   19506  1.3  christos     mac1 = arg[3]
   19507  1.3  christos   } else {
   19508  1.3  christos     defundef = substr(arg[1], 2)
   19509  1.3  christos     mac1 = arg[2]
   19510  1.3  christos   }
   19511  1.3  christos   split(mac1, mac2, "(") #)
   19512  1.3  christos   macro = mac2[1]
   19513  1.3  christos   prefix = substr(line, 1, index(line, defundef) - 1)
   19514  1.3  christos   if (D_is_set[macro]) {
   19515  1.3  christos     # Preserve the white space surrounding the "#".
   19516  1.3  christos     print prefix "define", macro P[macro] D[macro]
   19517  1.3  christos     next
   19518  1.3  christos   } else {
   19519  1.3  christos     # Replace #undef with comments.  This is necessary, for example,
   19520  1.3  christos     # in the case of _POSIX_SOURCE, which is predefined and required
   19521  1.3  christos     # on some systems where configure will not decide to define it.
   19522  1.3  christos     if (defundef == "undef") {
   19523  1.3  christos       print "/*", prefix defundef, macro, "*/"
   19524  1.3  christos       next
   19525  1.3  christos     }
   19526  1.3  christos   }
   19527  1.3  christos }
   19528  1.3  christos { print }
   19529  1.3  christos _ACAWK
   19530  1.1  christos _ACEOF
   19531  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19532  1.4  christos   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   19533  1.3  christos fi # test -n "$CONFIG_HEADERS"
   19534  1.3  christos 
   19535  1.3  christos 
   19536  1.3  christos eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   19537  1.3  christos shift
   19538  1.3  christos for ac_tag
   19539  1.3  christos do
   19540  1.3  christos   case $ac_tag in
   19541  1.3  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   19542  1.3  christos   esac
   19543  1.3  christos   case $ac_mode$ac_tag in
   19544  1.3  christos   :[FHL]*:*);;
   19545  1.4  christos   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   19546  1.3  christos   :[FH]-) ac_tag=-:-;;
   19547  1.3  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   19548  1.3  christos   esac
   19549  1.3  christos   ac_save_IFS=$IFS
   19550  1.3  christos   IFS=:
   19551  1.3  christos   set x $ac_tag
   19552  1.3  christos   IFS=$ac_save_IFS
   19553  1.3  christos   shift
   19554  1.3  christos   ac_file=$1
   19555  1.3  christos   shift
   19556  1.3  christos 
   19557  1.3  christos   case $ac_mode in
   19558  1.3  christos   :L) ac_source=$1;;
   19559  1.3  christos   :[FH])
   19560  1.3  christos     ac_file_inputs=
   19561  1.3  christos     for ac_f
   19562  1.3  christos     do
   19563  1.3  christos       case $ac_f in
   19564  1.3  christos       -) ac_f="$tmp/stdin";;
   19565  1.3  christos       *) # Look for the file first in the build tree, then in the source tree
   19566  1.3  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   19567  1.3  christos 	 # because $ac_f cannot contain `:'.
   19568  1.3  christos 	 test -f "$ac_f" ||
   19569  1.3  christos 	   case $ac_f in
   19570  1.3  christos 	   [\\/$]*) false;;
   19571  1.3  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   19572  1.3  christos 	   esac ||
   19573  1.4  christos 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   19574  1.3  christos       esac
   19575  1.3  christos       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   19576  1.4  christos       as_fn_append ac_file_inputs " '$ac_f'"
   19577  1.3  christos     done
   19578  1.3  christos 
   19579  1.3  christos     # Let's still pretend it is `configure' which instantiates (i.e., don't
   19580  1.3  christos     # use $as_me), people would be surprised to read:
   19581  1.3  christos     #    /* config.h.  Generated by config.status.  */
   19582  1.3  christos     configure_input='Generated from '`
   19583  1.3  christos 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   19584  1.3  christos 	`' by configure.'
   19585  1.3  christos     if test x"$ac_file" != x-; then
   19586  1.3  christos       configure_input="$ac_file.  $configure_input"
   19587  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   19588  1.3  christos $as_echo "$as_me: creating $ac_file" >&6;}
   19589  1.3  christos     fi
   19590  1.3  christos     # Neutralize special characters interpreted by sed in replacement strings.
   19591  1.3  christos     case $configure_input in #(
   19592  1.3  christos     *\&* | *\|* | *\\* )
   19593  1.3  christos        ac_sed_conf_input=`$as_echo "$configure_input" |
   19594  1.3  christos        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   19595  1.3  christos     *) ac_sed_conf_input=$configure_input;;
   19596  1.3  christos     esac
   19597  1.3  christos 
   19598  1.3  christos     case $ac_tag in
   19599  1.3  christos     *:-:* | *:-) cat >"$tmp/stdin" \
   19600  1.4  christos       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   19601  1.3  christos     esac
   19602  1.3  christos     ;;
   19603  1.1  christos   esac
   19604  1.1  christos 
   19605  1.3  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   19606  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19607  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   19608  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   19609  1.3  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   19610  1.3  christos $as_echo X"$ac_file" |
   19611  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19612  1.3  christos 	    s//\1/
   19613  1.3  christos 	    q
   19614  1.3  christos 	  }
   19615  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   19616  1.3  christos 	    s//\1/
   19617  1.3  christos 	    q
   19618  1.3  christos 	  }
   19619  1.3  christos 	  /^X\(\/\/\)$/{
   19620  1.3  christos 	    s//\1/
   19621  1.3  christos 	    q
   19622  1.3  christos 	  }
   19623  1.3  christos 	  /^X\(\/\).*/{
   19624  1.3  christos 	    s//\1/
   19625  1.3  christos 	    q
   19626  1.3  christos 	  }
   19627  1.3  christos 	  s/.*/./; q'`
   19628  1.4  christos   as_dir="$ac_dir"; as_fn_mkdir_p
   19629  1.1  christos   ac_builddir=.
   19630  1.1  christos 
   19631  1.3  christos case "$ac_dir" in
   19632  1.3  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19633  1.3  christos *)
   19634  1.3  christos   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   19635  1.3  christos   # A ".." for each directory in $ac_dir_suffix.
   19636  1.3  christos   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   19637  1.3  christos   case $ac_top_builddir_sub in
   19638  1.3  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19639  1.3  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   19640  1.3  christos   esac ;;
   19641  1.3  christos esac
   19642  1.3  christos ac_abs_top_builddir=$ac_pwd
   19643  1.3  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   19644  1.3  christos # for backward compatibility:
   19645  1.3  christos ac_top_builddir=$ac_top_build_prefix
   19646  1.1  christos 
   19647  1.1  christos case $srcdir in
   19648  1.3  christos   .)  # We are building in place.
   19649  1.1  christos     ac_srcdir=.
   19650  1.3  christos     ac_top_srcdir=$ac_top_builddir_sub
   19651  1.3  christos     ac_abs_top_srcdir=$ac_pwd ;;
   19652  1.3  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   19653  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   19654  1.3  christos     ac_top_srcdir=$srcdir
   19655  1.3  christos     ac_abs_top_srcdir=$srcdir ;;
   19656  1.3  christos   *) # Relative name.
   19657  1.3  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   19658  1.3  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   19659  1.3  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   19660  1.1  christos esac
   19661  1.3  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   19662  1.1  christos 
   19663  1.1  christos 
   19664  1.3  christos   case $ac_mode in
   19665  1.3  christos   :F)
   19666  1.3  christos   #
   19667  1.3  christos   # CONFIG_FILE
   19668  1.3  christos   #
   19669  1.1  christos 
   19670  1.1  christos   case $INSTALL in
   19671  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   19672  1.3  christos   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   19673  1.1  christos   esac
   19674  1.3  christos   ac_MKDIR_P=$MKDIR_P
   19675  1.3  christos   case $MKDIR_P in
   19676  1.3  christos   [\\/$]* | ?:[\\/]* ) ;;
   19677  1.3  christos   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   19678  1.3  christos   esac
   19679  1.3  christos _ACEOF
   19680  1.1  christos 
   19681  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19682  1.3  christos # If the template does not know about datarootdir, expand it.
   19683  1.3  christos # FIXME: This hack should be removed a few years after 2.60.
   19684  1.3  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   19685  1.3  christos ac_sed_dataroot='
   19686  1.3  christos /datarootdir/ {
   19687  1.3  christos   p
   19688  1.3  christos   q
   19689  1.3  christos }
   19690  1.3  christos /@datadir@/p
   19691  1.3  christos /@docdir@/p
   19692  1.3  christos /@infodir@/p
   19693  1.3  christos /@localedir@/p
   19694  1.4  christos /@mandir@/p'
   19695  1.3  christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   19696  1.3  christos *datarootdir*) ac_datarootdir_seen=yes;;
   19697  1.3  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   19698  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   19699  1.3  christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   19700  1.3  christos _ACEOF
   19701  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19702  1.3  christos   ac_datarootdir_hack='
   19703  1.3  christos   s&@datadir@&$datadir&g
   19704  1.3  christos   s&@docdir@&$docdir&g
   19705  1.3  christos   s&@infodir@&$infodir&g
   19706  1.3  christos   s&@localedir@&$localedir&g
   19707  1.3  christos   s&@mandir@&$mandir&g
   19708  1.4  christos   s&\\\${datarootdir}&$datarootdir&g' ;;
   19709  1.3  christos esac
   19710  1.1  christos _ACEOF
   19711  1.3  christos 
   19712  1.3  christos # Neutralize VPATH when `$srcdir' = `.'.
   19713  1.3  christos # Shell code in configure.ac might set extrasub.
   19714  1.3  christos # FIXME: do we really want to maintain this feature?
   19715  1.3  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19716  1.3  christos ac_sed_extra="$ac_vpsub
   19717  1.1  christos $extrasub
   19718  1.1  christos _ACEOF
   19719  1.3  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19720  1.1  christos :t
   19721  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   19722  1.3  christos s|@configure_input@|$ac_sed_conf_input|;t t
   19723  1.3  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   19724  1.3  christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
   19725  1.3  christos s&@srcdir@&$ac_srcdir&;t t
   19726  1.3  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   19727  1.3  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   19728  1.3  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   19729  1.3  christos s&@builddir@&$ac_builddir&;t t
   19730  1.3  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   19731  1.3  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   19732  1.3  christos s&@INSTALL@&$ac_INSTALL&;t t
   19733  1.3  christos s&@MKDIR_P@&$ac_MKDIR_P&;t t
   19734  1.3  christos $ac_datarootdir_hack
   19735  1.3  christos "
   19736  1.3  christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   19737  1.3  christos if $ac_cs_awk_getline; then
   19738  1.3  christos   $AWK -f "$tmp/subs.awk"
   19739  1.3  christos else
   19740  1.3  christos   $AWK -f "$tmp/subs.awk" | $SHELL
   19741  1.3  christos fi >$tmp/out \
   19742  1.4  christos   || as_fn_error "could not create $ac_file" "$LINENO" 5
   19743  1.1  christos 
   19744  1.3  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   19745  1.3  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   19746  1.3  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   19747  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   19748  1.3  christos which seems to be undefined.  Please make sure it is defined." >&5
   19749  1.3  christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   19750  1.3  christos which seems to be undefined.  Please make sure it is defined." >&2;}
   19751  1.1  christos 
   19752  1.3  christos   rm -f "$tmp/stdin"
   19753  1.1  christos   case $ac_file in
   19754  1.3  christos   -) cat "$tmp/out" && rm -f "$tmp/out";;
   19755  1.3  christos   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   19756  1.3  christos   esac \
   19757  1.4  christos   || as_fn_error "could not create $ac_file" "$LINENO" 5
   19758  1.3  christos  ;;
   19759  1.3  christos   :H)
   19760  1.3  christos   #
   19761  1.3  christos   # CONFIG_HEADER
   19762  1.3  christos   #
   19763  1.3  christos   if test x"$ac_file" != x-; then
   19764  1.3  christos     {
   19765  1.3  christos       $as_echo "/* $configure_input  */" \
   19766  1.3  christos       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   19767  1.3  christos     } >"$tmp/config.h" \
   19768  1.4  christos       || as_fn_error "could not create $ac_file" "$LINENO" 5
   19769  1.3  christos     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   19770  1.4  christos       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   19771  1.3  christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
   19772  1.1  christos     else
   19773  1.3  christos       rm -f "$ac_file"
   19774  1.3  christos       mv "$tmp/config.h" "$ac_file" \
   19775  1.4  christos 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   19776  1.1  christos     fi
   19777  1.1  christos   else
   19778  1.3  christos     $as_echo "/* $configure_input  */" \
   19779  1.3  christos       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   19780  1.4  christos       || as_fn_error "could not create -" "$LINENO" 5
   19781  1.1  christos   fi
   19782  1.3  christos # Compute "$ac_file"'s index in $config_headers.
   19783  1.3  christos _am_arg="$ac_file"
   19784  1.1  christos _am_stamp_count=1
   19785  1.1  christos for _am_header in $config_headers :; do
   19786  1.1  christos   case $_am_header in
   19787  1.3  christos     $_am_arg | $_am_arg:* )
   19788  1.1  christos       break ;;
   19789  1.1  christos     * )
   19790  1.1  christos       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   19791  1.1  christos   esac
   19792  1.1  christos done
   19793  1.3  christos echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   19794  1.3  christos $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19795  1.3  christos 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   19796  1.3  christos 	 X"$_am_arg" : 'X\(//\)$' \| \
   19797  1.3  christos 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   19798  1.3  christos $as_echo X"$_am_arg" |
   19799  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19800  1.3  christos 	    s//\1/
   19801  1.3  christos 	    q
   19802  1.3  christos 	  }
   19803  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   19804  1.3  christos 	    s//\1/
   19805  1.3  christos 	    q
   19806  1.3  christos 	  }
   19807  1.3  christos 	  /^X\(\/\/\)$/{
   19808  1.3  christos 	    s//\1/
   19809  1.3  christos 	    q
   19810  1.3  christos 	  }
   19811  1.3  christos 	  /^X\(\/\).*/{
   19812  1.3  christos 	    s//\1/
   19813  1.3  christos 	    q
   19814  1.3  christos 	  }
   19815  1.3  christos 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   19816  1.3  christos  ;;
   19817  1.1  christos 
   19818  1.4  christos   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   19819  1.3  christos $as_echo "$as_me: executing $ac_file commands" >&6;}
   19820  1.3  christos  ;;
   19821  1.3  christos   esac
   19822  1.1  christos 
   19823  1.1  christos 
   19824  1.3  christos   case $ac_file$ac_mode in
   19825  1.4  christos     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   19826  1.4  christos   # Autoconf 2.62 quotes --file arguments for eval, but not when files
   19827  1.4  christos   # are listed without --file.  Let's play safe and only enable the eval
   19828  1.4  christos   # if we detect the quoting.
   19829  1.4  christos   case $CONFIG_FILES in
   19830  1.4  christos   *\'*) eval set x "$CONFIG_FILES" ;;
   19831  1.4  christos   *)   set x $CONFIG_FILES ;;
   19832  1.4  christos   esac
   19833  1.4  christos   shift
   19834  1.4  christos   for mf
   19835  1.4  christos   do
   19836  1.4  christos     # Strip MF so we end up with the name of the file.
   19837  1.4  christos     mf=`echo "$mf" | sed -e 's/:.*$//'`
   19838  1.4  christos     # Check whether this is an Automake generated Makefile or not.
   19839  1.4  christos     # We used to match only the files named `Makefile.in', but
   19840  1.4  christos     # some people rename them; so instead we look at the file content.
   19841  1.4  christos     # Grep'ing the first line is not enough: some people post-process
   19842  1.4  christos     # each Makefile.in and add a new line on top of each file to say so.
   19843  1.4  christos     # Grep'ing the whole file is not good either: AIX grep has a line
   19844  1.4  christos     # limit of 2048, but all sed's we know have understand at least 4000.
   19845  1.4  christos     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   19846  1.4  christos       dirpart=`$as_dirname -- "$mf" ||
   19847  1.1  christos $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19848  1.1  christos 	 X"$mf" : 'X\(//\)[^/]' \| \
   19849  1.1  christos 	 X"$mf" : 'X\(//\)$' \| \
   19850  1.3  christos 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   19851  1.3  christos $as_echo X"$mf" |
   19852  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19853  1.3  christos 	    s//\1/
   19854  1.3  christos 	    q
   19855  1.3  christos 	  }
   19856  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   19857  1.3  christos 	    s//\1/
   19858  1.3  christos 	    q
   19859  1.3  christos 	  }
   19860  1.3  christos 	  /^X\(\/\/\)$/{
   19861  1.3  christos 	    s//\1/
   19862  1.3  christos 	    q
   19863  1.3  christos 	  }
   19864  1.3  christos 	  /^X\(\/\).*/{
   19865  1.3  christos 	    s//\1/
   19866  1.3  christos 	    q
   19867  1.3  christos 	  }
   19868  1.3  christos 	  s/.*/./; q'`
   19869  1.4  christos     else
   19870  1.4  christos       continue
   19871  1.4  christos     fi
   19872  1.4  christos     # Extract the definition of DEPDIR, am__include, and am__quote
   19873  1.4  christos     # from the Makefile without running `make'.
   19874  1.4  christos     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   19875  1.4  christos     test -z "$DEPDIR" && continue
   19876  1.4  christos     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   19877  1.4  christos     test -z "am__include" && continue
   19878  1.4  christos     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   19879  1.4  christos     # When using ansi2knr, U may be empty or an underscore; expand it
   19880  1.4  christos     U=`sed -n 's/^U = //p' < "$mf"`
   19881  1.4  christos     # Find all dependency output files, they are included files with
   19882  1.4  christos     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   19883  1.4  christos     # simplest approach to changing $(DEPDIR) to its actual value in the
   19884  1.4  christos     # expansion.
   19885  1.4  christos     for file in `sed -n "
   19886  1.4  christos       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   19887  1.4  christos 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   19888  1.4  christos       # Make sure the directory exists.
   19889  1.4  christos       test -f "$dirpart/$file" && continue
   19890  1.4  christos       fdir=`$as_dirname -- "$file" ||
   19891  1.1  christos $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19892  1.1  christos 	 X"$file" : 'X\(//\)[^/]' \| \
   19893  1.1  christos 	 X"$file" : 'X\(//\)$' \| \
   19894  1.3  christos 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   19895  1.3  christos $as_echo X"$file" |
   19896  1.3  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19897  1.3  christos 	    s//\1/
   19898  1.3  christos 	    q
   19899  1.3  christos 	  }
   19900  1.3  christos 	  /^X\(\/\/\)[^/].*/{
   19901  1.3  christos 	    s//\1/
   19902  1.3  christos 	    q
   19903  1.3  christos 	  }
   19904  1.3  christos 	  /^X\(\/\/\)$/{
   19905  1.3  christos 	    s//\1/
   19906  1.3  christos 	    q
   19907  1.3  christos 	  }
   19908  1.3  christos 	  /^X\(\/\).*/{
   19909  1.3  christos 	    s//\1/
   19910  1.3  christos 	    q
   19911  1.3  christos 	  }
   19912  1.3  christos 	  s/.*/./; q'`
   19913  1.4  christos       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   19914  1.4  christos       # echo "creating $dirpart/$file"
   19915  1.4  christos       echo '# dummy' > "$dirpart/$file"
   19916  1.1  christos     done
   19917  1.1  christos   done
   19918  1.4  christos }
   19919  1.1  christos  ;;
   19920  1.3  christos     "contrib/validate_repo":F) chmod +x contrib/validate_repo ;;
   19921  1.3  christos     "contrib/clmerge":F) chmod +x contrib/clmerge ;;
   19922  1.3  christos     "contrib/cln_hist":F) chmod +x contrib/cln_hist ;;
   19923  1.3  christos     "contrib/commit_prep":F) chmod +x contrib/commit_prep ;;
   19924  1.3  christos     "contrib/cvs_acls":F) chmod +x contrib/cvs_acls ;;
   19925  1.3  christos     "contrib/log":F) chmod +x contrib/log ;;
   19926  1.3  christos     "contrib/log_accum":F) chmod +x contrib/log_accum ;;
   19927  1.3  christos     "contrib/mfpipe":F) chmod +x contrib/mfpipe ;;
   19928  1.3  christos     "contrib/pvcs2rcs":F) chmod +x contrib/pvcs2rcs ;;
   19929  1.3  christos     "contrib/rcs2log":F) chmod +x contrib/rcs2log ;;
   19930  1.3  christos     "contrib/rcslock":F) chmod +x contrib/rcslock ;;
   19931  1.3  christos     "contrib/sccs2rcs":F) chmod +x contrib/sccs2rcs ;;
   19932  1.3  christos     "doc/mkman":F) chmod +x doc/mkman ;;
   19933  1.3  christos     "src/cvsbug":F) chmod +x src/cvsbug ;;
   19934  1.3  christos 
   19935  1.1  christos   esac
   19936  1.3  christos done # for ac_tag
   19937  1.1  christos 
   19938  1.1  christos 
   19939  1.4  christos as_fn_exit 0
   19940  1.1  christos _ACEOF
   19941  1.1  christos ac_clean_files=$ac_clean_files_save
   19942  1.1  christos 
   19943  1.3  christos test $ac_write_fail = 0 ||
   19944  1.4  christos   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   19945  1.3  christos 
   19946  1.1  christos 
   19947  1.1  christos # configure is writing to config.log, and then calls config.status.
   19948  1.1  christos # config.status does its own redirection, appending to config.log.
   19949  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   19950  1.1  christos # by configure, so config.status won't be able to write to it; its
   19951  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   19952  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   19953  1.1  christos # appended to by config.status.  When coming back to configure, we
   19954  1.1  christos # need to make the FD available again.
   19955  1.1  christos if test "$no_create" != yes; then
   19956  1.1  christos   ac_cs_success=:
   19957  1.1  christos   ac_config_status_args=
   19958  1.1  christos   test "$silent" = yes &&
   19959  1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   19960  1.1  christos   exec 5>/dev/null
   19961  1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   19962  1.1  christos   exec 5>>config.log
   19963  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   19964  1.1  christos   # would make configure fail if this is the last instruction.
   19965  1.4  christos   $ac_cs_success || as_fn_exit $?
   19966  1.1  christos fi
   19967  1.3  christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   19968  1.4  christos   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   19969  1.3  christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   19970  1.3  christos fi
   19971  1.1  christos 
   19972  1.1  christos 
   19973  1.1  christos 
   19974  1.1  christos 
   19975  1.1  christos # Report the state of this version of CVS if this is from dev.
   19976  1.1  christos 
   19977