Home | History | Annotate | Download | only in sed-4.2.1
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.63 for sed 4.2.1.
      4 #
      5 # Report bugs to <bug-gnu-utils (at] gnu.org>.
      6 #
      7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## --------------------- ##
     12 ## M4sh Initialization.  ##
     13 ## --------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in
     26   *posix*) set -o posix ;;
     27 esac
     28 
     29 fi
     30 
     31 
     32 
     33 
     34 # PATH needs CR
     35 # Avoid depending upon Character Ranges.
     36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     39 as_cr_digits='0123456789'
     40 as_cr_alnum=$as_cr_Letters$as_cr_digits
     41 
     42 as_nl='
     43 '
     44 export as_nl
     45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50   as_echo='printf %s\n'
     51   as_echo_n='printf %s'
     52 else
     53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55     as_echo_n='/usr/ucb/echo -n'
     56   else
     57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58     as_echo_n_body='eval
     59       arg=$1;
     60       case $arg in
     61       *"$as_nl"*)
     62 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64       esac;
     65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66     '
     67     export as_echo_n_body
     68     as_echo_n='sh -c $as_echo_n_body as_echo'
     69   fi
     70   export as_echo_body
     71   as_echo='sh -c $as_echo_body as_echo'
     72 fi
     73 
     74 # The user is always right.
     75 if test "${PATH_SEPARATOR+set}" != set; then
     76   PATH_SEPARATOR=:
     77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79       PATH_SEPARATOR=';'
     80   }
     81 fi
     82 
     83 # Support unset when possible.
     84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     85   as_unset=unset
     86 else
     87   as_unset=false
     88 fi
     89 
     90 
     91 # IFS
     92 # We need space, tab and new line, in precisely that order.  Quoting is
     93 # there to prevent editors from complaining about space-tab.
     94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     95 # splitting by setting IFS to empty value.)
     96 IFS=" ""	$as_nl"
     97 
     98 # Find who we are.  Look in the path if we contain no directory separator.
     99 case $0 in
    100   *[\\/]* ) as_myself=$0 ;;
    101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    102 for as_dir in $PATH
    103 do
    104   IFS=$as_save_IFS
    105   test -z "$as_dir" && as_dir=.
    106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    107 done
    108 IFS=$as_save_IFS
    109 
    110      ;;
    111 esac
    112 # We did not find ourselves, most probably we were run as `sh COMMAND'
    113 # in which case we are not to be found in the path.
    114 if test "x$as_myself" = x; then
    115   as_myself=$0
    116 fi
    117 if test ! -f "$as_myself"; then
    118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    119   { (exit 1); exit 1; }
    120 fi
    121 
    122 # Work around bugs in pre-3.0 UWIN ksh.
    123 for as_var in ENV MAIL MAILPATH
    124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    125 done
    126 PS1='$ '
    127 PS2='> '
    128 PS4='+ '
    129 
    130 # NLS nuisances.
    131 LC_ALL=C
    132 export LC_ALL
    133 LANGUAGE=C
    134 export LANGUAGE
    135 
    136 # Required to use basename.
    137 if expr a : '\(a\)' >/dev/null 2>&1 &&
    138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    139   as_expr=expr
    140 else
    141   as_expr=false
    142 fi
    143 
    144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    145   as_basename=basename
    146 else
    147   as_basename=false
    148 fi
    149 
    150 
    151 # Name of the executable.
    152 as_me=`$as_basename -- "$0" ||
    153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    154 	 X"$0" : 'X\(//\)$' \| \
    155 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    156 $as_echo X/"$0" |
    157     sed '/^.*\/\([^/][^/]*\)\/*$/{
    158 	    s//\1/
    159 	    q
    160 	  }
    161 	  /^X\/\(\/\/\)$/{
    162 	    s//\1/
    163 	    q
    164 	  }
    165 	  /^X\/\(\/\).*/{
    166 	    s//\1/
    167 	    q
    168 	  }
    169 	  s/.*/./; q'`
    170 
    171 # CDPATH.
    172 $as_unset CDPATH
    173 
    174 
    175 if test "x$CONFIG_SHELL" = x; then
    176   if (eval ":") 2>/dev/null; then
    177   as_have_required=yes
    178 else
    179   as_have_required=no
    180 fi
    181 
    182   if test $as_have_required = yes &&	 (eval ":
    183 (as_func_return () {
    184   (exit \$1)
    185 }
    186 as_func_success () {
    187   as_func_return 0
    188 }
    189 as_func_failure () {
    190   as_func_return 1
    191 }
    192 as_func_ret_success () {
    193   return 0
    194 }
    195 as_func_ret_failure () {
    196   return 1
    197 }
    198 
    199 exitcode=0
    200 if as_func_success; then
    201   :
    202 else
    203   exitcode=1
    204   echo as_func_success failed.
    205 fi
    206 
    207 if as_func_failure; then
    208   exitcode=1
    209   echo as_func_failure succeeded.
    210 fi
    211 
    212 if as_func_ret_success; then
    213   :
    214 else
    215   exitcode=1
    216   echo as_func_ret_success failed.
    217 fi
    218 
    219 if as_func_ret_failure; then
    220   exitcode=1
    221   echo as_func_ret_failure succeeded.
    222 fi
    223 
    224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    225   :
    226 else
    227   exitcode=1
    228   echo positional parameters were not saved.
    229 fi
    230 
    231 test \$exitcode = 0) || { (exit 1); exit 1; }
    232 
    233 (
    234   as_lineno_1=\$LINENO
    235   as_lineno_2=\$LINENO
    236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    238 ") 2> /dev/null; then
    239   :
    240 else
    241   as_candidate_shells=
    242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    244 do
    245   IFS=$as_save_IFS
    246   test -z "$as_dir" && as_dir=.
    247   case $as_dir in
    248 	 /*)
    249 	   for as_base in sh bash ksh sh5; do
    250 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    251 	   done;;
    252        esac
    253 done
    254 IFS=$as_save_IFS
    255 
    256 
    257       for as_shell in $as_candidate_shells $SHELL; do
    258 	 # Try only shells that exist, to save several forks.
    259 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    260 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    262   emulate sh
    263   NULLCMD=:
    264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    265   # is contrary to our usage.  Disable this feature.
    266   alias -g '${1+"$@"}'='"$@"'
    267   setopt NO_GLOB_SUBST
    268 else
    269   case `(set -o) 2>/dev/null` in
    270   *posix*) set -o posix ;;
    271 esac
    272 
    273 fi
    274 
    275 
    276 :
    277 _ASEOF
    278 }; then
    279   CONFIG_SHELL=$as_shell
    280 	       as_have_required=yes
    281 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    283   emulate sh
    284   NULLCMD=:
    285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    286   # is contrary to our usage.  Disable this feature.
    287   alias -g '${1+"$@"}'='"$@"'
    288   setopt NO_GLOB_SUBST
    289 else
    290   case `(set -o) 2>/dev/null` in
    291   *posix*) set -o posix ;;
    292 esac
    293 
    294 fi
    295 
    296 
    297 :
    298 (as_func_return () {
    299   (exit $1)
    300 }
    301 as_func_success () {
    302   as_func_return 0
    303 }
    304 as_func_failure () {
    305   as_func_return 1
    306 }
    307 as_func_ret_success () {
    308   return 0
    309 }
    310 as_func_ret_failure () {
    311   return 1
    312 }
    313 
    314 exitcode=0
    315 if as_func_success; then
    316   :
    317 else
    318   exitcode=1
    319   echo as_func_success failed.
    320 fi
    321 
    322 if as_func_failure; then
    323   exitcode=1
    324   echo as_func_failure succeeded.
    325 fi
    326 
    327 if as_func_ret_success; then
    328   :
    329 else
    330   exitcode=1
    331   echo as_func_ret_success failed.
    332 fi
    333 
    334 if as_func_ret_failure; then
    335   exitcode=1
    336   echo as_func_ret_failure succeeded.
    337 fi
    338 
    339 if ( set x; as_func_ret_success y && test x = "$1" ); then
    340   :
    341 else
    342   exitcode=1
    343   echo positional parameters were not saved.
    344 fi
    345 
    346 test $exitcode = 0) || { (exit 1); exit 1; }
    347 
    348 (
    349   as_lineno_1=$LINENO
    350   as_lineno_2=$LINENO
    351   test "x$as_lineno_1" != "x$as_lineno_2" &&
    352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    353 
    354 _ASEOF
    355 }; then
    356   break
    357 fi
    358 
    359 fi
    360 
    361       done
    362 
    363       if test "x$CONFIG_SHELL" != x; then
    364   for as_var in BASH_ENV ENV
    365 	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    366 	done
    367 	export CONFIG_SHELL
    368 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    369 fi
    370 
    371 
    372     if test $as_have_required = no; then
    373   echo This script requires a shell more modern than all the
    374       echo shells that I found on your system.  Please install a
    375       echo modern shell, or manually run the script under such a
    376       echo shell if you do have one.
    377       { (exit 1); exit 1; }
    378 fi
    379 
    380 
    381 fi
    382 
    383 fi
    384 
    385 
    386 
    387 (eval "as_func_return () {
    388   (exit \$1)
    389 }
    390 as_func_success () {
    391   as_func_return 0
    392 }
    393 as_func_failure () {
    394   as_func_return 1
    395 }
    396 as_func_ret_success () {
    397   return 0
    398 }
    399 as_func_ret_failure () {
    400   return 1
    401 }
    402 
    403 exitcode=0
    404 if as_func_success; then
    405   :
    406 else
    407   exitcode=1
    408   echo as_func_success failed.
    409 fi
    410 
    411 if as_func_failure; then
    412   exitcode=1
    413   echo as_func_failure succeeded.
    414 fi
    415 
    416 if as_func_ret_success; then
    417   :
    418 else
    419   exitcode=1
    420   echo as_func_ret_success failed.
    421 fi
    422 
    423 if as_func_ret_failure; then
    424   exitcode=1
    425   echo as_func_ret_failure succeeded.
    426 fi
    427 
    428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    429   :
    430 else
    431   exitcode=1
    432   echo positional parameters were not saved.
    433 fi
    434 
    435 test \$exitcode = 0") || {
    436   echo No shell found that supports shell functions.
    437   echo Please tell bug-autoconf@gnu.org about your system,
    438   echo including any error possibly output before this message.
    439   echo This can help us improve future autoconf versions.
    440   echo Configuration will now proceed without shell functions.
    441 }
    442 
    443 
    444 
    445   as_lineno_1=$LINENO
    446   as_lineno_2=$LINENO
    447   test "x$as_lineno_1" != "x$as_lineno_2" &&
    448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    449 
    450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    451   # uniformly replaced by the line number.  The first 'sed' inserts a
    452   # line-number line after each line using $LINENO; the second 'sed'
    453   # does the real work.  The second script uses 'N' to pair each
    454   # line-number line with the line containing $LINENO, and appends
    455   # trailing '-' during substitution so that $LINENO is not a special
    456   # case at line end.
    457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    459   # E. McMahon (1931-1989) for sed's syntax.  :-)
    460   sed -n '
    461     p
    462     /[$]LINENO/=
    463   ' <$as_myself |
    464     sed '
    465       s/[$]LINENO.*/&-/
    466       t lineno
    467       b
    468       :lineno
    469       N
    470       :loop
    471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    472       t loop
    473       s/-\n.*//
    474     ' >$as_me.lineno &&
    475   chmod +x "$as_me.lineno" ||
    476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    477    { (exit 1); exit 1; }; }
    478 
    479   # Don't try to exec as it changes $[0], causing all sort of problems
    480   # (the dirname of $[0] is not the place where we might find the
    481   # original and so on.  Autoconf is especially sensitive to this).
    482   . "./$as_me.lineno"
    483   # Exit status is that of the last command.
    484   exit
    485 }
    486 
    487 
    488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    489   as_dirname=dirname
    490 else
    491   as_dirname=false
    492 fi
    493 
    494 ECHO_C= ECHO_N= ECHO_T=
    495 case `echo -n x` in
    496 -n*)
    497   case `echo 'x\c'` in
    498   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    499   *)   ECHO_C='\c';;
    500   esac;;
    501 *)
    502   ECHO_N='-n';;
    503 esac
    504 if expr a : '\(a\)' >/dev/null 2>&1 &&
    505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    506   as_expr=expr
    507 else
    508   as_expr=false
    509 fi
    510 
    511 rm -f conf$$ conf$$.exe conf$$.file
    512 if test -d conf$$.dir; then
    513   rm -f conf$$.dir/conf$$.file
    514 else
    515   rm -f conf$$.dir
    516   mkdir conf$$.dir 2>/dev/null
    517 fi
    518 if (echo >conf$$.file) 2>/dev/null; then
    519   if ln -s conf$$.file conf$$ 2>/dev/null; then
    520     as_ln_s='ln -s'
    521     # ... but there are two gotchas:
    522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    524     # In both cases, we have to default to `cp -p'.
    525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    526       as_ln_s='cp -p'
    527   elif ln conf$$.file conf$$ 2>/dev/null; then
    528     as_ln_s=ln
    529   else
    530     as_ln_s='cp -p'
    531   fi
    532 else
    533   as_ln_s='cp -p'
    534 fi
    535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    536 rmdir conf$$.dir 2>/dev/null
    537 
    538 if mkdir -p . 2>/dev/null; then
    539   as_mkdir_p=:
    540 else
    541   test -d ./-p && rmdir ./-p
    542   as_mkdir_p=false
    543 fi
    544 
    545 if test -x / >/dev/null 2>&1; then
    546   as_test_x='test -x'
    547 else
    548   if ls -dL / >/dev/null 2>&1; then
    549     as_ls_L_option=L
    550   else
    551     as_ls_L_option=
    552   fi
    553   as_test_x='
    554     eval sh -c '\''
    555       if test -d "$1"; then
    556 	test -d "$1/.";
    557       else
    558 	case $1 in
    559 	-*)set "./$1";;
    560 	esac;
    561 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    562 	???[sx]*):;;*)false;;esac;fi
    563     '\'' sh
    564   '
    565 fi
    566 as_executable_p=$as_test_x
    567 
    568 # Sed expression to map a string onto a valid CPP name.
    569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    570 
    571 # Sed expression to map a string onto a valid variable name.
    572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    573 
    574 
    575 
    576 exec 7<&0 </dev/null 6>&1
    577 
    578 # Name of the host.
    579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    580 # so uname gets run too.
    581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    582 
    583 #
    584 # Initializations.
    585 #
    586 ac_default_prefix=/usr/local
    587 ac_clean_files=
    588 ac_config_libobj_dir=.
    589 LIBOBJS=
    590 cross_compiling=no
    591 subdirs=
    592 MFLAGS=
    593 MAKEFLAGS=
    594 SHELL=${CONFIG_SHELL-/bin/sh}
    595 
    596 # Identity of this package.
    597 PACKAGE_NAME='sed'
    598 PACKAGE_TARNAME='sed'
    599 PACKAGE_VERSION='4.2.1'
    600 PACKAGE_STRING='sed 4.2.1'
    601 PACKAGE_BUGREPORT='bug-gnu-utils@gnu.org'
    602 
    603 ac_unique_file="sed/sed.c"
    604 # Factoring default headers for most tests.
    605 ac_includes_default="\
    606 #include <stdio.h>
    607 #ifdef HAVE_SYS_TYPES_H
    608 # include <sys/types.h>
    609 #endif
    610 #ifdef HAVE_SYS_STAT_H
    611 # include <sys/stat.h>
    612 #endif
    613 #ifdef STDC_HEADERS
    614 # include <stdlib.h>
    615 # include <stddef.h>
    616 #else
    617 # ifdef HAVE_STDLIB_H
    618 #  include <stdlib.h>
    619 # endif
    620 #endif
    621 #ifdef HAVE_STRING_H
    622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    623 #  include <memory.h>
    624 # endif
    625 # include <string.h>
    626 #endif
    627 #ifdef HAVE_STRINGS_H
    628 # include <strings.h>
    629 #endif
    630 #ifdef HAVE_INTTYPES_H
    631 # include <inttypes.h>
    632 #endif
    633 #ifdef HAVE_STDINT_H
    634 # include <stdint.h>
    635 #endif
    636 #ifdef HAVE_UNISTD_H
    637 # include <unistd.h>
    638 #endif"
    639 
    640 ac_func_list=
    641 ac_header_list=
    642 gt_needs=
    643 ac_subst_vars='gltests_LTLIBOBJS
    644 gltests_LIBOBJS
    645 gl_LTLIBOBJS
    646 gl_LIBOBJS
    647 LTLIBOBJS
    648 LIBOBJS
    649 XFAIL_TESTS
    650 TEST_REGEX_FALSE
    651 TEST_REGEX_TRUE
    652 POSUB
    653 INTLLIBS
    654 LTLIBICONV
    655 LIBICONV
    656 INTL_MACOSX_LIBS
    657 XGETTEXT_EXTRA_OPTIONS
    658 MSGMERGE
    659 XGETTEXT_015
    660 XGETTEXT
    661 GMSGFMT_015
    662 MSGFMT_015
    663 GMSGFMT
    664 MSGFMT
    665 GETTEXT_MACRO_VERSION
    666 USE_NLS
    667 LIBSED_LTLIBDEPS
    668 LIBSED_LIBDEPS
    669 REPLACE_ISWCNTRL
    670 WCTYPE_H
    671 HAVE_WCTYPE_H
    672 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
    673 NEXT_WCTYPE_H
    674 HAVE_ISWCNTRL
    675 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
    676 NEXT_WCHAR_H
    677 HAVE_WCHAR_H
    678 HAVE_WINT_T
    679 HAVE_UNISTD_H
    680 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
    681 NEXT_UNISTD_H
    682 SYS_STAT_H
    683 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
    684 NEXT_SYS_STAT_H
    685 HAVE_LSTAT
    686 NEXT_AS_FIRST_DIRECTIVE_STRING_H
    687 NEXT_STRING_H
    688 HAVE_RANDOM_H
    689 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
    690 NEXT_STDLIB_H
    691 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
    692 NEXT_STDIO_H
    693 STDINT_H
    694 WINT_T_SUFFIX
    695 WCHAR_T_SUFFIX
    696 SIG_ATOMIC_T_SUFFIX
    697 SIZE_T_SUFFIX
    698 PTRDIFF_T_SUFFIX
    699 HAVE_SIGNED_WINT_T
    700 HAVE_SIGNED_WCHAR_T
    701 HAVE_SIGNED_SIG_ATOMIC_T
    702 BITSIZEOF_WINT_T
    703 BITSIZEOF_WCHAR_T
    704 BITSIZEOF_SIG_ATOMIC_T
    705 BITSIZEOF_SIZE_T
    706 BITSIZEOF_PTRDIFF_T
    707 HAVE_SYS_BITYPES_H
    708 HAVE_SYS_INTTYPES_H
    709 HAVE_STDINT_H
    710 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
    711 NEXT_STDINT_H
    712 HAVE_SYS_TYPES_H
    713 HAVE_INTTYPES_H
    714 HAVE_UNSIGNED_LONG_LONG_INT
    715 HAVE_LONG_LONG_INT
    716 HAVE__BOOL
    717 STDBOOL_H
    718 SELINUX_CONTEXT_H
    719 SELINUX_SELINUX_H
    720 LIB_SELINUX
    721 APPLE_UNIVERSAL_BUILD
    722 REPLACE_STRSIGNAL
    723 REPLACE_STRERROR
    724 REPLACE_STRCASESTR
    725 REPLACE_STRSTR
    726 REPLACE_STRDUP
    727 REPLACE_MEMMEM
    728 REPLACE_MEMCHR
    729 HAVE_STRVERSCMP
    730 HAVE_DECL_STRSIGNAL
    731 HAVE_DECL_STRERROR
    732 HAVE_DECL_STRTOK_R
    733 HAVE_STRCASESTR
    734 HAVE_STRSEP
    735 HAVE_STRPBRK
    736 HAVE_DECL_STRNLEN
    737 HAVE_DECL_STRNDUP
    738 HAVE_STRNDUP
    739 HAVE_DECL_STRDUP
    740 HAVE_STRCHRNUL
    741 HAVE_STPNCPY
    742 HAVE_STPCPY
    743 HAVE_RAWMEMCHR
    744 HAVE_DECL_MEMRCHR
    745 HAVE_MEMPCPY
    746 HAVE_DECL_MEMMEM
    747 GNULIB_STRVERSCMP
    748 GNULIB_STRSIGNAL
    749 GNULIB_STRERROR
    750 GNULIB_MBSTOK_R
    751 GNULIB_MBSSEP
    752 GNULIB_MBSSPN
    753 GNULIB_MBSPBRK
    754 GNULIB_MBSCSPN
    755 GNULIB_MBSCASESTR
    756 GNULIB_MBSPCASECMP
    757 GNULIB_MBSNCASECMP
    758 GNULIB_MBSCASECMP
    759 GNULIB_MBSSTR
    760 GNULIB_MBSRCHR
    761 GNULIB_MBSCHR
    762 GNULIB_MBSNLEN
    763 GNULIB_MBSLEN
    764 GNULIB_STRTOK_R
    765 GNULIB_STRCASESTR
    766 GNULIB_STRSTR
    767 GNULIB_STRSEP
    768 GNULIB_STRPBRK
    769 GNULIB_STRNLEN
    770 GNULIB_STRNDUP
    771 GNULIB_STRDUP
    772 GNULIB_STRCHRNUL
    773 GNULIB_STPNCPY
    774 GNULIB_STPCPY
    775 GNULIB_RAWMEMCHR
    776 GNULIB_MEMRCHR
    777 GNULIB_MEMPCPY
    778 GNULIB_MEMMEM
    779 GNULIB_MEMCHR
    780 LOCALE_FR_UTF8
    781 LOCALE_ZH_CN
    782 LOCALE_JA
    783 VOID_UNSETENV
    784 REPLACE_STRTOD
    785 REPLACE_PUTENV
    786 REPLACE_MKSTEMP
    787 HAVE_DECL_GETLOADAVG
    788 HAVE_UNSETENV
    789 HAVE_SYS_LOADAVG_H
    790 HAVE_STRUCT_RANDOM_DATA
    791 HAVE_STRTOULL
    792 HAVE_STRTOLL
    793 HAVE_STRTOD
    794 HAVE_SETENV
    795 HAVE_RPMATCH
    796 HAVE_RANDOM_R
    797 HAVE_REALLOC_POSIX
    798 HAVE_MKDTEMP
    799 HAVE_GETSUBOPT
    800 HAVE_CALLOC_POSIX
    801 HAVE_ATOLL
    802 GNULIB_UNSETENV
    803 GNULIB_STRTOULL
    804 GNULIB_STRTOLL
    805 GNULIB_STRTOD
    806 GNULIB_SETENV
    807 GNULIB_RPMATCH
    808 GNULIB_RANDOM_R
    809 GNULIB_PUTENV
    810 GNULIB_MKSTEMP
    811 GNULIB_MKDTEMP
    812 GNULIB_GETSUBOPT
    813 GNULIB_GETLOADAVG
    814 GNULIB_ATOLL
    815 GNULIB_CALLOC_POSIX
    816 GNULIB_REALLOC_POSIX
    817 GNULIB_MALLOC_POSIX
    818 HAVE_MALLOC_POSIX
    819 REPLACE_MKDIR
    820 REPLACE_LSTAT
    821 HAVE_LCHMOD
    822 GNULIB_LSTAT
    823 GNULIB_LCHMOD
    824 LOCALCHARSET_TESTS_ENVIRONMENT
    825 GLIBC21
    826 SYS_TIME_H
    827 REPLACE_GETTIMEOFDAY
    828 HAVE_STRUCT_TIMEVAL
    829 HAVE_SYS_TIME_H
    830 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
    831 NEXT_SYS_TIME_H
    832 LTLIBINTL
    833 LIBINTL
    834 UNISTD_H_HAVE_WINSOCK2_H
    835 REPLACE_WRITE
    836 REPLACE_LSEEK
    837 REPLACE_LCHOWN
    838 REPLACE_GETPAGESIZE
    839 REPLACE_GETCWD
    840 REPLACE_FCHDIR
    841 REPLACE_CLOSE
    842 REPLACE_CHOWN
    843 HAVE_SYS_PARAM_H
    844 HAVE_OS_H
    845 HAVE_DECL_GETLOGIN_R
    846 HAVE_DECL_ENVIRON
    847 HAVE_SLEEP
    848 HAVE_READLINK
    849 HAVE_LINK
    850 HAVE_GETUSERSHELL
    851 HAVE_GETPAGESIZE
    852 HAVE_GETHOSTNAME
    853 HAVE_GETDTABLESIZE
    854 HAVE_GETDOMAINNAME
    855 HAVE_FTRUNCATE
    856 HAVE_FSYNC
    857 HAVE_EUIDACCESS
    858 HAVE_DUP2
    859 GNULIB_WRITE
    860 GNULIB_UNISTD_H_SIGPIPE
    861 GNULIB_SLEEP
    862 GNULIB_READLINK
    863 GNULIB_LSEEK
    864 GNULIB_LINK
    865 GNULIB_LCHOWN
    866 GNULIB_GETUSERSHELL
    867 GNULIB_GETPAGESIZE
    868 GNULIB_GETLOGIN_R
    869 GNULIB_GETHOSTNAME
    870 GNULIB_GETDTABLESIZE
    871 GNULIB_GETDOMAINNAME
    872 GNULIB_GETCWD
    873 GNULIB_FTRUNCATE
    874 GNULIB_FSYNC
    875 GNULIB_FCHDIR
    876 GNULIB_EUIDACCESS
    877 GNULIB_ENVIRON
    878 GNULIB_DUP2
    879 GNULIB_CLOSE
    880 GNULIB_CHOWN
    881 GETOPT_H
    882 REPLACE_PERROR
    883 REPLACE_GETLINE
    884 HAVE_DECL_GETLINE
    885 HAVE_DECL_GETDELIM
    886 REPLACE_FCLOSE
    887 HAVE_DECL_FPURGE
    888 REPLACE_FPURGE
    889 REPLACE_FFLUSH
    890 REPLACE_FTELL
    891 REPLACE_FTELLO
    892 HAVE_FTELLO
    893 REPLACE_FSEEK
    894 REPLACE_FSEEKO
    895 HAVE_FSEEKO
    896 REPLACE_FREOPEN
    897 REPLACE_FOPEN
    898 REPLACE_OBSTACK_PRINTF
    899 HAVE_DECL_OBSTACK_PRINTF
    900 REPLACE_VASPRINTF
    901 HAVE_VASPRINTF
    902 REPLACE_VDPRINTF
    903 HAVE_VDPRINTF
    904 REPLACE_DPRINTF
    905 HAVE_DPRINTF
    906 REPLACE_VSPRINTF
    907 REPLACE_SPRINTF
    908 HAVE_DECL_VSNPRINTF
    909 REPLACE_VSNPRINTF
    910 HAVE_DECL_SNPRINTF
    911 REPLACE_SNPRINTF
    912 REPLACE_VPRINTF
    913 REPLACE_PRINTF
    914 REPLACE_VFPRINTF
    915 REPLACE_FPRINTF
    916 REPLACE_STDIO_WRITE_FUNCS
    917 GNULIB_STDIO_H_SIGPIPE
    918 GNULIB_PERROR
    919 GNULIB_GETLINE
    920 GNULIB_GETDELIM
    921 GNULIB_FWRITE
    922 GNULIB_PUTS
    923 GNULIB_FPUTS
    924 GNULIB_PUTCHAR
    925 GNULIB_PUTC
    926 GNULIB_FPUTC
    927 GNULIB_FCLOSE
    928 GNULIB_FPURGE
    929 GNULIB_FFLUSH
    930 GNULIB_FTELLO
    931 GNULIB_FTELL
    932 GNULIB_FSEEKO
    933 GNULIB_FSEEK
    934 GNULIB_FREOPEN
    935 GNULIB_FOPEN
    936 GNULIB_OBSTACK_PRINTF_POSIX
    937 GNULIB_OBSTACK_PRINTF
    938 GNULIB_VASPRINTF
    939 GNULIB_VDPRINTF
    940 GNULIB_DPRINTF
    941 GNULIB_VSPRINTF_POSIX
    942 GNULIB_VSNPRINTF
    943 GNULIB_VPRINTF_POSIX
    944 GNULIB_VPRINTF
    945 GNULIB_VFPRINTF_POSIX
    946 GNULIB_VFPRINTF
    947 GNULIB_SPRINTF_POSIX
    948 GNULIB_SNPRINTF
    949 GNULIB_PRINTF_POSIX
    950 GNULIB_PRINTF
    951 GNULIB_FPRINTF_POSIX
    952 GNULIB_FPRINTF
    953 EOVERFLOW_VALUE
    954 EOVERFLOW_HIDDEN
    955 ENOLINK_VALUE
    956 ENOLINK_HIDDEN
    957 EMULTIHOP_VALUE
    958 EMULTIHOP_HIDDEN
    959 ERRNO_H
    960 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
    961 NEXT_ERRNO_H
    962 PRAGMA_SYSTEM_HEADER
    963 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
    964 INCLUDE_NEXT
    965 LOCALE_FR
    966 WCHAR_H
    967 REPLACE_WCWIDTH
    968 REPLACE_WCSNRTOMBS
    969 REPLACE_WCSRTOMBS
    970 REPLACE_WCRTOMB
    971 REPLACE_MBSNRTOWCS
    972 REPLACE_MBSRTOWCS
    973 REPLACE_MBRLEN
    974 REPLACE_MBRTOWC
    975 REPLACE_MBSINIT
    976 REPLACE_WCTOB
    977 REPLACE_BTOWC
    978 REPLACE_MBSTATE_T
    979 HAVE_DECL_WCWIDTH
    980 HAVE_DECL_WCTOB
    981 HAVE_WCSNRTOMBS
    982 HAVE_WCSRTOMBS
    983 HAVE_WCRTOMB
    984 HAVE_MBSNRTOWCS
    985 HAVE_MBSRTOWCS
    986 HAVE_MBRLEN
    987 HAVE_MBRTOWC
    988 HAVE_MBSINIT
    989 HAVE_BTOWC
    990 GNULIB_WCWIDTH
    991 GNULIB_WCSNRTOMBS
    992 GNULIB_WCSRTOMBS
    993 GNULIB_WCRTOMB
    994 GNULIB_MBSNRTOWCS
    995 GNULIB_MBSRTOWCS
    996 GNULIB_MBRLEN
    997 GNULIB_MBRTOWC
    998 GNULIB_MBSINIT
    999 GNULIB_WCTOB
   1000 GNULIB_BTOWC
   1001 ALLOCA_H
   1002 ALLOCA
   1003 USE_ACL
   1004 LIB_ACL
   1005 GL_COND_LIBTOOL_FALSE
   1006 GL_COND_LIBTOOL_TRUE
   1007 EGREP
   1008 GREP
   1009 CPP
   1010 host_os
   1011 host_vendor
   1012 host_cpu
   1013 host
   1014 build_os
   1015 build_vendor
   1016 build_cpu
   1017 build
   1018 RANLIB
   1019 am__fastdepCC_FALSE
   1020 am__fastdepCC_TRUE
   1021 CCDEPMODE
   1022 AMDEPBACKSLASH
   1023 AMDEP_FALSE
   1024 AMDEP_TRUE
   1025 am__quote
   1026 am__include
   1027 DEPDIR
   1028 OBJEXT
   1029 EXEEXT
   1030 ac_ct_CC
   1031 CPPFLAGS
   1032 LDFLAGS
   1033 CFLAGS
   1034 CC
   1035 COPYRIGHT_YEAR
   1036 SED_FEATURE_VERSION
   1037 am__untar
   1038 am__tar
   1039 AMTAR
   1040 am__leading_dot
   1041 SET_MAKE
   1042 AWK
   1043 mkdir_p
   1044 MKDIR_P
   1045 INSTALL_STRIP_PROGRAM
   1046 STRIP
   1047 install_sh
   1048 MAKEINFO
   1049 AUTOHEADER
   1050 AUTOMAKE
   1051 AUTOCONF
   1052 ACLOCAL
   1053 VERSION
   1054 PACKAGE
   1055 CYGPATH_W
   1056 am__isrc
   1057 INSTALL_DATA
   1058 INSTALL_SCRIPT
   1059 INSTALL_PROGRAM
   1060 target_alias
   1061 host_alias
   1062 build_alias
   1063 LIBS
   1064 ECHO_T
   1065 ECHO_N
   1066 ECHO_C
   1067 DEFS
   1068 mandir
   1069 localedir
   1070 libdir
   1071 psdir
   1072 pdfdir
   1073 dvidir
   1074 htmldir
   1075 infodir
   1076 docdir
   1077 oldincludedir
   1078 includedir
   1079 localstatedir
   1080 sharedstatedir
   1081 sysconfdir
   1082 datadir
   1083 datarootdir
   1084 libexecdir
   1085 sbindir
   1086 bindir
   1087 program_transform_name
   1088 prefix
   1089 exec_prefix
   1090 PACKAGE_BUGREPORT
   1091 PACKAGE_STRING
   1092 PACKAGE_VERSION
   1093 PACKAGE_TARNAME
   1094 PACKAGE_NAME
   1095 PATH_SEPARATOR
   1096 SHELL'
   1097 ac_subst_files=''
   1098 ac_user_opts='
   1099 enable_option_checking
   1100 enable_dependency_tracking
   1101 enable_acl
   1102 enable_largefile
   1103 with_included_regex
   1104 enable_nls
   1105 with_gnu_ld
   1106 enable_rpath
   1107 with_libiconv_prefix
   1108 with_libintl_prefix
   1109 enable_i18n
   1110 enable_regex_tests
   1111 '
   1112       ac_precious_vars='build_alias
   1113 host_alias
   1114 target_alias
   1115 CC
   1116 CFLAGS
   1117 LDFLAGS
   1118 LIBS
   1119 CPPFLAGS
   1120 CPP'
   1121 
   1122 
   1123 # Initialize some variables set by options.
   1124 ac_init_help=
   1125 ac_init_version=false
   1126 ac_unrecognized_opts=
   1127 ac_unrecognized_sep=
   1128 # The variables have the same names as the options, with
   1129 # dashes changed to underlines.
   1130 cache_file=/dev/null
   1131 exec_prefix=NONE
   1132 no_create=
   1133 no_recursion=
   1134 prefix=NONE
   1135 program_prefix=NONE
   1136 program_suffix=NONE
   1137 program_transform_name=s,x,x,
   1138 silent=
   1139 site=
   1140 srcdir=
   1141 verbose=
   1142 x_includes=NONE
   1143 x_libraries=NONE
   1144 
   1145 # Installation directory options.
   1146 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1147 # and all the variables that are supposed to be based on exec_prefix
   1148 # by default will actually change.
   1149 # Use braces instead of parens because sh, perl, etc. also accept them.
   1150 # (The list follows the same order as the GNU Coding Standards.)
   1151 bindir='${exec_prefix}/bin'
   1152 sbindir='${exec_prefix}/sbin'
   1153 libexecdir='${exec_prefix}/libexec'
   1154 datarootdir='${prefix}/share'
   1155 datadir='${datarootdir}'
   1156 sysconfdir='${prefix}/etc'
   1157 sharedstatedir='${prefix}/com'
   1158 localstatedir='${prefix}/var'
   1159 includedir='${prefix}/include'
   1160 oldincludedir='/usr/include'
   1161 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1162 infodir='${datarootdir}/info'
   1163 htmldir='${docdir}'
   1164 dvidir='${docdir}'
   1165 pdfdir='${docdir}'
   1166 psdir='${docdir}'
   1167 libdir='${exec_prefix}/lib'
   1168 localedir='${datarootdir}/locale'
   1169 mandir='${datarootdir}/man'
   1170 
   1171 ac_prev=
   1172 ac_dashdash=
   1173 for ac_option
   1174 do
   1175   # If the previous option needs an argument, assign it.
   1176   if test -n "$ac_prev"; then
   1177     eval $ac_prev=\$ac_option
   1178     ac_prev=
   1179     continue
   1180   fi
   1181 
   1182   case $ac_option in
   1183   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1184   *)	ac_optarg=yes ;;
   1185   esac
   1186 
   1187   # Accept the important Cygnus configure options, so we can diagnose typos.
   1188 
   1189   case $ac_dashdash$ac_option in
   1190   --)
   1191     ac_dashdash=yes ;;
   1192 
   1193   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1194     ac_prev=bindir ;;
   1195   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1196     bindir=$ac_optarg ;;
   1197 
   1198   -build | --build | --buil | --bui | --bu)
   1199     ac_prev=build_alias ;;
   1200   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1201     build_alias=$ac_optarg ;;
   1202 
   1203   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1204   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1205     ac_prev=cache_file ;;
   1206   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1207   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1208     cache_file=$ac_optarg ;;
   1209 
   1210   --config-cache | -C)
   1211     cache_file=config.cache ;;
   1212 
   1213   -datadir | --datadir | --datadi | --datad)
   1214     ac_prev=datadir ;;
   1215   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1216     datadir=$ac_optarg ;;
   1217 
   1218   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1219   | --dataroo | --dataro | --datar)
   1220     ac_prev=datarootdir ;;
   1221   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1222   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1223     datarootdir=$ac_optarg ;;
   1224 
   1225   -disable-* | --disable-*)
   1226     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1227     # Reject names that are not valid shell variable names.
   1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1229       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   1230    { (exit 1); exit 1; }; }
   1231     ac_useropt_orig=$ac_useropt
   1232     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1233     case $ac_user_opts in
   1234       *"
   1235 "enable_$ac_useropt"
   1236 "*) ;;
   1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1238 	 ac_unrecognized_sep=', ';;
   1239     esac
   1240     eval enable_$ac_useropt=no ;;
   1241 
   1242   -docdir | --docdir | --docdi | --doc | --do)
   1243     ac_prev=docdir ;;
   1244   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1245     docdir=$ac_optarg ;;
   1246 
   1247   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1248     ac_prev=dvidir ;;
   1249   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1250     dvidir=$ac_optarg ;;
   1251 
   1252   -enable-* | --enable-*)
   1253     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1254     # Reject names that are not valid shell variable names.
   1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1256       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   1257    { (exit 1); exit 1; }; }
   1258     ac_useropt_orig=$ac_useropt
   1259     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1260     case $ac_user_opts in
   1261       *"
   1262 "enable_$ac_useropt"
   1263 "*) ;;
   1264       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1265 	 ac_unrecognized_sep=', ';;
   1266     esac
   1267     eval enable_$ac_useropt=\$ac_optarg ;;
   1268 
   1269   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1270   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1271   | --exec | --exe | --ex)
   1272     ac_prev=exec_prefix ;;
   1273   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1274   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1275   | --exec=* | --exe=* | --ex=*)
   1276     exec_prefix=$ac_optarg ;;
   1277 
   1278   -gas | --gas | --ga | --g)
   1279     # Obsolete; use --with-gas.
   1280     with_gas=yes ;;
   1281 
   1282   -help | --help | --hel | --he | -h)
   1283     ac_init_help=long ;;
   1284   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1285     ac_init_help=recursive ;;
   1286   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1287     ac_init_help=short ;;
   1288 
   1289   -host | --host | --hos | --ho)
   1290     ac_prev=host_alias ;;
   1291   -host=* | --host=* | --hos=* | --ho=*)
   1292     host_alias=$ac_optarg ;;
   1293 
   1294   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1295     ac_prev=htmldir ;;
   1296   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1297   | --ht=*)
   1298     htmldir=$ac_optarg ;;
   1299 
   1300   -includedir | --includedir | --includedi | --included | --include \
   1301   | --includ | --inclu | --incl | --inc)
   1302     ac_prev=includedir ;;
   1303   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1304   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1305     includedir=$ac_optarg ;;
   1306 
   1307   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1308     ac_prev=infodir ;;
   1309   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1310     infodir=$ac_optarg ;;
   1311 
   1312   -libdir | --libdir | --libdi | --libd)
   1313     ac_prev=libdir ;;
   1314   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1315     libdir=$ac_optarg ;;
   1316 
   1317   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1318   | --libexe | --libex | --libe)
   1319     ac_prev=libexecdir ;;
   1320   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1321   | --libexe=* | --libex=* | --libe=*)
   1322     libexecdir=$ac_optarg ;;
   1323 
   1324   -localedir | --localedir | --localedi | --localed | --locale)
   1325     ac_prev=localedir ;;
   1326   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1327     localedir=$ac_optarg ;;
   1328 
   1329   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1330   | --localstate | --localstat | --localsta | --localst | --locals)
   1331     ac_prev=localstatedir ;;
   1332   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1333   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1334     localstatedir=$ac_optarg ;;
   1335 
   1336   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1337     ac_prev=mandir ;;
   1338   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1339     mandir=$ac_optarg ;;
   1340 
   1341   -nfp | --nfp | --nf)
   1342     # Obsolete; use --without-fp.
   1343     with_fp=no ;;
   1344 
   1345   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1346   | --no-cr | --no-c | -n)
   1347     no_create=yes ;;
   1348 
   1349   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1350   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1351     no_recursion=yes ;;
   1352 
   1353   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1354   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1355   | --oldin | --oldi | --old | --ol | --o)
   1356     ac_prev=oldincludedir ;;
   1357   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1358   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1359   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1360     oldincludedir=$ac_optarg ;;
   1361 
   1362   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1363     ac_prev=prefix ;;
   1364   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1365     prefix=$ac_optarg ;;
   1366 
   1367   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1368   | --program-pre | --program-pr | --program-p)
   1369     ac_prev=program_prefix ;;
   1370   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1371   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1372     program_prefix=$ac_optarg ;;
   1373 
   1374   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1375   | --program-suf | --program-su | --program-s)
   1376     ac_prev=program_suffix ;;
   1377   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1378   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1379     program_suffix=$ac_optarg ;;
   1380 
   1381   -program-transform-name | --program-transform-name \
   1382   | --program-transform-nam | --program-transform-na \
   1383   | --program-transform-n | --program-transform- \
   1384   | --program-transform | --program-transfor \
   1385   | --program-transfo | --program-transf \
   1386   | --program-trans | --program-tran \
   1387   | --progr-tra | --program-tr | --program-t)
   1388     ac_prev=program_transform_name ;;
   1389   -program-transform-name=* | --program-transform-name=* \
   1390   | --program-transform-nam=* | --program-transform-na=* \
   1391   | --program-transform-n=* | --program-transform-=* \
   1392   | --program-transform=* | --program-transfor=* \
   1393   | --program-transfo=* | --program-transf=* \
   1394   | --program-trans=* | --program-tran=* \
   1395   | --progr-tra=* | --program-tr=* | --program-t=*)
   1396     program_transform_name=$ac_optarg ;;
   1397 
   1398   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1399     ac_prev=pdfdir ;;
   1400   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1401     pdfdir=$ac_optarg ;;
   1402 
   1403   -psdir | --psdir | --psdi | --psd | --ps)
   1404     ac_prev=psdir ;;
   1405   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1406     psdir=$ac_optarg ;;
   1407 
   1408   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1409   | -silent | --silent | --silen | --sile | --sil)
   1410     silent=yes ;;
   1411 
   1412   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1413     ac_prev=sbindir ;;
   1414   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1415   | --sbi=* | --sb=*)
   1416     sbindir=$ac_optarg ;;
   1417 
   1418   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1419   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1420   | --sharedst | --shareds | --shared | --share | --shar \
   1421   | --sha | --sh)
   1422     ac_prev=sharedstatedir ;;
   1423   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1424   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1425   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1426   | --sha=* | --sh=*)
   1427     sharedstatedir=$ac_optarg ;;
   1428 
   1429   -site | --site | --sit)
   1430     ac_prev=site ;;
   1431   -site=* | --site=* | --sit=*)
   1432     site=$ac_optarg ;;
   1433 
   1434   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1435     ac_prev=srcdir ;;
   1436   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1437     srcdir=$ac_optarg ;;
   1438 
   1439   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1440   | --syscon | --sysco | --sysc | --sys | --sy)
   1441     ac_prev=sysconfdir ;;
   1442   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1443   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1444     sysconfdir=$ac_optarg ;;
   1445 
   1446   -target | --target | --targe | --targ | --tar | --ta | --t)
   1447     ac_prev=target_alias ;;
   1448   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1449     target_alias=$ac_optarg ;;
   1450 
   1451   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1452     verbose=yes ;;
   1453 
   1454   -version | --version | --versio | --versi | --vers | -V)
   1455     ac_init_version=: ;;
   1456 
   1457   -with-* | --with-*)
   1458     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1459     # Reject names that are not valid shell variable names.
   1460     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1461       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   1462    { (exit 1); exit 1; }; }
   1463     ac_useropt_orig=$ac_useropt
   1464     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1465     case $ac_user_opts in
   1466       *"
   1467 "with_$ac_useropt"
   1468 "*) ;;
   1469       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1470 	 ac_unrecognized_sep=', ';;
   1471     esac
   1472     eval with_$ac_useropt=\$ac_optarg ;;
   1473 
   1474   -without-* | --without-*)
   1475     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1476     # Reject names that are not valid shell variable names.
   1477     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1478       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   1479    { (exit 1); exit 1; }; }
   1480     ac_useropt_orig=$ac_useropt
   1481     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1482     case $ac_user_opts in
   1483       *"
   1484 "with_$ac_useropt"
   1485 "*) ;;
   1486       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1487 	 ac_unrecognized_sep=', ';;
   1488     esac
   1489     eval with_$ac_useropt=no ;;
   1490 
   1491   --x)
   1492     # Obsolete; use --with-x.
   1493     with_x=yes ;;
   1494 
   1495   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1496   | --x-incl | --x-inc | --x-in | --x-i)
   1497     ac_prev=x_includes ;;
   1498   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1499   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1500     x_includes=$ac_optarg ;;
   1501 
   1502   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1503   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1504     ac_prev=x_libraries ;;
   1505   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1506   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1507     x_libraries=$ac_optarg ;;
   1508 
   1509   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
   1510 Try \`$0 --help' for more information." >&2
   1511    { (exit 1); exit 1; }; }
   1512     ;;
   1513 
   1514   *=*)
   1515     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1516     # Reject names that are not valid shell variable names.
   1517     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1518       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1519    { (exit 1); exit 1; }; }
   1520     eval $ac_envvar=\$ac_optarg
   1521     export $ac_envvar ;;
   1522 
   1523   *)
   1524     # FIXME: should be removed in autoconf 3.0.
   1525     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1526     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1527       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1528     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1529     ;;
   1530 
   1531   esac
   1532 done
   1533 
   1534 if test -n "$ac_prev"; then
   1535   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1536   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
   1537    { (exit 1); exit 1; }; }
   1538 fi
   1539 
   1540 if test -n "$ac_unrecognized_opts"; then
   1541   case $enable_option_checking in
   1542     no) ;;
   1543     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
   1544    { (exit 1); exit 1; }; } ;;
   1545     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1546   esac
   1547 fi
   1548 
   1549 # Check all directory arguments for consistency.
   1550 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1551 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1552 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1553 		libdir localedir mandir
   1554 do
   1555   eval ac_val=\$$ac_var
   1556   # Remove trailing slashes.
   1557   case $ac_val in
   1558     */ )
   1559       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1560       eval $ac_var=\$ac_val;;
   1561   esac
   1562   # Be sure to have absolute directory names.
   1563   case $ac_val in
   1564     [\\/$]* | ?:[\\/]* )  continue;;
   1565     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1566   esac
   1567   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1568    { (exit 1); exit 1; }; }
   1569 done
   1570 
   1571 # There might be people who depend on the old broken behavior: `$host'
   1572 # used to hold the argument of --host etc.
   1573 # FIXME: To remove some day.
   1574 build=$build_alias
   1575 host=$host_alias
   1576 target=$target_alias
   1577 
   1578 # FIXME: To remove some day.
   1579 if test "x$host_alias" != x; then
   1580   if test "x$build_alias" = x; then
   1581     cross_compiling=maybe
   1582     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1583     If a cross compiler is detected then cross compile mode will be used." >&2
   1584   elif test "x$build_alias" != "x$host_alias"; then
   1585     cross_compiling=yes
   1586   fi
   1587 fi
   1588 
   1589 ac_tool_prefix=
   1590 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1591 
   1592 test "$silent" = yes && exec 6>/dev/null
   1593 
   1594 
   1595 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1596 ac_ls_di=`ls -di .` &&
   1597 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1598   { $as_echo "$as_me: error: working directory cannot be determined" >&2
   1599    { (exit 1); exit 1; }; }
   1600 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1601   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
   1602    { (exit 1); exit 1; }; }
   1603 
   1604 
   1605 # Find the source files, if location was not specified.
   1606 if test -z "$srcdir"; then
   1607   ac_srcdir_defaulted=yes
   1608   # Try the directory containing this script, then the parent directory.
   1609   ac_confdir=`$as_dirname -- "$as_myself" ||
   1610 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1611 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1612 	 X"$as_myself" : 'X\(//\)$' \| \
   1613 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1614 $as_echo X"$as_myself" |
   1615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1616 	    s//\1/
   1617 	    q
   1618 	  }
   1619 	  /^X\(\/\/\)[^/].*/{
   1620 	    s//\1/
   1621 	    q
   1622 	  }
   1623 	  /^X\(\/\/\)$/{
   1624 	    s//\1/
   1625 	    q
   1626 	  }
   1627 	  /^X\(\/\).*/{
   1628 	    s//\1/
   1629 	    q
   1630 	  }
   1631 	  s/.*/./; q'`
   1632   srcdir=$ac_confdir
   1633   if test ! -r "$srcdir/$ac_unique_file"; then
   1634     srcdir=..
   1635   fi
   1636 else
   1637   ac_srcdir_defaulted=no
   1638 fi
   1639 if test ! -r "$srcdir/$ac_unique_file"; then
   1640   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1641   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1642    { (exit 1); exit 1; }; }
   1643 fi
   1644 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1645 ac_abs_confdir=`(
   1646 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
   1647    { (exit 1); exit 1; }; }
   1648 	pwd)`
   1649 # When building in place, set srcdir=.
   1650 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1651   srcdir=.
   1652 fi
   1653 # Remove unnecessary trailing slashes from srcdir.
   1654 # Double slashes in file names in object file debugging info
   1655 # mess up M-x gdb in Emacs.
   1656 case $srcdir in
   1657 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1658 esac
   1659 for ac_var in $ac_precious_vars; do
   1660   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1661   eval ac_env_${ac_var}_value=\$${ac_var}
   1662   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1663   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1664 done
   1665 
   1666 #
   1667 # Report the --help message.
   1668 #
   1669 if test "$ac_init_help" = "long"; then
   1670   # Omit some internal or obsolete options to make the list less imposing.
   1671   # This message is too long to be a string in the A/UX 3.1 sh.
   1672   cat <<_ACEOF
   1673 \`configure' configures sed 4.2.1 to adapt to many kinds of systems.
   1674 
   1675 Usage: $0 [OPTION]... [VAR=VALUE]...
   1676 
   1677 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1678 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1679 
   1680 Defaults for the options are specified in brackets.
   1681 
   1682 Configuration:
   1683   -h, --help              display this help and exit
   1684       --help=short        display options specific to this package
   1685       --help=recursive    display the short help of all the included packages
   1686   -V, --version           display version information and exit
   1687   -q, --quiet, --silent   do not print \`checking...' messages
   1688       --cache-file=FILE   cache test results in FILE [disabled]
   1689   -C, --config-cache      alias for \`--cache-file=config.cache'
   1690   -n, --no-create         do not create output files
   1691       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1692 
   1693 Installation directories:
   1694   --prefix=PREFIX         install architecture-independent files in PREFIX
   1695                           [$ac_default_prefix]
   1696   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1697                           [PREFIX]
   1698 
   1699 By default, \`make install' will install all the files in
   1700 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1701 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1702 for instance \`--prefix=\$HOME'.
   1703 
   1704 For better control, use the options below.
   1705 
   1706 Fine tuning of the installation directories:
   1707   --bindir=DIR            user executables [EPREFIX/bin]
   1708   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1709   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1710   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1711   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1712   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1713   --libdir=DIR            object code libraries [EPREFIX/lib]
   1714   --includedir=DIR        C header files [PREFIX/include]
   1715   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1716   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1717   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1718   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1719   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1720   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1721   --docdir=DIR            documentation root [DATAROOTDIR/doc/sed]
   1722   --htmldir=DIR           html documentation [DOCDIR]
   1723   --dvidir=DIR            dvi documentation [DOCDIR]
   1724   --pdfdir=DIR            pdf documentation [DOCDIR]
   1725   --psdir=DIR             ps documentation [DOCDIR]
   1726 _ACEOF
   1727 
   1728   cat <<\_ACEOF
   1729 
   1730 Program names:
   1731   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1732   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1733   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1734 
   1735 System types:
   1736   --build=BUILD     configure for building on BUILD [guessed]
   1737   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1738 _ACEOF
   1739 fi
   1740 
   1741 if test -n "$ac_init_help"; then
   1742   case $ac_init_help in
   1743      short | recursive ) echo "Configuration of sed 4.2.1:";;
   1744    esac
   1745   cat <<\_ACEOF
   1746 
   1747 Optional Features:
   1748   --disable-option-checking  ignore unrecognized --enable/--with options
   1749   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1750   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1751   --disable-dependency-tracking  speeds up one-time build
   1752   --enable-dependency-tracking   do not reject slow dependency extractors
   1753   --disable-acl           do not support ACLs
   1754   --disable-largefile     omit support for large files
   1755   --disable-nls           do not use Native Language Support
   1756   --disable-rpath         do not hardcode runtime library paths
   1757   --disable-i18n          disable internationalization (default=enabled)
   1758   --enable-regex-tests    enable regex matcher regression tests (default=yes)
   1759 
   1760 Optional Packages:
   1761   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1762   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1763   --without-included-regex
   1764                           don't compile regex; this is the default on systems
   1765                           with recent-enough versions of the GNU C Library
   1766                           (use with caution on other systems).
   1767   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1768   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1769   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1770   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
   1771   --without-libintl-prefix     don't search for libintl in includedir and libdir
   1772 
   1773 Some influential environment variables:
   1774   CC          C compiler command
   1775   CFLAGS      C compiler flags
   1776   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1777               nonstandard directory <lib dir>
   1778   LIBS        libraries to pass to the linker, e.g. -l<library>
   1779   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1780               you have headers in a nonstandard directory <include dir>
   1781   CPP         C preprocessor
   1782 
   1783 Use these variables to override the choices made by `configure' or to help
   1784 it to find libraries and programs with nonstandard names/locations.
   1785 
   1786 Report bugs to <bug-gnu-utils (at] gnu.org>.
   1787 _ACEOF
   1788 ac_status=$?
   1789 fi
   1790 
   1791 if test "$ac_init_help" = "recursive"; then
   1792   # If there are subdirs, report their specific --help.
   1793   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1794     test -d "$ac_dir" ||
   1795       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1796       continue
   1797     ac_builddir=.
   1798 
   1799 case "$ac_dir" in
   1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1801 *)
   1802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1803   # A ".." for each directory in $ac_dir_suffix.
   1804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1805   case $ac_top_builddir_sub in
   1806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1808   esac ;;
   1809 esac
   1810 ac_abs_top_builddir=$ac_pwd
   1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1812 # for backward compatibility:
   1813 ac_top_builddir=$ac_top_build_prefix
   1814 
   1815 case $srcdir in
   1816   .)  # We are building in place.
   1817     ac_srcdir=.
   1818     ac_top_srcdir=$ac_top_builddir_sub
   1819     ac_abs_top_srcdir=$ac_pwd ;;
   1820   [\\/]* | ?:[\\/]* )  # Absolute name.
   1821     ac_srcdir=$srcdir$ac_dir_suffix;
   1822     ac_top_srcdir=$srcdir
   1823     ac_abs_top_srcdir=$srcdir ;;
   1824   *) # Relative name.
   1825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1826     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1828 esac
   1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1830 
   1831     cd "$ac_dir" || { ac_status=$?; continue; }
   1832     # Check for guested configure.
   1833     if test -f "$ac_srcdir/configure.gnu"; then
   1834       echo &&
   1835       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1836     elif test -f "$ac_srcdir/configure"; then
   1837       echo &&
   1838       $SHELL "$ac_srcdir/configure" --help=recursive
   1839     else
   1840       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1841     fi || ac_status=$?
   1842     cd "$ac_pwd" || { ac_status=$?; break; }
   1843   done
   1844 fi
   1845 
   1846 test -n "$ac_init_help" && exit $ac_status
   1847 if $ac_init_version; then
   1848   cat <<\_ACEOF
   1849 sed configure 4.2.1
   1850 generated by GNU Autoconf 2.63
   1851 
   1852 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1853 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
   1854 This configure script is free software; the Free Software Foundation
   1855 gives unlimited permission to copy, distribute and modify it.
   1856 _ACEOF
   1857   exit
   1858 fi
   1859 cat >config.log <<_ACEOF
   1860 This file contains any messages produced by compilers while
   1861 running configure, to aid debugging if configure makes a mistake.
   1862 
   1863 It was created by sed $as_me 4.2.1, which was
   1864 generated by GNU Autoconf 2.63.  Invocation command line was
   1865 
   1866   $ $0 $@
   1867 
   1868 _ACEOF
   1869 exec 5>>config.log
   1870 {
   1871 cat <<_ASUNAME
   1872 ## --------- ##
   1873 ## Platform. ##
   1874 ## --------- ##
   1875 
   1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1881 
   1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1883 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1884 
   1885 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1886 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1888 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1889 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1890 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1891 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1892 
   1893 _ASUNAME
   1894 
   1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1896 for as_dir in $PATH
   1897 do
   1898   IFS=$as_save_IFS
   1899   test -z "$as_dir" && as_dir=.
   1900   $as_echo "PATH: $as_dir"
   1901 done
   1902 IFS=$as_save_IFS
   1903 
   1904 } >&5
   1905 
   1906 cat >&5 <<_ACEOF
   1907 
   1908 
   1909 ## ----------- ##
   1910 ## Core tests. ##
   1911 ## ----------- ##
   1912 
   1913 _ACEOF
   1914 
   1915 
   1916 # Keep a trace of the command line.
   1917 # Strip out --no-create and --no-recursion so they do not pile up.
   1918 # Strip out --silent because we don't want to record it for future runs.
   1919 # Also quote any args containing shell meta-characters.
   1920 # Make two passes to allow for proper duplicate-argument suppression.
   1921 ac_configure_args=
   1922 ac_configure_args0=
   1923 ac_configure_args1=
   1924 ac_must_keep_next=false
   1925 for ac_pass in 1 2
   1926 do
   1927   for ac_arg
   1928   do
   1929     case $ac_arg in
   1930     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1931     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1932     | -silent | --silent | --silen | --sile | --sil)
   1933       continue ;;
   1934     *\'*)
   1935       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1936     esac
   1937     case $ac_pass in
   1938     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1939     2)
   1940       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1941       if test $ac_must_keep_next = true; then
   1942 	ac_must_keep_next=false # Got value, back to normal.
   1943       else
   1944 	case $ac_arg in
   1945 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1946 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1947 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1948 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1949 	    case "$ac_configure_args0 " in
   1950 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1951 	    esac
   1952 	    ;;
   1953 	  -* ) ac_must_keep_next=true ;;
   1954 	esac
   1955       fi
   1956       ac_configure_args="$ac_configure_args '$ac_arg'"
   1957       ;;
   1958     esac
   1959   done
   1960 done
   1961 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1962 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1963 
   1964 # When interrupted or exit'd, cleanup temporary files, and complete
   1965 # config.log.  We remove comments because anyway the quotes in there
   1966 # would cause problems or look ugly.
   1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1969 trap 'exit_status=$?
   1970   # Save into config.log some information that might help in debugging.
   1971   {
   1972     echo
   1973 
   1974     cat <<\_ASBOX
   1975 ## ---------------- ##
   1976 ## Cache variables. ##
   1977 ## ---------------- ##
   1978 _ASBOX
   1979     echo
   1980     # The following way of writing the cache mishandles newlines in values,
   1981 (
   1982   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1983     eval ac_val=\$$ac_var
   1984     case $ac_val in #(
   1985     *${as_nl}*)
   1986       case $ac_var in #(
   1987       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
   1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1989       esac
   1990       case $ac_var in #(
   1991       _ | IFS | as_nl) ;; #(
   1992       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1993       *) $as_unset $ac_var ;;
   1994       esac ;;
   1995     esac
   1996   done
   1997   (set) 2>&1 |
   1998     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1999     *${as_nl}ac_space=\ *)
   2000       sed -n \
   2001 	"s/'\''/'\''\\\\'\'''\''/g;
   2002 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2003       ;; #(
   2004     *)
   2005       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2006       ;;
   2007     esac |
   2008     sort
   2009 )
   2010     echo
   2011 
   2012     cat <<\_ASBOX
   2013 ## ----------------- ##
   2014 ## Output variables. ##
   2015 ## ----------------- ##
   2016 _ASBOX
   2017     echo
   2018     for ac_var in $ac_subst_vars
   2019     do
   2020       eval ac_val=\$$ac_var
   2021       case $ac_val in
   2022       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2023       esac
   2024       $as_echo "$ac_var='\''$ac_val'\''"
   2025     done | sort
   2026     echo
   2027 
   2028     if test -n "$ac_subst_files"; then
   2029       cat <<\_ASBOX
   2030 ## ------------------- ##
   2031 ## File substitutions. ##
   2032 ## ------------------- ##
   2033 _ASBOX
   2034       echo
   2035       for ac_var in $ac_subst_files
   2036       do
   2037 	eval ac_val=\$$ac_var
   2038 	case $ac_val in
   2039 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2040 	esac
   2041 	$as_echo "$ac_var='\''$ac_val'\''"
   2042       done | sort
   2043       echo
   2044     fi
   2045 
   2046     if test -s confdefs.h; then
   2047       cat <<\_ASBOX
   2048 ## ----------- ##
   2049 ## confdefs.h. ##
   2050 ## ----------- ##
   2051 _ASBOX
   2052       echo
   2053       cat confdefs.h
   2054       echo
   2055     fi
   2056     test "$ac_signal" != 0 &&
   2057       $as_echo "$as_me: caught signal $ac_signal"
   2058     $as_echo "$as_me: exit $exit_status"
   2059   } >&5
   2060   rm -f core *.core core.conftest.* &&
   2061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2062     exit $exit_status
   2063 ' 0
   2064 for ac_signal in 1 2 13 15; do
   2065   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   2066 done
   2067 ac_signal=0
   2068 
   2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2070 rm -f -r conftest* confdefs.h
   2071 
   2072 # Predefined preprocessor variables.
   2073 
   2074 cat >>confdefs.h <<_ACEOF
   2075 #define PACKAGE_NAME "$PACKAGE_NAME"
   2076 _ACEOF
   2077 
   2078 
   2079 cat >>confdefs.h <<_ACEOF
   2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2081 _ACEOF
   2082 
   2083 
   2084 cat >>confdefs.h <<_ACEOF
   2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2086 _ACEOF
   2087 
   2088 
   2089 cat >>confdefs.h <<_ACEOF
   2090 #define PACKAGE_STRING "$PACKAGE_STRING"
   2091 _ACEOF
   2092 
   2093 
   2094 cat >>confdefs.h <<_ACEOF
   2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2096 _ACEOF
   2097 
   2098 
   2099 # Let the site file select an alternate cache file if it wants to.
   2100 # Prefer an explicitly selected file to automatically selected ones.
   2101 ac_site_file1=NONE
   2102 ac_site_file2=NONE
   2103 if test -n "$CONFIG_SITE"; then
   2104   ac_site_file1=$CONFIG_SITE
   2105 elif test "x$prefix" != xNONE; then
   2106   ac_site_file1=$prefix/share/config.site
   2107   ac_site_file2=$prefix/etc/config.site
   2108 else
   2109   ac_site_file1=$ac_default_prefix/share/config.site
   2110   ac_site_file2=$ac_default_prefix/etc/config.site
   2111 fi
   2112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2113 do
   2114   test "x$ac_site_file" = xNONE && continue
   2115   if test -r "$ac_site_file"; then
   2116     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   2117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2118     sed 's/^/| /' "$ac_site_file" >&5
   2119     . "$ac_site_file"
   2120   fi
   2121 done
   2122 
   2123 if test -r "$cache_file"; then
   2124   # Some versions of bash will fail to source /dev/null (special
   2125   # files actually), so we avoid doing that.
   2126   if test -f "$cache_file"; then
   2127     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
   2128 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2129     case $cache_file in
   2130       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2131       *)                      . "./$cache_file";;
   2132     esac
   2133   fi
   2134 else
   2135   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
   2136 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2137   >$cache_file
   2138 fi
   2139 
   2140 ac_func_list="$ac_func_list btowc"
   2141 ac_header_list="$ac_header_list errno.h"
   2142 ac_header_list="$ac_header_list sys/time.h"
   2143 ac_func_list="$ac_func_list gettimeofday"
   2144 ac_func_list="$ac_func_list lstat"
   2145 ac_func_list="$ac_func_list mbsinit"
   2146 ac_func_list="$ac_func_list mbrtowc"
   2147 ac_func_list="$ac_func_list mbrlen"
   2148 ac_header_list="$ac_header_list sys/mman.h"
   2149 ac_func_list="$ac_func_list mprotect"
   2150 ac_func_list="$ac_func_list pathconf"
   2151 ac_header_list="$ac_header_list sys/param.h"
   2152 ac_header_list="$ac_header_list locale.h"
   2153 ac_func_list="$ac_func_list isblank"
   2154 ac_func_list="$ac_func_list iswctype"
   2155 ac_func_list="$ac_func_list wcscoll"
   2156 ac_header_list="$ac_header_list stdint.h"
   2157 ac_header_list="$ac_header_list wchar.h"
   2158 ac_header_list="$ac_header_list stdio.h"
   2159 ac_header_list="$ac_header_list stdlib.h"
   2160 ac_header_list="$ac_header_list sys/socket.h"
   2161 ac_header_list="$ac_header_list string.h"
   2162 ac_header_list="$ac_header_list sys/stat.h"
   2163 ac_header_list="$ac_header_list unistd.h"
   2164 ac_func_list="$ac_func_list wcrtomb"
   2165 ac_func_list="$ac_func_list wctob"
   2166 ac_func_list="$ac_func_list iswcntrl"
   2167 ac_header_list="$ac_header_list wctype.h"
   2168 gl_use_threads_default=no
   2169 ac_header_list="$ac_header_list io.h"
   2170 ac_header_list="$ac_header_list limits.h"
   2171 ac_header_list="$ac_header_list stdarg.h"
   2172 ac_header_list="$ac_header_list alloca.h"
   2173 ac_header_list="$ac_header_list stddef.h"
   2174 ac_header_list="$ac_header_list sys/file.h"
   2175 ac_header_list="$ac_header_list mcheck.h"
   2176 gt_needs="$gt_needs "
   2177 ac_func_list="$ac_func_list isatty"
   2178 ac_func_list="$ac_func_list bcopy"
   2179 ac_func_list="$ac_func_list bzero"
   2180 ac_func_list="$ac_func_list isascii"
   2181 ac_func_list="$ac_func_list memcpy"
   2182 ac_func_list="$ac_func_list memset"
   2183 ac_func_list="$ac_func_list strchr"
   2184 ac_func_list="$ac_func_list strtoul"
   2185 ac_func_list="$ac_func_list popen"
   2186 ac_func_list="$ac_func_list fchown"
   2187 ac_func_list="$ac_func_list fchmod"
   2188 ac_func_list="$ac_func_list setlocale"
   2189 # Check that the precious variables saved in the cache have kept the same
   2190 # value.
   2191 ac_cache_corrupted=false
   2192 for ac_var in $ac_precious_vars; do
   2193   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2194   eval ac_new_set=\$ac_env_${ac_var}_set
   2195   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2196   eval ac_new_val=\$ac_env_${ac_var}_value
   2197   case $ac_old_set,$ac_new_set in
   2198     set,)
   2199       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2201       ac_cache_corrupted=: ;;
   2202     ,set)
   2203       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2205       ac_cache_corrupted=: ;;
   2206     ,);;
   2207     *)
   2208       if test "x$ac_old_val" != "x$ac_new_val"; then
   2209 	# differences in whitespace do not lead to failure.
   2210 	ac_old_val_w=`echo x $ac_old_val`
   2211 	ac_new_val_w=`echo x $ac_new_val`
   2212 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2213 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2215 	  ac_cache_corrupted=:
   2216 	else
   2217 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2219 	  eval $ac_var=\$ac_old_val
   2220 	fi
   2221 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
   2222 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2223 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
   2224 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2225       fi;;
   2226   esac
   2227   # Pass precious variables to config.status.
   2228   if test "$ac_new_set" = set; then
   2229     case $ac_new_val in
   2230     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2231     *) ac_arg=$ac_var=$ac_new_val ;;
   2232     esac
   2233     case " $ac_configure_args " in
   2234       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2235       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   2236     esac
   2237   fi
   2238 done
   2239 if $ac_cache_corrupted; then
   2240   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2242   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2244   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   2245 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   2246    { (exit 1); exit 1; }; }
   2247 fi
   2248 
   2249 
   2250 
   2251 
   2252 
   2253 
   2254 
   2255 
   2256 
   2257 
   2258 
   2259 
   2260 
   2261 
   2262 
   2263 
   2264 
   2265 
   2266 
   2267 
   2268 
   2269 
   2270 
   2271 
   2272 
   2273 ac_ext=c
   2274 ac_cpp='$CPP $CFLAGS $CPPFLAGS'
   2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2278 
   2279 
   2280 ac_aux_dir=
   2281 for ac_dir in build-aux "$srcdir"/build-aux; do
   2282   if test -f "$ac_dir/install-sh"; then
   2283     ac_aux_dir=$ac_dir
   2284     ac_install_sh="$ac_aux_dir/install-sh -c"
   2285     break
   2286   elif test -f "$ac_dir/install.sh"; then
   2287     ac_aux_dir=$ac_dir
   2288     ac_install_sh="$ac_aux_dir/install.sh -c"
   2289     break
   2290   elif test -f "$ac_dir/shtool"; then
   2291     ac_aux_dir=$ac_dir
   2292     ac_install_sh="$ac_aux_dir/shtool install -c"
   2293     break
   2294   fi
   2295 done
   2296 if test -z "$ac_aux_dir"; then
   2297   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
   2298 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
   2299    { (exit 1); exit 1; }; }
   2300 fi
   2301 
   2302 # These three variables are undocumented and unsupported,
   2303 # and are intended to be withdrawn in a future Autoconf release.
   2304 # They can cause serious problems if a builder's source tree is in a directory
   2305 # whose full name contains unusual characters.
   2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2308 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2309 
   2310 
   2311 
   2312 ac_config_headers="$ac_config_headers config.h:config_h.in"
   2313 
   2314 
   2315 am__api_version='1.10'
   2316 
   2317 # Find a good install program.  We prefer a C program (faster),
   2318 # so one script is as good as another.  But avoid the broken or
   2319 # incompatible versions:
   2320 # SysV /etc/install, /usr/sbin/install
   2321 # SunOS /usr/etc/install
   2322 # IRIX /sbin/install
   2323 # AIX /bin/install
   2324 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2328 # OS/2's system install, which has a completely different semantic
   2329 # ./install, which can be erroneously created by make from ./install.sh.
   2330 # Reject install programs that cannot install multiple files.
   2331 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   2332 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2333 if test -z "$INSTALL"; then
   2334 if test "${ac_cv_path_install+set}" = set; then
   2335   $as_echo_n "(cached) " >&6
   2336 else
   2337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2338 for as_dir in $PATH
   2339 do
   2340   IFS=$as_save_IFS
   2341   test -z "$as_dir" && as_dir=.
   2342   # Account for people who put trailing slashes in PATH elements.
   2343 case $as_dir/ in
   2344   ./ | .// | /cC/* | \
   2345   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2346   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   2347   /usr/ucb/* ) ;;
   2348   *)
   2349     # OSF1 and SCO ODT 3.0 have their own names for install.
   2350     # Don't use installbsd from OSF since it installs stuff as root
   2351     # by default.
   2352     for ac_prog in ginstall scoinst install; do
   2353       for ac_exec_ext in '' $ac_executable_extensions; do
   2354 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   2355 	  if test $ac_prog = install &&
   2356 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2357 	    # AIX install.  It has an incompatible calling convention.
   2358 	    :
   2359 	  elif test $ac_prog = install &&
   2360 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2361 	    # program-specific install script used by HP pwplus--don't use.
   2362 	    :
   2363 	  else
   2364 	    rm -rf conftest.one conftest.two conftest.dir
   2365 	    echo one > conftest.one
   2366 	    echo two > conftest.two
   2367 	    mkdir conftest.dir
   2368 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2369 	      test -s conftest.one && test -s conftest.two &&
   2370 	      test -s conftest.dir/conftest.one &&
   2371 	      test -s conftest.dir/conftest.two
   2372 	    then
   2373 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2374 	      break 3
   2375 	    fi
   2376 	  fi
   2377 	fi
   2378       done
   2379     done
   2380     ;;
   2381 esac
   2382 
   2383 done
   2384 IFS=$as_save_IFS
   2385 
   2386 rm -rf conftest.one conftest.two conftest.dir
   2387 
   2388 fi
   2389   if test "${ac_cv_path_install+set}" = set; then
   2390     INSTALL=$ac_cv_path_install
   2391   else
   2392     # As a last resort, use the slow shell script.  Don't cache a
   2393     # value for INSTALL within a source directory, because that will
   2394     # break other packages using the cache if that directory is
   2395     # removed, or if the value is a relative name.
   2396     INSTALL=$ac_install_sh
   2397   fi
   2398 fi
   2399 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
   2400 $as_echo "$INSTALL" >&6; }
   2401 
   2402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2403 # It thinks the first close brace ends the variable substitution.
   2404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2405 
   2406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2407 
   2408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2409 
   2410 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
   2411 $as_echo_n "checking whether build environment is sane... " >&6; }
   2412 # Just in case
   2413 sleep 1
   2414 echo timestamp > conftest.file
   2415 # Do `set' in a subshell so we don't clobber the current shell's
   2416 # arguments.  Must try -L first in case configure is actually a
   2417 # symlink; some systems play weird games with the mod time of symlinks
   2418 # (eg FreeBSD returns the mod time of the symlink's containing
   2419 # directory).
   2420 if (
   2421    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   2422    if test "$*" = "X"; then
   2423       # -L didn't work.
   2424       set X `ls -t $srcdir/configure conftest.file`
   2425    fi
   2426    rm -f conftest.file
   2427    if test "$*" != "X $srcdir/configure conftest.file" \
   2428       && test "$*" != "X conftest.file $srcdir/configure"; then
   2429 
   2430       # If neither matched, then we have a broken ls.  This can happen
   2431       # if, for instance, CONFIG_SHELL is bash and it inherits a
   2432       # broken ls alias from the environment.  This has actually
   2433       # happened.  Such a system could not be considered "sane".
   2434       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
   2435 alias in your environment" >&5
   2436 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
   2437 alias in your environment" >&2;}
   2438    { (exit 1); exit 1; }; }
   2439    fi
   2440 
   2441    test "$2" = conftest.file
   2442    )
   2443 then
   2444    # Ok.
   2445    :
   2446 else
   2447    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
   2448 Check your system clock" >&5
   2449 $as_echo "$as_me: error: newly created file is older than distributed files!
   2450 Check your system clock" >&2;}
   2451    { (exit 1); exit 1; }; }
   2452 fi
   2453 { $as_echo "$as_me:$LINENO: result: yes" >&5
   2454 $as_echo "yes" >&6; }
   2455 test "$program_prefix" != NONE &&
   2456   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2457 # Use a double $ so make ignores it.
   2458 test "$program_suffix" != NONE &&
   2459   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2460 # Double any \ or $.
   2461 # By default was `s,x,x', remove it if useless.
   2462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2463 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2464 
   2465 # expand $ac_aux_dir to an absolute path
   2466 am_aux_dir=`cd $ac_aux_dir && pwd`
   2467 
   2468 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   2469 # Use eval to expand $SHELL
   2470 if eval "$MISSING --run true"; then
   2471   am_missing_run="$MISSING --run "
   2472 else
   2473   am_missing_run=
   2474   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
   2475 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   2476 fi
   2477 
   2478 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
   2479 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2480 if test -z "$MKDIR_P"; then
   2481   if test "${ac_cv_path_mkdir+set}" = set; then
   2482   $as_echo_n "(cached) " >&6
   2483 else
   2484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2485 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2486 do
   2487   IFS=$as_save_IFS
   2488   test -z "$as_dir" && as_dir=.
   2489   for ac_prog in mkdir gmkdir; do
   2490 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2491 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   2492 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2493 	     'mkdir (GNU coreutils) '* | \
   2494 	     'mkdir (coreutils) '* | \
   2495 	     'mkdir (fileutils) '4.1*)
   2496 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2497 	       break 3;;
   2498 	   esac
   2499 	 done
   2500        done
   2501 done
   2502 IFS=$as_save_IFS
   2503 
   2504 fi
   2505 
   2506   if test "${ac_cv_path_mkdir+set}" = set; then
   2507     MKDIR_P="$ac_cv_path_mkdir -p"
   2508   else
   2509     # As a last resort, use the slow shell script.  Don't cache a
   2510     # value for MKDIR_P within a source directory, because that will
   2511     # break other packages using the cache if that directory is
   2512     # removed, or if the value is a relative name.
   2513     test -d ./--version && rmdir ./--version
   2514     MKDIR_P="$ac_install_sh -d"
   2515   fi
   2516 fi
   2517 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
   2518 $as_echo "$MKDIR_P" >&6; }
   2519 
   2520 mkdir_p="$MKDIR_P"
   2521 case $mkdir_p in
   2522   [\\/$]* | ?:[\\/]*) ;;
   2523   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   2524 esac
   2525 
   2526 for ac_prog in gawk mawk nawk awk
   2527 do
   2528   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2529 set dummy $ac_prog; ac_word=$2
   2530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2531 $as_echo_n "checking for $ac_word... " >&6; }
   2532 if test "${ac_cv_prog_AWK+set}" = set; then
   2533   $as_echo_n "(cached) " >&6
   2534 else
   2535   if test -n "$AWK"; then
   2536   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2537 else
   2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2539 for as_dir in $PATH
   2540 do
   2541   IFS=$as_save_IFS
   2542   test -z "$as_dir" && as_dir=.
   2543   for ac_exec_ext in '' $ac_executable_extensions; do
   2544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2545     ac_cv_prog_AWK="$ac_prog"
   2546     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2547     break 2
   2548   fi
   2549 done
   2550 done
   2551 IFS=$as_save_IFS
   2552 
   2553 fi
   2554 fi
   2555 AWK=$ac_cv_prog_AWK
   2556 if test -n "$AWK"; then
   2557   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
   2558 $as_echo "$AWK" >&6; }
   2559 else
   2560   { $as_echo "$as_me:$LINENO: result: no" >&5
   2561 $as_echo "no" >&6; }
   2562 fi
   2563 
   2564 
   2565   test -n "$AWK" && break
   2566 done
   2567 
   2568 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2570 set x ${MAKE-make}
   2571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2572 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
   2573   $as_echo_n "(cached) " >&6
   2574 else
   2575   cat >conftest.make <<\_ACEOF
   2576 SHELL = /bin/sh
   2577 all:
   2578 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2579 _ACEOF
   2580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2582   *@@@%%%=?*=@@@%%%*)
   2583     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2584   *)
   2585     eval ac_cv_prog_make_${ac_make}_set=no;;
   2586 esac
   2587 rm -f conftest.make
   2588 fi
   2589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2590   { $as_echo "$as_me:$LINENO: result: yes" >&5
   2591 $as_echo "yes" >&6; }
   2592   SET_MAKE=
   2593 else
   2594   { $as_echo "$as_me:$LINENO: result: no" >&5
   2595 $as_echo "no" >&6; }
   2596   SET_MAKE="MAKE=${MAKE-make}"
   2597 fi
   2598 
   2599 rm -rf .tst 2>/dev/null
   2600 mkdir .tst 2>/dev/null
   2601 if test -d .tst; then
   2602   am__leading_dot=.
   2603 else
   2604   am__leading_dot=_
   2605 fi
   2606 rmdir .tst 2>/dev/null
   2607 
   2608 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   2609   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   2610   # is not polluted with repeated "-I."
   2611   am__isrc=' -I$(srcdir)'
   2612   # test to see if srcdir already configured
   2613   if test -f $srcdir/config.status; then
   2614     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
   2615 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   2616    { (exit 1); exit 1; }; }
   2617   fi
   2618 fi
   2619 
   2620 # test whether we have cygpath
   2621 if test -z "$CYGPATH_W"; then
   2622   if (cygpath --version) >/dev/null 2>/dev/null; then
   2623     CYGPATH_W='cygpath -w'
   2624   else
   2625     CYGPATH_W=echo
   2626   fi
   2627 fi
   2628 
   2629 
   2630 # Define the identity of the package.
   2631  PACKAGE='sed'
   2632  VERSION='4.2.1'
   2633 
   2634 
   2635 cat >>confdefs.h <<_ACEOF
   2636 #define PACKAGE "$PACKAGE"
   2637 _ACEOF
   2638 
   2639 
   2640 cat >>confdefs.h <<_ACEOF
   2641 #define VERSION "$VERSION"
   2642 _ACEOF
   2643 
   2644 # Some tools Automake needs.
   2645 
   2646 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2647 
   2648 
   2649 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2650 
   2651 
   2652 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2653 
   2654 
   2655 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2656 
   2657 
   2658 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2659 
   2660 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
   2661 
   2662 # Installed binaries are usually stripped using `strip' when the user
   2663 # run `make install-strip'.  However `strip' might not be the right
   2664 # tool to use in cross-compilation environments, therefore Automake
   2665 # will honor the `STRIP' environment variable to overrule this program.
   2666 if test "$cross_compiling" != no; then
   2667   if test -n "$ac_tool_prefix"; then
   2668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2669 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2671 $as_echo_n "checking for $ac_word... " >&6; }
   2672 if test "${ac_cv_prog_STRIP+set}" = set; then
   2673   $as_echo_n "(cached) " >&6
   2674 else
   2675   if test -n "$STRIP"; then
   2676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2677 else
   2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2679 for as_dir in $PATH
   2680 do
   2681   IFS=$as_save_IFS
   2682   test -z "$as_dir" && as_dir=.
   2683   for ac_exec_ext in '' $ac_executable_extensions; do
   2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2687     break 2
   2688   fi
   2689 done
   2690 done
   2691 IFS=$as_save_IFS
   2692 
   2693 fi
   2694 fi
   2695 STRIP=$ac_cv_prog_STRIP
   2696 if test -n "$STRIP"; then
   2697   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
   2698 $as_echo "$STRIP" >&6; }
   2699 else
   2700   { $as_echo "$as_me:$LINENO: result: no" >&5
   2701 $as_echo "no" >&6; }
   2702 fi
   2703 
   2704 
   2705 fi
   2706 if test -z "$ac_cv_prog_STRIP"; then
   2707   ac_ct_STRIP=$STRIP
   2708   # Extract the first word of "strip", so it can be a program name with args.
   2709 set dummy strip; ac_word=$2
   2710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2711 $as_echo_n "checking for $ac_word... " >&6; }
   2712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   2713   $as_echo_n "(cached) " >&6
   2714 else
   2715   if test -n "$ac_ct_STRIP"; then
   2716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2717 else
   2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2719 for as_dir in $PATH
   2720 do
   2721   IFS=$as_save_IFS
   2722   test -z "$as_dir" && as_dir=.
   2723   for ac_exec_ext in '' $ac_executable_extensions; do
   2724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2725     ac_cv_prog_ac_ct_STRIP="strip"
   2726     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2727     break 2
   2728   fi
   2729 done
   2730 done
   2731 IFS=$as_save_IFS
   2732 
   2733 fi
   2734 fi
   2735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2736 if test -n "$ac_ct_STRIP"; then
   2737   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   2738 $as_echo "$ac_ct_STRIP" >&6; }
   2739 else
   2740   { $as_echo "$as_me:$LINENO: result: no" >&5
   2741 $as_echo "no" >&6; }
   2742 fi
   2743 
   2744   if test "x$ac_ct_STRIP" = x; then
   2745     STRIP=":"
   2746   else
   2747     case $cross_compiling:$ac_tool_warned in
   2748 yes:)
   2749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
   2750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2751 ac_tool_warned=yes ;;
   2752 esac
   2753     STRIP=$ac_ct_STRIP
   2754   fi
   2755 else
   2756   STRIP="$ac_cv_prog_STRIP"
   2757 fi
   2758 
   2759 fi
   2760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2761 
   2762 # We need awk for the "check" target.  The system "awk" is bad on
   2763 # some platforms.
   2764 # Always define AMTAR for backward compatibility.
   2765 
   2766 AMTAR=${AMTAR-"${am_missing_run}tar"}
   2767 
   2768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   2769 
   2770 
   2771 
   2772 
   2773 
   2774 
   2775 SED_FEATURE_VERSION=4.2
   2776 
   2777 cat >>confdefs.h <<_ACEOF
   2778 #define SED_FEATURE_VERSION "$SED_FEATURE_VERSION"
   2779 _ACEOF
   2780 
   2781 
   2782 
   2783 COPYRIGHT_YEAR=2009
   2784 
   2785 cat >>confdefs.h <<_ACEOF
   2786 #define COPYRIGHT_YEAR $COPYRIGHT_YEAR
   2787 _ACEOF
   2788 
   2789 
   2790 
   2791 ac_ext=c
   2792 ac_cpp='$CPP $CFLAGS $CPPFLAGS'
   2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2796 if test -n "$ac_tool_prefix"; then
   2797   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2798 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2800 $as_echo_n "checking for $ac_word... " >&6; }
   2801 if test "${ac_cv_prog_CC+set}" = set; then
   2802   $as_echo_n "(cached) " >&6
   2803 else
   2804   if test -n "$CC"; then
   2805   ac_cv_prog_CC="$CC" # Let the user override the test.
   2806 else
   2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2808 for as_dir in $PATH
   2809 do
   2810   IFS=$as_save_IFS
   2811   test -z "$as_dir" && as_dir=.
   2812   for ac_exec_ext in '' $ac_executable_extensions; do
   2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2814     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2816     break 2
   2817   fi
   2818 done
   2819 done
   2820 IFS=$as_save_IFS
   2821 
   2822 fi
   2823 fi
   2824 CC=$ac_cv_prog_CC
   2825 if test -n "$CC"; then
   2826   { $as_echo "$as_me:$LINENO: result: $CC" >&5
   2827 $as_echo "$CC" >&6; }
   2828 else
   2829   { $as_echo "$as_me:$LINENO: result: no" >&5
   2830 $as_echo "no" >&6; }
   2831 fi
   2832 
   2833 
   2834 fi
   2835 if test -z "$ac_cv_prog_CC"; then
   2836   ac_ct_CC=$CC
   2837   # Extract the first word of "gcc", so it can be a program name with args.
   2838 set dummy gcc; ac_word=$2
   2839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2840 $as_echo_n "checking for $ac_word... " >&6; }
   2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2842   $as_echo_n "(cached) " >&6
   2843 else
   2844   if test -n "$ac_ct_CC"; then
   2845   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2846 else
   2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2848 for as_dir in $PATH
   2849 do
   2850   IFS=$as_save_IFS
   2851   test -z "$as_dir" && as_dir=.
   2852   for ac_exec_ext in '' $ac_executable_extensions; do
   2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2854     ac_cv_prog_ac_ct_CC="gcc"
   2855     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2856     break 2
   2857   fi
   2858 done
   2859 done
   2860 IFS=$as_save_IFS
   2861 
   2862 fi
   2863 fi
   2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2865 if test -n "$ac_ct_CC"; then
   2866   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2867 $as_echo "$ac_ct_CC" >&6; }
   2868 else
   2869   { $as_echo "$as_me:$LINENO: result: no" >&5
   2870 $as_echo "no" >&6; }
   2871 fi
   2872 
   2873   if test "x$ac_ct_CC" = x; then
   2874     CC=""
   2875   else
   2876     case $cross_compiling:$ac_tool_warned in
   2877 yes:)
   2878 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
   2879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2880 ac_tool_warned=yes ;;
   2881 esac
   2882     CC=$ac_ct_CC
   2883   fi
   2884 else
   2885   CC="$ac_cv_prog_CC"
   2886 fi
   2887 
   2888 if test -z "$CC"; then
   2889           if test -n "$ac_tool_prefix"; then
   2890     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2891 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2893 $as_echo_n "checking for $ac_word... " >&6; }
   2894 if test "${ac_cv_prog_CC+set}" = set; then
   2895   $as_echo_n "(cached) " >&6
   2896 else
   2897   if test -n "$CC"; then
   2898   ac_cv_prog_CC="$CC" # Let the user override the test.
   2899 else
   2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2901 for as_dir in $PATH
   2902 do
   2903   IFS=$as_save_IFS
   2904   test -z "$as_dir" && as_dir=.
   2905   for ac_exec_ext in '' $ac_executable_extensions; do
   2906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2907     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2908     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2909     break 2
   2910   fi
   2911 done
   2912 done
   2913 IFS=$as_save_IFS
   2914 
   2915 fi
   2916 fi
   2917 CC=$ac_cv_prog_CC
   2918 if test -n "$CC"; then
   2919   { $as_echo "$as_me:$LINENO: result: $CC" >&5
   2920 $as_echo "$CC" >&6; }
   2921 else
   2922   { $as_echo "$as_me:$LINENO: result: no" >&5
   2923 $as_echo "no" >&6; }
   2924 fi
   2925 
   2926 
   2927   fi
   2928 fi
   2929 if test -z "$CC"; then
   2930   # Extract the first word of "cc", so it can be a program name with args.
   2931 set dummy cc; ac_word=$2
   2932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2933 $as_echo_n "checking for $ac_word... " >&6; }
   2934 if test "${ac_cv_prog_CC+set}" = set; then
   2935   $as_echo_n "(cached) " >&6
   2936 else
   2937   if test -n "$CC"; then
   2938   ac_cv_prog_CC="$CC" # Let the user override the test.
   2939 else
   2940   ac_prog_rejected=no
   2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2942 for as_dir in $PATH
   2943 do
   2944   IFS=$as_save_IFS
   2945   test -z "$as_dir" && as_dir=.
   2946   for ac_exec_ext in '' $ac_executable_extensions; do
   2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2948     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2949        ac_prog_rejected=yes
   2950        continue
   2951      fi
   2952     ac_cv_prog_CC="cc"
   2953     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2954     break 2
   2955   fi
   2956 done
   2957 done
   2958 IFS=$as_save_IFS
   2959 
   2960 if test $ac_prog_rejected = yes; then
   2961   # We found a bogon in the path, so make sure we never use it.
   2962   set dummy $ac_cv_prog_CC
   2963   shift
   2964   if test $# != 0; then
   2965     # We chose a different compiler from the bogus one.
   2966     # However, it has the same basename, so the bogon will be chosen
   2967     # first if we set CC to just the basename; use the full file name.
   2968     shift
   2969     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2970   fi
   2971 fi
   2972 fi
   2973 fi
   2974 CC=$ac_cv_prog_CC
   2975 if test -n "$CC"; then
   2976   { $as_echo "$as_me:$LINENO: result: $CC" >&5
   2977 $as_echo "$CC" >&6; }
   2978 else
   2979   { $as_echo "$as_me:$LINENO: result: no" >&5
   2980 $as_echo "no" >&6; }
   2981 fi
   2982 
   2983 
   2984 fi
   2985 if test -z "$CC"; then
   2986   if test -n "$ac_tool_prefix"; then
   2987   for ac_prog in cl.exe
   2988   do
   2989     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   2992 $as_echo_n "checking for $ac_word... " >&6; }
   2993 if test "${ac_cv_prog_CC+set}" = set; then
   2994   $as_echo_n "(cached) " >&6
   2995 else
   2996   if test -n "$CC"; then
   2997   ac_cv_prog_CC="$CC" # Let the user override the test.
   2998 else
   2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3000 for as_dir in $PATH
   3001 do
   3002   IFS=$as_save_IFS
   3003   test -z "$as_dir" && as_dir=.
   3004   for ac_exec_ext in '' $ac_executable_extensions; do
   3005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3006     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3008     break 2
   3009   fi
   3010 done
   3011 done
   3012 IFS=$as_save_IFS
   3013 
   3014 fi
   3015 fi
   3016 CC=$ac_cv_prog_CC
   3017 if test -n "$CC"; then
   3018   { $as_echo "$as_me:$LINENO: result: $CC" >&5
   3019 $as_echo "$CC" >&6; }
   3020 else
   3021   { $as_echo "$as_me:$LINENO: result: no" >&5
   3022 $as_echo "no" >&6; }
   3023 fi
   3024 
   3025 
   3026     test -n "$CC" && break
   3027   done
   3028 fi
   3029 if test -z "$CC"; then
   3030   ac_ct_CC=$CC
   3031   for ac_prog in cl.exe
   3032 do
   3033   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3034 set dummy $ac_prog; ac_word=$2
   3035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   3036 $as_echo_n "checking for $ac_word... " >&6; }
   3037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   3038   $as_echo_n "(cached) " >&6
   3039 else
   3040   if test -n "$ac_ct_CC"; then
   3041   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3042 else
   3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3044 for as_dir in $PATH
   3045 do
   3046   IFS=$as_save_IFS
   3047   test -z "$as_dir" && as_dir=.
   3048   for ac_exec_ext in '' $ac_executable_extensions; do
   3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3050     ac_cv_prog_ac_ct_CC="$ac_prog"
   3051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3052     break 2
   3053   fi
   3054 done
   3055 done
   3056 IFS=$as_save_IFS
   3057 
   3058 fi
   3059 fi
   3060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3061 if test -n "$ac_ct_CC"; then
   3062   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   3063 $as_echo "$ac_ct_CC" >&6; }
   3064 else
   3065   { $as_echo "$as_me:$LINENO: result: no" >&5
   3066 $as_echo "no" >&6; }
   3067 fi
   3068 
   3069 
   3070   test -n "$ac_ct_CC" && break
   3071 done
   3072 
   3073   if test "x$ac_ct_CC" = x; then
   3074     CC=""
   3075   else
   3076     case $cross_compiling:$ac_tool_warned in
   3077 yes:)
   3078 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
   3079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3080 ac_tool_warned=yes ;;
   3081 esac
   3082     CC=$ac_ct_CC
   3083   fi
   3084 fi
   3085 
   3086 fi
   3087 
   3088 
   3089 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3091 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   3092 See \`config.log' for more details." >&5
   3093 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
   3094 See \`config.log' for more details." >&2;}
   3095    { (exit 1); exit 1; }; }; }
   3096 
   3097 # Provide some information about the compiler.
   3098 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
   3099 set X $ac_compile
   3100 ac_compiler=$2
   3101 { (ac_try="$ac_compiler --version >&5"
   3102 case "(($ac_try" in
   3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3104   *) ac_try_echo=$ac_try;;
   3105 esac
   3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3107 $as_echo "$ac_try_echo") >&5
   3108   (eval "$ac_compiler --version >&5") 2>&5
   3109   ac_status=$?
   3110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3111   (exit $ac_status); }
   3112 { (ac_try="$ac_compiler -v >&5"
   3113 case "(($ac_try" in
   3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3115   *) ac_try_echo=$ac_try;;
   3116 esac
   3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3118 $as_echo "$ac_try_echo") >&5
   3119   (eval "$ac_compiler -v >&5") 2>&5
   3120   ac_status=$?
   3121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3122   (exit $ac_status); }
   3123 { (ac_try="$ac_compiler -V >&5"
   3124 case "(($ac_try" in
   3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3126   *) ac_try_echo=$ac_try;;
   3127 esac
   3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3129 $as_echo "$ac_try_echo") >&5
   3130   (eval "$ac_compiler -V >&5") 2>&5
   3131   ac_status=$?
   3132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3133   (exit $ac_status); }
   3134 
   3135 cat >conftest.$ac_ext <<_ACEOF
   3136 /* confdefs.h.  */
   3137 _ACEOF
   3138 cat confdefs.h >>conftest.$ac_ext
   3139 cat >>conftest.$ac_ext <<_ACEOF
   3140 /* end confdefs.h.  */
   3141 
   3142 int
   3143 main ()
   3144 {
   3145 
   3146   ;
   3147   return 0;
   3148 }
   3149 _ACEOF
   3150 ac_clean_files_save=$ac_clean_files
   3151 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3152 # Try to create an executable without -o first, disregard a.out.
   3153 # It will help us diagnose broken compilers, and finding out an intuition
   3154 # of exeext.
   3155 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   3156 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3157 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3158 
   3159 # The possible output files:
   3160 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3161 
   3162 ac_rmfiles=
   3163 for ac_file in $ac_files
   3164 do
   3165   case $ac_file in
   3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3167     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3168   esac
   3169 done
   3170 rm -f $ac_rmfiles
   3171 
   3172 if { (ac_try="$ac_link_default"
   3173 case "(($ac_try" in
   3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3175   *) ac_try_echo=$ac_try;;
   3176 esac
   3177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3178 $as_echo "$ac_try_echo") >&5
   3179   (eval "$ac_link_default") 2>&5
   3180   ac_status=$?
   3181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3182   (exit $ac_status); }; then
   3183   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3185 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3186 # so that the user can short-circuit this test for compilers unknown to
   3187 # Autoconf.
   3188 for ac_file in $ac_files ''
   3189 do
   3190   test -f "$ac_file" || continue
   3191   case $ac_file in
   3192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3193 	;;
   3194     [ab].out )
   3195 	# We found the default executable, but exeext='' is most
   3196 	# certainly right.
   3197 	break;;
   3198     *.* )
   3199         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3200 	then :; else
   3201 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3202 	fi
   3203 	# We set ac_cv_exeext here because the later test for it is not
   3204 	# safe: cross compilers may not add the suffix if given an `-o'
   3205 	# argument, so we may need to know it at that point already.
   3206 	# Even if this section looks crufty: it has the advantage of
   3207 	# actually working.
   3208 	break;;
   3209     * )
   3210 	break;;
   3211   esac
   3212 done
   3213 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3214 
   3215 else
   3216   ac_file=''
   3217 fi
   3218 
   3219 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
   3220 $as_echo "$ac_file" >&6; }
   3221 if test -z "$ac_file"; then
   3222   $as_echo "$as_me: failed program was:" >&5
   3223 sed 's/^/| /' conftest.$ac_ext >&5
   3224 
   3225 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3227 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
   3228 See \`config.log' for more details." >&5
   3229 $as_echo "$as_me: error: C compiler cannot create executables
   3230 See \`config.log' for more details." >&2;}
   3231    { (exit 77); exit 77; }; }; }
   3232 fi
   3233 
   3234 ac_exeext=$ac_cv_exeext
   3235 
   3236 # Check that the compiler produces executables we can run.  If not, either
   3237 # the compiler is broken, or we cross compile.
   3238 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   3239 $as_echo_n "checking whether the C compiler works... " >&6; }
   3240 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   3241 # If not cross compiling, check that we can run a simple program.
   3242 if test "$cross_compiling" != yes; then
   3243   if { ac_try='./$ac_file'
   3244   { (case "(($ac_try" in
   3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3246   *) ac_try_echo=$ac_try;;
   3247 esac
   3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3249 $as_echo "$ac_try_echo") >&5
   3250   (eval "$ac_try") 2>&5
   3251   ac_status=$?
   3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3253   (exit $ac_status); }; }; then
   3254     cross_compiling=no
   3255   else
   3256     if test "$cross_compiling" = maybe; then
   3257 	cross_compiling=yes
   3258     else
   3259 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3261 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
   3262 If you meant to cross compile, use \`--host'.
   3263 See \`config.log' for more details." >&5
   3264 $as_echo "$as_me: error: cannot run C compiled programs.
   3265 If you meant to cross compile, use \`--host'.
   3266 See \`config.log' for more details." >&2;}
   3267    { (exit 1); exit 1; }; }; }
   3268     fi
   3269   fi
   3270 fi
   3271 { $as_echo "$as_me:$LINENO: result: yes" >&5
   3272 $as_echo "yes" >&6; }
   3273 
   3274 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3275 ac_clean_files=$ac_clean_files_save
   3276 # Check that the compiler produces executables we can run.  If not, either
   3277 # the compiler is broken, or we cross compile.
   3278 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   3279 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3280 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
   3281 $as_echo "$cross_compiling" >&6; }
   3282 
   3283 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
   3284 $as_echo_n "checking for suffix of executables... " >&6; }
   3285 if { (ac_try="$ac_link"
   3286 case "(($ac_try" in
   3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3288   *) ac_try_echo=$ac_try;;
   3289 esac
   3290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3291 $as_echo "$ac_try_echo") >&5
   3292   (eval "$ac_link") 2>&5
   3293   ac_status=$?
   3294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3295   (exit $ac_status); }; then
   3296   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3297 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3298 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3299 # `rm'.
   3300 for ac_file in conftest.exe conftest conftest.*; do
   3301   test -f "$ac_file" || continue
   3302   case $ac_file in
   3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3304     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3305 	  break;;
   3306     * ) break;;
   3307   esac
   3308 done
   3309 else
   3310   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3312 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   3313 See \`config.log' for more details." >&5
   3314 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   3315 See \`config.log' for more details." >&2;}
   3316    { (exit 1); exit 1; }; }; }
   3317 fi
   3318 
   3319 rm -f conftest$ac_cv_exeext
   3320 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   3321 $as_echo "$ac_cv_exeext" >&6; }
   3322 
   3323 rm -f conftest.$ac_ext
   3324 EXEEXT=$ac_cv_exeext
   3325 ac_exeext=$EXEEXT
   3326 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
   3327 $as_echo_n "checking for suffix of object files... " >&6; }
   3328 if test "${ac_cv_objext+set}" = set; then
   3329   $as_echo_n "(cached) " >&6
   3330 else
   3331   cat >conftest.$ac_ext <<_ACEOF
   3332 /* confdefs.h.  */
   3333 _ACEOF
   3334 cat confdefs.h >>conftest.$ac_ext
   3335 cat >>conftest.$ac_ext <<_ACEOF
   3336 /* end confdefs.h.  */
   3337 
   3338 int
   3339 main ()
   3340 {
   3341 
   3342   ;
   3343   return 0;
   3344 }
   3345 _ACEOF
   3346 rm -f conftest.o conftest.obj
   3347 if { (ac_try="$ac_compile"
   3348 case "(($ac_try" in
   3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3350   *) ac_try_echo=$ac_try;;
   3351 esac
   3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3353 $as_echo "$ac_try_echo") >&5
   3354   (eval "$ac_compile") 2>&5
   3355   ac_status=$?
   3356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3357   (exit $ac_status); }; then
   3358   for ac_file in conftest.o conftest.obj conftest.*; do
   3359   test -f "$ac_file" || continue;
   3360   case $ac_file in
   3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3363        break;;
   3364   esac
   3365 done
   3366 else
   3367   $as_echo "$as_me: failed program was:" >&5
   3368 sed 's/^/| /' conftest.$ac_ext >&5
   3369 
   3370 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3372 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   3373 See \`config.log' for more details." >&5
   3374 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
   3375 See \`config.log' for more details." >&2;}
   3376    { (exit 1); exit 1; }; }; }
   3377 fi
   3378 
   3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3380 fi
   3381 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   3382 $as_echo "$ac_cv_objext" >&6; }
   3383 OBJEXT=$ac_cv_objext
   3384 ac_objext=$OBJEXT
   3385 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   3386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3387 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   3388   $as_echo_n "(cached) " >&6
   3389 else
   3390   cat >conftest.$ac_ext <<_ACEOF
   3391 /* confdefs.h.  */
   3392 _ACEOF
   3393 cat confdefs.h >>conftest.$ac_ext
   3394 cat >>conftest.$ac_ext <<_ACEOF
   3395 /* end confdefs.h.  */
   3396 
   3397 int
   3398 main ()
   3399 {
   3400 #ifndef __GNUC__
   3401        choke me
   3402 #endif
   3403 
   3404   ;
   3405   return 0;
   3406 }
   3407 _ACEOF
   3408 rm -f conftest.$ac_objext
   3409 if { (ac_try="$ac_compile"
   3410 case "(($ac_try" in
   3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3412   *) ac_try_echo=$ac_try;;
   3413 esac
   3414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3415 $as_echo "$ac_try_echo") >&5
   3416   (eval "$ac_compile") 2>conftest.er1
   3417   ac_status=$?
   3418   grep -v '^ *+' conftest.er1 >conftest.err
   3419   rm -f conftest.er1
   3420   cat conftest.err >&5
   3421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3422   (exit $ac_status); } && {
   3423 	 test -z "$ac_c_werror_flag" ||
   3424 	 test ! -s conftest.err
   3425        } && test -s conftest.$ac_objext; then
   3426   ac_compiler_gnu=yes
   3427 else
   3428   $as_echo "$as_me: failed program was:" >&5
   3429 sed 's/^/| /' conftest.$ac_ext >&5
   3430 
   3431 	ac_compiler_gnu=no
   3432 fi
   3433 
   3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3435 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3436 
   3437 fi
   3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   3439 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3440 if test $ac_compiler_gnu = yes; then
   3441   GCC=yes
   3442 else
   3443   GCC=
   3444 fi
   3445 ac_test_CFLAGS=${CFLAGS+set}
   3446 ac_save_CFLAGS=$CFLAGS
   3447 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   3448 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3449 if test "${ac_cv_prog_cc_g+set}" = set; then
   3450   $as_echo_n "(cached) " >&6
   3451 else
   3452   ac_save_c_werror_flag=$ac_c_werror_flag
   3453    ac_c_werror_flag=yes
   3454    ac_cv_prog_cc_g=no
   3455    CFLAGS="-g"
   3456    cat >conftest.$ac_ext <<_ACEOF
   3457 /* confdefs.h.  */
   3458 _ACEOF
   3459 cat confdefs.h >>conftest.$ac_ext
   3460 cat >>conftest.$ac_ext <<_ACEOF
   3461 /* end confdefs.h.  */
   3462 
   3463 int
   3464 main ()
   3465 {
   3466 
   3467   ;
   3468   return 0;
   3469 }
   3470 _ACEOF
   3471 rm -f conftest.$ac_objext
   3472 if { (ac_try="$ac_compile"
   3473 case "(($ac_try" in
   3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3475   *) ac_try_echo=$ac_try;;
   3476 esac
   3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3478 $as_echo "$ac_try_echo") >&5
   3479   (eval "$ac_compile") 2>conftest.er1
   3480   ac_status=$?
   3481   grep -v '^ *+' conftest.er1 >conftest.err
   3482   rm -f conftest.er1
   3483   cat conftest.err >&5
   3484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3485   (exit $ac_status); } && {
   3486 	 test -z "$ac_c_werror_flag" ||
   3487 	 test ! -s conftest.err
   3488        } && test -s conftest.$ac_objext; then
   3489   ac_cv_prog_cc_g=yes
   3490 else
   3491   $as_echo "$as_me: failed program was:" >&5
   3492 sed 's/^/| /' conftest.$ac_ext >&5
   3493 
   3494 	CFLAGS=""
   3495       cat >conftest.$ac_ext <<_ACEOF
   3496 /* confdefs.h.  */
   3497 _ACEOF
   3498 cat confdefs.h >>conftest.$ac_ext
   3499 cat >>conftest.$ac_ext <<_ACEOF
   3500 /* end confdefs.h.  */
   3501 
   3502 int
   3503 main ()
   3504 {
   3505 
   3506   ;
   3507   return 0;
   3508 }
   3509 _ACEOF
   3510 rm -f conftest.$ac_objext
   3511 if { (ac_try="$ac_compile"
   3512 case "(($ac_try" in
   3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3514   *) ac_try_echo=$ac_try;;
   3515 esac
   3516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3517 $as_echo "$ac_try_echo") >&5
   3518   (eval "$ac_compile") 2>conftest.er1
   3519   ac_status=$?
   3520   grep -v '^ *+' conftest.er1 >conftest.err
   3521   rm -f conftest.er1
   3522   cat conftest.err >&5
   3523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3524   (exit $ac_status); } && {
   3525 	 test -z "$ac_c_werror_flag" ||
   3526 	 test ! -s conftest.err
   3527        } && test -s conftest.$ac_objext; then
   3528   :
   3529 else
   3530   $as_echo "$as_me: failed program was:" >&5
   3531 sed 's/^/| /' conftest.$ac_ext >&5
   3532 
   3533 	ac_c_werror_flag=$ac_save_c_werror_flag
   3534 	 CFLAGS="-g"
   3535 	 cat >conftest.$ac_ext <<_ACEOF
   3536 /* confdefs.h.  */
   3537 _ACEOF
   3538 cat confdefs.h >>conftest.$ac_ext
   3539 cat >>conftest.$ac_ext <<_ACEOF
   3540 /* end confdefs.h.  */
   3541 
   3542 int
   3543 main ()
   3544 {
   3545 
   3546   ;
   3547   return 0;
   3548 }
   3549 _ACEOF
   3550 rm -f conftest.$ac_objext
   3551 if { (ac_try="$ac_compile"
   3552 case "(($ac_try" in
   3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3554   *) ac_try_echo=$ac_try;;
   3555 esac
   3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3557 $as_echo "$ac_try_echo") >&5
   3558   (eval "$ac_compile") 2>conftest.er1
   3559   ac_status=$?
   3560   grep -v '^ *+' conftest.er1 >conftest.err
   3561   rm -f conftest.er1
   3562   cat conftest.err >&5
   3563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3564   (exit $ac_status); } && {
   3565 	 test -z "$ac_c_werror_flag" ||
   3566 	 test ! -s conftest.err
   3567        } && test -s conftest.$ac_objext; then
   3568   ac_cv_prog_cc_g=yes
   3569 else
   3570   $as_echo "$as_me: failed program was:" >&5
   3571 sed 's/^/| /' conftest.$ac_ext >&5
   3572 
   3573 
   3574 fi
   3575 
   3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3577 fi
   3578 
   3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3580 fi
   3581 
   3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3583    ac_c_werror_flag=$ac_save_c_werror_flag
   3584 fi
   3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   3586 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3587 if test "$ac_test_CFLAGS" = set; then
   3588   CFLAGS=$ac_save_CFLAGS
   3589 elif test $ac_cv_prog_cc_g = yes; then
   3590   if test "$GCC" = yes; then
   3591     CFLAGS="-g -O2"
   3592   else
   3593     CFLAGS="-g"
   3594   fi
   3595 else
   3596   if test "$GCC" = yes; then
   3597     CFLAGS="-O2"
   3598   else
   3599     CFLAGS=
   3600   fi
   3601 fi
   3602 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   3603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3604 if test "${ac_cv_prog_cc_c89+set}" = set; then
   3605   $as_echo_n "(cached) " >&6
   3606 else
   3607   ac_cv_prog_cc_c89=no
   3608 ac_save_CC=$CC
   3609 cat >conftest.$ac_ext <<_ACEOF
   3610 /* confdefs.h.  */
   3611 _ACEOF
   3612 cat confdefs.h >>conftest.$ac_ext
   3613 cat >>conftest.$ac_ext <<_ACEOF
   3614 /* end confdefs.h.  */
   3615 #include <stdarg.h>
   3616 #include <stdio.h>
   3617 #include <sys/types.h>
   3618 #include <sys/stat.h>
   3619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3620 struct buf { int x; };
   3621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3622 static char *e (p, i)
   3623      char **p;
   3624      int i;
   3625 {
   3626   return p[i];
   3627 }
   3628 static char *f (char * (*g) (char **, int), char **p, ...)
   3629 {
   3630   char *s;
   3631   va_list v;
   3632   va_start (v,p);
   3633   s = g (p, va_arg (v,int));
   3634   va_end (v);
   3635   return s;
   3636 }
   3637 
   3638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3639    function prototypes and stuff, but not '\xHH' hex character constants.
   3640    These don't provoke an error unfortunately, instead are silently treated
   3641    as 'x'.  The following induces an error, until -std is added to get
   3642    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3643    array size at least.  It's necessary to write '\x00'==0 to get something
   3644    that's true only with -std.  */
   3645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3646 
   3647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3648    inside strings and character constants.  */
   3649 #define FOO(x) 'x'
   3650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3651 
   3652 int test (int i, double x);
   3653 struct s1 {int (*f) (int a);};
   3654 struct s2 {int (*f) (double a);};
   3655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3656 int argc;
   3657 char **argv;
   3658 int
   3659 main ()
   3660 {
   3661 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3662   ;
   3663   return 0;
   3664 }
   3665 _ACEOF
   3666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3667 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3668 do
   3669   CC="$ac_save_CC $ac_arg"
   3670   rm -f conftest.$ac_objext
   3671 if { (ac_try="$ac_compile"
   3672 case "(($ac_try" in
   3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3674   *) ac_try_echo=$ac_try;;
   3675 esac
   3676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   3677 $as_echo "$ac_try_echo") >&5
   3678   (eval "$ac_compile") 2>conftest.er1
   3679   ac_status=$?
   3680   grep -v '^ *+' conftest.er1 >conftest.err
   3681   rm -f conftest.er1
   3682   cat conftest.err >&5
   3683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3684   (exit $ac_status); } && {
   3685 	 test -z "$ac_c_werror_flag" ||
   3686 	 test ! -s conftest.err
   3687        } && test -s conftest.$ac_objext; then
   3688   ac_cv_prog_cc_c89=$ac_arg
   3689 else
   3690   $as_echo "$as_me: failed program was:" >&5
   3691 sed 's/^/| /' conftest.$ac_ext >&5
   3692 
   3693 
   3694 fi
   3695 
   3696 rm -f core conftest.err conftest.$ac_objext
   3697   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3698 done
   3699 rm -f conftest.$ac_ext
   3700 CC=$ac_save_CC
   3701 
   3702 fi
   3703 # AC_CACHE_VAL
   3704 case "x$ac_cv_prog_cc_c89" in
   3705   x)
   3706     { $as_echo "$as_me:$LINENO: result: none needed" >&5
   3707 $as_echo "none needed" >&6; } ;;
   3708   xno)
   3709     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
   3710 $as_echo "unsupported" >&6; } ;;
   3711   *)
   3712     CC="$CC $ac_cv_prog_cc_c89"
   3713     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3715 esac
   3716 
   3717 
   3718 ac_ext=c
   3719 ac_cpp='$CPP $CFLAGS $CPPFLAGS'
   3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3723 DEPDIR="${am__leading_dot}deps"
   3724 
   3725 ac_config_commands="$ac_config_commands depfiles"
   3726 
   3727 
   3728 am_make=${MAKE-make}
   3729 cat > confinc << 'END'
   3730 am__doit:
   3731 	@echo done
   3732 .PHONY: am__doit
   3733 END
   3734 # If we don't find an include directive, just comment out the code.
   3735 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
   3736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3737 am__include="#"
   3738 am__quote=
   3739 _am_result=none
   3740 # First try GNU make style include.
   3741 echo "include confinc" > confmf
   3742 # We grep out `Entering directory' and `Leaving directory'
   3743 # messages which can occur if `w' ends up in MAKEFLAGS.
   3744 # In particular we don't look at `^make:' because GNU make might
   3745 # be invoked under some other name (usually "gmake"), in which
   3746 # case it prints its new name instead of `make'.
   3747 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   3748    am__include=include
   3749    am__quote=
   3750    _am_result=GNU
   3751 fi
   3752 # Now try BSD make style include.
   3753 if test "$am__include" = "#"; then
   3754    echo '.include "confinc"' > confmf
   3755    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   3756       am__include=.include
   3757       am__quote="\""
   3758       _am_result=BSD
   3759    fi
   3760 fi
   3761 
   3762 
   3763 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
   3764 $as_echo "$_am_result" >&6; }
   3765 rm -f confinc confmf
   3766 
   3767 # Check whether --enable-dependency-tracking was given.
   3768 if test "${enable_dependency_tracking+set}" = set; then
   3769   enableval=$enable_dependency_tracking;
   3770 fi
   3771 
   3772 if test "x$enable_dependency_tracking" != xno; then
   3773   am_depcomp="$ac_aux_dir/depcomp"
   3774   AMDEPBACKSLASH='\'
   3775 fi
   3776  if test "x$enable_dependency_tracking" != xno; then
   3777   AMDEP_TRUE=
   3778   AMDEP_FALSE='#'
   3779 else
   3780   AMDEP_TRUE='#'
   3781   AMDEP_FALSE=
   3782 fi
   3783 
   3784 
   3785 
   3786 depcc="$CC"   am_compiler_list=
   3787 
   3788 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
   3789 $as_echo_n "checking dependency style of $depcc... " >&6; }
   3790 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
   3791   $as_echo_n "(cached) " >&6
   3792 else
   3793   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3794   # We make a subdir and do the tests there.  Otherwise we can end up
   3795   # making bogus files that we don't know about and never remove.  For
   3796   # instance it was reported that on HP-UX the gcc test will end up
   3797   # making a dummy file named `D' -- because `-MD' means `put the output
   3798   # in D'.
   3799   mkdir conftest.dir
   3800   # Copy depcomp to subdir because otherwise we won't find it if we're
   3801   # using a relative directory.
   3802   cp "$am_depcomp" conftest.dir
   3803   cd conftest.dir
   3804   # We will build objects and dependencies in a subdirectory because
   3805   # it helps to detect inapplicable dependency modes.  For instance
   3806   # both Tru64's cc and ICC support -MD to output dependencies as a
   3807   # side effect of compilation, but ICC will put the dependencies in
   3808   # the current directory while Tru64 will put them in the object
   3809   # directory.
   3810   mkdir sub
   3811 
   3812   am_cv_CC_dependencies_compiler_type=none
   3813   if test "$am_compiler_list" = ""; then
   3814      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3815   fi
   3816   for depmode in $am_compiler_list; do
   3817     # Setup a source with many dependencies, because some compilers
   3818     # like to wrap large dependency lists on column 80 (with \), and
   3819     # we should not choose a depcomp mode which is confused by this.
   3820     #
   3821     # We need to recreate these files for each test, as the compiler may
   3822     # overwrite some of them when testing with obscure command lines.
   3823     # This happens at least with the AIX C compiler.
   3824     : > sub/conftest.c
   3825     for i in 1 2 3 4 5 6; do
   3826       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3827       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   3828       # Solaris 8's {/usr,}/bin/sh.
   3829       touch sub/conftst$i.h
   3830     done
   3831     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   3832 
   3833     case $depmode in
   3834     nosideeffect)
   3835       # after this tag, mechanisms are not by side-effect, so they'll
   3836       # only be used when explicitly requested
   3837       if test "x$enable_dependency_tracking" = xyes; then
   3838 	continue
   3839       else
   3840 	break
   3841       fi
   3842       ;;
   3843     none) break ;;
   3844     esac
   3845     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   3846     # mode.  It turns out that the SunPro C++ compiler does not properly
   3847     # handle `-M -o', and we need to detect this.
   3848     if depmode=$depmode \
   3849        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   3850        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   3851        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   3852          >/dev/null 2>conftest.err &&
   3853        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   3854        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   3855        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   3856        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   3857       # icc doesn't choke on unknown options, it will just issue warnings
   3858       # or remarks (even with -Werror).  So we grep stderr for any message
   3859       # that says an option was ignored or not supported.
   3860       # When given -MP, icc 7.0 and 7.1 complain thusly:
   3861       #   icc: Command line warning: ignoring option '-M'; no argument required
   3862       # The diagnosis changed in icc 8.0:
   3863       #   icc: Command line remark: option '-MP' not supported
   3864       if (grep 'ignoring option' conftest.err ||
   3865           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   3866         am_cv_CC_dependencies_compiler_type=$depmode
   3867         break
   3868       fi
   3869     fi
   3870   done
   3871 
   3872   cd ..
   3873   rm -rf conftest.dir
   3874 else
   3875   am_cv_CC_dependencies_compiler_type=none
   3876 fi
   3877 
   3878 fi
   3879 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
   3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   3882 
   3883  if
   3884   test "x$enable_dependency_tracking" != xno \
   3885   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   3886   am__fastdepCC_TRUE=
   3887   am__fastdepCC_FALSE='#'
   3888 else
   3889   am__fastdepCC_TRUE='#'
   3890   am__fastdepCC_FALSE=
   3891 fi
   3892 
   3893 
   3894 if test -n "$ac_tool_prefix"; then
   3895   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   3896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   3897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   3898 $as_echo_n "checking for $ac_word... " >&6; }
   3899 if test "${ac_cv_prog_RANLIB+set}" = set; then
   3900   $as_echo_n "(cached) " >&6
   3901 else
   3902   if test -n "$RANLIB"; then
   3903   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   3904 else
   3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3906 for as_dir in $PATH
   3907 do
   3908   IFS=$as_save_IFS
   3909   test -z "$as_dir" && as_dir=.
   3910   for ac_exec_ext in '' $ac_executable_extensions; do
   3911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3912     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   3913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3914     break 2
   3915   fi
   3916 done
   3917 done
   3918 IFS=$as_save_IFS
   3919 
   3920 fi
   3921 fi
   3922 RANLIB=$ac_cv_prog_RANLIB
   3923 if test -n "$RANLIB"; then
   3924   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
   3925 $as_echo "$RANLIB" >&6; }
   3926 else
   3927   { $as_echo "$as_me:$LINENO: result: no" >&5
   3928 $as_echo "no" >&6; }
   3929 fi
   3930 
   3931 
   3932 fi
   3933 if test -z "$ac_cv_prog_RANLIB"; then
   3934   ac_ct_RANLIB=$RANLIB
   3935   # Extract the first word of "ranlib", so it can be a program name with args.
   3936 set dummy ranlib; ac_word=$2
   3937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   3938 $as_echo_n "checking for $ac_word... " >&6; }
   3939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   3940   $as_echo_n "(cached) " >&6
   3941 else
   3942   if test -n "$ac_ct_RANLIB"; then
   3943   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   3944 else
   3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3946 for as_dir in $PATH
   3947 do
   3948   IFS=$as_save_IFS
   3949   test -z "$as_dir" && as_dir=.
   3950   for ac_exec_ext in '' $ac_executable_extensions; do
   3951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3952     ac_cv_prog_ac_ct_RANLIB="ranlib"
   3953     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3954     break 2
   3955   fi
   3956 done
   3957 done
   3958 IFS=$as_save_IFS
   3959 
   3960 fi
   3961 fi
   3962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   3963 if test -n "$ac_ct_RANLIB"; then
   3964   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   3965 $as_echo "$ac_ct_RANLIB" >&6; }
   3966 else
   3967   { $as_echo "$as_me:$LINENO: result: no" >&5
   3968 $as_echo "no" >&6; }
   3969 fi
   3970 
   3971   if test "x$ac_ct_RANLIB" = x; then
   3972     RANLIB=":"
   3973   else
   3974     case $cross_compiling:$ac_tool_warned in
   3975 yes:)
   3976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
   3977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3978 ac_tool_warned=yes ;;
   3979 esac
   3980     RANLIB=$ac_ct_RANLIB
   3981   fi
   3982 else
   3983   RANLIB="$ac_cv_prog_RANLIB"
   3984 fi
   3985 
   3986 # Make sure we can run config.sub.
   3987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3988   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3989 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3990    { (exit 1); exit 1; }; }
   3991 
   3992 { $as_echo "$as_me:$LINENO: checking build system type" >&5
   3993 $as_echo_n "checking build system type... " >&6; }
   3994 if test "${ac_cv_build+set}" = set; then
   3995   $as_echo_n "(cached) " >&6
   3996 else
   3997   ac_build_alias=$build_alias
   3998 test "x$ac_build_alias" = x &&
   3999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4000 test "x$ac_build_alias" = x &&
   4001   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   4002 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   4003    { (exit 1); exit 1; }; }
   4004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4005   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   4006 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   4007    { (exit 1); exit 1; }; }
   4008 
   4009 fi
   4010 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   4011 $as_echo "$ac_cv_build" >&6; }
   4012 case $ac_cv_build in
   4013 *-*-*) ;;
   4014 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   4015 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
   4016    { (exit 1); exit 1; }; };;
   4017 esac
   4018 build=$ac_cv_build
   4019 ac_save_IFS=$IFS; IFS='-'
   4020 set x $ac_cv_build
   4021 shift
   4022 build_cpu=$1
   4023 build_vendor=$2
   4024 shift; shift
   4025 # Remember, the first character of IFS is used to create $*,
   4026 # except with old shells:
   4027 build_os=$*
   4028 IFS=$ac_save_IFS
   4029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4030 
   4031 
   4032 { $as_echo "$as_me:$LINENO: checking host system type" >&5
   4033 $as_echo_n "checking host system type... " >&6; }
   4034 if test "${ac_cv_host+set}" = set; then
   4035   $as_echo_n "(cached) " >&6
   4036 else
   4037   if test "x$host_alias" = x; then
   4038   ac_cv_host=$ac_cv_build
   4039 else
   4040   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4041     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   4042 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   4043    { (exit 1); exit 1; }; }
   4044 fi
   4045 
   4046 fi
   4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   4048 $as_echo "$ac_cv_host" >&6; }
   4049 case $ac_cv_host in
   4050 *-*-*) ;;
   4051 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   4052 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
   4053    { (exit 1); exit 1; }; };;
   4054 esac
   4055 host=$ac_cv_host
   4056 ac_save_IFS=$IFS; IFS='-'
   4057 set x $ac_cv_host
   4058 shift
   4059 host_cpu=$1
   4060 host_vendor=$2
   4061 shift; shift
   4062 # Remember, the first character of IFS is used to create $*,
   4063 # except with old shells:
   4064 host_os=$*
   4065 IFS=$ac_save_IFS
   4066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4067 
   4068 
   4069 
   4070 ac_ext=c
   4071 ac_cpp='$CPP $CFLAGS $CPPFLAGS'
   4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4075 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   4076 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4077 # On Suns, sometimes $CPP names a directory.
   4078 if test -n "$CPP" && test -d "$CPP"; then
   4079   CPP=
   4080 fi
   4081 if test -z "$CPP"; then
   4082   if test "${ac_cv_prog_CPP+set}" = set; then
   4083   $as_echo_n "(cached) " >&6
   4084 else
   4085       # Double quotes because CPP needs to be expanded
   4086     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4087     do
   4088       ac_preproc_ok=false
   4089 for ac_c_preproc_warn_flag in '' yes
   4090 do
   4091   # Use a header file that comes with gcc, so configuring glibc
   4092   # with a fresh cross-compiler works.
   4093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4094   # <limits.h> exists even on freestanding compilers.
   4095   # On the NeXT, cc -E runs the code through the compiler's parser,
   4096   # not just through cpp. "Syntax error" is here to catch this case.
   4097   cat >conftest.$ac_ext <<_ACEOF
   4098 /* confdefs.h.  */
   4099 _ACEOF
   4100 cat confdefs.h >>conftest.$ac_ext
   4101 cat >>conftest.$ac_ext <<_ACEOF
   4102 /* end confdefs.h.  */
   4103 #ifdef __STDC__
   4104 # include <limits.h>
   4105 #else
   4106 # include <assert.h>
   4107 #endif
   4108 		     Syntax error
   4109 _ACEOF
   4110 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4111 case "(($ac_try" in
   4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4113   *) ac_try_echo=$ac_try;;
   4114 esac
   4115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4116 $as_echo "$ac_try_echo") >&5
   4117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4118   ac_status=$?
   4119   grep -v '^ *+' conftest.er1 >conftest.err
   4120   rm -f conftest.er1
   4121   cat conftest.err >&5
   4122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4123   (exit $ac_status); } >/dev/null && {
   4124 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4125 	 test ! -s conftest.err
   4126        }; then
   4127   :
   4128 else
   4129   $as_echo "$as_me: failed program was:" >&5
   4130 sed 's/^/| /' conftest.$ac_ext >&5
   4131 
   4132   # Broken: fails on valid input.
   4133 continue
   4134 fi
   4135 
   4136 rm -f conftest.err conftest.$ac_ext
   4137 
   4138   # OK, works on sane cases.  Now check whether nonexistent headers
   4139   # can be detected and how.
   4140   cat >conftest.$ac_ext <<_ACEOF
   4141 /* confdefs.h.  */
   4142 _ACEOF
   4143 cat confdefs.h >>conftest.$ac_ext
   4144 cat >>conftest.$ac_ext <<_ACEOF
   4145 /* end confdefs.h.  */
   4146 #include <ac_nonexistent.h>
   4147 _ACEOF
   4148 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4149 case "(($ac_try" in
   4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4151   *) ac_try_echo=$ac_try;;
   4152 esac
   4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4154 $as_echo "$ac_try_echo") >&5
   4155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4156   ac_status=$?
   4157   grep -v '^ *+' conftest.er1 >conftest.err
   4158   rm -f conftest.er1
   4159   cat conftest.err >&5
   4160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4161   (exit $ac_status); } >/dev/null && {
   4162 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4163 	 test ! -s conftest.err
   4164        }; then
   4165   # Broken: success on invalid input.
   4166 continue
   4167 else
   4168   $as_echo "$as_me: failed program was:" >&5
   4169 sed 's/^/| /' conftest.$ac_ext >&5
   4170 
   4171   # Passes both tests.
   4172 ac_preproc_ok=:
   4173 break
   4174 fi
   4175 
   4176 rm -f conftest.err conftest.$ac_ext
   4177 
   4178 done
   4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4180 rm -f conftest.err conftest.$ac_ext
   4181 if $ac_preproc_ok; then
   4182   break
   4183 fi
   4184 
   4185     done
   4186     ac_cv_prog_CPP=$CPP
   4187 
   4188 fi
   4189   CPP=$ac_cv_prog_CPP
   4190 else
   4191   ac_cv_prog_CPP=$CPP
   4192 fi
   4193 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
   4194 $as_echo "$CPP" >&6; }
   4195 ac_preproc_ok=false
   4196 for ac_c_preproc_warn_flag in '' yes
   4197 do
   4198   # Use a header file that comes with gcc, so configuring glibc
   4199   # with a fresh cross-compiler works.
   4200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4201   # <limits.h> exists even on freestanding compilers.
   4202   # On the NeXT, cc -E runs the code through the compiler's parser,
   4203   # not just through cpp. "Syntax error" is here to catch this case.
   4204   cat >conftest.$ac_ext <<_ACEOF
   4205 /* confdefs.h.  */
   4206 _ACEOF
   4207 cat confdefs.h >>conftest.$ac_ext
   4208 cat >>conftest.$ac_ext <<_ACEOF
   4209 /* end confdefs.h.  */
   4210 #ifdef __STDC__
   4211 # include <limits.h>
   4212 #else
   4213 # include <assert.h>
   4214 #endif
   4215 		     Syntax error
   4216 _ACEOF
   4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4218 case "(($ac_try" in
   4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4220   *) ac_try_echo=$ac_try;;
   4221 esac
   4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4223 $as_echo "$ac_try_echo") >&5
   4224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4225   ac_status=$?
   4226   grep -v '^ *+' conftest.er1 >conftest.err
   4227   rm -f conftest.er1
   4228   cat conftest.err >&5
   4229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4230   (exit $ac_status); } >/dev/null && {
   4231 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4232 	 test ! -s conftest.err
   4233        }; then
   4234   :
   4235 else
   4236   $as_echo "$as_me: failed program was:" >&5
   4237 sed 's/^/| /' conftest.$ac_ext >&5
   4238 
   4239   # Broken: fails on valid input.
   4240 continue
   4241 fi
   4242 
   4243 rm -f conftest.err conftest.$ac_ext
   4244 
   4245   # OK, works on sane cases.  Now check whether nonexistent headers
   4246   # can be detected and how.
   4247   cat >conftest.$ac_ext <<_ACEOF
   4248 /* confdefs.h.  */
   4249 _ACEOF
   4250 cat confdefs.h >>conftest.$ac_ext
   4251 cat >>conftest.$ac_ext <<_ACEOF
   4252 /* end confdefs.h.  */
   4253 #include <ac_nonexistent.h>
   4254 _ACEOF
   4255 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4256 case "(($ac_try" in
   4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4258   *) ac_try_echo=$ac_try;;
   4259 esac
   4260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4261 $as_echo "$ac_try_echo") >&5
   4262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4263   ac_status=$?
   4264   grep -v '^ *+' conftest.er1 >conftest.err
   4265   rm -f conftest.er1
   4266   cat conftest.err >&5
   4267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4268   (exit $ac_status); } >/dev/null && {
   4269 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4270 	 test ! -s conftest.err
   4271        }; then
   4272   # Broken: success on invalid input.
   4273 continue
   4274 else
   4275   $as_echo "$as_me: failed program was:" >&5
   4276 sed 's/^/| /' conftest.$ac_ext >&5
   4277 
   4278   # Passes both tests.
   4279 ac_preproc_ok=:
   4280 break
   4281 fi
   4282 
   4283 rm -f conftest.err conftest.$ac_ext
   4284 
   4285 done
   4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4287 rm -f conftest.err conftest.$ac_ext
   4288 if $ac_preproc_ok; then
   4289   :
   4290 else
   4291   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4293 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   4294 See \`config.log' for more details." >&5
   4295 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   4296 See \`config.log' for more details." >&2;}
   4297    { (exit 1); exit 1; }; }; }
   4298 fi
   4299 
   4300 ac_ext=c
   4301 ac_cpp='$CPP $CFLAGS $CPPFLAGS'
   4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4305 
   4306 
   4307 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   4308 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4309 if test "${ac_cv_path_GREP+set}" = set; then
   4310   $as_echo_n "(cached) " >&6
   4311 else
   4312   if test -z "$GREP"; then
   4313   ac_path_GREP_found=false
   4314   # Loop through the user's path and test for each of PROGNAME-LIST
   4315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4317 do
   4318   IFS=$as_save_IFS
   4319   test -z "$as_dir" && as_dir=.
   4320   for ac_prog in grep ggrep; do
   4321     for ac_exec_ext in '' $ac_executable_extensions; do
   4322       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4323       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   4324 # Check for GNU ac_path_GREP and select it if it is found.
   4325   # Check for GNU $ac_path_GREP
   4326 case `"$ac_path_GREP" --version 2>&1` in
   4327 *GNU*)
   4328   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4329 *)
   4330   ac_count=0
   4331   $as_echo_n 0123456789 >"conftest.in"
   4332   while :
   4333   do
   4334     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4335     mv "conftest.tmp" "conftest.in"
   4336     cp "conftest.in" "conftest.nl"
   4337     $as_echo 'GREP' >> "conftest.nl"
   4338     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4339     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4340     ac_count=`expr $ac_count + 1`
   4341     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4342       # Best one so far, save it but keep looking for a better one
   4343       ac_cv_path_GREP="$ac_path_GREP"
   4344       ac_path_GREP_max=$ac_count
   4345     fi
   4346     # 10*(2^10) chars as input seems more than enough
   4347     test $ac_count -gt 10 && break
   4348   done
   4349   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4350 esac
   4351 
   4352       $ac_path_GREP_found && break 3
   4353     done
   4354   done
   4355 done
   4356 IFS=$as_save_IFS
   4357   if test -z "$ac_cv_path_GREP"; then
   4358     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4359 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4360    { (exit 1); exit 1; }; }
   4361   fi
   4362 else
   4363   ac_cv_path_GREP=$GREP
   4364 fi
   4365 
   4366 fi
   4367 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   4368 $as_echo "$ac_cv_path_GREP" >&6; }
   4369  GREP="$ac_cv_path_GREP"
   4370 
   4371 
   4372 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
   4373 $as_echo_n "checking for egrep... " >&6; }
   4374 if test "${ac_cv_path_EGREP+set}" = set; then
   4375   $as_echo_n "(cached) " >&6
   4376 else
   4377   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4378    then ac_cv_path_EGREP="$GREP -E"
   4379    else
   4380      if test -z "$EGREP"; then
   4381   ac_path_EGREP_found=false
   4382   # Loop through the user's path and test for each of PROGNAME-LIST
   4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4385 do
   4386   IFS=$as_save_IFS
   4387   test -z "$as_dir" && as_dir=.
   4388   for ac_prog in egrep; do
   4389     for ac_exec_ext in '' $ac_executable_extensions; do
   4390       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4391       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4392 # Check for GNU ac_path_EGREP and select it if it is found.
   4393   # Check for GNU $ac_path_EGREP
   4394 case `"$ac_path_EGREP" --version 2>&1` in
   4395 *GNU*)
   4396   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4397 *)
   4398   ac_count=0
   4399   $as_echo_n 0123456789 >"conftest.in"
   4400   while :
   4401   do
   4402     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4403     mv "conftest.tmp" "conftest.in"
   4404     cp "conftest.in" "conftest.nl"
   4405     $as_echo 'EGREP' >> "conftest.nl"
   4406     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4408     ac_count=`expr $ac_count + 1`
   4409     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4410       # Best one so far, save it but keep looking for a better one
   4411       ac_cv_path_EGREP="$ac_path_EGREP"
   4412       ac_path_EGREP_max=$ac_count
   4413     fi
   4414     # 10*(2^10) chars as input seems more than enough
   4415     test $ac_count -gt 10 && break
   4416   done
   4417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4418 esac
   4419 
   4420       $ac_path_EGREP_found && break 3
   4421     done
   4422   done
   4423 done
   4424 IFS=$as_save_IFS
   4425   if test -z "$ac_cv_path_EGREP"; then
   4426     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4427 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4428    { (exit 1); exit 1; }; }
   4429   fi
   4430 else
   4431   ac_cv_path_EGREP=$EGREP
   4432 fi
   4433 
   4434    fi
   4435 fi
   4436 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4437 $as_echo "$ac_cv_path_EGREP" >&6; }
   4438  EGREP="$ac_cv_path_EGREP"
   4439 
   4440 
   4441 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4442 $as_echo_n "checking for ANSI C header files... " >&6; }
   4443 if test "${ac_cv_header_stdc+set}" = set; then
   4444   $as_echo_n "(cached) " >&6
   4445 else
   4446   cat >conftest.$ac_ext <<_ACEOF
   4447 /* confdefs.h.  */
   4448 _ACEOF
   4449 cat confdefs.h >>conftest.$ac_ext
   4450 cat >>conftest.$ac_ext <<_ACEOF
   4451 /* end confdefs.h.  */
   4452 #include <stdlib.h>
   4453 #include <stdarg.h>
   4454 #include <string.h>
   4455 #include <float.h>
   4456 
   4457 int
   4458 main ()
   4459 {
   4460 
   4461   ;
   4462   return 0;
   4463 }
   4464 _ACEOF
   4465 rm -f conftest.$ac_objext
   4466 if { (ac_try="$ac_compile"
   4467 case "(($ac_try" in
   4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4469   *) ac_try_echo=$ac_try;;
   4470 esac
   4471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4472 $as_echo "$ac_try_echo") >&5
   4473   (eval "$ac_compile") 2>conftest.er1
   4474   ac_status=$?
   4475   grep -v '^ *+' conftest.er1 >conftest.err
   4476   rm -f conftest.er1
   4477   cat conftest.err >&5
   4478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4479   (exit $ac_status); } && {
   4480 	 test -z "$ac_c_werror_flag" ||
   4481 	 test ! -s conftest.err
   4482        } && test -s conftest.$ac_objext; then
   4483   ac_cv_header_stdc=yes
   4484 else
   4485   $as_echo "$as_me: failed program was:" >&5
   4486 sed 's/^/| /' conftest.$ac_ext >&5
   4487 
   4488 	ac_cv_header_stdc=no
   4489 fi
   4490 
   4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4492 
   4493 if test $ac_cv_header_stdc = yes; then
   4494   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4495   cat >conftest.$ac_ext <<_ACEOF
   4496 /* confdefs.h.  */
   4497 _ACEOF
   4498 cat confdefs.h >>conftest.$ac_ext
   4499 cat >>conftest.$ac_ext <<_ACEOF
   4500 /* end confdefs.h.  */
   4501 #include <string.h>
   4502 
   4503 _ACEOF
   4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4505   $EGREP "memchr" >/dev/null 2>&1; then
   4506   :
   4507 else
   4508   ac_cv_header_stdc=no
   4509 fi
   4510 rm -f conftest*
   4511 
   4512 fi
   4513 
   4514 if test $ac_cv_header_stdc = yes; then
   4515   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4516   cat >conftest.$ac_ext <<_ACEOF
   4517 /* confdefs.h.  */
   4518 _ACEOF
   4519 cat confdefs.h >>conftest.$ac_ext
   4520 cat >>conftest.$ac_ext <<_ACEOF
   4521 /* end confdefs.h.  */
   4522 #include <stdlib.h>
   4523 
   4524 _ACEOF
   4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4526   $EGREP "free" >/dev/null 2>&1; then
   4527   :
   4528 else
   4529   ac_cv_header_stdc=no
   4530 fi
   4531 rm -f conftest*
   4532 
   4533 fi
   4534 
   4535 if test $ac_cv_header_stdc = yes; then
   4536   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4537   if test "$cross_compiling" = yes; then
   4538   :
   4539 else
   4540   cat >conftest.$ac_ext <<_ACEOF
   4541 /* confdefs.h.  */
   4542 _ACEOF
   4543 cat confdefs.h >>conftest.$ac_ext
   4544 cat >>conftest.$ac_ext <<_ACEOF
   4545 /* end confdefs.h.  */
   4546 #include <ctype.h>
   4547 #include <stdlib.h>
   4548 #if ((' ' & 0x0FF) == 0x020)
   4549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4551 #else
   4552 # define ISLOWER(c) \
   4553 		   (('a' <= (c) && (c) <= 'i') \
   4554 		     || ('j' <= (c) && (c) <= 'r') \
   4555 		     || ('s' <= (c) && (c) <= 'z'))
   4556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4557 #endif
   4558 
   4559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4560 int
   4561 main ()
   4562 {
   4563   int i;
   4564   for (i = 0; i < 256; i++)
   4565     if (XOR (islower (i), ISLOWER (i))
   4566 	|| toupper (i) != TOUPPER (i))
   4567       return 2;
   4568   return 0;
   4569 }
   4570 _ACEOF
   4571 rm -f conftest$ac_exeext
   4572 if { (ac_try="$ac_link"
   4573 case "(($ac_try" in
   4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4575   *) ac_try_echo=$ac_try;;
   4576 esac
   4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4578 $as_echo "$ac_try_echo") >&5
   4579   (eval "$ac_link") 2>&5
   4580   ac_status=$?
   4581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4583   { (case "(($ac_try" in
   4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4585   *) ac_try_echo=$ac_try;;
   4586 esac
   4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4588 $as_echo "$ac_try_echo") >&5
   4589   (eval "$ac_try") 2>&5
   4590   ac_status=$?
   4591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4592   (exit $ac_status); }; }; then
   4593   :
   4594 else
   4595   $as_echo "$as_me: program exited with status $ac_status" >&5
   4596 $as_echo "$as_me: failed program was:" >&5
   4597 sed 's/^/| /' conftest.$ac_ext >&5
   4598 
   4599 ( exit $ac_status )
   4600 ac_cv_header_stdc=no
   4601 fi
   4602 rm -rf conftest.dSYM
   4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4604 fi
   4605 
   4606 
   4607 fi
   4608 fi
   4609 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4610 $as_echo "$ac_cv_header_stdc" >&6; }
   4611 if test $ac_cv_header_stdc = yes; then
   4612 
   4613 cat >>confdefs.h <<\_ACEOF
   4614 #define STDC_HEADERS 1
   4615 _ACEOF
   4616 
   4617 fi
   4618 
   4619 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4620 
   4621 
   4622 
   4623 
   4624 
   4625 
   4626 
   4627 
   4628 
   4629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4630 		  inttypes.h stdint.h unistd.h
   4631 do
   4632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   4634 $as_echo_n "checking for $ac_header... " >&6; }
   4635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4636   $as_echo_n "(cached) " >&6
   4637 else
   4638   cat >conftest.$ac_ext <<_ACEOF
   4639 /* confdefs.h.  */
   4640 _ACEOF
   4641 cat confdefs.h >>conftest.$ac_ext
   4642 cat >>conftest.$ac_ext <<_ACEOF
   4643 /* end confdefs.h.  */
   4644 $ac_includes_default
   4645 
   4646 #include <$ac_header>
   4647 _ACEOF
   4648 rm -f conftest.$ac_objext
   4649 if { (ac_try="$ac_compile"
   4650 case "(($ac_try" in
   4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4652   *) ac_try_echo=$ac_try;;
   4653 esac
   4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4655 $as_echo "$ac_try_echo") >&5
   4656   (eval "$ac_compile") 2>conftest.er1
   4657   ac_status=$?
   4658   grep -v '^ *+' conftest.er1 >conftest.err
   4659   rm -f conftest.er1
   4660   cat conftest.err >&5
   4661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4662   (exit $ac_status); } && {
   4663 	 test -z "$ac_c_werror_flag" ||
   4664 	 test ! -s conftest.err
   4665        } && test -s conftest.$ac_objext; then
   4666   eval "$as_ac_Header=yes"
   4667 else
   4668   $as_echo "$as_me: failed program was:" >&5
   4669 sed 's/^/| /' conftest.$ac_ext >&5
   4670 
   4671 	eval "$as_ac_Header=no"
   4672 fi
   4673 
   4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4675 fi
   4676 ac_res=`eval 'as_val=${'$as_ac_Header'}
   4677 		 $as_echo "$as_val"'`
   4678 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   4679 $as_echo "$ac_res" >&6; }
   4680 as_val=`eval 'as_val=${'$as_ac_Header'}
   4681 		 $as_echo "$as_val"'`
   4682    if test "x$as_val" = x""yes; then
   4683   cat >>confdefs.h <<_ACEOF
   4684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4685 _ACEOF
   4686 
   4687 fi
   4688 
   4689 done
   4690 
   4691 
   4692 
   4693 
   4694 
   4695   if test "${ac_cv_header_minix_config_h+set}" = set; then
   4696   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
   4697 $as_echo_n "checking for minix/config.h... " >&6; }
   4698 if test "${ac_cv_header_minix_config_h+set}" = set; then
   4699   $as_echo_n "(cached) " >&6
   4700 fi
   4701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
   4702 $as_echo "$ac_cv_header_minix_config_h" >&6; }
   4703 else
   4704   # Is the header compilable?
   4705 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
   4706 $as_echo_n "checking minix/config.h usability... " >&6; }
   4707 cat >conftest.$ac_ext <<_ACEOF
   4708 /* confdefs.h.  */
   4709 _ACEOF
   4710 cat confdefs.h >>conftest.$ac_ext
   4711 cat >>conftest.$ac_ext <<_ACEOF
   4712 /* end confdefs.h.  */
   4713 $ac_includes_default
   4714 #include <minix/config.h>
   4715 _ACEOF
   4716 rm -f conftest.$ac_objext
   4717 if { (ac_try="$ac_compile"
   4718 case "(($ac_try" in
   4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4720   *) ac_try_echo=$ac_try;;
   4721 esac
   4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4723 $as_echo "$ac_try_echo") >&5
   4724   (eval "$ac_compile") 2>conftest.er1
   4725   ac_status=$?
   4726   grep -v '^ *+' conftest.er1 >conftest.err
   4727   rm -f conftest.er1
   4728   cat conftest.err >&5
   4729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4730   (exit $ac_status); } && {
   4731 	 test -z "$ac_c_werror_flag" ||
   4732 	 test ! -s conftest.err
   4733        } && test -s conftest.$ac_objext; then
   4734   ac_header_compiler=yes
   4735 else
   4736   $as_echo "$as_me: failed program was:" >&5
   4737 sed 's/^/| /' conftest.$ac_ext >&5
   4738 
   4739 	ac_header_compiler=no
   4740 fi
   4741 
   4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   4744 $as_echo "$ac_header_compiler" >&6; }
   4745 
   4746 # Is the header present?
   4747 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
   4748 $as_echo_n "checking minix/config.h presence... " >&6; }
   4749 cat >conftest.$ac_ext <<_ACEOF
   4750 /* confdefs.h.  */
   4751 _ACEOF
   4752 cat confdefs.h >>conftest.$ac_ext
   4753 cat >>conftest.$ac_ext <<_ACEOF
   4754 /* end confdefs.h.  */
   4755 #include <minix/config.h>
   4756 _ACEOF
   4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4758 case "(($ac_try" in
   4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4760   *) ac_try_echo=$ac_try;;
   4761 esac
   4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4763 $as_echo "$ac_try_echo") >&5
   4764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4765   ac_status=$?
   4766   grep -v '^ *+' conftest.er1 >conftest.err
   4767   rm -f conftest.er1
   4768   cat conftest.err >&5
   4769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4770   (exit $ac_status); } >/dev/null && {
   4771 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4772 	 test ! -s conftest.err
   4773        }; then
   4774   ac_header_preproc=yes
   4775 else
   4776   $as_echo "$as_me: failed program was:" >&5
   4777 sed 's/^/| /' conftest.$ac_ext >&5
   4778 
   4779   ac_header_preproc=no
   4780 fi
   4781 
   4782 rm -f conftest.err conftest.$ac_ext
   4783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   4784 $as_echo "$ac_header_preproc" >&6; }
   4785 
   4786 # So?  What about this header?
   4787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   4788   yes:no: )
   4789     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
   4790 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   4791     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
   4792 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
   4793     ac_header_preproc=yes
   4794     ;;
   4795   no:yes:* )
   4796     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
   4797 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
   4798     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
   4799 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
   4800     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
   4801 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
   4802     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
   4803 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   4804     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
   4805 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
   4806     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
   4807 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
   4808     ( cat <<\_ASBOX
   4809 ## ------------------------------------ ##
   4810 ## Report this to bug-gnu-utils (at] gnu.org ##
   4811 ## ------------------------------------ ##
   4812 _ASBOX
   4813      ) | sed "s/^/$as_me: WARNING:     /" >&2
   4814     ;;
   4815 esac
   4816 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
   4817 $as_echo_n "checking for minix/config.h... " >&6; }
   4818 if test "${ac_cv_header_minix_config_h+set}" = set; then
   4819   $as_echo_n "(cached) " >&6
   4820 else
   4821   ac_cv_header_minix_config_h=$ac_header_preproc
   4822 fi
   4823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
   4824 $as_echo "$ac_cv_header_minix_config_h" >&6; }
   4825 
   4826 fi
   4827 if test "x$ac_cv_header_minix_config_h" = x""yes; then
   4828   MINIX=yes
   4829 else
   4830   MINIX=
   4831 fi
   4832 
   4833 
   4834   if test "$MINIX" = yes; then
   4835 
   4836 cat >>confdefs.h <<\_ACEOF
   4837 #define _POSIX_SOURCE 1
   4838 _ACEOF
   4839 
   4840 
   4841 cat >>confdefs.h <<\_ACEOF
   4842 #define _POSIX_1_SOURCE 2
   4843 _ACEOF
   4844 
   4845 
   4846 cat >>confdefs.h <<\_ACEOF
   4847 #define _MINIX 1
   4848 _ACEOF
   4849 
   4850   fi
   4851 
   4852         case "$host_os" in
   4853     hpux*)
   4854 
   4855 cat >>confdefs.h <<\_ACEOF
   4856 #define _XOPEN_SOURCE 500
   4857 _ACEOF
   4858 
   4859       ;;
   4860   esac
   4861 
   4862 
   4863 
   4864   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
   4865 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4866 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
   4867   $as_echo_n "(cached) " >&6
   4868 else
   4869   cat >conftest.$ac_ext <<_ACEOF
   4870 /* confdefs.h.  */
   4871 _ACEOF
   4872 cat confdefs.h >>conftest.$ac_ext
   4873 cat >>conftest.$ac_ext <<_ACEOF
   4874 /* end confdefs.h.  */
   4875 
   4876 #	  define __EXTENSIONS__ 1
   4877 	  $ac_includes_default
   4878 int
   4879 main ()
   4880 {
   4881 
   4882   ;
   4883   return 0;
   4884 }
   4885 _ACEOF
   4886 rm -f conftest.$ac_objext
   4887 if { (ac_try="$ac_compile"
   4888 case "(($ac_try" in
   4889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4890   *) ac_try_echo=$ac_try;;
   4891 esac
   4892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4893 $as_echo "$ac_try_echo") >&5
   4894   (eval "$ac_compile") 2>conftest.er1
   4895   ac_status=$?
   4896   grep -v '^ *+' conftest.er1 >conftest.err
   4897   rm -f conftest.er1
   4898   cat conftest.err >&5
   4899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4900   (exit $ac_status); } && {
   4901 	 test -z "$ac_c_werror_flag" ||
   4902 	 test ! -s conftest.err
   4903        } && test -s conftest.$ac_objext; then
   4904   ac_cv_safe_to_define___extensions__=yes
   4905 else
   4906   $as_echo "$as_me: failed program was:" >&5
   4907 sed 's/^/| /' conftest.$ac_ext >&5
   4908 
   4909 	ac_cv_safe_to_define___extensions__=no
   4910 fi
   4911 
   4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4913 fi
   4914 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
   4915 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4916   test $ac_cv_safe_to_define___extensions__ = yes &&
   4917     cat >>confdefs.h <<\_ACEOF
   4918 #define __EXTENSIONS__ 1
   4919 _ACEOF
   4920 
   4921   cat >>confdefs.h <<\_ACEOF
   4922 #define _ALL_SOURCE 1
   4923 _ACEOF
   4924 
   4925   cat >>confdefs.h <<\_ACEOF
   4926 #define _GNU_SOURCE 1
   4927 _ACEOF
   4928 
   4929   cat >>confdefs.h <<\_ACEOF
   4930 #define _POSIX_PTHREAD_SEMANTICS 1
   4931 _ACEOF
   4932 
   4933   cat >>confdefs.h <<\_ACEOF
   4934 #define _TANDEM_SOURCE 1
   4935 _ACEOF
   4936 
   4937 
   4938 
   4939 
   4940 
   4941 
   4942 
   4943 
   4944 
   4945 
   4946 
   4947 
   4948 
   4949 
   4950 
   4951 
   4952 
   4953 
   4954 
   4955 
   4956 { $as_echo "$as_me:$LINENO: checking for inline" >&5
   4957 $as_echo_n "checking for inline... " >&6; }
   4958 if test "${ac_cv_c_inline+set}" = set; then
   4959   $as_echo_n "(cached) " >&6
   4960 else
   4961   ac_cv_c_inline=no
   4962 for ac_kw in inline __inline__ __inline; do
   4963   cat >conftest.$ac_ext <<_ACEOF
   4964 /* confdefs.h.  */
   4965 _ACEOF
   4966 cat confdefs.h >>conftest.$ac_ext
   4967 cat >>conftest.$ac_ext <<_ACEOF
   4968 /* end confdefs.h.  */
   4969 #ifndef __cplusplus
   4970 typedef int foo_t;
   4971 static $ac_kw foo_t static_foo () {return 0; }
   4972 $ac_kw foo_t foo () {return 0; }
   4973 #endif
   4974 
   4975 _ACEOF
   4976 rm -f conftest.$ac_objext
   4977 if { (ac_try="$ac_compile"
   4978 case "(($ac_try" in
   4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4980   *) ac_try_echo=$ac_try;;
   4981 esac
   4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   4983 $as_echo "$ac_try_echo") >&5
   4984   (eval "$ac_compile") 2>conftest.er1
   4985   ac_status=$?
   4986   grep -v '^ *+' conftest.er1 >conftest.err
   4987   rm -f conftest.er1
   4988   cat conftest.err >&5
   4989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4990   (exit $ac_status); } && {
   4991 	 test -z "$ac_c_werror_flag" ||
   4992 	 test ! -s conftest.err
   4993        } && test -s conftest.$ac_objext; then
   4994   ac_cv_c_inline=$ac_kw
   4995 else
   4996   $as_echo "$as_me: failed program was:" >&5
   4997 sed 's/^/| /' conftest.$ac_ext >&5
   4998 
   4999 
   5000 fi
   5001 
   5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5003   test "$ac_cv_c_inline" != no && break
   5004 done
   5005 
   5006 fi
   5007 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   5008 $as_echo "$ac_cv_c_inline" >&6; }
   5009 
   5010 
   5011 case $ac_cv_c_inline in
   5012   inline | yes) ;;
   5013   *)
   5014     case $ac_cv_c_inline in
   5015       no) ac_val=;;
   5016       *) ac_val=$ac_cv_c_inline;;
   5017     esac
   5018     cat >>confdefs.h <<_ACEOF
   5019 #ifndef __cplusplus
   5020 #define inline $ac_val
   5021 #endif
   5022 _ACEOF
   5023     ;;
   5024 esac
   5025 
   5026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   5027 # for constant arguments.  Useless!
   5028 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
   5029 $as_echo_n "checking for working alloca.h... " >&6; }
   5030 if test "${ac_cv_working_alloca_h+set}" = set; then
   5031   $as_echo_n "(cached) " >&6
   5032 else
   5033   cat >conftest.$ac_ext <<_ACEOF
   5034 /* confdefs.h.  */
   5035 _ACEOF
   5036 cat confdefs.h >>conftest.$ac_ext
   5037 cat >>conftest.$ac_ext <<_ACEOF
   5038 /* end confdefs.h.  */
   5039 #include <alloca.h>
   5040 int
   5041 main ()
   5042 {
   5043 char *p = (char *) alloca (2 * sizeof (int));
   5044 			  if (p) return 0;
   5045   ;
   5046   return 0;
   5047 }
   5048 _ACEOF
   5049 rm -f conftest.$ac_objext conftest$ac_exeext
   5050 if { (ac_try="$ac_link"
   5051 case "(($ac_try" in
   5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5053   *) ac_try_echo=$ac_try;;
   5054 esac
   5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5056 $as_echo "$ac_try_echo") >&5
   5057   (eval "$ac_link") 2>conftest.er1
   5058   ac_status=$?
   5059   grep -v '^ *+' conftest.er1 >conftest.err
   5060   rm -f conftest.er1
   5061   cat conftest.err >&5
   5062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5063   (exit $ac_status); } && {
   5064 	 test -z "$ac_c_werror_flag" ||
   5065 	 test ! -s conftest.err
   5066        } && test -s conftest$ac_exeext && {
   5067 	 test "$cross_compiling" = yes ||
   5068 	 $as_test_x conftest$ac_exeext
   5069        }; then
   5070   ac_cv_working_alloca_h=yes
   5071 else
   5072   $as_echo "$as_me: failed program was:" >&5
   5073 sed 's/^/| /' conftest.$ac_ext >&5
   5074 
   5075 	ac_cv_working_alloca_h=no
   5076 fi
   5077 
   5078 rm -rf conftest.dSYM
   5079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5080       conftest$ac_exeext conftest.$ac_ext
   5081 fi
   5082 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
   5083 $as_echo "$ac_cv_working_alloca_h" >&6; }
   5084 if test $ac_cv_working_alloca_h = yes; then
   5085 
   5086 cat >>confdefs.h <<\_ACEOF
   5087 #define HAVE_ALLOCA_H 1
   5088 _ACEOF
   5089 
   5090 fi
   5091 
   5092 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
   5093 $as_echo_n "checking for alloca... " >&6; }
   5094 if test "${ac_cv_func_alloca_works+set}" = set; then
   5095   $as_echo_n "(cached) " >&6
   5096 else
   5097   cat >conftest.$ac_ext <<_ACEOF
   5098 /* confdefs.h.  */
   5099 _ACEOF
   5100 cat confdefs.h >>conftest.$ac_ext
   5101 cat >>conftest.$ac_ext <<_ACEOF
   5102 /* end confdefs.h.  */
   5103 #ifdef __GNUC__
   5104 # define alloca __builtin_alloca
   5105 #else
   5106 # ifdef _MSC_VER
   5107 #  include <malloc.h>
   5108 #  define alloca _alloca
   5109 # else
   5110 #  ifdef HAVE_ALLOCA_H
   5111 #   include <alloca.h>
   5112 #  else
   5113 #   ifdef _AIX
   5114  #pragma alloca
   5115 #   else
   5116 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   5117 char *alloca ();
   5118 #    endif
   5119 #   endif
   5120 #  endif
   5121 # endif
   5122 #endif
   5123 
   5124 int
   5125 main ()
   5126 {
   5127 char *p = (char *) alloca (1);
   5128 				    if (p) return 0;
   5129   ;
   5130   return 0;
   5131 }
   5132 _ACEOF
   5133 rm -f conftest.$ac_objext conftest$ac_exeext
   5134 if { (ac_try="$ac_link"
   5135 case "(($ac_try" in
   5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5137   *) ac_try_echo=$ac_try;;
   5138 esac
   5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5140 $as_echo "$ac_try_echo") >&5
   5141   (eval "$ac_link") 2>conftest.er1
   5142   ac_status=$?
   5143   grep -v '^ *+' conftest.er1 >conftest.err
   5144   rm -f conftest.er1
   5145   cat conftest.err >&5
   5146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5147   (exit $ac_status); } && {
   5148 	 test -z "$ac_c_werror_flag" ||
   5149 	 test ! -s conftest.err
   5150        } && test -s conftest$ac_exeext && {
   5151 	 test "$cross_compiling" = yes ||
   5152 	 $as_test_x conftest$ac_exeext
   5153        }; then
   5154   ac_cv_func_alloca_works=yes
   5155 else
   5156   $as_echo "$as_me: failed program was:" >&5
   5157 sed 's/^/| /' conftest.$ac_ext >&5
   5158 
   5159 	ac_cv_func_alloca_works=no
   5160 fi
   5161 
   5162 rm -rf conftest.dSYM
   5163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5164       conftest$ac_exeext conftest.$ac_ext
   5165 fi
   5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
   5167 $as_echo "$ac_cv_func_alloca_works" >&6; }
   5168 
   5169 if test $ac_cv_func_alloca_works = yes; then
   5170 
   5171 cat >>confdefs.h <<\_ACEOF
   5172 #define HAVE_ALLOCA 1
   5173 _ACEOF
   5174 
   5175 else
   5176   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   5177 # that cause trouble.  Some versions do not even contain alloca or
   5178 # contain a buggy version.  If you still want to use their alloca,
   5179 # use ar to extract alloca.o from them instead of compiling alloca.c.
   5180 
   5181 
   5182 
   5183 
   5184 
   5185 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   5186 
   5187 cat >>confdefs.h <<\_ACEOF
   5188 #define C_ALLOCA 1
   5189 _ACEOF
   5190 
   5191 
   5192 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
   5193 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   5194 if test "${ac_cv_os_cray+set}" = set; then
   5195   $as_echo_n "(cached) " >&6
   5196 else
   5197   cat >conftest.$ac_ext <<_ACEOF
   5198 /* confdefs.h.  */
   5199 _ACEOF
   5200 cat confdefs.h >>conftest.$ac_ext
   5201 cat >>conftest.$ac_ext <<_ACEOF
   5202 /* end confdefs.h.  */
   5203 #if defined CRAY && ! defined CRAY2
   5204 webecray
   5205 #else
   5206 wenotbecray
   5207 #endif
   5208 
   5209 _ACEOF
   5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5211   $EGREP "webecray" >/dev/null 2>&1; then
   5212   ac_cv_os_cray=yes
   5213 else
   5214   ac_cv_os_cray=no
   5215 fi
   5216 rm -f conftest*
   5217 
   5218 fi
   5219 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
   5220 $as_echo "$ac_cv_os_cray" >&6; }
   5221 if test $ac_cv_os_cray = yes; then
   5222   for ac_func in _getb67 GETB67 getb67; do
   5223     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   5225 $as_echo_n "checking for $ac_func... " >&6; }
   5226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5227   $as_echo_n "(cached) " >&6
   5228 else
   5229   cat >conftest.$ac_ext <<_ACEOF
   5230 /* confdefs.h.  */
   5231 _ACEOF
   5232 cat confdefs.h >>conftest.$ac_ext
   5233 cat >>conftest.$ac_ext <<_ACEOF
   5234 /* end confdefs.h.  */
   5235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5237 #define $ac_func innocuous_$ac_func
   5238 
   5239 /* System header to define __stub macros and hopefully few prototypes,
   5240     which can conflict with char $ac_func (); below.
   5241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5242     <limits.h> exists even on freestanding compilers.  */
   5243 
   5244 #ifdef __STDC__
   5245 # include <limits.h>
   5246 #else
   5247 # include <assert.h>
   5248 #endif
   5249 
   5250 #undef $ac_func
   5251 
   5252 /* Override any GCC internal prototype to avoid an error.
   5253    Use char because int might match the return type of a GCC
   5254    builtin and then its argument prototype would still apply.  */
   5255 #ifdef __cplusplus
   5256 extern "C"
   5257 #endif
   5258 char $ac_func ();
   5259 /* The GNU C library defines this for functions which it implements
   5260     to always fail with ENOSYS.  Some functions are actually named
   5261     something starting with __ and the normal name is an alias.  */
   5262 #if defined __stub_$ac_func || defined __stub___$ac_func
   5263 choke me
   5264 #endif
   5265 
   5266 int
   5267 main ()
   5268 {
   5269 return $ac_func ();
   5270   ;
   5271   return 0;
   5272 }
   5273 _ACEOF
   5274 rm -f conftest.$ac_objext conftest$ac_exeext
   5275 if { (ac_try="$ac_link"
   5276 case "(($ac_try" in
   5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5278   *) ac_try_echo=$ac_try;;
   5279 esac
   5280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5281 $as_echo "$ac_try_echo") >&5
   5282   (eval "$ac_link") 2>conftest.er1
   5283   ac_status=$?
   5284   grep -v '^ *+' conftest.er1 >conftest.err
   5285   rm -f conftest.er1
   5286   cat conftest.err >&5
   5287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5288   (exit $ac_status); } && {
   5289 	 test -z "$ac_c_werror_flag" ||
   5290 	 test ! -s conftest.err
   5291        } && test -s conftest$ac_exeext && {
   5292 	 test "$cross_compiling" = yes ||
   5293 	 $as_test_x conftest$ac_exeext
   5294        }; then
   5295   eval "$as_ac_var=yes"
   5296 else
   5297   $as_echo "$as_me: failed program was:" >&5
   5298 sed 's/^/| /' conftest.$ac_ext >&5
   5299 
   5300 	eval "$as_ac_var=no"
   5301 fi
   5302 
   5303 rm -rf conftest.dSYM
   5304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5305       conftest$ac_exeext conftest.$ac_ext
   5306 fi
   5307 ac_res=`eval 'as_val=${'$as_ac_var'}
   5308 		 $as_echo "$as_val"'`
   5309 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   5310 $as_echo "$ac_res" >&6; }
   5311 as_val=`eval 'as_val=${'$as_ac_var'}
   5312 		 $as_echo "$as_val"'`
   5313    if test "x$as_val" = x""yes; then
   5314 
   5315 cat >>confdefs.h <<_ACEOF
   5316 #define CRAY_STACKSEG_END $ac_func
   5317 _ACEOF
   5318 
   5319     break
   5320 fi
   5321 
   5322   done
   5323 fi
   5324 
   5325 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
   5326 $as_echo_n "checking stack direction for C alloca... " >&6; }
   5327 if test "${ac_cv_c_stack_direction+set}" = set; then
   5328   $as_echo_n "(cached) " >&6
   5329 else
   5330   if test "$cross_compiling" = yes; then
   5331   ac_cv_c_stack_direction=0
   5332 else
   5333   cat >conftest.$ac_ext <<_ACEOF
   5334 /* confdefs.h.  */
   5335 _ACEOF
   5336 cat confdefs.h >>conftest.$ac_ext
   5337 cat >>conftest.$ac_ext <<_ACEOF
   5338 /* end confdefs.h.  */
   5339 $ac_includes_default
   5340 int
   5341 find_stack_direction ()
   5342 {
   5343   static char *addr = 0;
   5344   auto char dummy;
   5345   if (addr == 0)
   5346     {
   5347       addr = &dummy;
   5348       return find_stack_direction ();
   5349     }
   5350   else
   5351     return (&dummy > addr) ? 1 : -1;
   5352 }
   5353 
   5354 int
   5355 main ()
   5356 {
   5357   return find_stack_direction () < 0;
   5358 }
   5359 _ACEOF
   5360 rm -f conftest$ac_exeext
   5361 if { (ac_try="$ac_link"
   5362 case "(($ac_try" in
   5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5364   *) ac_try_echo=$ac_try;;
   5365 esac
   5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5367 $as_echo "$ac_try_echo") >&5
   5368   (eval "$ac_link") 2>&5
   5369   ac_status=$?
   5370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5372   { (case "(($ac_try" in
   5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5374   *) ac_try_echo=$ac_try;;
   5375 esac
   5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5377 $as_echo "$ac_try_echo") >&5
   5378   (eval "$ac_try") 2>&5
   5379   ac_status=$?
   5380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5381   (exit $ac_status); }; }; then
   5382   ac_cv_c_stack_direction=1
   5383 else
   5384   $as_echo "$as_me: program exited with status $ac_status" >&5
   5385 $as_echo "$as_me: failed program was:" >&5
   5386 sed 's/^/| /' conftest.$ac_ext >&5
   5387 
   5388 ( exit $ac_status )
   5389 ac_cv_c_stack_direction=-1
   5390 fi
   5391 rm -rf conftest.dSYM
   5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5393 fi
   5394 
   5395 
   5396 fi
   5397 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
   5398 $as_echo "$ac_cv_c_stack_direction" >&6; }
   5399 
   5400 cat >>confdefs.h <<_ACEOF
   5401 #define STACK_DIRECTION $ac_cv_c_stack_direction
   5402 _ACEOF
   5403 
   5404 
   5405 fi
   5406 
   5407 
   5408   GNULIB_BTOWC=0;
   5409   GNULIB_WCTOB=0;
   5410   GNULIB_MBSINIT=0;
   5411   GNULIB_MBRTOWC=0;
   5412   GNULIB_MBRLEN=0;
   5413   GNULIB_MBSRTOWCS=0;
   5414   GNULIB_MBSNRTOWCS=0;
   5415   GNULIB_WCRTOMB=0;
   5416   GNULIB_WCSRTOMBS=0;
   5417   GNULIB_WCSNRTOMBS=0;
   5418   GNULIB_WCWIDTH=0;
   5419     HAVE_BTOWC=1;
   5420   HAVE_MBSINIT=1;
   5421   HAVE_MBRTOWC=1;
   5422   HAVE_MBRLEN=1;
   5423   HAVE_MBSRTOWCS=1;
   5424   HAVE_MBSNRTOWCS=1;
   5425   HAVE_WCRTOMB=1;
   5426   HAVE_WCSRTOMBS=1;
   5427   HAVE_WCSNRTOMBS=1;
   5428   HAVE_DECL_WCTOB=1;
   5429   HAVE_DECL_WCWIDTH=1;
   5430   REPLACE_MBSTATE_T=0;
   5431   REPLACE_BTOWC=0;
   5432   REPLACE_WCTOB=0;
   5433   REPLACE_MBSINIT=0;
   5434   REPLACE_MBRTOWC=0;
   5435   REPLACE_MBRLEN=0;
   5436   REPLACE_MBSRTOWCS=0;
   5437   REPLACE_MBSNRTOWCS=0;
   5438   REPLACE_WCRTOMB=0;
   5439   REPLACE_WCSRTOMBS=0;
   5440   REPLACE_WCSNRTOMBS=0;
   5441   REPLACE_WCWIDTH=0;
   5442   WCHAR_H='';
   5443 
   5444 
   5445 
   5446 
   5447 
   5448 for ac_func in $ac_func_list
   5449 do
   5450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5451 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   5452 $as_echo_n "checking for $ac_func... " >&6; }
   5453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5454   $as_echo_n "(cached) " >&6
   5455 else
   5456   cat >conftest.$ac_ext <<_ACEOF
   5457 /* confdefs.h.  */
   5458 _ACEOF
   5459 cat confdefs.h >>conftest.$ac_ext
   5460 cat >>conftest.$ac_ext <<_ACEOF
   5461 /* end confdefs.h.  */
   5462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5464 #define $ac_func innocuous_$ac_func
   5465 
   5466 /* System header to define __stub macros and hopefully few prototypes,
   5467     which can conflict with char $ac_func (); below.
   5468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5469     <limits.h> exists even on freestanding compilers.  */
   5470 
   5471 #ifdef __STDC__
   5472 # include <limits.h>
   5473 #else
   5474 # include <assert.h>
   5475 #endif
   5476 
   5477 #undef $ac_func
   5478 
   5479 /* Override any GCC internal prototype to avoid an error.
   5480    Use char because int might match the return type of a GCC
   5481    builtin and then its argument prototype would still apply.  */
   5482 #ifdef __cplusplus
   5483 extern "C"
   5484 #endif
   5485 char $ac_func ();
   5486 /* The GNU C library defines this for functions which it implements
   5487     to always fail with ENOSYS.  Some functions are actually named
   5488     something starting with __ and the normal name is an alias.  */
   5489 #if defined __stub_$ac_func || defined __stub___$ac_func
   5490 choke me
   5491 #endif
   5492 
   5493 int
   5494 main ()
   5495 {
   5496 return $ac_func ();
   5497   ;
   5498   return 0;
   5499 }
   5500 _ACEOF
   5501 rm -f conftest.$ac_objext conftest$ac_exeext
   5502 if { (ac_try="$ac_link"
   5503 case "(($ac_try" in
   5504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5505   *) ac_try_echo=$ac_try;;
   5506 esac
   5507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5508 $as_echo "$ac_try_echo") >&5
   5509   (eval "$ac_link") 2>conftest.er1
   5510   ac_status=$?
   5511   grep -v '^ *+' conftest.er1 >conftest.err
   5512   rm -f conftest.er1
   5513   cat conftest.err >&5
   5514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5515   (exit $ac_status); } && {
   5516 	 test -z "$ac_c_werror_flag" ||
   5517 	 test ! -s conftest.err
   5518        } && test -s conftest$ac_exeext && {
   5519 	 test "$cross_compiling" = yes ||
   5520 	 $as_test_x conftest$ac_exeext
   5521        }; then
   5522   eval "$as_ac_var=yes"
   5523 else
   5524   $as_echo "$as_me: failed program was:" >&5
   5525 sed 's/^/| /' conftest.$ac_ext >&5
   5526 
   5527 	eval "$as_ac_var=no"
   5528 fi
   5529 
   5530 rm -rf conftest.dSYM
   5531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5532       conftest$ac_exeext conftest.$ac_ext
   5533 fi
   5534 ac_res=`eval 'as_val=${'$as_ac_var'}
   5535 		 $as_echo "$as_val"'`
   5536 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   5537 $as_echo "$ac_res" >&6; }
   5538 as_val=`eval 'as_val=${'$as_ac_var'}
   5539 		 $as_echo "$as_val"'`
   5540    if test "x$as_val" = x""yes; then
   5541   cat >>confdefs.h <<_ACEOF
   5542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5543 _ACEOF
   5544 
   5545 fi
   5546 done
   5547 
   5548 
   5549 
   5550 
   5551   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
   5552 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   5553 if test "${am_cv_langinfo_codeset+set}" = set; then
   5554   $as_echo_n "(cached) " >&6
   5555 else
   5556   cat >conftest.$ac_ext <<_ACEOF
   5557 /* confdefs.h.  */
   5558 _ACEOF
   5559 cat confdefs.h >>conftest.$ac_ext
   5560 cat >>conftest.$ac_ext <<_ACEOF
   5561 /* end confdefs.h.  */
   5562 #include <langinfo.h>
   5563 int
   5564 main ()
   5565 {
   5566 char* cs = nl_langinfo(CODESET); return !cs;
   5567   ;
   5568   return 0;
   5569 }
   5570 _ACEOF
   5571 rm -f conftest.$ac_objext conftest$ac_exeext
   5572 if { (ac_try="$ac_link"
   5573 case "(($ac_try" in
   5574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5575   *) ac_try_echo=$ac_try;;
   5576 esac
   5577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5578 $as_echo "$ac_try_echo") >&5
   5579   (eval "$ac_link") 2>conftest.er1
   5580   ac_status=$?
   5581   grep -v '^ *+' conftest.er1 >conftest.err
   5582   rm -f conftest.er1
   5583   cat conftest.err >&5
   5584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5585   (exit $ac_status); } && {
   5586 	 test -z "$ac_c_werror_flag" ||
   5587 	 test ! -s conftest.err
   5588        } && test -s conftest$ac_exeext && {
   5589 	 test "$cross_compiling" = yes ||
   5590 	 $as_test_x conftest$ac_exeext
   5591        }; then
   5592   am_cv_langinfo_codeset=yes
   5593 else
   5594   $as_echo "$as_me: failed program was:" >&5
   5595 sed 's/^/| /' conftest.$ac_ext >&5
   5596 
   5597 	am_cv_langinfo_codeset=no
   5598 fi
   5599 
   5600 rm -rf conftest.dSYM
   5601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5602       conftest$ac_exeext conftest.$ac_ext
   5603 
   5604 fi
   5605 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
   5606 $as_echo "$am_cv_langinfo_codeset" >&6; }
   5607   if test $am_cv_langinfo_codeset = yes; then
   5608 
   5609 cat >>confdefs.h <<\_ACEOF
   5610 #define HAVE_LANGINFO_CODESET 1
   5611 _ACEOF
   5612 
   5613   fi
   5614 
   5615 
   5616 
   5617 
   5618   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
   5619 $as_echo_n "checking for a traditional french locale... " >&6; }
   5620 if test "${gt_cv_locale_fr+set}" = set; then
   5621   $as_echo_n "(cached) " >&6
   5622 else
   5623 
   5624     cat >conftest.$ac_ext <<_ACEOF
   5625 /* confdefs.h.  */
   5626 _ACEOF
   5627 cat confdefs.h >>conftest.$ac_ext
   5628 cat >>conftest.$ac_ext <<_ACEOF
   5629 /* end confdefs.h.  */
   5630 
   5631 #include <locale.h>
   5632 #include <time.h>
   5633 #if HAVE_LANGINFO_CODESET
   5634 # include <langinfo.h>
   5635 #endif
   5636 #include <stdlib.h>
   5637 #include <string.h>
   5638 struct tm t;
   5639 char buf[16];
   5640 int main () {
   5641   /* Check whether the given locale name is recognized by the system.  */
   5642   if (setlocale (LC_ALL, "") == NULL) return 1;
   5643   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   5644      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   5645      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   5646      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   5647      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   5648      some unit tests fail.  */
   5649 #if HAVE_LANGINFO_CODESET
   5650   {
   5651     const char *cs = nl_langinfo (CODESET);
   5652     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   5653       return 1;
   5654   }
   5655 #endif
   5656 #ifdef __CYGWIN__
   5657   /* On Cygwin, avoid locale names without encoding suffix, because the
   5658      locale_charset() function relies on the encoding suffix.  Note that
   5659      LC_ALL is set on the command line.  */
   5660   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   5661 #endif
   5662   /* Check whether in the abbreviation of the second month, the second
   5663      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
   5664      one byte long. This excludes the UTF-8 encoding.  */
   5665   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   5666   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
   5667   /* Check whether the decimal separator is a comma.
   5668      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
   5669      are nl_langinfo(RADIXCHAR) are both ".".  */
   5670   if (localeconv () ->decimal_point[0] != ',') return 1;
   5671   return 0;
   5672 }
   5673 
   5674 _ACEOF
   5675     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5676   (eval $ac_link) 2>&5
   5677   ac_status=$?
   5678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5679   (exit $ac_status); } && test -s conftest$ac_exeext; then
   5680       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   5681       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
   5682       # configure script would override the LC_ALL setting. Likewise for
   5683       # LC_CTYPE, which is also set at the beginning of the configure script.
   5684       # Test for the usual locale name.
   5685       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   5686         gt_cv_locale_fr=fr_FR
   5687       else
   5688         # Test for the locale name with explicit encoding suffix.
   5689         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   5690           gt_cv_locale_fr=fr_FR.ISO-8859-1
   5691         else
   5692           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
   5693           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   5694             gt_cv_locale_fr=fr_FR.ISO8859-1
   5695           else
   5696             # Test for the HP-UX locale name.
   5697             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   5698               gt_cv_locale_fr=fr_FR.iso88591
   5699             else
   5700               # Test for the Solaris 7 locale name.
   5701               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   5702                 gt_cv_locale_fr=fr
   5703               else
   5704                 # None found.
   5705                 gt_cv_locale_fr=none
   5706               fi
   5707             fi
   5708           fi
   5709         fi
   5710       fi
   5711     fi
   5712     rm -fr conftest*
   5713 
   5714 fi
   5715 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
   5716 $as_echo "$gt_cv_locale_fr" >&6; }
   5717   LOCALE_FR=$gt_cv_locale_fr
   5718 
   5719 
   5720 
   5721     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
   5722 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
   5723 if test "${ac_cv_win_or_dos+set}" = set; then
   5724   $as_echo_n "(cached) " >&6
   5725 else
   5726 
   5727 	cat >conftest.$ac_ext <<_ACEOF
   5728 /* confdefs.h.  */
   5729 _ACEOF
   5730 cat confdefs.h >>conftest.$ac_ext
   5731 cat >>conftest.$ac_ext <<_ACEOF
   5732 /* end confdefs.h.  */
   5733 
   5734 int
   5735 main ()
   5736 {
   5737 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
   5738 neither MSDOS nor Windows
   5739 #endif
   5740   ;
   5741   return 0;
   5742 }
   5743 _ACEOF
   5744 rm -f conftest.$ac_objext
   5745 if { (ac_try="$ac_compile"
   5746 case "(($ac_try" in
   5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5748   *) ac_try_echo=$ac_try;;
   5749 esac
   5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5751 $as_echo "$ac_try_echo") >&5
   5752   (eval "$ac_compile") 2>conftest.er1
   5753   ac_status=$?
   5754   grep -v '^ *+' conftest.er1 >conftest.err
   5755   rm -f conftest.er1
   5756   cat conftest.err >&5
   5757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5758   (exit $ac_status); } && {
   5759 	 test -z "$ac_c_werror_flag" ||
   5760 	 test ! -s conftest.err
   5761        } && test -s conftest.$ac_objext; then
   5762   ac_cv_win_or_dos=yes
   5763 else
   5764   $as_echo "$as_me: failed program was:" >&5
   5765 sed 's/^/| /' conftest.$ac_ext >&5
   5766 
   5767 	ac_cv_win_or_dos=no
   5768 fi
   5769 
   5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5771 
   5772 fi
   5773 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
   5774 $as_echo "$ac_cv_win_or_dos" >&6; }
   5775 
   5776     if test x"$ac_cv_win_or_dos" = xyes; then
   5777       ac_fs_accepts_drive_letter_prefix=1
   5778       ac_fs_backslash_is_file_name_separator=1
   5779       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
   5780 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
   5781 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
   5782   $as_echo_n "(cached) " >&6
   5783 else
   5784 
   5785 	  cat >conftest.$ac_ext <<_ACEOF
   5786 /* confdefs.h.  */
   5787 _ACEOF
   5788 cat confdefs.h >>conftest.$ac_ext
   5789 cat >>conftest.$ac_ext <<_ACEOF
   5790 /* end confdefs.h.  */
   5791 
   5792 int
   5793 main ()
   5794 {
   5795 #if defined __CYGWIN__
   5796 drive letters are always absolute
   5797 #endif
   5798   ;
   5799   return 0;
   5800 }
   5801 _ACEOF
   5802 rm -f conftest.$ac_objext
   5803 if { (ac_try="$ac_compile"
   5804 case "(($ac_try" in
   5805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5806   *) ac_try_echo=$ac_try;;
   5807 esac
   5808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5809 $as_echo "$ac_try_echo") >&5
   5810   (eval "$ac_compile") 2>conftest.er1
   5811   ac_status=$?
   5812   grep -v '^ *+' conftest.er1 >conftest.err
   5813   rm -f conftest.er1
   5814   cat conftest.err >&5
   5815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5816   (exit $ac_status); } && {
   5817 	 test -z "$ac_c_werror_flag" ||
   5818 	 test ! -s conftest.err
   5819        } && test -s conftest.$ac_objext; then
   5820   ac_cv_drive_letter_can_be_relative=yes
   5821 else
   5822   $as_echo "$as_me: failed program was:" >&5
   5823 sed 's/^/| /' conftest.$ac_ext >&5
   5824 
   5825 	ac_cv_drive_letter_can_be_relative=no
   5826 fi
   5827 
   5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5829 
   5830 fi
   5831 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
   5832 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
   5833       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
   5834 	ac_fs_drive_letter_can_be_relative=1
   5835       else
   5836 	ac_fs_drive_letter_can_be_relative=0
   5837       fi
   5838     else
   5839       ac_fs_accepts_drive_letter_prefix=0
   5840       ac_fs_backslash_is_file_name_separator=0
   5841       ac_fs_drive_letter_can_be_relative=0
   5842     fi
   5843 
   5844 
   5845 cat >>confdefs.h <<_ACEOF
   5846 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
   5847 _ACEOF
   5848 
   5849 
   5850 
   5851 
   5852 
   5853 
   5854 cat >>confdefs.h <<_ACEOF
   5855 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
   5856 _ACEOF
   5857 
   5858 
   5859 
   5860 cat >>confdefs.h <<_ACEOF
   5861 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
   5862 _ACEOF
   5863 
   5864 
   5865 
   5866 
   5867   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
   5868 $as_echo_n "checking whether // is distinct from /... " >&6; }
   5869 if test "${gl_cv_double_slash_root+set}" = set; then
   5870   $as_echo_n "(cached) " >&6
   5871 else
   5872    if test x"$cross_compiling" = xyes ; then
   5873 	# When cross-compiling, there is no way to tell whether // is special
   5874 	# short of a list of hosts.  However, the only known hosts to date
   5875 	# that have a distinct // are Apollo DomainOS (too old to port to),
   5876 	# Cygwin, and z/OS.  If anyone knows of another system for which // has
   5877 	# special semantics and is distinct from /, please report it to
   5878 	# <bug-gnulib (at] gnu.org>.
   5879 	case $host in
   5880 	  *-cygwin | i370-ibm-openedition)
   5881 	    gl_cv_double_slash_root=yes ;;
   5882 	  *)
   5883 	    # Be optimistic and assume that / and // are the same when we
   5884 	    # don't know.
   5885 	    gl_cv_double_slash_root='unknown, assuming no' ;;
   5886 	esac
   5887       else
   5888 	set x `ls -di / // 2>/dev/null`
   5889 	if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   5890 	  gl_cv_double_slash_root=no
   5891 	else
   5892 	  gl_cv_double_slash_root=yes
   5893 	fi
   5894       fi
   5895 fi
   5896 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
   5897 $as_echo "$gl_cv_double_slash_root" >&6; }
   5898   if test "$gl_cv_double_slash_root" = yes; then
   5899 
   5900 cat >>confdefs.h <<\_ACEOF
   5901 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
   5902 _ACEOF
   5903 
   5904   fi
   5905 
   5906 
   5907 
   5908   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
   5909 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
   5910 if test "${gl_cv_have_include_next+set}" = set; then
   5911   $as_echo_n "(cached) " >&6
   5912 else
   5913   rm -rf conftestd1a conftestd1b conftestd2
   5914      mkdir conftestd1a conftestd1b conftestd2
   5915                                                   cat <<EOF > conftestd1a/conftest.h
   5916 #define DEFINED_IN_CONFTESTD1
   5917 #include_next <conftest.h>
   5918 #ifdef DEFINED_IN_CONFTESTD2
   5919 int foo;
   5920 #else
   5921 #error "include_next doesn't work"
   5922 #endif
   5923 EOF
   5924      cat <<EOF > conftestd1b/conftest.h
   5925 #define DEFINED_IN_CONFTESTD1
   5926 #include <stdio.h>
   5927 #include_next <conftest.h>
   5928 #ifdef DEFINED_IN_CONFTESTD2
   5929 int foo;
   5930 #else
   5931 #error "include_next doesn't work"
   5932 #endif
   5933 EOF
   5934      cat <<EOF > conftestd2/conftest.h
   5935 #ifndef DEFINED_IN_CONFTESTD1
   5936 #error "include_next test doesn't work"
   5937 #endif
   5938 #define DEFINED_IN_CONFTESTD2
   5939 EOF
   5940      gl_save_CPPFLAGS="$CPPFLAGS"
   5941      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
   5942      cat >conftest.$ac_ext <<_ACEOF
   5943 #include <conftest.h>
   5944 _ACEOF
   5945 rm -f conftest.$ac_objext
   5946 if { (ac_try="$ac_compile"
   5947 case "(($ac_try" in
   5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5949   *) ac_try_echo=$ac_try;;
   5950 esac
   5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5952 $as_echo "$ac_try_echo") >&5
   5953   (eval "$ac_compile") 2>conftest.er1
   5954   ac_status=$?
   5955   grep -v '^ *+' conftest.er1 >conftest.err
   5956   rm -f conftest.er1
   5957   cat conftest.err >&5
   5958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5959   (exit $ac_status); } && {
   5960 	 test -z "$ac_c_werror_flag" ||
   5961 	 test ! -s conftest.err
   5962        } && test -s conftest.$ac_objext; then
   5963   gl_cv_have_include_next=yes
   5964 else
   5965   $as_echo "$as_me: failed program was:" >&5
   5966 sed 's/^/| /' conftest.$ac_ext >&5
   5967 
   5968 	CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
   5969         cat >conftest.$ac_ext <<_ACEOF
   5970 #include <conftest.h>
   5971 _ACEOF
   5972 rm -f conftest.$ac_objext
   5973 if { (ac_try="$ac_compile"
   5974 case "(($ac_try" in
   5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5976   *) ac_try_echo=$ac_try;;
   5977 esac
   5978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   5979 $as_echo "$ac_try_echo") >&5
   5980   (eval "$ac_compile") 2>conftest.er1
   5981   ac_status=$?
   5982   grep -v '^ *+' conftest.er1 >conftest.err
   5983   rm -f conftest.er1
   5984   cat conftest.err >&5
   5985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5986   (exit $ac_status); } && {
   5987 	 test -z "$ac_c_werror_flag" ||
   5988 	 test ! -s conftest.err
   5989        } && test -s conftest.$ac_objext; then
   5990   gl_cv_have_include_next=buggy
   5991 else
   5992   $as_echo "$as_me: failed program was:" >&5
   5993 sed 's/^/| /' conftest.$ac_ext >&5
   5994 
   5995 	gl_cv_have_include_next=no
   5996 fi
   5997 
   5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5999 
   6000 fi
   6001 
   6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6003      CPPFLAGS="$gl_save_CPPFLAGS"
   6004      rm -rf conftestd1a conftestd1b conftestd2
   6005 
   6006 fi
   6007 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
   6008 $as_echo "$gl_cv_have_include_next" >&6; }
   6009   PRAGMA_SYSTEM_HEADER=
   6010   if test $gl_cv_have_include_next = yes; then
   6011     INCLUDE_NEXT=include_next
   6012     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   6013     if test -n "$GCC"; then
   6014       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
   6015     fi
   6016   else
   6017     if test $gl_cv_have_include_next = buggy; then
   6018       INCLUDE_NEXT=include
   6019       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   6020     else
   6021       INCLUDE_NEXT=include
   6022       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
   6023     fi
   6024   fi
   6025 
   6026 
   6027 
   6028 
   6029 
   6030 
   6031 
   6032 
   6033 for ac_header in $ac_header_list
   6034 do
   6035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   6037   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   6038 $as_echo_n "checking for $ac_header... " >&6; }
   6039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   6040   $as_echo_n "(cached) " >&6
   6041 fi
   6042 ac_res=`eval 'as_val=${'$as_ac_Header'}
   6043 		 $as_echo "$as_val"'`
   6044 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   6045 $as_echo "$ac_res" >&6; }
   6046 else
   6047   # Is the header compilable?
   6048 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   6049 $as_echo_n "checking $ac_header usability... " >&6; }
   6050 cat >conftest.$ac_ext <<_ACEOF
   6051 /* confdefs.h.  */
   6052 _ACEOF
   6053 cat confdefs.h >>conftest.$ac_ext
   6054 cat >>conftest.$ac_ext <<_ACEOF
   6055 /* end confdefs.h.  */
   6056 $ac_includes_default
   6057 #include <$ac_header>
   6058 _ACEOF
   6059 rm -f conftest.$ac_objext
   6060 if { (ac_try="$ac_compile"
   6061 case "(($ac_try" in
   6062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6063   *) ac_try_echo=$ac_try;;
   6064 esac
   6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6066 $as_echo "$ac_try_echo") >&5
   6067   (eval "$ac_compile") 2>conftest.er1
   6068   ac_status=$?
   6069   grep -v '^ *+' conftest.er1 >conftest.err
   6070   rm -f conftest.er1
   6071   cat conftest.err >&5
   6072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6073   (exit $ac_status); } && {
   6074 	 test -z "$ac_c_werror_flag" ||
   6075 	 test ! -s conftest.err
   6076        } && test -s conftest.$ac_objext; then
   6077   ac_header_compiler=yes
   6078 else
   6079   $as_echo "$as_me: failed program was:" >&5
   6080 sed 's/^/| /' conftest.$ac_ext >&5
   6081 
   6082 	ac_header_compiler=no
   6083 fi
   6084 
   6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6086 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   6087 $as_echo "$ac_header_compiler" >&6; }
   6088 
   6089 # Is the header present?
   6090 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   6091 $as_echo_n "checking $ac_header presence... " >&6; }
   6092 cat >conftest.$ac_ext <<_ACEOF
   6093 /* confdefs.h.  */
   6094 _ACEOF
   6095 cat confdefs.h >>conftest.$ac_ext
   6096 cat >>conftest.$ac_ext <<_ACEOF
   6097 /* end confdefs.h.  */
   6098 #include <$ac_header>
   6099 _ACEOF
   6100 if { (ac_try="$ac_cpp conftest.$ac_ext"
   6101 case "(($ac_try" in
   6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6103   *) ac_try_echo=$ac_try;;
   6104 esac
   6105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6106 $as_echo "$ac_try_echo") >&5
   6107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   6108   ac_status=$?
   6109   grep -v '^ *+' conftest.er1 >conftest.err
   6110   rm -f conftest.er1
   6111   cat conftest.err >&5
   6112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6113   (exit $ac_status); } >/dev/null && {
   6114 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   6115 	 test ! -s conftest.err
   6116        }; then
   6117   ac_header_preproc=yes
   6118 else
   6119   $as_echo "$as_me: failed program was:" >&5
   6120 sed 's/^/| /' conftest.$ac_ext >&5
   6121 
   6122   ac_header_preproc=no
   6123 fi
   6124 
   6125 rm -f conftest.err conftest.$ac_ext
   6126 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   6127 $as_echo "$ac_header_preproc" >&6; }
   6128 
   6129 # So?  What about this header?
   6130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   6131   yes:no: )
   6132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   6133 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   6134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   6135 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   6136     ac_header_preproc=yes
   6137     ;;
   6138   no:yes:* )
   6139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   6140 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   6141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   6142 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   6143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   6144 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   6145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   6146 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   6147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6148 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   6149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   6150 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   6151     ( cat <<\_ASBOX
   6152 ## ------------------------------------ ##
   6153 ## Report this to bug-gnu-utils (at] gnu.org ##
   6154 ## ------------------------------------ ##
   6155 _ASBOX
   6156      ) | sed "s/^/$as_me: WARNING:     /" >&2
   6157     ;;
   6158 esac
   6159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   6160 $as_echo_n "checking for $ac_header... " >&6; }
   6161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   6162   $as_echo_n "(cached) " >&6
   6163 else
   6164   eval "$as_ac_Header=\$ac_header_preproc"
   6165 fi
   6166 ac_res=`eval 'as_val=${'$as_ac_Header'}
   6167 		 $as_echo "$as_val"'`
   6168 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   6169 $as_echo "$ac_res" >&6; }
   6170 
   6171 fi
   6172 as_val=`eval 'as_val=${'$as_ac_Header'}
   6173 		 $as_echo "$as_val"'`
   6174    if test "x$as_val" = x""yes; then
   6175   cat >>confdefs.h <<_ACEOF
   6176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6177 _ACEOF
   6178 
   6179 fi
   6180 
   6181 done
   6182 
   6183 
   6184 
   6185 
   6186 
   6187   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
   6188 $as_echo_n "checking for complete errno.h... " >&6; }
   6189 if test "${gl_cv_header_errno_h_complete+set}" = set; then
   6190   $as_echo_n "(cached) " >&6
   6191 else
   6192 
   6193     cat >conftest.$ac_ext <<_ACEOF
   6194 /* confdefs.h.  */
   6195 _ACEOF
   6196 cat confdefs.h >>conftest.$ac_ext
   6197 cat >>conftest.$ac_ext <<_ACEOF
   6198 /* end confdefs.h.  */
   6199 
   6200 #include <errno.h>
   6201 #if !defined ENOMSG
   6202 booboo
   6203 #endif
   6204 #if !defined EIDRM
   6205 booboo
   6206 #endif
   6207 #if !defined ENOLINK
   6208 booboo
   6209 #endif
   6210 #if !defined EPROTO
   6211 booboo
   6212 #endif
   6213 #if !defined EMULTIHOP
   6214 booboo
   6215 #endif
   6216 #if !defined EBADMSG
   6217 booboo
   6218 #endif
   6219 #if !defined EOVERFLOW
   6220 booboo
   6221 #endif
   6222 #if !defined ENOTSUP
   6223 booboo
   6224 #endif
   6225 #if !defined ESTALE
   6226 booboo
   6227 #endif
   6228 #if !defined ECANCELED
   6229 booboo
   6230 #endif
   6231 
   6232 _ACEOF
   6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6234   $EGREP "booboo" >/dev/null 2>&1; then
   6235   gl_cv_header_errno_h_complete=no
   6236 else
   6237   gl_cv_header_errno_h_complete=yes
   6238 fi
   6239 rm -f conftest*
   6240 
   6241 
   6242 fi
   6243 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
   6244 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
   6245   if test $gl_cv_header_errno_h_complete = yes; then
   6246     ERRNO_H=''
   6247   else
   6248 
   6249 
   6250 
   6251 
   6252 
   6253 
   6254 
   6255 
   6256 
   6257 
   6258 
   6259      if test $gl_cv_have_include_next = yes; then
   6260        gl_cv_next_errno_h='<'errno.h'>'
   6261      else
   6262        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
   6263 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
   6264 if test "${gl_cv_next_errno_h+set}" = set; then
   6265   $as_echo_n "(cached) " >&6
   6266 else
   6267 
   6268 	  if test $ac_cv_header_errno_h = yes; then
   6269 	    cat >conftest.$ac_ext <<_ACEOF
   6270 /* confdefs.h.  */
   6271 _ACEOF
   6272 cat confdefs.h >>conftest.$ac_ext
   6273 cat >>conftest.$ac_ext <<_ACEOF
   6274 /* end confdefs.h.  */
   6275 #include <errno.h>
   6276 
   6277 _ACEOF
   6278 	    	    	    	    	    	    	    	    case "$host_os" in
   6279 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   6280 	      *)    gl_absname_cpp="$ac_cpp" ;;
   6281 	    esac
   6282 	    	    	    	    gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   6283 	       sed -n '\#/errno.h#{
   6284 		 s#.*"\(.*/errno.h\)".*#\1#
   6285 		 s#^/[^/]#//&#
   6286 		 p
   6287 		 q
   6288 	       }'`'"'
   6289 	  else
   6290 	    gl_cv_next_errno_h='<'errno.h'>'
   6291 	  fi
   6292 
   6293 fi
   6294 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
   6295 $as_echo "$gl_cv_next_errno_h" >&6; }
   6296      fi
   6297      NEXT_ERRNO_H=$gl_cv_next_errno_h
   6298 
   6299      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   6300        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   6301        gl_next_as_first_directive='<'errno.h'>'
   6302      else
   6303        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   6304        gl_next_as_first_directive=$gl_cv_next_errno_h
   6305      fi
   6306      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
   6307 
   6308 
   6309 
   6310     ERRNO_H='errno.h'
   6311   fi
   6312 
   6313 
   6314   if test -n "$ERRNO_H"; then
   6315     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
   6316 $as_echo_n "checking for EMULTIHOP value... " >&6; }
   6317 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
   6318   $as_echo_n "(cached) " >&6
   6319 else
   6320 
   6321       cat >conftest.$ac_ext <<_ACEOF
   6322 /* confdefs.h.  */
   6323 _ACEOF
   6324 cat confdefs.h >>conftest.$ac_ext
   6325 cat >>conftest.$ac_ext <<_ACEOF
   6326 /* end confdefs.h.  */
   6327 
   6328 #include <errno.h>
   6329 #ifdef EMULTIHOP
   6330 yes
   6331 #endif
   6332 
   6333 _ACEOF
   6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6335   $EGREP "yes" >/dev/null 2>&1; then
   6336   gl_cv_header_errno_h_EMULTIHOP=yes
   6337 else
   6338   gl_cv_header_errno_h_EMULTIHOP=no
   6339 fi
   6340 rm -f conftest*
   6341 
   6342       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
   6343         cat >conftest.$ac_ext <<_ACEOF
   6344 /* confdefs.h.  */
   6345 _ACEOF
   6346 cat confdefs.h >>conftest.$ac_ext
   6347 cat >>conftest.$ac_ext <<_ACEOF
   6348 /* end confdefs.h.  */
   6349 
   6350 #define _XOPEN_SOURCE_EXTENDED 1
   6351 #include <errno.h>
   6352 #ifdef EMULTIHOP
   6353 yes
   6354 #endif
   6355 
   6356 _ACEOF
   6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6358   $EGREP "yes" >/dev/null 2>&1; then
   6359   gl_cv_header_errno_h_EMULTIHOP=hidden
   6360 fi
   6361 rm -f conftest*
   6362 
   6363         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
   6364                               if test "$cross_compiling" = yes; then
   6365   # Depending upon the size, compute the lo and hi bounds.
   6366 cat >conftest.$ac_ext <<_ACEOF
   6367 /* confdefs.h.  */
   6368 _ACEOF
   6369 cat confdefs.h >>conftest.$ac_ext
   6370 cat >>conftest.$ac_ext <<_ACEOF
   6371 /* end confdefs.h.  */
   6372 
   6373 #define _XOPEN_SOURCE_EXTENDED 1
   6374 #include <errno.h>
   6375 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6376 #include <stdio.h>
   6377 #include <stdlib.h>
   6378 
   6379 int
   6380 main ()
   6381 {
   6382 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
   6383 test_array [0] = 0
   6384 
   6385   ;
   6386   return 0;
   6387 }
   6388 _ACEOF
   6389 rm -f conftest.$ac_objext
   6390 if { (ac_try="$ac_compile"
   6391 case "(($ac_try" in
   6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6393   *) ac_try_echo=$ac_try;;
   6394 esac
   6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6396 $as_echo "$ac_try_echo") >&5
   6397   (eval "$ac_compile") 2>conftest.er1
   6398   ac_status=$?
   6399   grep -v '^ *+' conftest.er1 >conftest.err
   6400   rm -f conftest.er1
   6401   cat conftest.err >&5
   6402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6403   (exit $ac_status); } && {
   6404 	 test -z "$ac_c_werror_flag" ||
   6405 	 test ! -s conftest.err
   6406        } && test -s conftest.$ac_objext; then
   6407   ac_lo=0 ac_mid=0
   6408   while :; do
   6409     cat >conftest.$ac_ext <<_ACEOF
   6410 /* confdefs.h.  */
   6411 _ACEOF
   6412 cat confdefs.h >>conftest.$ac_ext
   6413 cat >>conftest.$ac_ext <<_ACEOF
   6414 /* end confdefs.h.  */
   6415 
   6416 #define _XOPEN_SOURCE_EXTENDED 1
   6417 #include <errno.h>
   6418 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6419 #include <stdio.h>
   6420 #include <stdlib.h>
   6421 
   6422 int
   6423 main ()
   6424 {
   6425 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
   6426 test_array [0] = 0
   6427 
   6428   ;
   6429   return 0;
   6430 }
   6431 _ACEOF
   6432 rm -f conftest.$ac_objext
   6433 if { (ac_try="$ac_compile"
   6434 case "(($ac_try" in
   6435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6436   *) ac_try_echo=$ac_try;;
   6437 esac
   6438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6439 $as_echo "$ac_try_echo") >&5
   6440   (eval "$ac_compile") 2>conftest.er1
   6441   ac_status=$?
   6442   grep -v '^ *+' conftest.er1 >conftest.err
   6443   rm -f conftest.er1
   6444   cat conftest.err >&5
   6445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6446   (exit $ac_status); } && {
   6447 	 test -z "$ac_c_werror_flag" ||
   6448 	 test ! -s conftest.err
   6449        } && test -s conftest.$ac_objext; then
   6450   ac_hi=$ac_mid; break
   6451 else
   6452   $as_echo "$as_me: failed program was:" >&5
   6453 sed 's/^/| /' conftest.$ac_ext >&5
   6454 
   6455 	ac_lo=`expr $ac_mid + 1`
   6456 			if test $ac_lo -le $ac_mid; then
   6457 			  ac_lo= ac_hi=
   6458 			  break
   6459 			fi
   6460 			ac_mid=`expr 2 '*' $ac_mid + 1`
   6461 fi
   6462 
   6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6464   done
   6465 else
   6466   $as_echo "$as_me: failed program was:" >&5
   6467 sed 's/^/| /' conftest.$ac_ext >&5
   6468 
   6469 	cat >conftest.$ac_ext <<_ACEOF
   6470 /* confdefs.h.  */
   6471 _ACEOF
   6472 cat confdefs.h >>conftest.$ac_ext
   6473 cat >>conftest.$ac_ext <<_ACEOF
   6474 /* end confdefs.h.  */
   6475 
   6476 #define _XOPEN_SOURCE_EXTENDED 1
   6477 #include <errno.h>
   6478 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6479 #include <stdio.h>
   6480 #include <stdlib.h>
   6481 
   6482 int
   6483 main ()
   6484 {
   6485 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
   6486 test_array [0] = 0
   6487 
   6488   ;
   6489   return 0;
   6490 }
   6491 _ACEOF
   6492 rm -f conftest.$ac_objext
   6493 if { (ac_try="$ac_compile"
   6494 case "(($ac_try" in
   6495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6496   *) ac_try_echo=$ac_try;;
   6497 esac
   6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6499 $as_echo "$ac_try_echo") >&5
   6500   (eval "$ac_compile") 2>conftest.er1
   6501   ac_status=$?
   6502   grep -v '^ *+' conftest.er1 >conftest.err
   6503   rm -f conftest.er1
   6504   cat conftest.err >&5
   6505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6506   (exit $ac_status); } && {
   6507 	 test -z "$ac_c_werror_flag" ||
   6508 	 test ! -s conftest.err
   6509        } && test -s conftest.$ac_objext; then
   6510   ac_hi=-1 ac_mid=-1
   6511   while :; do
   6512     cat >conftest.$ac_ext <<_ACEOF
   6513 /* confdefs.h.  */
   6514 _ACEOF
   6515 cat confdefs.h >>conftest.$ac_ext
   6516 cat >>conftest.$ac_ext <<_ACEOF
   6517 /* end confdefs.h.  */
   6518 
   6519 #define _XOPEN_SOURCE_EXTENDED 1
   6520 #include <errno.h>
   6521 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6522 #include <stdio.h>
   6523 #include <stdlib.h>
   6524 
   6525 int
   6526 main ()
   6527 {
   6528 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
   6529 test_array [0] = 0
   6530 
   6531   ;
   6532   return 0;
   6533 }
   6534 _ACEOF
   6535 rm -f conftest.$ac_objext
   6536 if { (ac_try="$ac_compile"
   6537 case "(($ac_try" in
   6538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6539   *) ac_try_echo=$ac_try;;
   6540 esac
   6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6542 $as_echo "$ac_try_echo") >&5
   6543   (eval "$ac_compile") 2>conftest.er1
   6544   ac_status=$?
   6545   grep -v '^ *+' conftest.er1 >conftest.err
   6546   rm -f conftest.er1
   6547   cat conftest.err >&5
   6548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6549   (exit $ac_status); } && {
   6550 	 test -z "$ac_c_werror_flag" ||
   6551 	 test ! -s conftest.err
   6552        } && test -s conftest.$ac_objext; then
   6553   ac_lo=$ac_mid; break
   6554 else
   6555   $as_echo "$as_me: failed program was:" >&5
   6556 sed 's/^/| /' conftest.$ac_ext >&5
   6557 
   6558 	ac_hi=`expr '(' $ac_mid ')' - 1`
   6559 			if test $ac_mid -le $ac_hi; then
   6560 			  ac_lo= ac_hi=
   6561 			  break
   6562 			fi
   6563 			ac_mid=`expr 2 '*' $ac_mid`
   6564 fi
   6565 
   6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6567   done
   6568 else
   6569   $as_echo "$as_me: failed program was:" >&5
   6570 sed 's/^/| /' conftest.$ac_ext >&5
   6571 
   6572 	ac_lo= ac_hi=
   6573 fi
   6574 
   6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6576 fi
   6577 
   6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6579 # Binary search between lo and hi bounds.
   6580 while test "x$ac_lo" != "x$ac_hi"; do
   6581   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   6582   cat >conftest.$ac_ext <<_ACEOF
   6583 /* confdefs.h.  */
   6584 _ACEOF
   6585 cat confdefs.h >>conftest.$ac_ext
   6586 cat >>conftest.$ac_ext <<_ACEOF
   6587 /* end confdefs.h.  */
   6588 
   6589 #define _XOPEN_SOURCE_EXTENDED 1
   6590 #include <errno.h>
   6591 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6592 #include <stdio.h>
   6593 #include <stdlib.h>
   6594 
   6595 int
   6596 main ()
   6597 {
   6598 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
   6599 test_array [0] = 0
   6600 
   6601   ;
   6602   return 0;
   6603 }
   6604 _ACEOF
   6605 rm -f conftest.$ac_objext
   6606 if { (ac_try="$ac_compile"
   6607 case "(($ac_try" in
   6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6609   *) ac_try_echo=$ac_try;;
   6610 esac
   6611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6612 $as_echo "$ac_try_echo") >&5
   6613   (eval "$ac_compile") 2>conftest.er1
   6614   ac_status=$?
   6615   grep -v '^ *+' conftest.er1 >conftest.err
   6616   rm -f conftest.er1
   6617   cat conftest.err >&5
   6618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6619   (exit $ac_status); } && {
   6620 	 test -z "$ac_c_werror_flag" ||
   6621 	 test ! -s conftest.err
   6622        } && test -s conftest.$ac_objext; then
   6623   ac_hi=$ac_mid
   6624 else
   6625   $as_echo "$as_me: failed program was:" >&5
   6626 sed 's/^/| /' conftest.$ac_ext >&5
   6627 
   6628 	ac_lo=`expr '(' $ac_mid ')' + 1`
   6629 fi
   6630 
   6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6632 done
   6633 case $ac_lo in
   6634 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
   6635 '')  ;;
   6636 esac
   6637 else
   6638   cat >conftest.$ac_ext <<_ACEOF
   6639 /* confdefs.h.  */
   6640 _ACEOF
   6641 cat confdefs.h >>conftest.$ac_ext
   6642 cat >>conftest.$ac_ext <<_ACEOF
   6643 /* end confdefs.h.  */
   6644 
   6645 #define _XOPEN_SOURCE_EXTENDED 1
   6646 #include <errno.h>
   6647 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6648 #include <stdio.h>
   6649 #include <stdlib.h>
   6650 
   6651 static long int longval () { return EMULTIHOP; }
   6652 static unsigned long int ulongval () { return EMULTIHOP; }
   6653 #include <stdio.h>
   6654 #include <stdlib.h>
   6655 int
   6656 main ()
   6657 {
   6658 
   6659   FILE *f = fopen ("conftest.val", "w");
   6660   if (! f)
   6661     return 1;
   6662   if ((EMULTIHOP) < 0)
   6663     {
   6664       long int i = longval ();
   6665       if (i != (EMULTIHOP))
   6666 	return 1;
   6667       fprintf (f, "%ld", i);
   6668     }
   6669   else
   6670     {
   6671       unsigned long int i = ulongval ();
   6672       if (i != (EMULTIHOP))
   6673 	return 1;
   6674       fprintf (f, "%lu", i);
   6675     }
   6676   /* Do not output a trailing newline, as this causes \r\n confusion
   6677      on some platforms.  */
   6678   return ferror (f) || fclose (f) != 0;
   6679 
   6680   ;
   6681   return 0;
   6682 }
   6683 _ACEOF
   6684 rm -f conftest$ac_exeext
   6685 if { (ac_try="$ac_link"
   6686 case "(($ac_try" in
   6687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6688   *) ac_try_echo=$ac_try;;
   6689 esac
   6690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6691 $as_echo "$ac_try_echo") >&5
   6692   (eval "$ac_link") 2>&5
   6693   ac_status=$?
   6694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6696   { (case "(($ac_try" in
   6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6698   *) ac_try_echo=$ac_try;;
   6699 esac
   6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6701 $as_echo "$ac_try_echo") >&5
   6702   (eval "$ac_try") 2>&5
   6703   ac_status=$?
   6704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6705   (exit $ac_status); }; }; then
   6706   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
   6707 else
   6708   $as_echo "$as_me: program exited with status $ac_status" >&5
   6709 $as_echo "$as_me: failed program was:" >&5
   6710 sed 's/^/| /' conftest.$ac_ext >&5
   6711 
   6712 fi
   6713 rm -rf conftest.dSYM
   6714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6715 fi
   6716 rm -f conftest.val
   6717         fi
   6718       fi
   6719 
   6720 fi
   6721 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
   6722 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
   6723     case $gl_cv_header_errno_h_EMULTIHOP in
   6724       yes | no)
   6725         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
   6726         ;;
   6727       *)
   6728         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
   6729         ;;
   6730     esac
   6731 
   6732 
   6733   fi
   6734 
   6735 
   6736   if test -n "$ERRNO_H"; then
   6737     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
   6738 $as_echo_n "checking for ENOLINK value... " >&6; }
   6739 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
   6740   $as_echo_n "(cached) " >&6
   6741 else
   6742 
   6743       cat >conftest.$ac_ext <<_ACEOF
   6744 /* confdefs.h.  */
   6745 _ACEOF
   6746 cat confdefs.h >>conftest.$ac_ext
   6747 cat >>conftest.$ac_ext <<_ACEOF
   6748 /* end confdefs.h.  */
   6749 
   6750 #include <errno.h>
   6751 #ifdef ENOLINK
   6752 yes
   6753 #endif
   6754 
   6755 _ACEOF
   6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6757   $EGREP "yes" >/dev/null 2>&1; then
   6758   gl_cv_header_errno_h_ENOLINK=yes
   6759 else
   6760   gl_cv_header_errno_h_ENOLINK=no
   6761 fi
   6762 rm -f conftest*
   6763 
   6764       if test $gl_cv_header_errno_h_ENOLINK = no; then
   6765         cat >conftest.$ac_ext <<_ACEOF
   6766 /* confdefs.h.  */
   6767 _ACEOF
   6768 cat confdefs.h >>conftest.$ac_ext
   6769 cat >>conftest.$ac_ext <<_ACEOF
   6770 /* end confdefs.h.  */
   6771 
   6772 #define _XOPEN_SOURCE_EXTENDED 1
   6773 #include <errno.h>
   6774 #ifdef ENOLINK
   6775 yes
   6776 #endif
   6777 
   6778 _ACEOF
   6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6780   $EGREP "yes" >/dev/null 2>&1; then
   6781   gl_cv_header_errno_h_ENOLINK=hidden
   6782 fi
   6783 rm -f conftest*
   6784 
   6785         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
   6786                               if test "$cross_compiling" = yes; then
   6787   # Depending upon the size, compute the lo and hi bounds.
   6788 cat >conftest.$ac_ext <<_ACEOF
   6789 /* confdefs.h.  */
   6790 _ACEOF
   6791 cat confdefs.h >>conftest.$ac_ext
   6792 cat >>conftest.$ac_ext <<_ACEOF
   6793 /* end confdefs.h.  */
   6794 
   6795 #define _XOPEN_SOURCE_EXTENDED 1
   6796 #include <errno.h>
   6797 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6798 #include <stdio.h>
   6799 #include <stdlib.h>
   6800 
   6801 int
   6802 main ()
   6803 {
   6804 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
   6805 test_array [0] = 0
   6806 
   6807   ;
   6808   return 0;
   6809 }
   6810 _ACEOF
   6811 rm -f conftest.$ac_objext
   6812 if { (ac_try="$ac_compile"
   6813 case "(($ac_try" in
   6814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6815   *) ac_try_echo=$ac_try;;
   6816 esac
   6817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6818 $as_echo "$ac_try_echo") >&5
   6819   (eval "$ac_compile") 2>conftest.er1
   6820   ac_status=$?
   6821   grep -v '^ *+' conftest.er1 >conftest.err
   6822   rm -f conftest.er1
   6823   cat conftest.err >&5
   6824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6825   (exit $ac_status); } && {
   6826 	 test -z "$ac_c_werror_flag" ||
   6827 	 test ! -s conftest.err
   6828        } && test -s conftest.$ac_objext; then
   6829   ac_lo=0 ac_mid=0
   6830   while :; do
   6831     cat >conftest.$ac_ext <<_ACEOF
   6832 /* confdefs.h.  */
   6833 _ACEOF
   6834 cat confdefs.h >>conftest.$ac_ext
   6835 cat >>conftest.$ac_ext <<_ACEOF
   6836 /* end confdefs.h.  */
   6837 
   6838 #define _XOPEN_SOURCE_EXTENDED 1
   6839 #include <errno.h>
   6840 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6841 #include <stdio.h>
   6842 #include <stdlib.h>
   6843 
   6844 int
   6845 main ()
   6846 {
   6847 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
   6848 test_array [0] = 0
   6849 
   6850   ;
   6851   return 0;
   6852 }
   6853 _ACEOF
   6854 rm -f conftest.$ac_objext
   6855 if { (ac_try="$ac_compile"
   6856 case "(($ac_try" in
   6857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6858   *) ac_try_echo=$ac_try;;
   6859 esac
   6860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6861 $as_echo "$ac_try_echo") >&5
   6862   (eval "$ac_compile") 2>conftest.er1
   6863   ac_status=$?
   6864   grep -v '^ *+' conftest.er1 >conftest.err
   6865   rm -f conftest.er1
   6866   cat conftest.err >&5
   6867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6868   (exit $ac_status); } && {
   6869 	 test -z "$ac_c_werror_flag" ||
   6870 	 test ! -s conftest.err
   6871        } && test -s conftest.$ac_objext; then
   6872   ac_hi=$ac_mid; break
   6873 else
   6874   $as_echo "$as_me: failed program was:" >&5
   6875 sed 's/^/| /' conftest.$ac_ext >&5
   6876 
   6877 	ac_lo=`expr $ac_mid + 1`
   6878 			if test $ac_lo -le $ac_mid; then
   6879 			  ac_lo= ac_hi=
   6880 			  break
   6881 			fi
   6882 			ac_mid=`expr 2 '*' $ac_mid + 1`
   6883 fi
   6884 
   6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6886   done
   6887 else
   6888   $as_echo "$as_me: failed program was:" >&5
   6889 sed 's/^/| /' conftest.$ac_ext >&5
   6890 
   6891 	cat >conftest.$ac_ext <<_ACEOF
   6892 /* confdefs.h.  */
   6893 _ACEOF
   6894 cat confdefs.h >>conftest.$ac_ext
   6895 cat >>conftest.$ac_ext <<_ACEOF
   6896 /* end confdefs.h.  */
   6897 
   6898 #define _XOPEN_SOURCE_EXTENDED 1
   6899 #include <errno.h>
   6900 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6901 #include <stdio.h>
   6902 #include <stdlib.h>
   6903 
   6904 int
   6905 main ()
   6906 {
   6907 static int test_array [1 - 2 * !((ENOLINK) < 0)];
   6908 test_array [0] = 0
   6909 
   6910   ;
   6911   return 0;
   6912 }
   6913 _ACEOF
   6914 rm -f conftest.$ac_objext
   6915 if { (ac_try="$ac_compile"
   6916 case "(($ac_try" in
   6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6918   *) ac_try_echo=$ac_try;;
   6919 esac
   6920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6921 $as_echo "$ac_try_echo") >&5
   6922   (eval "$ac_compile") 2>conftest.er1
   6923   ac_status=$?
   6924   grep -v '^ *+' conftest.er1 >conftest.err
   6925   rm -f conftest.er1
   6926   cat conftest.err >&5
   6927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6928   (exit $ac_status); } && {
   6929 	 test -z "$ac_c_werror_flag" ||
   6930 	 test ! -s conftest.err
   6931        } && test -s conftest.$ac_objext; then
   6932   ac_hi=-1 ac_mid=-1
   6933   while :; do
   6934     cat >conftest.$ac_ext <<_ACEOF
   6935 /* confdefs.h.  */
   6936 _ACEOF
   6937 cat confdefs.h >>conftest.$ac_ext
   6938 cat >>conftest.$ac_ext <<_ACEOF
   6939 /* end confdefs.h.  */
   6940 
   6941 #define _XOPEN_SOURCE_EXTENDED 1
   6942 #include <errno.h>
   6943 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   6944 #include <stdio.h>
   6945 #include <stdlib.h>
   6946 
   6947 int
   6948 main ()
   6949 {
   6950 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
   6951 test_array [0] = 0
   6952 
   6953   ;
   6954   return 0;
   6955 }
   6956 _ACEOF
   6957 rm -f conftest.$ac_objext
   6958 if { (ac_try="$ac_compile"
   6959 case "(($ac_try" in
   6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6961   *) ac_try_echo=$ac_try;;
   6962 esac
   6963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   6964 $as_echo "$ac_try_echo") >&5
   6965   (eval "$ac_compile") 2>conftest.er1
   6966   ac_status=$?
   6967   grep -v '^ *+' conftest.er1 >conftest.err
   6968   rm -f conftest.er1
   6969   cat conftest.err >&5
   6970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6971   (exit $ac_status); } && {
   6972 	 test -z "$ac_c_werror_flag" ||
   6973 	 test ! -s conftest.err
   6974        } && test -s conftest.$ac_objext; then
   6975   ac_lo=$ac_mid; break
   6976 else
   6977   $as_echo "$as_me: failed program was:" >&5
   6978 sed 's/^/| /' conftest.$ac_ext >&5
   6979 
   6980 	ac_hi=`expr '(' $ac_mid ')' - 1`
   6981 			if test $ac_mid -le $ac_hi; then
   6982 			  ac_lo= ac_hi=
   6983 			  break
   6984 			fi
   6985 			ac_mid=`expr 2 '*' $ac_mid`
   6986 fi
   6987 
   6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6989   done
   6990 else
   6991   $as_echo "$as_me: failed program was:" >&5
   6992 sed 's/^/| /' conftest.$ac_ext >&5
   6993 
   6994 	ac_lo= ac_hi=
   6995 fi
   6996 
   6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6998 fi
   6999 
   7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7001 # Binary search between lo and hi bounds.
   7002 while test "x$ac_lo" != "x$ac_hi"; do
   7003   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   7004   cat >conftest.$ac_ext <<_ACEOF
   7005 /* confdefs.h.  */
   7006 _ACEOF
   7007 cat confdefs.h >>conftest.$ac_ext
   7008 cat >>conftest.$ac_ext <<_ACEOF
   7009 /* end confdefs.h.  */
   7010 
   7011 #define _XOPEN_SOURCE_EXTENDED 1
   7012 #include <errno.h>
   7013 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7014 #include <stdio.h>
   7015 #include <stdlib.h>
   7016 
   7017 int
   7018 main ()
   7019 {
   7020 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
   7021 test_array [0] = 0
   7022 
   7023   ;
   7024   return 0;
   7025 }
   7026 _ACEOF
   7027 rm -f conftest.$ac_objext
   7028 if { (ac_try="$ac_compile"
   7029 case "(($ac_try" in
   7030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7031   *) ac_try_echo=$ac_try;;
   7032 esac
   7033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7034 $as_echo "$ac_try_echo") >&5
   7035   (eval "$ac_compile") 2>conftest.er1
   7036   ac_status=$?
   7037   grep -v '^ *+' conftest.er1 >conftest.err
   7038   rm -f conftest.er1
   7039   cat conftest.err >&5
   7040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7041   (exit $ac_status); } && {
   7042 	 test -z "$ac_c_werror_flag" ||
   7043 	 test ! -s conftest.err
   7044        } && test -s conftest.$ac_objext; then
   7045   ac_hi=$ac_mid
   7046 else
   7047   $as_echo "$as_me: failed program was:" >&5
   7048 sed 's/^/| /' conftest.$ac_ext >&5
   7049 
   7050 	ac_lo=`expr '(' $ac_mid ')' + 1`
   7051 fi
   7052 
   7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7054 done
   7055 case $ac_lo in
   7056 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
   7057 '')  ;;
   7058 esac
   7059 else
   7060   cat >conftest.$ac_ext <<_ACEOF
   7061 /* confdefs.h.  */
   7062 _ACEOF
   7063 cat confdefs.h >>conftest.$ac_ext
   7064 cat >>conftest.$ac_ext <<_ACEOF
   7065 /* end confdefs.h.  */
   7066 
   7067 #define _XOPEN_SOURCE_EXTENDED 1
   7068 #include <errno.h>
   7069 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7070 #include <stdio.h>
   7071 #include <stdlib.h>
   7072 
   7073 static long int longval () { return ENOLINK; }
   7074 static unsigned long int ulongval () { return ENOLINK; }
   7075 #include <stdio.h>
   7076 #include <stdlib.h>
   7077 int
   7078 main ()
   7079 {
   7080 
   7081   FILE *f = fopen ("conftest.val", "w");
   7082   if (! f)
   7083     return 1;
   7084   if ((ENOLINK) < 0)
   7085     {
   7086       long int i = longval ();
   7087       if (i != (ENOLINK))
   7088 	return 1;
   7089       fprintf (f, "%ld", i);
   7090     }
   7091   else
   7092     {
   7093       unsigned long int i = ulongval ();
   7094       if (i != (ENOLINK))
   7095 	return 1;
   7096       fprintf (f, "%lu", i);
   7097     }
   7098   /* Do not output a trailing newline, as this causes \r\n confusion
   7099      on some platforms.  */
   7100   return ferror (f) || fclose (f) != 0;
   7101 
   7102   ;
   7103   return 0;
   7104 }
   7105 _ACEOF
   7106 rm -f conftest$ac_exeext
   7107 if { (ac_try="$ac_link"
   7108 case "(($ac_try" in
   7109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7110   *) ac_try_echo=$ac_try;;
   7111 esac
   7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7113 $as_echo "$ac_try_echo") >&5
   7114   (eval "$ac_link") 2>&5
   7115   ac_status=$?
   7116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7118   { (case "(($ac_try" in
   7119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7120   *) ac_try_echo=$ac_try;;
   7121 esac
   7122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7123 $as_echo "$ac_try_echo") >&5
   7124   (eval "$ac_try") 2>&5
   7125   ac_status=$?
   7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7127   (exit $ac_status); }; }; then
   7128   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
   7129 else
   7130   $as_echo "$as_me: program exited with status $ac_status" >&5
   7131 $as_echo "$as_me: failed program was:" >&5
   7132 sed 's/^/| /' conftest.$ac_ext >&5
   7133 
   7134 fi
   7135 rm -rf conftest.dSYM
   7136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7137 fi
   7138 rm -f conftest.val
   7139         fi
   7140       fi
   7141 
   7142 fi
   7143 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
   7144 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
   7145     case $gl_cv_header_errno_h_ENOLINK in
   7146       yes | no)
   7147         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
   7148         ;;
   7149       *)
   7150         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
   7151         ;;
   7152     esac
   7153 
   7154 
   7155   fi
   7156 
   7157 
   7158   if test -n "$ERRNO_H"; then
   7159     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
   7160 $as_echo_n "checking for EOVERFLOW value... " >&6; }
   7161 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
   7162   $as_echo_n "(cached) " >&6
   7163 else
   7164 
   7165       cat >conftest.$ac_ext <<_ACEOF
   7166 /* confdefs.h.  */
   7167 _ACEOF
   7168 cat confdefs.h >>conftest.$ac_ext
   7169 cat >>conftest.$ac_ext <<_ACEOF
   7170 /* end confdefs.h.  */
   7171 
   7172 #include <errno.h>
   7173 #ifdef EOVERFLOW
   7174 yes
   7175 #endif
   7176 
   7177 _ACEOF
   7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7179   $EGREP "yes" >/dev/null 2>&1; then
   7180   gl_cv_header_errno_h_EOVERFLOW=yes
   7181 else
   7182   gl_cv_header_errno_h_EOVERFLOW=no
   7183 fi
   7184 rm -f conftest*
   7185 
   7186       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
   7187         cat >conftest.$ac_ext <<_ACEOF
   7188 /* confdefs.h.  */
   7189 _ACEOF
   7190 cat confdefs.h >>conftest.$ac_ext
   7191 cat >>conftest.$ac_ext <<_ACEOF
   7192 /* end confdefs.h.  */
   7193 
   7194 #define _XOPEN_SOURCE_EXTENDED 1
   7195 #include <errno.h>
   7196 #ifdef EOVERFLOW
   7197 yes
   7198 #endif
   7199 
   7200 _ACEOF
   7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7202   $EGREP "yes" >/dev/null 2>&1; then
   7203   gl_cv_header_errno_h_EOVERFLOW=hidden
   7204 fi
   7205 rm -f conftest*
   7206 
   7207         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
   7208                               if test "$cross_compiling" = yes; then
   7209   # Depending upon the size, compute the lo and hi bounds.
   7210 cat >conftest.$ac_ext <<_ACEOF
   7211 /* confdefs.h.  */
   7212 _ACEOF
   7213 cat confdefs.h >>conftest.$ac_ext
   7214 cat >>conftest.$ac_ext <<_ACEOF
   7215 /* end confdefs.h.  */
   7216 
   7217 #define _XOPEN_SOURCE_EXTENDED 1
   7218 #include <errno.h>
   7219 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7220 #include <stdio.h>
   7221 #include <stdlib.h>
   7222 
   7223 int
   7224 main ()
   7225 {
   7226 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
   7227 test_array [0] = 0
   7228 
   7229   ;
   7230   return 0;
   7231 }
   7232 _ACEOF
   7233 rm -f conftest.$ac_objext
   7234 if { (ac_try="$ac_compile"
   7235 case "(($ac_try" in
   7236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7237   *) ac_try_echo=$ac_try;;
   7238 esac
   7239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7240 $as_echo "$ac_try_echo") >&5
   7241   (eval "$ac_compile") 2>conftest.er1
   7242   ac_status=$?
   7243   grep -v '^ *+' conftest.er1 >conftest.err
   7244   rm -f conftest.er1
   7245   cat conftest.err >&5
   7246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7247   (exit $ac_status); } && {
   7248 	 test -z "$ac_c_werror_flag" ||
   7249 	 test ! -s conftest.err
   7250        } && test -s conftest.$ac_objext; then
   7251   ac_lo=0 ac_mid=0
   7252   while :; do
   7253     cat >conftest.$ac_ext <<_ACEOF
   7254 /* confdefs.h.  */
   7255 _ACEOF
   7256 cat confdefs.h >>conftest.$ac_ext
   7257 cat >>conftest.$ac_ext <<_ACEOF
   7258 /* end confdefs.h.  */
   7259 
   7260 #define _XOPEN_SOURCE_EXTENDED 1
   7261 #include <errno.h>
   7262 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7263 #include <stdio.h>
   7264 #include <stdlib.h>
   7265 
   7266 int
   7267 main ()
   7268 {
   7269 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
   7270 test_array [0] = 0
   7271 
   7272   ;
   7273   return 0;
   7274 }
   7275 _ACEOF
   7276 rm -f conftest.$ac_objext
   7277 if { (ac_try="$ac_compile"
   7278 case "(($ac_try" in
   7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7280   *) ac_try_echo=$ac_try;;
   7281 esac
   7282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7283 $as_echo "$ac_try_echo") >&5
   7284   (eval "$ac_compile") 2>conftest.er1
   7285   ac_status=$?
   7286   grep -v '^ *+' conftest.er1 >conftest.err
   7287   rm -f conftest.er1
   7288   cat conftest.err >&5
   7289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7290   (exit $ac_status); } && {
   7291 	 test -z "$ac_c_werror_flag" ||
   7292 	 test ! -s conftest.err
   7293        } && test -s conftest.$ac_objext; then
   7294   ac_hi=$ac_mid; break
   7295 else
   7296   $as_echo "$as_me: failed program was:" >&5
   7297 sed 's/^/| /' conftest.$ac_ext >&5
   7298 
   7299 	ac_lo=`expr $ac_mid + 1`
   7300 			if test $ac_lo -le $ac_mid; then
   7301 			  ac_lo= ac_hi=
   7302 			  break
   7303 			fi
   7304 			ac_mid=`expr 2 '*' $ac_mid + 1`
   7305 fi
   7306 
   7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7308   done
   7309 else
   7310   $as_echo "$as_me: failed program was:" >&5
   7311 sed 's/^/| /' conftest.$ac_ext >&5
   7312 
   7313 	cat >conftest.$ac_ext <<_ACEOF
   7314 /* confdefs.h.  */
   7315 _ACEOF
   7316 cat confdefs.h >>conftest.$ac_ext
   7317 cat >>conftest.$ac_ext <<_ACEOF
   7318 /* end confdefs.h.  */
   7319 
   7320 #define _XOPEN_SOURCE_EXTENDED 1
   7321 #include <errno.h>
   7322 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7323 #include <stdio.h>
   7324 #include <stdlib.h>
   7325 
   7326 int
   7327 main ()
   7328 {
   7329 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
   7330 test_array [0] = 0
   7331 
   7332   ;
   7333   return 0;
   7334 }
   7335 _ACEOF
   7336 rm -f conftest.$ac_objext
   7337 if { (ac_try="$ac_compile"
   7338 case "(($ac_try" in
   7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7340   *) ac_try_echo=$ac_try;;
   7341 esac
   7342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7343 $as_echo "$ac_try_echo") >&5
   7344   (eval "$ac_compile") 2>conftest.er1
   7345   ac_status=$?
   7346   grep -v '^ *+' conftest.er1 >conftest.err
   7347   rm -f conftest.er1
   7348   cat conftest.err >&5
   7349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7350   (exit $ac_status); } && {
   7351 	 test -z "$ac_c_werror_flag" ||
   7352 	 test ! -s conftest.err
   7353        } && test -s conftest.$ac_objext; then
   7354   ac_hi=-1 ac_mid=-1
   7355   while :; do
   7356     cat >conftest.$ac_ext <<_ACEOF
   7357 /* confdefs.h.  */
   7358 _ACEOF
   7359 cat confdefs.h >>conftest.$ac_ext
   7360 cat >>conftest.$ac_ext <<_ACEOF
   7361 /* end confdefs.h.  */
   7362 
   7363 #define _XOPEN_SOURCE_EXTENDED 1
   7364 #include <errno.h>
   7365 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7366 #include <stdio.h>
   7367 #include <stdlib.h>
   7368 
   7369 int
   7370 main ()
   7371 {
   7372 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
   7373 test_array [0] = 0
   7374 
   7375   ;
   7376   return 0;
   7377 }
   7378 _ACEOF
   7379 rm -f conftest.$ac_objext
   7380 if { (ac_try="$ac_compile"
   7381 case "(($ac_try" in
   7382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7383   *) ac_try_echo=$ac_try;;
   7384 esac
   7385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7386 $as_echo "$ac_try_echo") >&5
   7387   (eval "$ac_compile") 2>conftest.er1
   7388   ac_status=$?
   7389   grep -v '^ *+' conftest.er1 >conftest.err
   7390   rm -f conftest.er1
   7391   cat conftest.err >&5
   7392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7393   (exit $ac_status); } && {
   7394 	 test -z "$ac_c_werror_flag" ||
   7395 	 test ! -s conftest.err
   7396        } && test -s conftest.$ac_objext; then
   7397   ac_lo=$ac_mid; break
   7398 else
   7399   $as_echo "$as_me: failed program was:" >&5
   7400 sed 's/^/| /' conftest.$ac_ext >&5
   7401 
   7402 	ac_hi=`expr '(' $ac_mid ')' - 1`
   7403 			if test $ac_mid -le $ac_hi; then
   7404 			  ac_lo= ac_hi=
   7405 			  break
   7406 			fi
   7407 			ac_mid=`expr 2 '*' $ac_mid`
   7408 fi
   7409 
   7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7411   done
   7412 else
   7413   $as_echo "$as_me: failed program was:" >&5
   7414 sed 's/^/| /' conftest.$ac_ext >&5
   7415 
   7416 	ac_lo= ac_hi=
   7417 fi
   7418 
   7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7420 fi
   7421 
   7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7423 # Binary search between lo and hi bounds.
   7424 while test "x$ac_lo" != "x$ac_hi"; do
   7425   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   7426   cat >conftest.$ac_ext <<_ACEOF
   7427 /* confdefs.h.  */
   7428 _ACEOF
   7429 cat confdefs.h >>conftest.$ac_ext
   7430 cat >>conftest.$ac_ext <<_ACEOF
   7431 /* end confdefs.h.  */
   7432 
   7433 #define _XOPEN_SOURCE_EXTENDED 1
   7434 #include <errno.h>
   7435 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7436 #include <stdio.h>
   7437 #include <stdlib.h>
   7438 
   7439 int
   7440 main ()
   7441 {
   7442 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
   7443 test_array [0] = 0
   7444 
   7445   ;
   7446   return 0;
   7447 }
   7448 _ACEOF
   7449 rm -f conftest.$ac_objext
   7450 if { (ac_try="$ac_compile"
   7451 case "(($ac_try" in
   7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7453   *) ac_try_echo=$ac_try;;
   7454 esac
   7455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7456 $as_echo "$ac_try_echo") >&5
   7457   (eval "$ac_compile") 2>conftest.er1
   7458   ac_status=$?
   7459   grep -v '^ *+' conftest.er1 >conftest.err
   7460   rm -f conftest.er1
   7461   cat conftest.err >&5
   7462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7463   (exit $ac_status); } && {
   7464 	 test -z "$ac_c_werror_flag" ||
   7465 	 test ! -s conftest.err
   7466        } && test -s conftest.$ac_objext; then
   7467   ac_hi=$ac_mid
   7468 else
   7469   $as_echo "$as_me: failed program was:" >&5
   7470 sed 's/^/| /' conftest.$ac_ext >&5
   7471 
   7472 	ac_lo=`expr '(' $ac_mid ')' + 1`
   7473 fi
   7474 
   7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7476 done
   7477 case $ac_lo in
   7478 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
   7479 '')  ;;
   7480 esac
   7481 else
   7482   cat >conftest.$ac_ext <<_ACEOF
   7483 /* confdefs.h.  */
   7484 _ACEOF
   7485 cat confdefs.h >>conftest.$ac_ext
   7486 cat >>conftest.$ac_ext <<_ACEOF
   7487 /* end confdefs.h.  */
   7488 
   7489 #define _XOPEN_SOURCE_EXTENDED 1
   7490 #include <errno.h>
   7491 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   7492 #include <stdio.h>
   7493 #include <stdlib.h>
   7494 
   7495 static long int longval () { return EOVERFLOW; }
   7496 static unsigned long int ulongval () { return EOVERFLOW; }
   7497 #include <stdio.h>
   7498 #include <stdlib.h>
   7499 int
   7500 main ()
   7501 {
   7502 
   7503   FILE *f = fopen ("conftest.val", "w");
   7504   if (! f)
   7505     return 1;
   7506   if ((EOVERFLOW) < 0)
   7507     {
   7508       long int i = longval ();
   7509       if (i != (EOVERFLOW))
   7510 	return 1;
   7511       fprintf (f, "%ld", i);
   7512     }
   7513   else
   7514     {
   7515       unsigned long int i = ulongval ();
   7516       if (i != (EOVERFLOW))
   7517 	return 1;
   7518       fprintf (f, "%lu", i);
   7519     }
   7520   /* Do not output a trailing newline, as this causes \r\n confusion
   7521      on some platforms.  */
   7522   return ferror (f) || fclose (f) != 0;
   7523 
   7524   ;
   7525   return 0;
   7526 }
   7527 _ACEOF
   7528 rm -f conftest$ac_exeext
   7529 if { (ac_try="$ac_link"
   7530 case "(($ac_try" in
   7531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7532   *) ac_try_echo=$ac_try;;
   7533 esac
   7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7535 $as_echo "$ac_try_echo") >&5
   7536   (eval "$ac_link") 2>&5
   7537   ac_status=$?
   7538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7540   { (case "(($ac_try" in
   7541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7542   *) ac_try_echo=$ac_try;;
   7543 esac
   7544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7545 $as_echo "$ac_try_echo") >&5
   7546   (eval "$ac_try") 2>&5
   7547   ac_status=$?
   7548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7549   (exit $ac_status); }; }; then
   7550   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
   7551 else
   7552   $as_echo "$as_me: program exited with status $ac_status" >&5
   7553 $as_echo "$as_me: failed program was:" >&5
   7554 sed 's/^/| /' conftest.$ac_ext >&5
   7555 
   7556 fi
   7557 rm -rf conftest.dSYM
   7558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7559 fi
   7560 rm -f conftest.val
   7561         fi
   7562       fi
   7563 
   7564 fi
   7565 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
   7566 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
   7567     case $gl_cv_header_errno_h_EOVERFLOW in
   7568       yes | no)
   7569         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
   7570         ;;
   7571       *)
   7572         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
   7573         ;;
   7574     esac
   7575 
   7576 
   7577   fi
   7578 
   7579 
   7580 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
   7581 $as_echo_n "checking whether strerror_r is declared... " >&6; }
   7582 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
   7583   $as_echo_n "(cached) " >&6
   7584 else
   7585   cat >conftest.$ac_ext <<_ACEOF
   7586 /* confdefs.h.  */
   7587 _ACEOF
   7588 cat confdefs.h >>conftest.$ac_ext
   7589 cat >>conftest.$ac_ext <<_ACEOF
   7590 /* end confdefs.h.  */
   7591 $ac_includes_default
   7592 int
   7593 main ()
   7594 {
   7595 #ifndef strerror_r
   7596   (void) strerror_r;
   7597 #endif
   7598 
   7599   ;
   7600   return 0;
   7601 }
   7602 _ACEOF
   7603 rm -f conftest.$ac_objext
   7604 if { (ac_try="$ac_compile"
   7605 case "(($ac_try" in
   7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7607   *) ac_try_echo=$ac_try;;
   7608 esac
   7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7610 $as_echo "$ac_try_echo") >&5
   7611   (eval "$ac_compile") 2>conftest.er1
   7612   ac_status=$?
   7613   grep -v '^ *+' conftest.er1 >conftest.err
   7614   rm -f conftest.er1
   7615   cat conftest.err >&5
   7616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7617   (exit $ac_status); } && {
   7618 	 test -z "$ac_c_werror_flag" ||
   7619 	 test ! -s conftest.err
   7620        } && test -s conftest.$ac_objext; then
   7621   ac_cv_have_decl_strerror_r=yes
   7622 else
   7623   $as_echo "$as_me: failed program was:" >&5
   7624 sed 's/^/| /' conftest.$ac_ext >&5
   7625 
   7626 	ac_cv_have_decl_strerror_r=no
   7627 fi
   7628 
   7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7630 fi
   7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
   7632 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
   7633 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
   7634 
   7635 cat >>confdefs.h <<_ACEOF
   7636 #define HAVE_DECL_STRERROR_R 1
   7637 _ACEOF
   7638 
   7639 
   7640 else
   7641   cat >>confdefs.h <<_ACEOF
   7642 #define HAVE_DECL_STRERROR_R 0
   7643 _ACEOF
   7644 
   7645 
   7646 fi
   7647 
   7648 
   7649 
   7650 for ac_func in strerror_r
   7651 do
   7652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   7654 $as_echo_n "checking for $ac_func... " >&6; }
   7655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   7656   $as_echo_n "(cached) " >&6
   7657 else
   7658   cat >conftest.$ac_ext <<_ACEOF
   7659 /* confdefs.h.  */
   7660 _ACEOF
   7661 cat confdefs.h >>conftest.$ac_ext
   7662 cat >>conftest.$ac_ext <<_ACEOF
   7663 /* end confdefs.h.  */
   7664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   7665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7666 #define $ac_func innocuous_$ac_func
   7667 
   7668 /* System header to define __stub macros and hopefully few prototypes,
   7669     which can conflict with char $ac_func (); below.
   7670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7671     <limits.h> exists even on freestanding compilers.  */
   7672 
   7673 #ifdef __STDC__
   7674 # include <limits.h>
   7675 #else
   7676 # include <assert.h>
   7677 #endif
   7678 
   7679 #undef $ac_func
   7680 
   7681 /* Override any GCC internal prototype to avoid an error.
   7682    Use char because int might match the return type of a GCC
   7683    builtin and then its argument prototype would still apply.  */
   7684 #ifdef __cplusplus
   7685 extern "C"
   7686 #endif
   7687 char $ac_func ();
   7688 /* The GNU C library defines this for functions which it implements
   7689     to always fail with ENOSYS.  Some functions are actually named
   7690     something starting with __ and the normal name is an alias.  */
   7691 #if defined __stub_$ac_func || defined __stub___$ac_func
   7692 choke me
   7693 #endif
   7694 
   7695 int
   7696 main ()
   7697 {
   7698 return $ac_func ();
   7699   ;
   7700   return 0;
   7701 }
   7702 _ACEOF
   7703 rm -f conftest.$ac_objext conftest$ac_exeext
   7704 if { (ac_try="$ac_link"
   7705 case "(($ac_try" in
   7706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7707   *) ac_try_echo=$ac_try;;
   7708 esac
   7709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7710 $as_echo "$ac_try_echo") >&5
   7711   (eval "$ac_link") 2>conftest.er1
   7712   ac_status=$?
   7713   grep -v '^ *+' conftest.er1 >conftest.err
   7714   rm -f conftest.er1
   7715   cat conftest.err >&5
   7716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7717   (exit $ac_status); } && {
   7718 	 test -z "$ac_c_werror_flag" ||
   7719 	 test ! -s conftest.err
   7720        } && test -s conftest$ac_exeext && {
   7721 	 test "$cross_compiling" = yes ||
   7722 	 $as_test_x conftest$ac_exeext
   7723        }; then
   7724   eval "$as_ac_var=yes"
   7725 else
   7726   $as_echo "$as_me: failed program was:" >&5
   7727 sed 's/^/| /' conftest.$ac_ext >&5
   7728 
   7729 	eval "$as_ac_var=no"
   7730 fi
   7731 
   7732 rm -rf conftest.dSYM
   7733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7734       conftest$ac_exeext conftest.$ac_ext
   7735 fi
   7736 ac_res=`eval 'as_val=${'$as_ac_var'}
   7737 		 $as_echo "$as_val"'`
   7738 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   7739 $as_echo "$ac_res" >&6; }
   7740 as_val=`eval 'as_val=${'$as_ac_var'}
   7741 		 $as_echo "$as_val"'`
   7742    if test "x$as_val" = x""yes; then
   7743   cat >>confdefs.h <<_ACEOF
   7744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7745 _ACEOF
   7746 
   7747 fi
   7748 done
   7749 
   7750 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
   7751 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
   7752 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
   7753   $as_echo_n "(cached) " >&6
   7754 else
   7755 
   7756     ac_cv_func_strerror_r_char_p=no
   7757     if test $ac_cv_have_decl_strerror_r = yes; then
   7758       cat >conftest.$ac_ext <<_ACEOF
   7759 /* confdefs.h.  */
   7760 _ACEOF
   7761 cat confdefs.h >>conftest.$ac_ext
   7762 cat >>conftest.$ac_ext <<_ACEOF
   7763 /* end confdefs.h.  */
   7764 $ac_includes_default
   7765 int
   7766 main ()
   7767 {
   7768 
   7769 	  char buf[100];
   7770 	  char x = *strerror_r (0, buf, sizeof buf);
   7771 	  char *p = strerror_r (0, buf, sizeof buf);
   7772 	  return !p || x;
   7773 
   7774   ;
   7775   return 0;
   7776 }
   7777 _ACEOF
   7778 rm -f conftest.$ac_objext
   7779 if { (ac_try="$ac_compile"
   7780 case "(($ac_try" in
   7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7782   *) ac_try_echo=$ac_try;;
   7783 esac
   7784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7785 $as_echo "$ac_try_echo") >&5
   7786   (eval "$ac_compile") 2>conftest.er1
   7787   ac_status=$?
   7788   grep -v '^ *+' conftest.er1 >conftest.err
   7789   rm -f conftest.er1
   7790   cat conftest.err >&5
   7791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7792   (exit $ac_status); } && {
   7793 	 test -z "$ac_c_werror_flag" ||
   7794 	 test ! -s conftest.err
   7795        } && test -s conftest.$ac_objext; then
   7796   ac_cv_func_strerror_r_char_p=yes
   7797 else
   7798   $as_echo "$as_me: failed program was:" >&5
   7799 sed 's/^/| /' conftest.$ac_ext >&5
   7800 
   7801 
   7802 fi
   7803 
   7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7805     else
   7806       # strerror_r is not declared.  Choose between
   7807       # systems that have relatively inaccessible declarations for the
   7808       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   7809       # former has a strerror_r that returns char*, while the latter
   7810       # has a strerror_r that returns `int'.
   7811       # This test should segfault on the DEC system.
   7812       if test "$cross_compiling" = yes; then
   7813   :
   7814 else
   7815   cat >conftest.$ac_ext <<_ACEOF
   7816 /* confdefs.h.  */
   7817 _ACEOF
   7818 cat confdefs.h >>conftest.$ac_ext
   7819 cat >>conftest.$ac_ext <<_ACEOF
   7820 /* end confdefs.h.  */
   7821 $ac_includes_default
   7822 	extern char *strerror_r ();
   7823 int
   7824 main ()
   7825 {
   7826 char buf[100];
   7827 	  char x = *strerror_r (0, buf, sizeof buf);
   7828 	  return ! isalpha (x);
   7829   ;
   7830   return 0;
   7831 }
   7832 _ACEOF
   7833 rm -f conftest$ac_exeext
   7834 if { (ac_try="$ac_link"
   7835 case "(($ac_try" in
   7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7837   *) ac_try_echo=$ac_try;;
   7838 esac
   7839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7840 $as_echo "$ac_try_echo") >&5
   7841   (eval "$ac_link") 2>&5
   7842   ac_status=$?
   7843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7845   { (case "(($ac_try" in
   7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7847   *) ac_try_echo=$ac_try;;
   7848 esac
   7849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7850 $as_echo "$ac_try_echo") >&5
   7851   (eval "$ac_try") 2>&5
   7852   ac_status=$?
   7853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7854   (exit $ac_status); }; }; then
   7855   ac_cv_func_strerror_r_char_p=yes
   7856 else
   7857   $as_echo "$as_me: program exited with status $ac_status" >&5
   7858 $as_echo "$as_me: failed program was:" >&5
   7859 sed 's/^/| /' conftest.$ac_ext >&5
   7860 
   7861 fi
   7862 rm -rf conftest.dSYM
   7863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7864 fi
   7865 
   7866 
   7867     fi
   7868 
   7869 fi
   7870 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
   7871 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
   7872 if test $ac_cv_func_strerror_r_char_p = yes; then
   7873 
   7874 cat >>confdefs.h <<\_ACEOF
   7875 #define STRERROR_R_CHAR_P 1
   7876 _ACEOF
   7877 
   7878 fi
   7879 
   7880 
   7881   XGETTEXT_EXTRA_OPTIONS=
   7882 
   7883 
   7884   GNULIB_FPRINTF=0;
   7885   GNULIB_FPRINTF_POSIX=0;
   7886   GNULIB_PRINTF=0;
   7887   GNULIB_PRINTF_POSIX=0;
   7888   GNULIB_SNPRINTF=0;
   7889   GNULIB_SPRINTF_POSIX=0;
   7890   GNULIB_VFPRINTF=0;
   7891   GNULIB_VFPRINTF_POSIX=0;
   7892   GNULIB_VPRINTF=0;
   7893   GNULIB_VPRINTF_POSIX=0;
   7894   GNULIB_VSNPRINTF=0;
   7895   GNULIB_VSPRINTF_POSIX=0;
   7896   GNULIB_DPRINTF=0;
   7897   GNULIB_VDPRINTF=0;
   7898   GNULIB_VASPRINTF=0;
   7899   GNULIB_OBSTACK_PRINTF=0;
   7900   GNULIB_OBSTACK_PRINTF_POSIX=0;
   7901   GNULIB_FOPEN=0;
   7902   GNULIB_FREOPEN=0;
   7903   GNULIB_FSEEK=0;
   7904   GNULIB_FSEEKO=0;
   7905   GNULIB_FTELL=0;
   7906   GNULIB_FTELLO=0;
   7907   GNULIB_FFLUSH=0;
   7908   GNULIB_FPURGE=0;
   7909   GNULIB_FCLOSE=0;
   7910   GNULIB_FPUTC=0;
   7911   GNULIB_PUTC=0;
   7912   GNULIB_PUTCHAR=0;
   7913   GNULIB_FPUTS=0;
   7914   GNULIB_PUTS=0;
   7915   GNULIB_FWRITE=0;
   7916   GNULIB_GETDELIM=0;
   7917   GNULIB_GETLINE=0;
   7918   GNULIB_PERROR=0;
   7919   GNULIB_STDIO_H_SIGPIPE=0;
   7920     REPLACE_STDIO_WRITE_FUNCS=0;
   7921   REPLACE_FPRINTF=0;
   7922   REPLACE_VFPRINTF=0;
   7923   REPLACE_PRINTF=0;
   7924   REPLACE_VPRINTF=0;
   7925   REPLACE_SNPRINTF=0;
   7926   HAVE_DECL_SNPRINTF=1;
   7927   REPLACE_VSNPRINTF=0;
   7928   HAVE_DECL_VSNPRINTF=1;
   7929   REPLACE_SPRINTF=0;
   7930   REPLACE_VSPRINTF=0;
   7931   HAVE_DPRINTF=1;
   7932   REPLACE_DPRINTF=0;
   7933   HAVE_VDPRINTF=1;
   7934   REPLACE_VDPRINTF=0;
   7935   HAVE_VASPRINTF=1;
   7936   REPLACE_VASPRINTF=0;
   7937   HAVE_DECL_OBSTACK_PRINTF=1;
   7938   REPLACE_OBSTACK_PRINTF=0;
   7939   REPLACE_FOPEN=0;
   7940   REPLACE_FREOPEN=0;
   7941   HAVE_FSEEKO=1;
   7942   REPLACE_FSEEKO=0;
   7943   REPLACE_FSEEK=0;
   7944   HAVE_FTELLO=1;
   7945   REPLACE_FTELLO=0;
   7946   REPLACE_FTELL=0;
   7947   REPLACE_FFLUSH=0;
   7948   REPLACE_FPURGE=0;
   7949   HAVE_DECL_FPURGE=1;
   7950   REPLACE_FCLOSE=0;
   7951   HAVE_DECL_GETDELIM=1;
   7952   HAVE_DECL_GETLINE=1;
   7953   REPLACE_GETLINE=0;
   7954   REPLACE_PERROR=0;
   7955 
   7956 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
   7957 $as_echo_n "checking whether getdelim is declared... " >&6; }
   7958 if test "${ac_cv_have_decl_getdelim+set}" = set; then
   7959   $as_echo_n "(cached) " >&6
   7960 else
   7961   cat >conftest.$ac_ext <<_ACEOF
   7962 /* confdefs.h.  */
   7963 _ACEOF
   7964 cat confdefs.h >>conftest.$ac_ext
   7965 cat >>conftest.$ac_ext <<_ACEOF
   7966 /* end confdefs.h.  */
   7967 $ac_includes_default
   7968 int
   7969 main ()
   7970 {
   7971 #ifndef getdelim
   7972   (void) getdelim;
   7973 #endif
   7974 
   7975   ;
   7976   return 0;
   7977 }
   7978 _ACEOF
   7979 rm -f conftest.$ac_objext
   7980 if { (ac_try="$ac_compile"
   7981 case "(($ac_try" in
   7982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7983   *) ac_try_echo=$ac_try;;
   7984 esac
   7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   7986 $as_echo "$ac_try_echo") >&5
   7987   (eval "$ac_compile") 2>conftest.er1
   7988   ac_status=$?
   7989   grep -v '^ *+' conftest.er1 >conftest.err
   7990   rm -f conftest.er1
   7991   cat conftest.err >&5
   7992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7993   (exit $ac_status); } && {
   7994 	 test -z "$ac_c_werror_flag" ||
   7995 	 test ! -s conftest.err
   7996        } && test -s conftest.$ac_objext; then
   7997   ac_cv_have_decl_getdelim=yes
   7998 else
   7999   $as_echo "$as_me: failed program was:" >&5
   8000 sed 's/^/| /' conftest.$ac_ext >&5
   8001 
   8002 	ac_cv_have_decl_getdelim=no
   8003 fi
   8004 
   8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8006 fi
   8007 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
   8008 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
   8009 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
   8010 
   8011 cat >>confdefs.h <<_ACEOF
   8012 #define HAVE_DECL_GETDELIM 1
   8013 _ACEOF
   8014 
   8015 
   8016 else
   8017   cat >>confdefs.h <<_ACEOF
   8018 #define HAVE_DECL_GETDELIM 0
   8019 _ACEOF
   8020 
   8021 
   8022 fi
   8023 
   8024 
   8025 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
   8026 $as_echo_n "checking whether getline is declared... " >&6; }
   8027 if test "${ac_cv_have_decl_getline+set}" = set; then
   8028   $as_echo_n "(cached) " >&6
   8029 else
   8030   cat >conftest.$ac_ext <<_ACEOF
   8031 /* confdefs.h.  */
   8032 _ACEOF
   8033 cat confdefs.h >>conftest.$ac_ext
   8034 cat >>conftest.$ac_ext <<_ACEOF
   8035 /* end confdefs.h.  */
   8036 $ac_includes_default
   8037 int
   8038 main ()
   8039 {
   8040 #ifndef getline
   8041   (void) getline;
   8042 #endif
   8043 
   8044   ;
   8045   return 0;
   8046 }
   8047 _ACEOF
   8048 rm -f conftest.$ac_objext
   8049 if { (ac_try="$ac_compile"
   8050 case "(($ac_try" in
   8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8052   *) ac_try_echo=$ac_try;;
   8053 esac
   8054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8055 $as_echo "$ac_try_echo") >&5
   8056   (eval "$ac_compile") 2>conftest.er1
   8057   ac_status=$?
   8058   grep -v '^ *+' conftest.er1 >conftest.err
   8059   rm -f conftest.er1
   8060   cat conftest.err >&5
   8061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8062   (exit $ac_status); } && {
   8063 	 test -z "$ac_c_werror_flag" ||
   8064 	 test ! -s conftest.err
   8065        } && test -s conftest.$ac_objext; then
   8066   ac_cv_have_decl_getline=yes
   8067 else
   8068   $as_echo "$as_me: failed program was:" >&5
   8069 sed 's/^/| /' conftest.$ac_ext >&5
   8070 
   8071 	ac_cv_have_decl_getline=no
   8072 fi
   8073 
   8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8075 fi
   8076 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
   8077 $as_echo "$ac_cv_have_decl_getline" >&6; }
   8078 if test "x$ac_cv_have_decl_getline" = x""yes; then
   8079 
   8080 cat >>confdefs.h <<_ACEOF
   8081 #define HAVE_DECL_GETLINE 1
   8082 _ACEOF
   8083 
   8084 
   8085 else
   8086   cat >>confdefs.h <<_ACEOF
   8087 #define HAVE_DECL_GETLINE 0
   8088 _ACEOF
   8089 
   8090 
   8091 fi
   8092 
   8093 
   8094 
   8095   if test -z "$GETOPT_H"; then
   8096 
   8097 for ac_header in getopt.h
   8098 do
   8099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8101   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   8102 $as_echo_n "checking for $ac_header... " >&6; }
   8103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8104   $as_echo_n "(cached) " >&6
   8105 fi
   8106 ac_res=`eval 'as_val=${'$as_ac_Header'}
   8107 		 $as_echo "$as_val"'`
   8108 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   8109 $as_echo "$ac_res" >&6; }
   8110 else
   8111   # Is the header compilable?
   8112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8113 $as_echo_n "checking $ac_header usability... " >&6; }
   8114 cat >conftest.$ac_ext <<_ACEOF
   8115 /* confdefs.h.  */
   8116 _ACEOF
   8117 cat confdefs.h >>conftest.$ac_ext
   8118 cat >>conftest.$ac_ext <<_ACEOF
   8119 /* end confdefs.h.  */
   8120 $ac_includes_default
   8121 #include <$ac_header>
   8122 _ACEOF
   8123 rm -f conftest.$ac_objext
   8124 if { (ac_try="$ac_compile"
   8125 case "(($ac_try" in
   8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8127   *) ac_try_echo=$ac_try;;
   8128 esac
   8129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8130 $as_echo "$ac_try_echo") >&5
   8131   (eval "$ac_compile") 2>conftest.er1
   8132   ac_status=$?
   8133   grep -v '^ *+' conftest.er1 >conftest.err
   8134   rm -f conftest.er1
   8135   cat conftest.err >&5
   8136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8137   (exit $ac_status); } && {
   8138 	 test -z "$ac_c_werror_flag" ||
   8139 	 test ! -s conftest.err
   8140        } && test -s conftest.$ac_objext; then
   8141   ac_header_compiler=yes
   8142 else
   8143   $as_echo "$as_me: failed program was:" >&5
   8144 sed 's/^/| /' conftest.$ac_ext >&5
   8145 
   8146 	ac_header_compiler=no
   8147 fi
   8148 
   8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8151 $as_echo "$ac_header_compiler" >&6; }
   8152 
   8153 # Is the header present?
   8154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8155 $as_echo_n "checking $ac_header presence... " >&6; }
   8156 cat >conftest.$ac_ext <<_ACEOF
   8157 /* confdefs.h.  */
   8158 _ACEOF
   8159 cat confdefs.h >>conftest.$ac_ext
   8160 cat >>conftest.$ac_ext <<_ACEOF
   8161 /* end confdefs.h.  */
   8162 #include <$ac_header>
   8163 _ACEOF
   8164 if { (ac_try="$ac_cpp conftest.$ac_ext"
   8165 case "(($ac_try" in
   8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8167   *) ac_try_echo=$ac_try;;
   8168 esac
   8169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8170 $as_echo "$ac_try_echo") >&5
   8171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8172   ac_status=$?
   8173   grep -v '^ *+' conftest.er1 >conftest.err
   8174   rm -f conftest.er1
   8175   cat conftest.err >&5
   8176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8177   (exit $ac_status); } >/dev/null && {
   8178 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   8179 	 test ! -s conftest.err
   8180        }; then
   8181   ac_header_preproc=yes
   8182 else
   8183   $as_echo "$as_me: failed program was:" >&5
   8184 sed 's/^/| /' conftest.$ac_ext >&5
   8185 
   8186   ac_header_preproc=no
   8187 fi
   8188 
   8189 rm -f conftest.err conftest.$ac_ext
   8190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8191 $as_echo "$ac_header_preproc" >&6; }
   8192 
   8193 # So?  What about this header?
   8194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8195   yes:no: )
   8196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8200     ac_header_preproc=yes
   8201     ;;
   8202   no:yes:* )
   8203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8206 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8210 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8215     ( cat <<\_ASBOX
   8216 ## ------------------------------------ ##
   8217 ## Report this to bug-gnu-utils (at] gnu.org ##
   8218 ## ------------------------------------ ##
   8219 _ASBOX
   8220      ) | sed "s/^/$as_me: WARNING:     /" >&2
   8221     ;;
   8222 esac
   8223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   8224 $as_echo_n "checking for $ac_header... " >&6; }
   8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8226   $as_echo_n "(cached) " >&6
   8227 else
   8228   eval "$as_ac_Header=\$ac_header_preproc"
   8229 fi
   8230 ac_res=`eval 'as_val=${'$as_ac_Header'}
   8231 		 $as_echo "$as_val"'`
   8232 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   8233 $as_echo "$ac_res" >&6; }
   8234 
   8235 fi
   8236 as_val=`eval 'as_val=${'$as_ac_Header'}
   8237 		 $as_echo "$as_val"'`
   8238    if test "x$as_val" = x""yes; then
   8239   cat >>confdefs.h <<_ACEOF
   8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8241 _ACEOF
   8242 
   8243 else
   8244   GETOPT_H=getopt.h
   8245 fi
   8246 
   8247 done
   8248 
   8249   fi
   8250 
   8251   if test -z "$GETOPT_H"; then
   8252 
   8253 for ac_func in getopt_long_only
   8254 do
   8255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8256 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   8257 $as_echo_n "checking for $ac_func... " >&6; }
   8258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8259   $as_echo_n "(cached) " >&6
   8260 else
   8261   cat >conftest.$ac_ext <<_ACEOF
   8262 /* confdefs.h.  */
   8263 _ACEOF
   8264 cat confdefs.h >>conftest.$ac_ext
   8265 cat >>conftest.$ac_ext <<_ACEOF
   8266 /* end confdefs.h.  */
   8267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8269 #define $ac_func innocuous_$ac_func
   8270 
   8271 /* System header to define __stub macros and hopefully few prototypes,
   8272     which can conflict with char $ac_func (); below.
   8273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8274     <limits.h> exists even on freestanding compilers.  */
   8275 
   8276 #ifdef __STDC__
   8277 # include <limits.h>
   8278 #else
   8279 # include <assert.h>
   8280 #endif
   8281 
   8282 #undef $ac_func
   8283 
   8284 /* Override any GCC internal prototype to avoid an error.
   8285    Use char because int might match the return type of a GCC
   8286    builtin and then its argument prototype would still apply.  */
   8287 #ifdef __cplusplus
   8288 extern "C"
   8289 #endif
   8290 char $ac_func ();
   8291 /* The GNU C library defines this for functions which it implements
   8292     to always fail with ENOSYS.  Some functions are actually named
   8293     something starting with __ and the normal name is an alias.  */
   8294 #if defined __stub_$ac_func || defined __stub___$ac_func
   8295 choke me
   8296 #endif
   8297 
   8298 int
   8299 main ()
   8300 {
   8301 return $ac_func ();
   8302   ;
   8303   return 0;
   8304 }
   8305 _ACEOF
   8306 rm -f conftest.$ac_objext conftest$ac_exeext
   8307 if { (ac_try="$ac_link"
   8308 case "(($ac_try" in
   8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8310   *) ac_try_echo=$ac_try;;
   8311 esac
   8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8313 $as_echo "$ac_try_echo") >&5
   8314   (eval "$ac_link") 2>conftest.er1
   8315   ac_status=$?
   8316   grep -v '^ *+' conftest.er1 >conftest.err
   8317   rm -f conftest.er1
   8318   cat conftest.err >&5
   8319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8320   (exit $ac_status); } && {
   8321 	 test -z "$ac_c_werror_flag" ||
   8322 	 test ! -s conftest.err
   8323        } && test -s conftest$ac_exeext && {
   8324 	 test "$cross_compiling" = yes ||
   8325 	 $as_test_x conftest$ac_exeext
   8326        }; then
   8327   eval "$as_ac_var=yes"
   8328 else
   8329   $as_echo "$as_me: failed program was:" >&5
   8330 sed 's/^/| /' conftest.$ac_ext >&5
   8331 
   8332 	eval "$as_ac_var=no"
   8333 fi
   8334 
   8335 rm -rf conftest.dSYM
   8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8337       conftest$ac_exeext conftest.$ac_ext
   8338 fi
   8339 ac_res=`eval 'as_val=${'$as_ac_var'}
   8340 		 $as_echo "$as_val"'`
   8341 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   8342 $as_echo "$ac_res" >&6; }
   8343 as_val=`eval 'as_val=${'$as_ac_var'}
   8344 		 $as_echo "$as_val"'`
   8345    if test "x$as_val" = x""yes; then
   8346   cat >>confdefs.h <<_ACEOF
   8347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8348 _ACEOF
   8349 
   8350 else
   8351   GETOPT_H=getopt.h
   8352 fi
   8353 done
   8354 
   8355   fi
   8356 
   8357       if test -z "$GETOPT_H"; then
   8358     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
   8359 $as_echo_n "checking whether optreset is declared... " >&6; }
   8360 if test "${ac_cv_have_decl_optreset+set}" = set; then
   8361   $as_echo_n "(cached) " >&6
   8362 else
   8363   cat >conftest.$ac_ext <<_ACEOF
   8364 /* confdefs.h.  */
   8365 _ACEOF
   8366 cat confdefs.h >>conftest.$ac_ext
   8367 cat >>conftest.$ac_ext <<_ACEOF
   8368 /* end confdefs.h.  */
   8369 #include <getopt.h>
   8370 
   8371 int
   8372 main ()
   8373 {
   8374 #ifndef optreset
   8375   (void) optreset;
   8376 #endif
   8377 
   8378   ;
   8379   return 0;
   8380 }
   8381 _ACEOF
   8382 rm -f conftest.$ac_objext
   8383 if { (ac_try="$ac_compile"
   8384 case "(($ac_try" in
   8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8386   *) ac_try_echo=$ac_try;;
   8387 esac
   8388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8389 $as_echo "$ac_try_echo") >&5
   8390   (eval "$ac_compile") 2>conftest.er1
   8391   ac_status=$?
   8392   grep -v '^ *+' conftest.er1 >conftest.err
   8393   rm -f conftest.er1
   8394   cat conftest.err >&5
   8395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8396   (exit $ac_status); } && {
   8397 	 test -z "$ac_c_werror_flag" ||
   8398 	 test ! -s conftest.err
   8399        } && test -s conftest.$ac_objext; then
   8400   ac_cv_have_decl_optreset=yes
   8401 else
   8402   $as_echo "$as_me: failed program was:" >&5
   8403 sed 's/^/| /' conftest.$ac_ext >&5
   8404 
   8405 	ac_cv_have_decl_optreset=no
   8406 fi
   8407 
   8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8409 fi
   8410 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
   8411 $as_echo "$ac_cv_have_decl_optreset" >&6; }
   8412 if test "x$ac_cv_have_decl_optreset" = x""yes; then
   8413   GETOPT_H=getopt.h
   8414 fi
   8415 
   8416   fi
   8417 
   8418       if test -z "$GETOPT_H"; then
   8419     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
   8420 $as_echo_n "checking for working GNU getopt function... " >&6; }
   8421 if test "${gl_cv_func_gnu_getopt+set}" = set; then
   8422   $as_echo_n "(cached) " >&6
   8423 else
   8424   if test "$cross_compiling" = yes; then
   8425   	 	 	 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
   8426 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
   8427 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
   8428   $as_echo_n "(cached) " >&6
   8429 else
   8430   cat >conftest.$ac_ext <<_ACEOF
   8431 /* confdefs.h.  */
   8432 _ACEOF
   8433 cat confdefs.h >>conftest.$ac_ext
   8434 cat >>conftest.$ac_ext <<_ACEOF
   8435 /* end confdefs.h.  */
   8436 #include <getopt.h>
   8437 
   8438 int
   8439 main ()
   8440 {
   8441 #ifndef getopt_clip
   8442   (void) getopt_clip;
   8443 #endif
   8444 
   8445   ;
   8446   return 0;
   8447 }
   8448 _ACEOF
   8449 rm -f conftest.$ac_objext
   8450 if { (ac_try="$ac_compile"
   8451 case "(($ac_try" in
   8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8453   *) ac_try_echo=$ac_try;;
   8454 esac
   8455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8456 $as_echo "$ac_try_echo") >&5
   8457   (eval "$ac_compile") 2>conftest.er1
   8458   ac_status=$?
   8459   grep -v '^ *+' conftest.er1 >conftest.err
   8460   rm -f conftest.er1
   8461   cat conftest.err >&5
   8462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8463   (exit $ac_status); } && {
   8464 	 test -z "$ac_c_werror_flag" ||
   8465 	 test ! -s conftest.err
   8466        } && test -s conftest.$ac_objext; then
   8467   ac_cv_have_decl_getopt_clip=yes
   8468 else
   8469   $as_echo "$as_me: failed program was:" >&5
   8470 sed 's/^/| /' conftest.$ac_ext >&5
   8471 
   8472 	ac_cv_have_decl_getopt_clip=no
   8473 fi
   8474 
   8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8476 fi
   8477 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
   8478 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
   8479 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
   8480   gl_cv_func_gnu_getopt=no
   8481 else
   8482   gl_cv_func_gnu_getopt=yes
   8483 fi
   8484 
   8485 else
   8486   cat >conftest.$ac_ext <<_ACEOF
   8487 /* confdefs.h.  */
   8488 _ACEOF
   8489 cat confdefs.h >>conftest.$ac_ext
   8490 cat >>conftest.$ac_ext <<_ACEOF
   8491 /* end confdefs.h.  */
   8492 #include <getopt.h>
   8493 int
   8494 main ()
   8495 {
   8496 
   8497 	     char *myargv[3];
   8498 	     myargv[0] = "conftest";
   8499 	     myargv[1] = "-+";
   8500 	     myargv[2] = 0;
   8501 	     return getopt (2, myargv, "+a") != '?';
   8502 
   8503   ;
   8504   return 0;
   8505 }
   8506 _ACEOF
   8507 rm -f conftest$ac_exeext
   8508 if { (ac_try="$ac_link"
   8509 case "(($ac_try" in
   8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8511   *) ac_try_echo=$ac_try;;
   8512 esac
   8513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8514 $as_echo "$ac_try_echo") >&5
   8515   (eval "$ac_link") 2>&5
   8516   ac_status=$?
   8517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8519   { (case "(($ac_try" in
   8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8521   *) ac_try_echo=$ac_try;;
   8522 esac
   8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8524 $as_echo "$ac_try_echo") >&5
   8525   (eval "$ac_try") 2>&5
   8526   ac_status=$?
   8527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8528   (exit $ac_status); }; }; then
   8529   gl_cv_func_gnu_getopt=yes
   8530 else
   8531   $as_echo "$as_me: program exited with status $ac_status" >&5
   8532 $as_echo "$as_me: failed program was:" >&5
   8533 sed 's/^/| /' conftest.$ac_ext >&5
   8534 
   8535 ( exit $ac_status )
   8536 gl_cv_func_gnu_getopt=no
   8537 fi
   8538 rm -rf conftest.dSYM
   8539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8540 fi
   8541 
   8542 
   8543 fi
   8544 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
   8545 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
   8546     if test "$gl_cv_func_gnu_getopt" = "no"; then
   8547       GETOPT_H=getopt.h
   8548     fi
   8549   fi
   8550 
   8551 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
   8552 $as_echo_n "checking whether getenv is declared... " >&6; }
   8553 if test "${ac_cv_have_decl_getenv+set}" = set; then
   8554   $as_echo_n "(cached) " >&6
   8555 else
   8556   cat >conftest.$ac_ext <<_ACEOF
   8557 /* confdefs.h.  */
   8558 _ACEOF
   8559 cat confdefs.h >>conftest.$ac_ext
   8560 cat >>conftest.$ac_ext <<_ACEOF
   8561 /* end confdefs.h.  */
   8562 $ac_includes_default
   8563 int
   8564 main ()
   8565 {
   8566 #ifndef getenv
   8567   (void) getenv;
   8568 #endif
   8569 
   8570   ;
   8571   return 0;
   8572 }
   8573 _ACEOF
   8574 rm -f conftest.$ac_objext
   8575 if { (ac_try="$ac_compile"
   8576 case "(($ac_try" in
   8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8578   *) ac_try_echo=$ac_try;;
   8579 esac
   8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8581 $as_echo "$ac_try_echo") >&5
   8582   (eval "$ac_compile") 2>conftest.er1
   8583   ac_status=$?
   8584   grep -v '^ *+' conftest.er1 >conftest.err
   8585   rm -f conftest.er1
   8586   cat conftest.err >&5
   8587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8588   (exit $ac_status); } && {
   8589 	 test -z "$ac_c_werror_flag" ||
   8590 	 test ! -s conftest.err
   8591        } && test -s conftest.$ac_objext; then
   8592   ac_cv_have_decl_getenv=yes
   8593 else
   8594   $as_echo "$as_me: failed program was:" >&5
   8595 sed 's/^/| /' conftest.$ac_ext >&5
   8596 
   8597 	ac_cv_have_decl_getenv=no
   8598 fi
   8599 
   8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8601 fi
   8602 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
   8603 $as_echo "$ac_cv_have_decl_getenv" >&6; }
   8604 if test "x$ac_cv_have_decl_getenv" = x""yes; then
   8605 
   8606 cat >>confdefs.h <<_ACEOF
   8607 #define HAVE_DECL_GETENV 1
   8608 _ACEOF
   8609 
   8610 
   8611 else
   8612   cat >>confdefs.h <<_ACEOF
   8613 #define HAVE_DECL_GETENV 0
   8614 _ACEOF
   8615 
   8616 
   8617 fi
   8618 
   8619 
   8620 
   8621   GNULIB_CHOWN=0;
   8622   GNULIB_CLOSE=0;
   8623   GNULIB_DUP2=0;
   8624   GNULIB_ENVIRON=0;
   8625   GNULIB_EUIDACCESS=0;
   8626   GNULIB_FCHDIR=0;
   8627   GNULIB_FSYNC=0;
   8628   GNULIB_FTRUNCATE=0;
   8629   GNULIB_GETCWD=0;
   8630   GNULIB_GETDOMAINNAME=0;
   8631   GNULIB_GETDTABLESIZE=0;
   8632   GNULIB_GETHOSTNAME=0;
   8633   GNULIB_GETLOGIN_R=0;
   8634   GNULIB_GETPAGESIZE=0;
   8635   GNULIB_GETUSERSHELL=0;
   8636   GNULIB_LCHOWN=0;
   8637   GNULIB_LINK=0;
   8638   GNULIB_LSEEK=0;
   8639   GNULIB_READLINK=0;
   8640   GNULIB_SLEEP=0;
   8641   GNULIB_UNISTD_H_SIGPIPE=0;
   8642   GNULIB_WRITE=0;
   8643     HAVE_DUP2=1;
   8644   HAVE_EUIDACCESS=1;
   8645   HAVE_FSYNC=1;
   8646   HAVE_FTRUNCATE=1;
   8647   HAVE_GETDOMAINNAME=1;
   8648   HAVE_GETDTABLESIZE=1;
   8649   HAVE_GETHOSTNAME=1;
   8650   HAVE_GETPAGESIZE=1;
   8651   HAVE_GETUSERSHELL=1;
   8652   HAVE_LINK=1;
   8653   HAVE_READLINK=1;
   8654   HAVE_SLEEP=1;
   8655   HAVE_DECL_ENVIRON=1;
   8656   HAVE_DECL_GETLOGIN_R=1;
   8657   HAVE_OS_H=0;
   8658   HAVE_SYS_PARAM_H=0;
   8659   REPLACE_CHOWN=0;
   8660   REPLACE_CLOSE=0;
   8661   REPLACE_FCHDIR=0;
   8662   REPLACE_GETCWD=0;
   8663   REPLACE_GETPAGESIZE=0;
   8664   REPLACE_LCHOWN=0;
   8665   REPLACE_LSEEK=0;
   8666   REPLACE_WRITE=0;
   8667   UNISTD_H_HAVE_WINSOCK2_H=0;
   8668 
   8669 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
   8670 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
   8671 if test "${ac_cv_c_restrict+set}" = set; then
   8672   $as_echo_n "(cached) " >&6
   8673 else
   8674   ac_cv_c_restrict=no
   8675    # The order here caters to the fact that C++ does not require restrict.
   8676    for ac_kw in __restrict __restrict__ _Restrict restrict; do
   8677      cat >conftest.$ac_ext <<_ACEOF
   8678 /* confdefs.h.  */
   8679 _ACEOF
   8680 cat confdefs.h >>conftest.$ac_ext
   8681 cat >>conftest.$ac_ext <<_ACEOF
   8682 /* end confdefs.h.  */
   8683 typedef int * int_ptr;
   8684 	int foo (int_ptr $ac_kw ip) {
   8685 	return ip[0];
   8686        }
   8687 int
   8688 main ()
   8689 {
   8690 int s[1];
   8691 	int * $ac_kw t = s;
   8692 	t[0] = 0;
   8693 	return foo(t)
   8694   ;
   8695   return 0;
   8696 }
   8697 _ACEOF
   8698 rm -f conftest.$ac_objext
   8699 if { (ac_try="$ac_compile"
   8700 case "(($ac_try" in
   8701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8702   *) ac_try_echo=$ac_try;;
   8703 esac
   8704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8705 $as_echo "$ac_try_echo") >&5
   8706   (eval "$ac_compile") 2>conftest.er1
   8707   ac_status=$?
   8708   grep -v '^ *+' conftest.er1 >conftest.err
   8709   rm -f conftest.er1
   8710   cat conftest.err >&5
   8711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8712   (exit $ac_status); } && {
   8713 	 test -z "$ac_c_werror_flag" ||
   8714 	 test ! -s conftest.err
   8715        } && test -s conftest.$ac_objext; then
   8716   ac_cv_c_restrict=$ac_kw
   8717 else
   8718   $as_echo "$as_me: failed program was:" >&5
   8719 sed 's/^/| /' conftest.$ac_ext >&5
   8720 
   8721 
   8722 fi
   8723 
   8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8725      test "$ac_cv_c_restrict" != no && break
   8726    done
   8727 
   8728 fi
   8729 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
   8730 $as_echo "$ac_cv_c_restrict" >&6; }
   8731 
   8732 
   8733  case $ac_cv_c_restrict in
   8734    restrict) ;;
   8735    no) cat >>confdefs.h <<\_ACEOF
   8736 #define restrict /**/
   8737 _ACEOF
   8738  ;;
   8739    *)  cat >>confdefs.h <<_ACEOF
   8740 #define restrict $ac_cv_c_restrict
   8741 _ACEOF
   8742  ;;
   8743  esac
   8744 
   8745 
   8746 
   8747 
   8748 
   8749 
   8750 
   8751 
   8752 
   8753 
   8754 
   8755 
   8756 
   8757 
   8758 
   8759 
   8760      if test $gl_cv_have_include_next = yes; then
   8761        gl_cv_next_sys_time_h='<'sys/time.h'>'
   8762      else
   8763        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
   8764 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
   8765 if test "${gl_cv_next_sys_time_h+set}" = set; then
   8766   $as_echo_n "(cached) " >&6
   8767 else
   8768 
   8769 	  if test $ac_cv_header_sys_time_h = yes; then
   8770 	    cat >conftest.$ac_ext <<_ACEOF
   8771 /* confdefs.h.  */
   8772 _ACEOF
   8773 cat confdefs.h >>conftest.$ac_ext
   8774 cat >>conftest.$ac_ext <<_ACEOF
   8775 /* end confdefs.h.  */
   8776 #include <sys/time.h>
   8777 
   8778 _ACEOF
   8779 	    	    	    	    	    	    	    	    case "$host_os" in
   8780 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   8781 	      *)    gl_absname_cpp="$ac_cpp" ;;
   8782 	    esac
   8783 	    	    	    	    gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   8784 	       sed -n '\#/sys/time.h#{
   8785 		 s#.*"\(.*/sys/time.h\)".*#\1#
   8786 		 s#^/[^/]#//&#
   8787 		 p
   8788 		 q
   8789 	       }'`'"'
   8790 	  else
   8791 	    gl_cv_next_sys_time_h='<'sys/time.h'>'
   8792 	  fi
   8793 
   8794 fi
   8795 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
   8796 $as_echo "$gl_cv_next_sys_time_h" >&6; }
   8797      fi
   8798      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
   8799 
   8800      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   8801        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   8802        gl_next_as_first_directive='<'sys/time.h'>'
   8803      else
   8804        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   8805        gl_next_as_first_directive=$gl_cv_next_sys_time_h
   8806      fi
   8807      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
   8808 
   8809 
   8810 
   8811 
   8812   if test $ac_cv_header_sys_time_h = yes; then
   8813     HAVE_SYS_TIME_H=1
   8814   else
   8815     HAVE_SYS_TIME_H=0
   8816   fi
   8817 
   8818 
   8819   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
   8820 $as_echo_n "checking for struct timeval... " >&6; }
   8821 if test "${gl_cv_sys_struct_timeval+set}" = set; then
   8822   $as_echo_n "(cached) " >&6
   8823 else
   8824   cat >conftest.$ac_ext <<_ACEOF
   8825 /* confdefs.h.  */
   8826 _ACEOF
   8827 cat confdefs.h >>conftest.$ac_ext
   8828 cat >>conftest.$ac_ext <<_ACEOF
   8829 /* end confdefs.h.  */
   8830 #if HAVE_SYS_TIME_H
   8831 	     #include <sys/time.h>
   8832 	    #endif
   8833 	    #include <time.h>
   8834 
   8835 int
   8836 main ()
   8837 {
   8838 static struct timeval x; x.tv_sec = x.tv_usec;
   8839   ;
   8840   return 0;
   8841 }
   8842 _ACEOF
   8843 rm -f conftest.$ac_objext
   8844 if { (ac_try="$ac_compile"
   8845 case "(($ac_try" in
   8846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8847   *) ac_try_echo=$ac_try;;
   8848 esac
   8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8850 $as_echo "$ac_try_echo") >&5
   8851   (eval "$ac_compile") 2>conftest.er1
   8852   ac_status=$?
   8853   grep -v '^ *+' conftest.er1 >conftest.err
   8854   rm -f conftest.er1
   8855   cat conftest.err >&5
   8856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8857   (exit $ac_status); } && {
   8858 	 test -z "$ac_c_werror_flag" ||
   8859 	 test ! -s conftest.err
   8860        } && test -s conftest.$ac_objext; then
   8861   gl_cv_sys_struct_timeval=yes
   8862 else
   8863   $as_echo "$as_me: failed program was:" >&5
   8864 sed 's/^/| /' conftest.$ac_ext >&5
   8865 
   8866 	gl_cv_sys_struct_timeval=no
   8867 fi
   8868 
   8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8870 fi
   8871 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
   8872 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
   8873   if test $gl_cv_sys_struct_timeval = yes; then
   8874     HAVE_STRUCT_TIMEVAL=1
   8875   else
   8876     HAVE_STRUCT_TIMEVAL=0
   8877   fi
   8878 
   8879 
   8880     REPLACE_GETTIMEOFDAY=0
   8881 
   8882   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
   8883     SYS_TIME_H=sys/time.h
   8884   else
   8885     SYS_TIME_H=
   8886   fi
   8887 
   8888 
   8889 
   8890 
   8891 
   8892 
   8893 
   8894 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
   8895 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
   8896 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
   8897   $as_echo_n "(cached) " >&6
   8898 else
   8899   cat >conftest.$ac_ext <<_ACEOF
   8900 /* confdefs.h.  */
   8901 _ACEOF
   8902 cat confdefs.h >>conftest.$ac_ext
   8903 cat >>conftest.$ac_ext <<_ACEOF
   8904 /* end confdefs.h.  */
   8905 $ac_includes_default
   8906 int
   8907 main ()
   8908 {
   8909 #ifndef getc_unlocked
   8910   (void) getc_unlocked;
   8911 #endif
   8912 
   8913   ;
   8914   return 0;
   8915 }
   8916 _ACEOF
   8917 rm -f conftest.$ac_objext
   8918 if { (ac_try="$ac_compile"
   8919 case "(($ac_try" in
   8920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8921   *) ac_try_echo=$ac_try;;
   8922 esac
   8923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   8924 $as_echo "$ac_try_echo") >&5
   8925   (eval "$ac_compile") 2>conftest.er1
   8926   ac_status=$?
   8927   grep -v '^ *+' conftest.er1 >conftest.err
   8928   rm -f conftest.er1
   8929   cat conftest.err >&5
   8930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8931   (exit $ac_status); } && {
   8932 	 test -z "$ac_c_werror_flag" ||
   8933 	 test ! -s conftest.err
   8934        } && test -s conftest.$ac_objext; then
   8935   ac_cv_have_decl_getc_unlocked=yes
   8936 else
   8937   $as_echo "$as_me: failed program was:" >&5
   8938 sed 's/^/| /' conftest.$ac_ext >&5
   8939 
   8940 	ac_cv_have_decl_getc_unlocked=no
   8941 fi
   8942 
   8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8944 fi
   8945 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
   8946 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
   8947 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
   8948 
   8949 cat >>confdefs.h <<_ACEOF
   8950 #define HAVE_DECL_GETC_UNLOCKED 1
   8951 _ACEOF
   8952 
   8953 
   8954 else
   8955   cat >>confdefs.h <<_ACEOF
   8956 #define HAVE_DECL_GETC_UNLOCKED 0
   8957 _ACEOF
   8958 
   8959 
   8960 fi
   8961 
   8962 
   8963 
   8964     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
   8965 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
   8966 if test "${ac_cv_gnu_library_2_1+set}" = set; then
   8967   $as_echo_n "(cached) " >&6
   8968 else
   8969   cat >conftest.$ac_ext <<_ACEOF
   8970 /* confdefs.h.  */
   8971 _ACEOF
   8972 cat confdefs.h >>conftest.$ac_ext
   8973 cat >>conftest.$ac_ext <<_ACEOF
   8974 /* end confdefs.h.  */
   8975 
   8976 #include <features.h>
   8977 #ifdef __GNU_LIBRARY__
   8978  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
   8979   Lucky GNU user
   8980  #endif
   8981 #endif
   8982 
   8983 _ACEOF
   8984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8985   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
   8986   ac_cv_gnu_library_2_1=yes
   8987 else
   8988   ac_cv_gnu_library_2_1=no
   8989 fi
   8990 rm -f conftest*
   8991 
   8992 
   8993 
   8994 fi
   8995 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
   8996 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
   8997 
   8998     GLIBC21="$ac_cv_gnu_library_2_1"
   8999 
   9000 
   9001 
   9002   GNULIB_LCHMOD=0;
   9003   GNULIB_LSTAT=0;
   9004     HAVE_LCHMOD=1;
   9005   REPLACE_LSTAT=0;
   9006   REPLACE_MKDIR=0;
   9007 
   9008 
   9009 
   9010 
   9011   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
   9012 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
   9013 if test "${gl_cv_func_malloc_posix+set}" = set; then
   9014   $as_echo_n "(cached) " >&6
   9015 else
   9016 
   9017                         cat >conftest.$ac_ext <<_ACEOF
   9018 /* confdefs.h.  */
   9019 _ACEOF
   9020 cat confdefs.h >>conftest.$ac_ext
   9021 cat >>conftest.$ac_ext <<_ACEOF
   9022 /* end confdefs.h.  */
   9023 
   9024 int
   9025 main ()
   9026 {
   9027 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
   9028          choke me
   9029          #endif
   9030 
   9031   ;
   9032   return 0;
   9033 }
   9034 _ACEOF
   9035 rm -f conftest.$ac_objext
   9036 if { (ac_try="$ac_compile"
   9037 case "(($ac_try" in
   9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9039   *) ac_try_echo=$ac_try;;
   9040 esac
   9041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9042 $as_echo "$ac_try_echo") >&5
   9043   (eval "$ac_compile") 2>conftest.er1
   9044   ac_status=$?
   9045   grep -v '^ *+' conftest.er1 >conftest.err
   9046   rm -f conftest.er1
   9047   cat conftest.err >&5
   9048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9049   (exit $ac_status); } && {
   9050 	 test -z "$ac_c_werror_flag" ||
   9051 	 test ! -s conftest.err
   9052        } && test -s conftest.$ac_objext; then
   9053   gl_cv_func_malloc_posix=yes
   9054 else
   9055   $as_echo "$as_me: failed program was:" >&5
   9056 sed 's/^/| /' conftest.$ac_ext >&5
   9057 
   9058 	gl_cv_func_malloc_posix=no
   9059 fi
   9060 
   9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9062 
   9063 fi
   9064 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
   9065 $as_echo "$gl_cv_func_malloc_posix" >&6; }
   9066 
   9067 
   9068   GNULIB_MALLOC_POSIX=0;
   9069   GNULIB_REALLOC_POSIX=0;
   9070   GNULIB_CALLOC_POSIX=0;
   9071   GNULIB_ATOLL=0;
   9072   GNULIB_GETLOADAVG=0;
   9073   GNULIB_GETSUBOPT=0;
   9074   GNULIB_MKDTEMP=0;
   9075   GNULIB_MKSTEMP=0;
   9076   GNULIB_PUTENV=0;
   9077   GNULIB_RANDOM_R=0;
   9078   GNULIB_RPMATCH=0;
   9079   GNULIB_SETENV=0;
   9080   GNULIB_STRTOD=0;
   9081   GNULIB_STRTOLL=0;
   9082   GNULIB_STRTOULL=0;
   9083   GNULIB_UNSETENV=0;
   9084     HAVE_ATOLL=1;
   9085   HAVE_CALLOC_POSIX=1;
   9086   HAVE_GETSUBOPT=1;
   9087   HAVE_MALLOC_POSIX=1;
   9088   HAVE_MKDTEMP=1;
   9089   HAVE_REALLOC_POSIX=1;
   9090   HAVE_RANDOM_R=1;
   9091   HAVE_RPMATCH=1;
   9092   HAVE_SETENV=1;
   9093   HAVE_STRTOD=1;
   9094   HAVE_STRTOLL=1;
   9095   HAVE_STRTOULL=1;
   9096   HAVE_STRUCT_RANDOM_DATA=1;
   9097   HAVE_SYS_LOADAVG_H=0;
   9098   HAVE_UNSETENV=1;
   9099   HAVE_DECL_GETLOADAVG=1;
   9100   REPLACE_MKSTEMP=0;
   9101   REPLACE_PUTENV=0;
   9102   REPLACE_STRTOD=0;
   9103   VOID_UNSETENV=0;
   9104 
   9105 
   9106 
   9107    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
   9108 $as_echo_n "checking for mbstate_t... " >&6; }
   9109 if test "${ac_cv_type_mbstate_t+set}" = set; then
   9110   $as_echo_n "(cached) " >&6
   9111 else
   9112   cat >conftest.$ac_ext <<_ACEOF
   9113 /* confdefs.h.  */
   9114 _ACEOF
   9115 cat confdefs.h >>conftest.$ac_ext
   9116 cat >>conftest.$ac_ext <<_ACEOF
   9117 /* end confdefs.h.  */
   9118 $ac_includes_default
   9119 #	    include <wchar.h>
   9120 int
   9121 main ()
   9122 {
   9123 mbstate_t x; return sizeof x;
   9124   ;
   9125   return 0;
   9126 }
   9127 _ACEOF
   9128 rm -f conftest.$ac_objext
   9129 if { (ac_try="$ac_compile"
   9130 case "(($ac_try" in
   9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9132   *) ac_try_echo=$ac_try;;
   9133 esac
   9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9135 $as_echo "$ac_try_echo") >&5
   9136   (eval "$ac_compile") 2>conftest.er1
   9137   ac_status=$?
   9138   grep -v '^ *+' conftest.er1 >conftest.err
   9139   rm -f conftest.er1
   9140   cat conftest.err >&5
   9141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9142   (exit $ac_status); } && {
   9143 	 test -z "$ac_c_werror_flag" ||
   9144 	 test ! -s conftest.err
   9145        } && test -s conftest.$ac_objext; then
   9146   ac_cv_type_mbstate_t=yes
   9147 else
   9148   $as_echo "$as_me: failed program was:" >&5
   9149 sed 's/^/| /' conftest.$ac_ext >&5
   9150 
   9151 	ac_cv_type_mbstate_t=no
   9152 fi
   9153 
   9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9155 fi
   9156 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
   9157 $as_echo "$ac_cv_type_mbstate_t" >&6; }
   9158    if test $ac_cv_type_mbstate_t = yes; then
   9159 
   9160 cat >>confdefs.h <<\_ACEOF
   9161 #define HAVE_MBSTATE_T 1
   9162 _ACEOF
   9163 
   9164    else
   9165 
   9166 cat >>confdefs.h <<\_ACEOF
   9167 #define mbstate_t int
   9168 _ACEOF
   9169 
   9170    fi
   9171 
   9172 
   9173 
   9174 
   9175 
   9176 
   9177 
   9178 
   9179   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
   9180 $as_echo_n "checking for a traditional japanese locale... " >&6; }
   9181 if test "${gt_cv_locale_ja+set}" = set; then
   9182   $as_echo_n "(cached) " >&6
   9183 else
   9184 
   9185     cat >conftest.$ac_ext <<_ACEOF
   9186 /* confdefs.h.  */
   9187 _ACEOF
   9188 cat confdefs.h >>conftest.$ac_ext
   9189 cat >>conftest.$ac_ext <<_ACEOF
   9190 /* end confdefs.h.  */
   9191 
   9192 #include <locale.h>
   9193 #include <time.h>
   9194 #if HAVE_LANGINFO_CODESET
   9195 # include <langinfo.h>
   9196 #endif
   9197 #include <stdlib.h>
   9198 #include <string.h>
   9199 struct tm t;
   9200 char buf[16];
   9201 int main ()
   9202 {
   9203   const char *p;
   9204   /* Check whether the given locale name is recognized by the system.  */
   9205   if (setlocale (LC_ALL, "") == NULL) return 1;
   9206   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   9207      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   9208      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   9209      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   9210      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   9211      some unit tests fail.  */
   9212 #if HAVE_LANGINFO_CODESET
   9213   {
   9214     const char *cs = nl_langinfo (CODESET);
   9215     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   9216       return 1;
   9217   }
   9218 #endif
   9219 #ifdef __CYGWIN__
   9220   /* On Cygwin, avoid locale names without encoding suffix, because the
   9221      locale_charset() function relies on the encoding suffix.  Note that
   9222      LC_ALL is set on the command line.  */
   9223   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   9224 #endif
   9225   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
   9226      on Cygwin 1.5.x.  */
   9227   if (MB_CUR_MAX == 1)
   9228     return 1;
   9229   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   9230      This excludes the UTF-8 encoding.  */
   9231   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   9232   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   9233   for (p = buf; *p != '\0'; p++)
   9234     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   9235       return 1;
   9236   return 0;
   9237 }
   9238 
   9239 _ACEOF
   9240     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9241   (eval $ac_link) 2>&5
   9242   ac_status=$?
   9243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9244   (exit $ac_status); } && test -s conftest$ac_exeext; then
   9245       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   9246       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
   9247       # configure script would override the LC_ALL setting. Likewise for
   9248       # LC_CTYPE, which is also set at the beginning of the configure script.
   9249       # Test for the AIX locale name.
   9250       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9251         gt_cv_locale_ja=ja_JP
   9252       else
   9253         # Test for the locale name with explicit encoding suffix.
   9254         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9255           gt_cv_locale_ja=ja_JP.EUC-JP
   9256         else
   9257           # Test for the HP-UX, OSF/1, NetBSD locale name.
   9258           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9259             gt_cv_locale_ja=ja_JP.eucJP
   9260           else
   9261             # Test for the IRIX, FreeBSD locale name.
   9262             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9263               gt_cv_locale_ja=ja_JP.EUC
   9264             else
   9265               # Test for the Solaris 7 locale name.
   9266               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9267                 gt_cv_locale_ja=ja
   9268               else
   9269                 # Special test for NetBSD 1.6.
   9270                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
   9271                   gt_cv_locale_ja=ja_JP.eucJP
   9272                 else
   9273                   # None found.
   9274                   gt_cv_locale_ja=none
   9275                 fi
   9276               fi
   9277             fi
   9278           fi
   9279         fi
   9280       fi
   9281     fi
   9282     rm -fr conftest*
   9283 
   9284 fi
   9285 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
   9286 $as_echo "$gt_cv_locale_ja" >&6; }
   9287   LOCALE_JA=$gt_cv_locale_ja
   9288 
   9289 
   9290 
   9291 
   9292 
   9293   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
   9294 $as_echo_n "checking for a transitional chinese locale... " >&6; }
   9295 if test "${gt_cv_locale_zh_CN+set}" = set; then
   9296   $as_echo_n "(cached) " >&6
   9297 else
   9298 
   9299     cat >conftest.$ac_ext <<_ACEOF
   9300 /* confdefs.h.  */
   9301 _ACEOF
   9302 cat confdefs.h >>conftest.$ac_ext
   9303 cat >>conftest.$ac_ext <<_ACEOF
   9304 /* end confdefs.h.  */
   9305 
   9306 #include <locale.h>
   9307 #include <stdlib.h>
   9308 #include <time.h>
   9309 #if HAVE_LANGINFO_CODESET
   9310 # include <langinfo.h>
   9311 #endif
   9312 #include <stdlib.h>
   9313 #include <string.h>
   9314 struct tm t;
   9315 char buf[16];
   9316 int main ()
   9317 {
   9318   const char *p;
   9319   /* Check whether the given locale name is recognized by the system.  */
   9320   if (setlocale (LC_ALL, "") == NULL) return 1;
   9321   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   9322      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   9323      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   9324      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   9325      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   9326      some unit tests fail.  */
   9327 #if HAVE_LANGINFO_CODESET
   9328   {
   9329     const char *cs = nl_langinfo (CODESET);
   9330     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   9331       return 1;
   9332   }
   9333 #endif
   9334 #ifdef __CYGWIN__
   9335   /* On Cygwin, avoid locale names without encoding suffix, because the
   9336      locale_charset() function relies on the encoding suffix.  Note that
   9337      LC_ALL is set on the command line.  */
   9338   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   9339 #endif
   9340   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   9341      This excludes the UTF-8 encoding.  */
   9342   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   9343   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   9344   for (p = buf; *p != '\0'; p++)
   9345     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   9346       return 1;
   9347   /* Check whether a typical GB18030 multibyte sequence is recognized as a
   9348      single wide character.  This excludes the GB2312 and GBK encodings.  */
   9349   if (mblen ("\203\062\332\066", 5) != 4)
   9350     return 1;
   9351   return 0;
   9352 }
   9353 
   9354 _ACEOF
   9355     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9356   (eval $ac_link) 2>&5
   9357   ac_status=$?
   9358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9359   (exit $ac_status); } && test -s conftest$ac_exeext; then
   9360       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   9361       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
   9362       # configure script would override the LC_ALL setting. Likewise for
   9363       # LC_CTYPE, which is also set at the beginning of the configure script.
   9364       # Test for the locale name without encoding suffix.
   9365       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9366         gt_cv_locale_zh_CN=zh_CN
   9367       else
   9368         # Test for the locale name with explicit encoding suffix.
   9369         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9370           gt_cv_locale_zh_CN=zh_CN.GB18030
   9371         else
   9372           # None found.
   9373           gt_cv_locale_zh_CN=none
   9374         fi
   9375       fi
   9376     else
   9377       # If there was a link error, due to mblen(), the system is so old that
   9378       # it certainly doesn't have a chinese locale.
   9379       gt_cv_locale_zh_CN=none
   9380     fi
   9381     rm -fr conftest*
   9382 
   9383 fi
   9384 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
   9385 $as_echo "$gt_cv_locale_zh_CN" >&6; }
   9386   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
   9387 
   9388 
   9389 
   9390 
   9391   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
   9392 $as_echo_n "checking for a french Unicode locale... " >&6; }
   9393 if test "${gt_cv_locale_fr_utf8+set}" = set; then
   9394   $as_echo_n "(cached) " >&6
   9395 else
   9396 
   9397     cat >conftest.$ac_ext <<_ACEOF
   9398 /* confdefs.h.  */
   9399 _ACEOF
   9400 cat confdefs.h >>conftest.$ac_ext
   9401 cat >>conftest.$ac_ext <<_ACEOF
   9402 /* end confdefs.h.  */
   9403 
   9404 #include <locale.h>
   9405 #include <time.h>
   9406 #if HAVE_LANGINFO_CODESET
   9407 # include <langinfo.h>
   9408 #endif
   9409 #include <stdlib.h>
   9410 #include <string.h>
   9411 struct tm t;
   9412 char buf[16];
   9413 int main () {
   9414   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   9415      imitates locale dependent behaviour by looking at the environment
   9416      variables, and all locales use the UTF-8 encoding.  */
   9417 #if !(defined __BEOS__ || defined __HAIKU__)
   9418   /* Check whether the given locale name is recognized by the system.  */
   9419   if (setlocale (LC_ALL, "") == NULL) return 1;
   9420   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   9421      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   9422      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   9423      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   9424      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   9425      some unit tests fail.  */
   9426 # if HAVE_LANGINFO_CODESET
   9427   {
   9428     const char *cs = nl_langinfo (CODESET);
   9429     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   9430       return 1;
   9431   }
   9432 # endif
   9433 # ifdef __CYGWIN__
   9434   /* On Cygwin, avoid locale names without encoding suffix, because the
   9435      locale_charset() function relies on the encoding suffix.  Note that
   9436      LC_ALL is set on the command line.  */
   9437   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   9438 # endif
   9439   /* Check whether in the abbreviation of the second month, the second
   9440      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
   9441      two bytes long, with UTF-8 encoding.  */
   9442   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   9443   if (strftime (buf, sizeof (buf), "%b", &t) < 4
   9444       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
   9445     return 1;
   9446 #endif
   9447   /* Check whether the decimal separator is a comma.
   9448      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
   9449      are nl_langinfo(RADIXCHAR) are both ".".  */
   9450   if (localeconv () ->decimal_point[0] != ',') return 1;
   9451   return 0;
   9452 }
   9453 
   9454 _ACEOF
   9455     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9456   (eval $ac_link) 2>&5
   9457   ac_status=$?
   9458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9459   (exit $ac_status); } && test -s conftest$ac_exeext; then
   9460       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   9461       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
   9462       # configure script would override the LC_ALL setting. Likewise for
   9463       # LC_CTYPE, which is also set at the beginning of the configure script.
   9464       # Test for the usual locale name.
   9465       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9466         gt_cv_locale_fr_utf8=fr_FR
   9467       else
   9468         # Test for the locale name with explicit encoding suffix.
   9469         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9470           gt_cv_locale_fr_utf8=fr_FR.UTF-8
   9471         else
   9472           # Test for the Solaris 7 locale name.
   9473           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   9474             gt_cv_locale_fr_utf8=fr.UTF-8
   9475           else
   9476             # None found.
   9477             gt_cv_locale_fr_utf8=none
   9478           fi
   9479         fi
   9480       fi
   9481     fi
   9482     rm -fr conftest*
   9483 
   9484 fi
   9485 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
   9486 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
   9487   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
   9488 
   9489 
   9490 
   9491 
   9492 
   9493 
   9494 
   9495 
   9496 
   9497 
   9498 
   9499 
   9500 
   9501 
   9502 
   9503 
   9504 
   9505 
   9506 
   9507 
   9508 
   9509 
   9510   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   9511 
   9512 
   9513 
   9514      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
   9515 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   9516 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
   9517   $as_echo_n "(cached) " >&6
   9518 else
   9519 
   9520                   case "$host_os" in
   9521               # Guess no on AIX and OSF/1.
   9522         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   9523               # Guess yes otherwise.
   9524         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   9525       esac
   9526       if test $LOCALE_JA != none; then
   9527         if test "$cross_compiling" = yes; then
   9528   :
   9529 else
   9530   cat >conftest.$ac_ext <<_ACEOF
   9531 /* confdefs.h.  */
   9532 _ACEOF
   9533 cat confdefs.h >>conftest.$ac_ext
   9534 cat >>conftest.$ac_ext <<_ACEOF
   9535 /* end confdefs.h.  */
   9536 
   9537 #include <locale.h>
   9538 #include <string.h>
   9539 #include <wchar.h>
   9540 int main ()
   9541 {
   9542   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   9543     {
   9544       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   9545       mbstate_t state;
   9546       wchar_t wc;
   9547 
   9548       memset (&state, '\0', sizeof (mbstate_t));
   9549       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   9550         if (mbsinit (&state))
   9551           return 1;
   9552     }
   9553   return 0;
   9554 }
   9555 _ACEOF
   9556 rm -f conftest$ac_exeext
   9557 if { (ac_try="$ac_link"
   9558 case "(($ac_try" in
   9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9560   *) ac_try_echo=$ac_try;;
   9561 esac
   9562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9563 $as_echo "$ac_try_echo") >&5
   9564   (eval "$ac_link") 2>&5
   9565   ac_status=$?
   9566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9568   { (case "(($ac_try" in
   9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9570   *) ac_try_echo=$ac_try;;
   9571 esac
   9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9573 $as_echo "$ac_try_echo") >&5
   9574   (eval "$ac_try") 2>&5
   9575   ac_status=$?
   9576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9577   (exit $ac_status); }; }; then
   9578   gl_cv_func_mbrtowc_incomplete_state=yes
   9579 else
   9580   $as_echo "$as_me: program exited with status $ac_status" >&5
   9581 $as_echo "$as_me: failed program was:" >&5
   9582 sed 's/^/| /' conftest.$ac_ext >&5
   9583 
   9584 ( exit $ac_status )
   9585 gl_cv_func_mbrtowc_incomplete_state=no
   9586 fi
   9587 rm -rf conftest.dSYM
   9588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9589 fi
   9590 
   9591 
   9592       fi
   9593 
   9594 fi
   9595 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   9596 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   9597 
   9598 
   9599 
   9600 
   9601      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
   9602 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   9603 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
   9604   $as_echo_n "(cached) " >&6
   9605 else
   9606 
   9607                   case "$host_os" in
   9608                     # Guess no on Solaris 8.
   9609         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   9610                     # Guess yes otherwise.
   9611         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   9612       esac
   9613       if test $LOCALE_ZH_CN != none; then
   9614         if test "$cross_compiling" = yes; then
   9615   :
   9616 else
   9617   cat >conftest.$ac_ext <<_ACEOF
   9618 /* confdefs.h.  */
   9619 _ACEOF
   9620 cat confdefs.h >>conftest.$ac_ext
   9621 cat >>conftest.$ac_ext <<_ACEOF
   9622 /* end confdefs.h.  */
   9623 
   9624 #include <locale.h>
   9625 #include <stdlib.h>
   9626 #include <string.h>
   9627 #include <wchar.h>
   9628 int main ()
   9629 {
   9630   /* This fails on Solaris 8:
   9631      mbrtowc returns 2, and sets wc to 0x00F0.
   9632      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   9633   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   9634     {
   9635       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   9636       mbstate_t state;
   9637       wchar_t wc;
   9638 
   9639       memset (&state, '\0', sizeof (mbstate_t));
   9640       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   9641           && mbtowc (&wc, input + 3, 6) == 4)
   9642         return 1;
   9643     }
   9644   return 0;
   9645 }
   9646 _ACEOF
   9647 rm -f conftest$ac_exeext
   9648 if { (ac_try="$ac_link"
   9649 case "(($ac_try" in
   9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9651   *) ac_try_echo=$ac_try;;
   9652 esac
   9653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9654 $as_echo "$ac_try_echo") >&5
   9655   (eval "$ac_link") 2>&5
   9656   ac_status=$?
   9657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9659   { (case "(($ac_try" in
   9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9661   *) ac_try_echo=$ac_try;;
   9662 esac
   9663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9664 $as_echo "$ac_try_echo") >&5
   9665   (eval "$ac_try") 2>&5
   9666   ac_status=$?
   9667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9668   (exit $ac_status); }; }; then
   9669   gl_cv_func_mbrtowc_sanitycheck=yes
   9670 else
   9671   $as_echo "$as_me: program exited with status $ac_status" >&5
   9672 $as_echo "$as_me: failed program was:" >&5
   9673 sed 's/^/| /' conftest.$ac_ext >&5
   9674 
   9675 ( exit $ac_status )
   9676 gl_cv_func_mbrtowc_sanitycheck=no
   9677 fi
   9678 rm -rf conftest.dSYM
   9679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9680 fi
   9681 
   9682 
   9683       fi
   9684 
   9685 fi
   9686 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   9687 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   9688 
   9689     REPLACE_MBSTATE_T=0
   9690     case "$gl_cv_func_mbrtowc_incomplete_state" in
   9691       *yes) ;;
   9692       *) REPLACE_MBSTATE_T=1 ;;
   9693     esac
   9694     case "$gl_cv_func_mbrtowc_sanitycheck" in
   9695       *yes) ;;
   9696       *) REPLACE_MBSTATE_T=1 ;;
   9697     esac
   9698   else
   9699     REPLACE_MBSTATE_T=1
   9700   fi
   9701   if test $REPLACE_MBSTATE_T = 1; then
   9702 
   9703 
   9704   WCHAR_H=wchar.h
   9705 
   9706   fi
   9707 
   9708   if test $REPLACE_MBSTATE_T = 1; then
   9709     REPLACE_MBRTOWC=1
   9710   fi
   9711 
   9712 
   9713 
   9714 
   9715 
   9716 
   9717   if test $ac_cv_func_mbrtowc = no; then
   9718     HAVE_MBRTOWC=0
   9719   fi
   9720   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
   9721 
   9722 
   9723 
   9724      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
   9725 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
   9726 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
   9727   $as_echo_n "(cached) " >&6
   9728 else
   9729 
   9730                   case "$host_os" in
   9731               # Guess no on OSF/1.
   9732         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
   9733               # Guess yes otherwise.
   9734         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
   9735       esac
   9736       if test $LOCALE_FR_UTF8 != none; then
   9737         if test "$cross_compiling" = yes; then
   9738   :
   9739 else
   9740   cat >conftest.$ac_ext <<_ACEOF
   9741 /* confdefs.h.  */
   9742 _ACEOF
   9743 cat confdefs.h >>conftest.$ac_ext
   9744 cat >>conftest.$ac_ext <<_ACEOF
   9745 /* end confdefs.h.  */
   9746 
   9747 #include <locale.h>
   9748 #include <string.h>
   9749 #include <wchar.h>
   9750 int main ()
   9751 {
   9752   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   9753     {
   9754       mbstate_t state;
   9755       wchar_t wc;
   9756       int ret;
   9757 
   9758       memset (&state, '\0', sizeof (mbstate_t));
   9759       wc = (wchar_t) 0xBADFACE;
   9760       mbrtowc (&wc, NULL, 5, &state);
   9761       /* Check that wc was not modified.  */
   9762       if (wc != (wchar_t) 0xBADFACE)
   9763         return 1;
   9764     }
   9765   return 0;
   9766 }
   9767 _ACEOF
   9768 rm -f conftest$ac_exeext
   9769 if { (ac_try="$ac_link"
   9770 case "(($ac_try" in
   9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9772   *) ac_try_echo=$ac_try;;
   9773 esac
   9774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9775 $as_echo "$ac_try_echo") >&5
   9776   (eval "$ac_link") 2>&5
   9777   ac_status=$?
   9778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9780   { (case "(($ac_try" in
   9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9782   *) ac_try_echo=$ac_try;;
   9783 esac
   9784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9785 $as_echo "$ac_try_echo") >&5
   9786   (eval "$ac_try") 2>&5
   9787   ac_status=$?
   9788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9789   (exit $ac_status); }; }; then
   9790   gl_cv_func_mbrtowc_null_arg=yes
   9791 else
   9792   $as_echo "$as_me: program exited with status $ac_status" >&5
   9793 $as_echo "$as_me: failed program was:" >&5
   9794 sed 's/^/| /' conftest.$ac_ext >&5
   9795 
   9796 ( exit $ac_status )
   9797 gl_cv_func_mbrtowc_null_arg=no
   9798 fi
   9799 rm -rf conftest.dSYM
   9800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9801 fi
   9802 
   9803 
   9804       fi
   9805 
   9806 fi
   9807 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
   9808 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
   9809 
   9810 
   9811 
   9812 
   9813 
   9814      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
   9815 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
   9816 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
   9817   $as_echo_n "(cached) " >&6
   9818 else
   9819 
   9820                   case "$host_os" in
   9821                           # Guess no on HP-UX and Solaris.
   9822         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
   9823                           # Guess yes otherwise.
   9824         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
   9825       esac
   9826       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
   9827         if test "$cross_compiling" = yes; then
   9828   :
   9829 else
   9830   cat >conftest.$ac_ext <<_ACEOF
   9831 /* confdefs.h.  */
   9832 _ACEOF
   9833 cat confdefs.h >>conftest.$ac_ext
   9834 cat >>conftest.$ac_ext <<_ACEOF
   9835 /* end confdefs.h.  */
   9836 
   9837 #include <locale.h>
   9838 #include <string.h>
   9839 #include <wchar.h>
   9840 int main ()
   9841 {
   9842   /* This fails on Solaris.  */
   9843   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   9844     {
   9845       char input[] = "B\303\274\303\237er"; /* "Ber" */
   9846       mbstate_t state;
   9847       wchar_t wc;
   9848 
   9849       memset (&state, '\0', sizeof (mbstate_t));
   9850       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   9851         {
   9852           input[1] = '\0';
   9853           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
   9854             return 1;
   9855         }
   9856     }
   9857   /* This fails on HP-UX 11.11.  */
   9858   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   9859     {
   9860       char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   9861       mbstate_t state;
   9862       wchar_t wc;
   9863 
   9864       memset (&state, '\0', sizeof (mbstate_t));
   9865       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   9866         {
   9867           input[1] = '\0';
   9868           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
   9869             return 1;
   9870         }
   9871     }
   9872   return 0;
   9873 }
   9874 _ACEOF
   9875 rm -f conftest$ac_exeext
   9876 if { (ac_try="$ac_link"
   9877 case "(($ac_try" in
   9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9879   *) ac_try_echo=$ac_try;;
   9880 esac
   9881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9882 $as_echo "$ac_try_echo") >&5
   9883   (eval "$ac_link") 2>&5
   9884   ac_status=$?
   9885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9887   { (case "(($ac_try" in
   9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9889   *) ac_try_echo=$ac_try;;
   9890 esac
   9891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9892 $as_echo "$ac_try_echo") >&5
   9893   (eval "$ac_try") 2>&5
   9894   ac_status=$?
   9895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9896   (exit $ac_status); }; }; then
   9897   gl_cv_func_mbrtowc_retval=yes
   9898 else
   9899   $as_echo "$as_me: program exited with status $ac_status" >&5
   9900 $as_echo "$as_me: failed program was:" >&5
   9901 sed 's/^/| /' conftest.$ac_ext >&5
   9902 
   9903 ( exit $ac_status )
   9904 gl_cv_func_mbrtowc_retval=no
   9905 fi
   9906 rm -rf conftest.dSYM
   9907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9908 fi
   9909 
   9910 
   9911       fi
   9912 
   9913 fi
   9914 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
   9915 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
   9916 
   9917 
   9918 
   9919 
   9920      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
   9921 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
   9922 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
   9923   $as_echo_n "(cached) " >&6
   9924 else
   9925 
   9926                   case "$host_os" in
   9927                        # Guess no on Solaris 8 and 9.
   9928         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
   9929                        # Guess yes otherwise.
   9930         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
   9931       esac
   9932       if test $LOCALE_ZH_CN != none; then
   9933         if test "$cross_compiling" = yes; then
   9934   :
   9935 else
   9936   cat >conftest.$ac_ext <<_ACEOF
   9937 /* confdefs.h.  */
   9938 _ACEOF
   9939 cat confdefs.h >>conftest.$ac_ext
   9940 cat >>conftest.$ac_ext <<_ACEOF
   9941 /* end confdefs.h.  */
   9942 
   9943 #include <locale.h>
   9944 #include <string.h>
   9945 #include <wchar.h>
   9946 int main ()
   9947 {
   9948   /* This fails on Solaris 8 and 9.  */
   9949   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   9950     {
   9951       mbstate_t state;
   9952       wchar_t wc;
   9953 
   9954       memset (&state, '\0', sizeof (mbstate_t));
   9955       if (mbrtowc (&wc, "", 1, &state) != 0)
   9956         return 1;
   9957     }
   9958   return 0;
   9959 }
   9960 _ACEOF
   9961 rm -f conftest$ac_exeext
   9962 if { (ac_try="$ac_link"
   9963 case "(($ac_try" in
   9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9965   *) ac_try_echo=$ac_try;;
   9966 esac
   9967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9968 $as_echo "$ac_try_echo") >&5
   9969   (eval "$ac_link") 2>&5
   9970   ac_status=$?
   9971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9973   { (case "(($ac_try" in
   9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9975   *) ac_try_echo=$ac_try;;
   9976 esac
   9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   9978 $as_echo "$ac_try_echo") >&5
   9979   (eval "$ac_try") 2>&5
   9980   ac_status=$?
   9981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9982   (exit $ac_status); }; }; then
   9983   gl_cv_func_mbrtowc_nul_retval=yes
   9984 else
   9985   $as_echo "$as_me: program exited with status $ac_status" >&5
   9986 $as_echo "$as_me: failed program was:" >&5
   9987 sed 's/^/| /' conftest.$ac_ext >&5
   9988 
   9989 ( exit $ac_status )
   9990 gl_cv_func_mbrtowc_nul_retval=no
   9991 fi
   9992 rm -rf conftest.dSYM
   9993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9994 fi
   9995 
   9996 
   9997       fi
   9998 
   9999 fi
   10000 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
   10001 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
   10002 
   10003     case "$gl_cv_func_mbrtowc_null_arg" in
   10004       *yes) ;;
   10005       *)
   10006 cat >>confdefs.h <<\_ACEOF
   10007 #define MBRTOWC_NULL_ARG_BUG 1
   10008 _ACEOF
   10009 
   10010          REPLACE_MBRTOWC=1
   10011          ;;
   10012     esac
   10013     case "$gl_cv_func_mbrtowc_retval" in
   10014       *yes) ;;
   10015       *)
   10016 cat >>confdefs.h <<\_ACEOF
   10017 #define MBRTOWC_RETVAL_BUG 1
   10018 _ACEOF
   10019 
   10020          REPLACE_MBRTOWC=1
   10021          ;;
   10022     esac
   10023     case "$gl_cv_func_mbrtowc_nul_retval" in
   10024       *yes) ;;
   10025       *)
   10026 cat >>confdefs.h <<\_ACEOF
   10027 #define MBRTOWC_NUL_RETVAL_BUG 1
   10028 _ACEOF
   10029 
   10030          REPLACE_MBRTOWC=1
   10031          ;;
   10032     esac
   10033   fi
   10034   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
   10035 
   10036 
   10037   WCHAR_H=wchar.h
   10038 
   10039 
   10040 
   10041 
   10042 
   10043 
   10044 
   10045 
   10046 
   10047   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
   10048 
   10049 
   10050   :
   10051 
   10052   fi
   10053 
   10054 
   10055 
   10056 
   10057 
   10058 
   10059 
   10060 
   10061   GNULIB_MEMCHR=0;
   10062   GNULIB_MEMMEM=0;
   10063   GNULIB_MEMPCPY=0;
   10064   GNULIB_MEMRCHR=0;
   10065   GNULIB_RAWMEMCHR=0;
   10066   GNULIB_STPCPY=0;
   10067   GNULIB_STPNCPY=0;
   10068   GNULIB_STRCHRNUL=0;
   10069   GNULIB_STRDUP=0;
   10070   GNULIB_STRNDUP=0;
   10071   GNULIB_STRNLEN=0;
   10072   GNULIB_STRPBRK=0;
   10073   GNULIB_STRSEP=0;
   10074   GNULIB_STRSTR=0;
   10075   GNULIB_STRCASESTR=0;
   10076   GNULIB_STRTOK_R=0;
   10077   GNULIB_MBSLEN=0;
   10078   GNULIB_MBSNLEN=0;
   10079   GNULIB_MBSCHR=0;
   10080   GNULIB_MBSRCHR=0;
   10081   GNULIB_MBSSTR=0;
   10082   GNULIB_MBSCASECMP=0;
   10083   GNULIB_MBSNCASECMP=0;
   10084   GNULIB_MBSPCASECMP=0;
   10085   GNULIB_MBSCASESTR=0;
   10086   GNULIB_MBSCSPN=0;
   10087   GNULIB_MBSPBRK=0;
   10088   GNULIB_MBSSPN=0;
   10089   GNULIB_MBSSEP=0;
   10090   GNULIB_MBSTOK_R=0;
   10091   GNULIB_STRERROR=0;
   10092   GNULIB_STRSIGNAL=0;
   10093   GNULIB_STRVERSCMP=0;
   10094     HAVE_DECL_MEMMEM=1;
   10095   HAVE_MEMPCPY=1;
   10096   HAVE_DECL_MEMRCHR=1;
   10097   HAVE_RAWMEMCHR=1;
   10098   HAVE_STPCPY=1;
   10099   HAVE_STPNCPY=1;
   10100   HAVE_STRCHRNUL=1;
   10101   HAVE_DECL_STRDUP=1;
   10102   HAVE_STRNDUP=1;
   10103   HAVE_DECL_STRNDUP=1;
   10104   HAVE_DECL_STRNLEN=1;
   10105   HAVE_STRPBRK=1;
   10106   HAVE_STRSEP=1;
   10107   HAVE_STRCASESTR=1;
   10108   HAVE_DECL_STRTOK_R=1;
   10109   HAVE_DECL_STRERROR=1;
   10110   HAVE_DECL_STRSIGNAL=1;
   10111   HAVE_STRVERSCMP=1;
   10112   REPLACE_MEMCHR=0;
   10113   REPLACE_MEMMEM=0;
   10114   REPLACE_STRDUP=0;
   10115   REPLACE_STRSTR=0;
   10116   REPLACE_STRCASESTR=0;
   10117   REPLACE_STRERROR=0;
   10118   REPLACE_STRSIGNAL=0;
   10119 
   10120 
   10121 
   10122 
   10123 
   10124 
   10125 
   10126 
   10127   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
   10128   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
   10129   # irrelevant for anonymous mappings.
   10130   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
   10131 $as_echo_n "checking for mmap... " >&6; }
   10132 if test "${ac_cv_func_mmap+set}" = set; then
   10133   $as_echo_n "(cached) " >&6
   10134 else
   10135   cat >conftest.$ac_ext <<_ACEOF
   10136 /* confdefs.h.  */
   10137 _ACEOF
   10138 cat confdefs.h >>conftest.$ac_ext
   10139 cat >>conftest.$ac_ext <<_ACEOF
   10140 /* end confdefs.h.  */
   10141 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
   10142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10143 #define mmap innocuous_mmap
   10144 
   10145 /* System header to define __stub macros and hopefully few prototypes,
   10146     which can conflict with char mmap (); below.
   10147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10148     <limits.h> exists even on freestanding compilers.  */
   10149 
   10150 #ifdef __STDC__
   10151 # include <limits.h>
   10152 #else
   10153 # include <assert.h>
   10154 #endif
   10155 
   10156 #undef mmap
   10157 
   10158 /* Override any GCC internal prototype to avoid an error.
   10159    Use char because int might match the return type of a GCC
   10160    builtin and then its argument prototype would still apply.  */
   10161 #ifdef __cplusplus
   10162 extern "C"
   10163 #endif
   10164 char mmap ();
   10165 /* The GNU C library defines this for functions which it implements
   10166     to always fail with ENOSYS.  Some functions are actually named
   10167     something starting with __ and the normal name is an alias.  */
   10168 #if defined __stub_mmap || defined __stub___mmap
   10169 choke me
   10170 #endif
   10171 
   10172 int
   10173 main ()
   10174 {
   10175 return mmap ();
   10176   ;
   10177   return 0;
   10178 }
   10179 _ACEOF
   10180 rm -f conftest.$ac_objext conftest$ac_exeext
   10181 if { (ac_try="$ac_link"
   10182 case "(($ac_try" in
   10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10184   *) ac_try_echo=$ac_try;;
   10185 esac
   10186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10187 $as_echo "$ac_try_echo") >&5
   10188   (eval "$ac_link") 2>conftest.er1
   10189   ac_status=$?
   10190   grep -v '^ *+' conftest.er1 >conftest.err
   10191   rm -f conftest.er1
   10192   cat conftest.err >&5
   10193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10194   (exit $ac_status); } && {
   10195 	 test -z "$ac_c_werror_flag" ||
   10196 	 test ! -s conftest.err
   10197        } && test -s conftest$ac_exeext && {
   10198 	 test "$cross_compiling" = yes ||
   10199 	 $as_test_x conftest$ac_exeext
   10200        }; then
   10201   ac_cv_func_mmap=yes
   10202 else
   10203   $as_echo "$as_me: failed program was:" >&5
   10204 sed 's/^/| /' conftest.$ac_ext >&5
   10205 
   10206 	ac_cv_func_mmap=no
   10207 fi
   10208 
   10209 rm -rf conftest.dSYM
   10210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10211       conftest$ac_exeext conftest.$ac_ext
   10212 fi
   10213 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
   10214 $as_echo "$ac_cv_func_mmap" >&6; }
   10215 if test "x$ac_cv_func_mmap" = x""yes; then
   10216   gl_have_mmap=yes
   10217 else
   10218   gl_have_mmap=no
   10219 fi
   10220 
   10221 
   10222   # Try to allow MAP_ANONYMOUS.
   10223   gl_have_mmap_anonymous=no
   10224   if test $gl_have_mmap = yes; then
   10225     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
   10226 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
   10227     cat >conftest.$ac_ext <<_ACEOF
   10228 /* confdefs.h.  */
   10229 _ACEOF
   10230 cat confdefs.h >>conftest.$ac_ext
   10231 cat >>conftest.$ac_ext <<_ACEOF
   10232 /* end confdefs.h.  */
   10233 
   10234 #include <sys/mman.h>
   10235 #ifdef MAP_ANONYMOUS
   10236     I cant identify this map.
   10237 #endif
   10238 
   10239 _ACEOF
   10240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10241   $EGREP "I cant identify this map." >/dev/null 2>&1; then
   10242   gl_have_mmap_anonymous=yes
   10243 fi
   10244 rm -f conftest*
   10245 
   10246     if test $gl_have_mmap_anonymous != yes; then
   10247       cat >conftest.$ac_ext <<_ACEOF
   10248 /* confdefs.h.  */
   10249 _ACEOF
   10250 cat confdefs.h >>conftest.$ac_ext
   10251 cat >>conftest.$ac_ext <<_ACEOF
   10252 /* end confdefs.h.  */
   10253 
   10254 #include <sys/mman.h>
   10255 #ifdef MAP_ANON
   10256     I cant identify this map.
   10257 #endif
   10258 
   10259 _ACEOF
   10260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10261   $EGREP "I cant identify this map." >/dev/null 2>&1; then
   10262 
   10263 cat >>confdefs.h <<\_ACEOF
   10264 #define MAP_ANONYMOUS MAP_ANON
   10265 _ACEOF
   10266 
   10267          gl_have_mmap_anonymous=yes
   10268 fi
   10269 rm -f conftest*
   10270 
   10271     fi
   10272     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
   10273 $as_echo "$gl_have_mmap_anonymous" >&6; }
   10274     if test $gl_have_mmap_anonymous = yes; then
   10275 
   10276 cat >>confdefs.h <<\_ACEOF
   10277 #define HAVE_MAP_ANONYMOUS 1
   10278 _ACEOF
   10279 
   10280     fi
   10281   fi
   10282 
   10283 
   10284 
   10285 
   10286 
   10287 
   10288 
   10289 
   10290 
   10291 
   10292 
   10293 
   10294 
   10295 
   10296 
   10297 
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304 
   10305 
   10306 for ac_func in memchr
   10307 do
   10308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   10310 $as_echo_n "checking for $ac_func... " >&6; }
   10311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10312   $as_echo_n "(cached) " >&6
   10313 else
   10314   cat >conftest.$ac_ext <<_ACEOF
   10315 /* confdefs.h.  */
   10316 _ACEOF
   10317 cat confdefs.h >>conftest.$ac_ext
   10318 cat >>conftest.$ac_ext <<_ACEOF
   10319 /* end confdefs.h.  */
   10320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10322 #define $ac_func innocuous_$ac_func
   10323 
   10324 /* System header to define __stub macros and hopefully few prototypes,
   10325     which can conflict with char $ac_func (); below.
   10326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10327     <limits.h> exists even on freestanding compilers.  */
   10328 
   10329 #ifdef __STDC__
   10330 # include <limits.h>
   10331 #else
   10332 # include <assert.h>
   10333 #endif
   10334 
   10335 #undef $ac_func
   10336 
   10337 /* Override any GCC internal prototype to avoid an error.
   10338    Use char because int might match the return type of a GCC
   10339    builtin and then its argument prototype would still apply.  */
   10340 #ifdef __cplusplus
   10341 extern "C"
   10342 #endif
   10343 char $ac_func ();
   10344 /* The GNU C library defines this for functions which it implements
   10345     to always fail with ENOSYS.  Some functions are actually named
   10346     something starting with __ and the normal name is an alias.  */
   10347 #if defined __stub_$ac_func || defined __stub___$ac_func
   10348 choke me
   10349 #endif
   10350 
   10351 int
   10352 main ()
   10353 {
   10354 return $ac_func ();
   10355   ;
   10356   return 0;
   10357 }
   10358 _ACEOF
   10359 rm -f conftest.$ac_objext conftest$ac_exeext
   10360 if { (ac_try="$ac_link"
   10361 case "(($ac_try" in
   10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10363   *) ac_try_echo=$ac_try;;
   10364 esac
   10365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10366 $as_echo "$ac_try_echo") >&5
   10367   (eval "$ac_link") 2>conftest.er1
   10368   ac_status=$?
   10369   grep -v '^ *+' conftest.er1 >conftest.err
   10370   rm -f conftest.er1
   10371   cat conftest.err >&5
   10372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10373   (exit $ac_status); } && {
   10374 	 test -z "$ac_c_werror_flag" ||
   10375 	 test ! -s conftest.err
   10376        } && test -s conftest$ac_exeext && {
   10377 	 test "$cross_compiling" = yes ||
   10378 	 $as_test_x conftest$ac_exeext
   10379        }; then
   10380   eval "$as_ac_var=yes"
   10381 else
   10382   $as_echo "$as_me: failed program was:" >&5
   10383 sed 's/^/| /' conftest.$ac_ext >&5
   10384 
   10385 	eval "$as_ac_var=no"
   10386 fi
   10387 
   10388 rm -rf conftest.dSYM
   10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10390       conftest$ac_exeext conftest.$ac_ext
   10391 fi
   10392 ac_res=`eval 'as_val=${'$as_ac_var'}
   10393 		 $as_echo "$as_val"'`
   10394 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   10395 $as_echo "$ac_res" >&6; }
   10396 as_val=`eval 'as_val=${'$as_ac_var'}
   10397 		 $as_echo "$as_val"'`
   10398    if test "x$as_val" = x""yes; then
   10399   cat >>confdefs.h <<_ACEOF
   10400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10401 _ACEOF
   10402 
   10403 else
   10404 
   10405     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
   10406 
   10407 fi
   10408 done
   10409 
   10410 
   10411   if test $ac_cv_func_memchr = no; then
   10412 
   10413 
   10414 for ac_header in bp-sym.h
   10415 do
   10416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10418   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   10419 $as_echo_n "checking for $ac_header... " >&6; }
   10420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10421   $as_echo_n "(cached) " >&6
   10422 fi
   10423 ac_res=`eval 'as_val=${'$as_ac_Header'}
   10424 		 $as_echo "$as_val"'`
   10425 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   10426 $as_echo "$ac_res" >&6; }
   10427 else
   10428   # Is the header compilable?
   10429 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10430 $as_echo_n "checking $ac_header usability... " >&6; }
   10431 cat >conftest.$ac_ext <<_ACEOF
   10432 /* confdefs.h.  */
   10433 _ACEOF
   10434 cat confdefs.h >>conftest.$ac_ext
   10435 cat >>conftest.$ac_ext <<_ACEOF
   10436 /* end confdefs.h.  */
   10437 $ac_includes_default
   10438 #include <$ac_header>
   10439 _ACEOF
   10440 rm -f conftest.$ac_objext
   10441 if { (ac_try="$ac_compile"
   10442 case "(($ac_try" in
   10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10444   *) ac_try_echo=$ac_try;;
   10445 esac
   10446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10447 $as_echo "$ac_try_echo") >&5
   10448   (eval "$ac_compile") 2>conftest.er1
   10449   ac_status=$?
   10450   grep -v '^ *+' conftest.er1 >conftest.err
   10451   rm -f conftest.er1
   10452   cat conftest.err >&5
   10453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10454   (exit $ac_status); } && {
   10455 	 test -z "$ac_c_werror_flag" ||
   10456 	 test ! -s conftest.err
   10457        } && test -s conftest.$ac_objext; then
   10458   ac_header_compiler=yes
   10459 else
   10460   $as_echo "$as_me: failed program was:" >&5
   10461 sed 's/^/| /' conftest.$ac_ext >&5
   10462 
   10463 	ac_header_compiler=no
   10464 fi
   10465 
   10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10468 $as_echo "$ac_header_compiler" >&6; }
   10469 
   10470 # Is the header present?
   10471 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10472 $as_echo_n "checking $ac_header presence... " >&6; }
   10473 cat >conftest.$ac_ext <<_ACEOF
   10474 /* confdefs.h.  */
   10475 _ACEOF
   10476 cat confdefs.h >>conftest.$ac_ext
   10477 cat >>conftest.$ac_ext <<_ACEOF
   10478 /* end confdefs.h.  */
   10479 #include <$ac_header>
   10480 _ACEOF
   10481 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10482 case "(($ac_try" in
   10483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10484   *) ac_try_echo=$ac_try;;
   10485 esac
   10486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10487 $as_echo "$ac_try_echo") >&5
   10488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10489   ac_status=$?
   10490   grep -v '^ *+' conftest.er1 >conftest.err
   10491   rm -f conftest.er1
   10492   cat conftest.err >&5
   10493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10494   (exit $ac_status); } >/dev/null && {
   10495 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10496 	 test ! -s conftest.err
   10497        }; then
   10498   ac_header_preproc=yes
   10499 else
   10500   $as_echo "$as_me: failed program was:" >&5
   10501 sed 's/^/| /' conftest.$ac_ext >&5
   10502 
   10503   ac_header_preproc=no
   10504 fi
   10505 
   10506 rm -f conftest.err conftest.$ac_ext
   10507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10508 $as_echo "$ac_header_preproc" >&6; }
   10509 
   10510 # So?  What about this header?
   10511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10512   yes:no: )
   10513     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10514 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10515     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10516 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10517     ac_header_preproc=yes
   10518     ;;
   10519   no:yes:* )
   10520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10521 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10522     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10523 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10525 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10527 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10529 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10531 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10532     ( cat <<\_ASBOX
   10533 ## ------------------------------------ ##
   10534 ## Report this to bug-gnu-utils (at] gnu.org ##
   10535 ## ------------------------------------ ##
   10536 _ASBOX
   10537      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10538     ;;
   10539 esac
   10540 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   10541 $as_echo_n "checking for $ac_header... " >&6; }
   10542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10543   $as_echo_n "(cached) " >&6
   10544 else
   10545   eval "$as_ac_Header=\$ac_header_preproc"
   10546 fi
   10547 ac_res=`eval 'as_val=${'$as_ac_Header'}
   10548 		 $as_echo "$as_val"'`
   10549 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   10550 $as_echo "$ac_res" >&6; }
   10551 
   10552 fi
   10553 as_val=`eval 'as_val=${'$as_ac_Header'}
   10554 		 $as_echo "$as_val"'`
   10555    if test "x$as_val" = x""yes; then
   10556   cat >>confdefs.h <<_ACEOF
   10557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10558 _ACEOF
   10559 
   10560 fi
   10561 
   10562 done
   10563 
   10564 
   10565     REPLACE_MEMCHR=1
   10566   fi
   10567 
   10568   if test $ac_cv_func_memchr = yes; then
   10569     # Detect platform-specific bugs in some versions of glibc:
   10570     # memchr should not dereference anything with length 0
   10571     #   http://bugzilla.redhat.com/499689
   10572     # memchr should not dereference overestimated length after a match
   10573     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
   10574     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
   10575     # Assume that memchr works on platforms that lack mprotect.
   10576     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
   10577 $as_echo_n "checking whether memchr works... " >&6; }
   10578 if test "${gl_cv_func_memchr_works+set}" = set; then
   10579   $as_echo_n "(cached) " >&6
   10580 else
   10581   if test "$cross_compiling" = yes; then
   10582          gl_cv_func_memchr_works="guessing no"
   10583 else
   10584   cat >conftest.$ac_ext <<_ACEOF
   10585 /* confdefs.h.  */
   10586 _ACEOF
   10587 cat confdefs.h >>conftest.$ac_ext
   10588 cat >>conftest.$ac_ext <<_ACEOF
   10589 /* end confdefs.h.  */
   10590 
   10591 #include <string.h>
   10592 #if HAVE_SYS_MMAN_H
   10593 # include <fcntl.h>
   10594 # include <unistd.h>
   10595 # include <sys/types.h>
   10596 # include <sys/mman.h>
   10597 # ifndef MAP_FILE
   10598 #  define MAP_FILE 0
   10599 # endif
   10600 #endif
   10601 
   10602 int
   10603 main ()
   10604 {
   10605 
   10606   char *fence = NULL;
   10607 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
   10608 # if HAVE_MAP_ANONYMOUS
   10609   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
   10610   const int fd = -1;
   10611 # else /* !HAVE_MAP_ANONYMOUS */
   10612   const int flags = MAP_FILE | MAP_PRIVATE;
   10613   int fd = open ("/dev/zero", O_RDONLY, 0666);
   10614   if (fd >= 0)
   10615 # endif
   10616     {
   10617       int pagesize = getpagesize ();
   10618       char *two_pages =
   10619 	(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
   10620 		       flags, fd, 0);
   10621       if (two_pages != (char *)(-1)
   10622 	  && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
   10623 	fence = two_pages + pagesize;
   10624     }
   10625 #endif
   10626   if (fence)
   10627     {
   10628       if (memchr (fence, 0, 0))
   10629         return 1;
   10630       strcpy (fence - 9, "12345678");
   10631       if (memchr (fence - 9, 0, 79) != fence - 1)
   10632         return 2;
   10633     }
   10634   return 0;
   10635 
   10636   ;
   10637   return 0;
   10638 }
   10639 _ACEOF
   10640 rm -f conftest$ac_exeext
   10641 if { (ac_try="$ac_link"
   10642 case "(($ac_try" in
   10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10644   *) ac_try_echo=$ac_try;;
   10645 esac
   10646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10647 $as_echo "$ac_try_echo") >&5
   10648   (eval "$ac_link") 2>&5
   10649   ac_status=$?
   10650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10652   { (case "(($ac_try" in
   10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10654   *) ac_try_echo=$ac_try;;
   10655 esac
   10656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10657 $as_echo "$ac_try_echo") >&5
   10658   (eval "$ac_try") 2>&5
   10659   ac_status=$?
   10660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10661   (exit $ac_status); }; }; then
   10662   gl_cv_func_memchr_works=yes
   10663 else
   10664   $as_echo "$as_me: program exited with status $ac_status" >&5
   10665 $as_echo "$as_me: failed program was:" >&5
   10666 sed 's/^/| /' conftest.$ac_ext >&5
   10667 
   10668 ( exit $ac_status )
   10669 gl_cv_func_memchr_works=no
   10670 fi
   10671 rm -rf conftest.dSYM
   10672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   10673 fi
   10674 
   10675 
   10676 fi
   10677 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
   10678 $as_echo "$gl_cv_func_memchr_works" >&6; }
   10679     if test "$gl_cv_func_memchr_works" != yes; then
   10680 
   10681 
   10682 for ac_header in bp-sym.h
   10683 do
   10684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10686   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   10687 $as_echo_n "checking for $ac_header... " >&6; }
   10688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10689   $as_echo_n "(cached) " >&6
   10690 fi
   10691 ac_res=`eval 'as_val=${'$as_ac_Header'}
   10692 		 $as_echo "$as_val"'`
   10693 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   10694 $as_echo "$ac_res" >&6; }
   10695 else
   10696   # Is the header compilable?
   10697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10698 $as_echo_n "checking $ac_header usability... " >&6; }
   10699 cat >conftest.$ac_ext <<_ACEOF
   10700 /* confdefs.h.  */
   10701 _ACEOF
   10702 cat confdefs.h >>conftest.$ac_ext
   10703 cat >>conftest.$ac_ext <<_ACEOF
   10704 /* end confdefs.h.  */
   10705 $ac_includes_default
   10706 #include <$ac_header>
   10707 _ACEOF
   10708 rm -f conftest.$ac_objext
   10709 if { (ac_try="$ac_compile"
   10710 case "(($ac_try" in
   10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10712   *) ac_try_echo=$ac_try;;
   10713 esac
   10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10715 $as_echo "$ac_try_echo") >&5
   10716   (eval "$ac_compile") 2>conftest.er1
   10717   ac_status=$?
   10718   grep -v '^ *+' conftest.er1 >conftest.err
   10719   rm -f conftest.er1
   10720   cat conftest.err >&5
   10721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10722   (exit $ac_status); } && {
   10723 	 test -z "$ac_c_werror_flag" ||
   10724 	 test ! -s conftest.err
   10725        } && test -s conftest.$ac_objext; then
   10726   ac_header_compiler=yes
   10727 else
   10728   $as_echo "$as_me: failed program was:" >&5
   10729 sed 's/^/| /' conftest.$ac_ext >&5
   10730 
   10731 	ac_header_compiler=no
   10732 fi
   10733 
   10734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10736 $as_echo "$ac_header_compiler" >&6; }
   10737 
   10738 # Is the header present?
   10739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10740 $as_echo_n "checking $ac_header presence... " >&6; }
   10741 cat >conftest.$ac_ext <<_ACEOF
   10742 /* confdefs.h.  */
   10743 _ACEOF
   10744 cat confdefs.h >>conftest.$ac_ext
   10745 cat >>conftest.$ac_ext <<_ACEOF
   10746 /* end confdefs.h.  */
   10747 #include <$ac_header>
   10748 _ACEOF
   10749 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10750 case "(($ac_try" in
   10751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10752   *) ac_try_echo=$ac_try;;
   10753 esac
   10754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10755 $as_echo "$ac_try_echo") >&5
   10756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10757   ac_status=$?
   10758   grep -v '^ *+' conftest.er1 >conftest.err
   10759   rm -f conftest.er1
   10760   cat conftest.err >&5
   10761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10762   (exit $ac_status); } >/dev/null && {
   10763 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10764 	 test ! -s conftest.err
   10765        }; then
   10766   ac_header_preproc=yes
   10767 else
   10768   $as_echo "$as_me: failed program was:" >&5
   10769 sed 's/^/| /' conftest.$ac_ext >&5
   10770 
   10771   ac_header_preproc=no
   10772 fi
   10773 
   10774 rm -f conftest.err conftest.$ac_ext
   10775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10776 $as_echo "$ac_header_preproc" >&6; }
   10777 
   10778 # So?  What about this header?
   10779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10780   yes:no: )
   10781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10785     ac_header_preproc=yes
   10786     ;;
   10787   no:yes:* )
   10788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10791 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10795 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10800     ( cat <<\_ASBOX
   10801 ## ------------------------------------ ##
   10802 ## Report this to bug-gnu-utils (at] gnu.org ##
   10803 ## ------------------------------------ ##
   10804 _ASBOX
   10805      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10806     ;;
   10807 esac
   10808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   10809 $as_echo_n "checking for $ac_header... " >&6; }
   10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10811   $as_echo_n "(cached) " >&6
   10812 else
   10813   eval "$as_ac_Header=\$ac_header_preproc"
   10814 fi
   10815 ac_res=`eval 'as_val=${'$as_ac_Header'}
   10816 		 $as_echo "$as_val"'`
   10817 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   10818 $as_echo "$ac_res" >&6; }
   10819 
   10820 fi
   10821 as_val=`eval 'as_val=${'$as_ac_Header'}
   10822 		 $as_echo "$as_val"'`
   10823    if test "x$as_val" = x""yes; then
   10824   cat >>confdefs.h <<_ACEOF
   10825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10826 _ACEOF
   10827 
   10828 fi
   10829 
   10830 done
   10831 
   10832 
   10833       REPLACE_MEMCHR=1
   10834 
   10835 
   10836 
   10837 
   10838 
   10839 
   10840 
   10841 
   10842   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
   10843 
   10844     fi
   10845   fi
   10846 
   10847 # Check whether --enable-largefile was given.
   10848 if test "${enable_largefile+set}" = set; then
   10849   enableval=$enable_largefile;
   10850 fi
   10851 
   10852 if test "$enable_largefile" != no; then
   10853 
   10854   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
   10855 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   10856 if test "${ac_cv_sys_largefile_CC+set}" = set; then
   10857   $as_echo_n "(cached) " >&6
   10858 else
   10859   ac_cv_sys_largefile_CC=no
   10860      if test "$GCC" != yes; then
   10861        ac_save_CC=$CC
   10862        while :; do
   10863 	 # IRIX 6.2 and later do not support large files by default,
   10864 	 # so use the C compiler's -n32 option if that helps.
   10865 	 cat >conftest.$ac_ext <<_ACEOF
   10866 /* confdefs.h.  */
   10867 _ACEOF
   10868 cat confdefs.h >>conftest.$ac_ext
   10869 cat >>conftest.$ac_ext <<_ACEOF
   10870 /* end confdefs.h.  */
   10871 #include <sys/types.h>
   10872  /* Check that off_t can represent 2**63 - 1 correctly.
   10873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   10874     since some C++ compilers masquerading as C compilers
   10875     incorrectly reject 9223372036854775807.  */
   10876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   10877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   10878 		       && LARGE_OFF_T % 2147483647 == 1)
   10879 		      ? 1 : -1];
   10880 int
   10881 main ()
   10882 {
   10883 
   10884   ;
   10885   return 0;
   10886 }
   10887 _ACEOF
   10888 	 rm -f conftest.$ac_objext
   10889 if { (ac_try="$ac_compile"
   10890 case "(($ac_try" in
   10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10892   *) ac_try_echo=$ac_try;;
   10893 esac
   10894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10895 $as_echo "$ac_try_echo") >&5
   10896   (eval "$ac_compile") 2>conftest.er1
   10897   ac_status=$?
   10898   grep -v '^ *+' conftest.er1 >conftest.err
   10899   rm -f conftest.er1
   10900   cat conftest.err >&5
   10901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10902   (exit $ac_status); } && {
   10903 	 test -z "$ac_c_werror_flag" ||
   10904 	 test ! -s conftest.err
   10905        } && test -s conftest.$ac_objext; then
   10906   break
   10907 else
   10908   $as_echo "$as_me: failed program was:" >&5
   10909 sed 's/^/| /' conftest.$ac_ext >&5
   10910 
   10911 
   10912 fi
   10913 
   10914 rm -f core conftest.err conftest.$ac_objext
   10915 	 CC="$CC -n32"
   10916 	 rm -f conftest.$ac_objext
   10917 if { (ac_try="$ac_compile"
   10918 case "(($ac_try" in
   10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10920   *) ac_try_echo=$ac_try;;
   10921 esac
   10922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10923 $as_echo "$ac_try_echo") >&5
   10924   (eval "$ac_compile") 2>conftest.er1
   10925   ac_status=$?
   10926   grep -v '^ *+' conftest.er1 >conftest.err
   10927   rm -f conftest.er1
   10928   cat conftest.err >&5
   10929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10930   (exit $ac_status); } && {
   10931 	 test -z "$ac_c_werror_flag" ||
   10932 	 test ! -s conftest.err
   10933        } && test -s conftest.$ac_objext; then
   10934   ac_cv_sys_largefile_CC=' -n32'; break
   10935 else
   10936   $as_echo "$as_me: failed program was:" >&5
   10937 sed 's/^/| /' conftest.$ac_ext >&5
   10938 
   10939 
   10940 fi
   10941 
   10942 rm -f core conftest.err conftest.$ac_objext
   10943 	 break
   10944        done
   10945        CC=$ac_save_CC
   10946        rm -f conftest.$ac_ext
   10947     fi
   10948 fi
   10949 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
   10950 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   10951   if test "$ac_cv_sys_largefile_CC" != no; then
   10952     CC=$CC$ac_cv_sys_largefile_CC
   10953   fi
   10954 
   10955   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   10956 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   10957 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
   10958   $as_echo_n "(cached) " >&6
   10959 else
   10960   while :; do
   10961   cat >conftest.$ac_ext <<_ACEOF
   10962 /* confdefs.h.  */
   10963 _ACEOF
   10964 cat confdefs.h >>conftest.$ac_ext
   10965 cat >>conftest.$ac_ext <<_ACEOF
   10966 /* end confdefs.h.  */
   10967 #include <sys/types.h>
   10968  /* Check that off_t can represent 2**63 - 1 correctly.
   10969     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   10970     since some C++ compilers masquerading as C compilers
   10971     incorrectly reject 9223372036854775807.  */
   10972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   10973   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   10974 		       && LARGE_OFF_T % 2147483647 == 1)
   10975 		      ? 1 : -1];
   10976 int
   10977 main ()
   10978 {
   10979 
   10980   ;
   10981   return 0;
   10982 }
   10983 _ACEOF
   10984 rm -f conftest.$ac_objext
   10985 if { (ac_try="$ac_compile"
   10986 case "(($ac_try" in
   10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10988   *) ac_try_echo=$ac_try;;
   10989 esac
   10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   10991 $as_echo "$ac_try_echo") >&5
   10992   (eval "$ac_compile") 2>conftest.er1
   10993   ac_status=$?
   10994   grep -v '^ *+' conftest.er1 >conftest.err
   10995   rm -f conftest.er1
   10996   cat conftest.err >&5
   10997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10998   (exit $ac_status); } && {
   10999 	 test -z "$ac_c_werror_flag" ||
   11000 	 test ! -s conftest.err
   11001        } && test -s conftest.$ac_objext; then
   11002   ac_cv_sys_file_offset_bits=no; break
   11003 else
   11004   $as_echo "$as_me: failed program was:" >&5
   11005 sed 's/^/| /' conftest.$ac_ext >&5
   11006 
   11007 
   11008 fi
   11009 
   11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11011   cat >conftest.$ac_ext <<_ACEOF
   11012 /* confdefs.h.  */
   11013 _ACEOF
   11014 cat confdefs.h >>conftest.$ac_ext
   11015 cat >>conftest.$ac_ext <<_ACEOF
   11016 /* end confdefs.h.  */
   11017 #define _FILE_OFFSET_BITS 64
   11018 #include <sys/types.h>
   11019  /* Check that off_t can represent 2**63 - 1 correctly.
   11020     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11021     since some C++ compilers masquerading as C compilers
   11022     incorrectly reject 9223372036854775807.  */
   11023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   11024   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11025 		       && LARGE_OFF_T % 2147483647 == 1)
   11026 		      ? 1 : -1];
   11027 int
   11028 main ()
   11029 {
   11030 
   11031   ;
   11032   return 0;
   11033 }
   11034 _ACEOF
   11035 rm -f conftest.$ac_objext
   11036 if { (ac_try="$ac_compile"
   11037 case "(($ac_try" in
   11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11039   *) ac_try_echo=$ac_try;;
   11040 esac
   11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11042 $as_echo "$ac_try_echo") >&5
   11043   (eval "$ac_compile") 2>conftest.er1
   11044   ac_status=$?
   11045   grep -v '^ *+' conftest.er1 >conftest.err
   11046   rm -f conftest.er1
   11047   cat conftest.err >&5
   11048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11049   (exit $ac_status); } && {
   11050 	 test -z "$ac_c_werror_flag" ||
   11051 	 test ! -s conftest.err
   11052        } && test -s conftest.$ac_objext; then
   11053   ac_cv_sys_file_offset_bits=64; break
   11054 else
   11055   $as_echo "$as_me: failed program was:" >&5
   11056 sed 's/^/| /' conftest.$ac_ext >&5
   11057 
   11058 
   11059 fi
   11060 
   11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11062   ac_cv_sys_file_offset_bits=unknown
   11063   break
   11064 done
   11065 fi
   11066 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
   11067 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   11068 case $ac_cv_sys_file_offset_bits in #(
   11069   no | unknown) ;;
   11070   *)
   11071 cat >>confdefs.h <<_ACEOF
   11072 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   11073 _ACEOF
   11074 ;;
   11075 esac
   11076 rm -rf conftest*
   11077   if test $ac_cv_sys_file_offset_bits = unknown; then
   11078     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
   11079 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   11080 if test "${ac_cv_sys_large_files+set}" = set; then
   11081   $as_echo_n "(cached) " >&6
   11082 else
   11083   while :; do
   11084   cat >conftest.$ac_ext <<_ACEOF
   11085 /* confdefs.h.  */
   11086 _ACEOF
   11087 cat confdefs.h >>conftest.$ac_ext
   11088 cat >>conftest.$ac_ext <<_ACEOF
   11089 /* end confdefs.h.  */
   11090 #include <sys/types.h>
   11091  /* Check that off_t can represent 2**63 - 1 correctly.
   11092     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11093     since some C++ compilers masquerading as C compilers
   11094     incorrectly reject 9223372036854775807.  */
   11095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   11096   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11097 		       && LARGE_OFF_T % 2147483647 == 1)
   11098 		      ? 1 : -1];
   11099 int
   11100 main ()
   11101 {
   11102 
   11103   ;
   11104   return 0;
   11105 }
   11106 _ACEOF
   11107 rm -f conftest.$ac_objext
   11108 if { (ac_try="$ac_compile"
   11109 case "(($ac_try" in
   11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11111   *) ac_try_echo=$ac_try;;
   11112 esac
   11113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11114 $as_echo "$ac_try_echo") >&5
   11115   (eval "$ac_compile") 2>conftest.er1
   11116   ac_status=$?
   11117   grep -v '^ *+' conftest.er1 >conftest.err
   11118   rm -f conftest.er1
   11119   cat conftest.err >&5
   11120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11121   (exit $ac_status); } && {
   11122 	 test -z "$ac_c_werror_flag" ||
   11123 	 test ! -s conftest.err
   11124        } && test -s conftest.$ac_objext; then
   11125   ac_cv_sys_large_files=no; break
   11126 else
   11127   $as_echo "$as_me: failed program was:" >&5
   11128 sed 's/^/| /' conftest.$ac_ext >&5
   11129 
   11130 
   11131 fi
   11132 
   11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11134   cat >conftest.$ac_ext <<_ACEOF
   11135 /* confdefs.h.  */
   11136 _ACEOF
   11137 cat confdefs.h >>conftest.$ac_ext
   11138 cat >>conftest.$ac_ext <<_ACEOF
   11139 /* end confdefs.h.  */
   11140 #define _LARGE_FILES 1
   11141 #include <sys/types.h>
   11142  /* Check that off_t can represent 2**63 - 1 correctly.
   11143     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11144     since some C++ compilers masquerading as C compilers
   11145     incorrectly reject 9223372036854775807.  */
   11146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   11147   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11148 		       && LARGE_OFF_T % 2147483647 == 1)
   11149 		      ? 1 : -1];
   11150 int
   11151 main ()
   11152 {
   11153 
   11154   ;
   11155   return 0;
   11156 }
   11157 _ACEOF
   11158 rm -f conftest.$ac_objext
   11159 if { (ac_try="$ac_compile"
   11160 case "(($ac_try" in
   11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11162   *) ac_try_echo=$ac_try;;
   11163 esac
   11164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11165 $as_echo "$ac_try_echo") >&5
   11166   (eval "$ac_compile") 2>conftest.er1
   11167   ac_status=$?
   11168   grep -v '^ *+' conftest.er1 >conftest.err
   11169   rm -f conftest.er1
   11170   cat conftest.err >&5
   11171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11172   (exit $ac_status); } && {
   11173 	 test -z "$ac_c_werror_flag" ||
   11174 	 test ! -s conftest.err
   11175        } && test -s conftest.$ac_objext; then
   11176   ac_cv_sys_large_files=1; break
   11177 else
   11178   $as_echo "$as_me: failed program was:" >&5
   11179 sed 's/^/| /' conftest.$ac_ext >&5
   11180 
   11181 
   11182 fi
   11183 
   11184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11185   ac_cv_sys_large_files=unknown
   11186   break
   11187 done
   11188 fi
   11189 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
   11190 $as_echo "$ac_cv_sys_large_files" >&6; }
   11191 case $ac_cv_sys_large_files in #(
   11192   no | unknown) ;;
   11193   *)
   11194 cat >>confdefs.h <<_ACEOF
   11195 #define _LARGE_FILES $ac_cv_sys_large_files
   11196 _ACEOF
   11197 ;;
   11198 esac
   11199 rm -rf conftest*
   11200   fi
   11201 fi
   11202 
   11203 
   11204     gl_cv_c_multiarch=no
   11205   cat >conftest.$ac_ext <<_ACEOF
   11206 /* confdefs.h.  */
   11207 _ACEOF
   11208 cat confdefs.h >>conftest.$ac_ext
   11209 cat >>conftest.$ac_ext <<_ACEOF
   11210 /* end confdefs.h.  */
   11211 #ifndef __APPLE_CC__
   11212          not a universal capable compiler
   11213         #endif
   11214         typedef int dummy;
   11215 
   11216 _ACEOF
   11217 rm -f conftest.$ac_objext
   11218 if { (ac_try="$ac_compile"
   11219 case "(($ac_try" in
   11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11221   *) ac_try_echo=$ac_try;;
   11222 esac
   11223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11224 $as_echo "$ac_try_echo") >&5
   11225   (eval "$ac_compile") 2>conftest.er1
   11226   ac_status=$?
   11227   grep -v '^ *+' conftest.er1 >conftest.err
   11228   rm -f conftest.er1
   11229   cat conftest.err >&5
   11230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11231   (exit $ac_status); } && {
   11232 	 test -z "$ac_c_werror_flag" ||
   11233 	 test ! -s conftest.err
   11234        } && test -s conftest.$ac_objext; then
   11235 
   11236                arch=
   11237      prev=
   11238      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
   11239        if test -n "$prev"; then
   11240          case $word in
   11241            i?86 | x86_64 | ppc | ppc64)
   11242              if test -z "$arch" || test "$arch" = "$word"; then
   11243                arch="$word"
   11244              else
   11245                gl_cv_c_multiarch=yes
   11246              fi
   11247              ;;
   11248          esac
   11249          prev=
   11250        else
   11251          if test "x$word" = "x-arch"; then
   11252            prev=arch
   11253          fi
   11254        fi
   11255      done
   11256 
   11257 else
   11258   $as_echo "$as_me: failed program was:" >&5
   11259 sed 's/^/| /' conftest.$ac_ext >&5
   11260 
   11261 
   11262 fi
   11263 
   11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11265   if test $gl_cv_c_multiarch = yes; then
   11266 
   11267 cat >>confdefs.h <<\_ACEOF
   11268 #define AA_APPLE_UNIVERSAL_BUILD 1
   11269 _ACEOF
   11270 
   11271     APPLE_UNIVERSAL_BUILD=1
   11272   else
   11273     APPLE_UNIVERSAL_BUILD=0
   11274   fi
   11275 
   11276 
   11277 
   11278 
   11279 
   11280 
   11281 
   11282 
   11283 
   11284 
   11285 
   11286 
   11287 
   11288 
   11289 
   11290 
   11291 
   11292   LIB_SELINUX=
   11293   gl_save_LIBS=$LIBS
   11294   { $as_echo "$as_me:$LINENO: checking for library containing setfilecon" >&5
   11295 $as_echo_n "checking for library containing setfilecon... " >&6; }
   11296 if test "${ac_cv_search_setfilecon+set}" = set; then
   11297   $as_echo_n "(cached) " >&6
   11298 else
   11299   ac_func_search_save_LIBS=$LIBS
   11300 cat >conftest.$ac_ext <<_ACEOF
   11301 /* confdefs.h.  */
   11302 _ACEOF
   11303 cat confdefs.h >>conftest.$ac_ext
   11304 cat >>conftest.$ac_ext <<_ACEOF
   11305 /* end confdefs.h.  */
   11306 
   11307 /* Override any GCC internal prototype to avoid an error.
   11308    Use char because int might match the return type of a GCC
   11309    builtin and then its argument prototype would still apply.  */
   11310 #ifdef __cplusplus
   11311 extern "C"
   11312 #endif
   11313 char setfilecon ();
   11314 int
   11315 main ()
   11316 {
   11317 return setfilecon ();
   11318   ;
   11319   return 0;
   11320 }
   11321 _ACEOF
   11322 for ac_lib in '' selinux; do
   11323   if test -z "$ac_lib"; then
   11324     ac_res="none required"
   11325   else
   11326     ac_res=-l$ac_lib
   11327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11328   fi
   11329   rm -f conftest.$ac_objext conftest$ac_exeext
   11330 if { (ac_try="$ac_link"
   11331 case "(($ac_try" in
   11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11333   *) ac_try_echo=$ac_try;;
   11334 esac
   11335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11336 $as_echo "$ac_try_echo") >&5
   11337   (eval "$ac_link") 2>conftest.er1
   11338   ac_status=$?
   11339   grep -v '^ *+' conftest.er1 >conftest.err
   11340   rm -f conftest.er1
   11341   cat conftest.err >&5
   11342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11343   (exit $ac_status); } && {
   11344 	 test -z "$ac_c_werror_flag" ||
   11345 	 test ! -s conftest.err
   11346        } && test -s conftest$ac_exeext && {
   11347 	 test "$cross_compiling" = yes ||
   11348 	 $as_test_x conftest$ac_exeext
   11349        }; then
   11350   ac_cv_search_setfilecon=$ac_res
   11351 else
   11352   $as_echo "$as_me: failed program was:" >&5
   11353 sed 's/^/| /' conftest.$ac_ext >&5
   11354 
   11355 
   11356 fi
   11357 
   11358 rm -rf conftest.dSYM
   11359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11360       conftest$ac_exeext
   11361   if test "${ac_cv_search_setfilecon+set}" = set; then
   11362   break
   11363 fi
   11364 done
   11365 if test "${ac_cv_search_setfilecon+set}" = set; then
   11366   :
   11367 else
   11368   ac_cv_search_setfilecon=no
   11369 fi
   11370 rm conftest.$ac_ext
   11371 LIBS=$ac_func_search_save_LIBS
   11372 fi
   11373 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setfilecon" >&5
   11374 $as_echo "$ac_cv_search_setfilecon" >&6; }
   11375 ac_res=$ac_cv_search_setfilecon
   11376 if test "$ac_res" != no; then
   11377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11378   test "$ac_cv_search_setfilecon" = "none required" ||
   11379                   LIB_SELINUX=$ac_cv_search_setfilecon
   11380 fi
   11381 
   11382 
   11383   LIBS=$gl_save_LIBS
   11384 
   11385   # Warn if SELinux is found but libselinux is absent;
   11386   if test "$ac_cv_search_setfilecon" = no &&
   11387      test "$host" = "$build" && test -d /selinux; then
   11388     { $as_echo "$as_me:$LINENO: WARNING: This system supports SELinux but libselinux is missing." >&5
   11389 $as_echo "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;}
   11390     { $as_echo "$as_me:$LINENO: WARNING: sed will be compiled without SELinux support." >&5
   11391 $as_echo "$as_me: WARNING: sed will be compiled without SELinux support." >&2;}
   11392   fi
   11393 
   11394 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
   11395 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   11396 if test "${ac_cv_header_stdbool_h+set}" = set; then
   11397   $as_echo_n "(cached) " >&6
   11398 else
   11399   cat >conftest.$ac_ext <<_ACEOF
   11400 /* confdefs.h.  */
   11401 _ACEOF
   11402 cat confdefs.h >>conftest.$ac_ext
   11403 cat >>conftest.$ac_ext <<_ACEOF
   11404 /* end confdefs.h.  */
   11405 
   11406 	  #include <stdbool.h>
   11407 	  #ifndef bool
   11408 	   "error: bool is not defined"
   11409 	  #endif
   11410 	  #ifndef false
   11411 	   "error: false is not defined"
   11412 	  #endif
   11413 	  #if false
   11414 	   "error: false is not 0"
   11415 	  #endif
   11416 	  #ifndef true
   11417 	   "error: true is not defined"
   11418 	  #endif
   11419 	  #if true != 1
   11420 	   "error: true is not 1"
   11421 	  #endif
   11422 	  #ifndef __bool_true_false_are_defined
   11423 	   "error: __bool_true_false_are_defined is not defined"
   11424 	  #endif
   11425 
   11426 	  struct s { _Bool s: 1; _Bool t; } s;
   11427 
   11428 	  char a[true == 1 ? 1 : -1];
   11429 	  char b[false == 0 ? 1 : -1];
   11430 	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   11431 	  char d[(bool) 0.5 == true ? 1 : -1];
   11432 	  bool e = &s;
   11433 	  char f[(_Bool) 0.0 == false ? 1 : -1];
   11434 	  char g[true];
   11435 	  char h[sizeof (_Bool)];
   11436 	  char i[sizeof s.t];
   11437 	  enum { j = false, k = true, l = false * true, m = true * 256 };
   11438 	  _Bool n[m];
   11439 	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   11440 	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
   11441 	  #if defined __xlc__ || defined __GNUC__
   11442 	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
   11443 	      reported by James Lemley on 2005-10-05; see
   11444 	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
   11445 	      This test is not quite right, since xlc is allowed to
   11446 	      reject this program, as the initializer for xlcbug is
   11447 	      not one of the forms that C requires support for.
   11448 	      However, doing the test right would require a run-time
   11449 	      test, and that would make cross-compilation harder.
   11450 	      Let us hope that IBM fixes the xlc bug, and also adds
   11451 	      support for this kind of constant expression.  In the
   11452 	      meantime, this test will reject xlc, which is OK, since
   11453 	      our stdbool.h substitute should suffice.  We also test
   11454 	      this with GCC, where it should work, to detect more
   11455 	      quickly whether someone messes up the test in the
   11456 	      future.  */
   11457 	   char digs[] = "0123456789";
   11458 	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
   11459 	  #endif
   11460 	  /* Catch a bug in an HP-UX C compiler.  See
   11461 	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
   11462 	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
   11463 	   */
   11464 	  _Bool q = true;
   11465 	  _Bool *pq = &q;
   11466 
   11467 int
   11468 main ()
   11469 {
   11470 
   11471 	  *pq |= q;
   11472 	  *pq |= ! q;
   11473 	  /* Refer to every declared value, to avoid compiler optimizations.  */
   11474 	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
   11475 		  + !m + !n + !o + !p + !q + !pq);
   11476 
   11477   ;
   11478   return 0;
   11479 }
   11480 _ACEOF
   11481 rm -f conftest.$ac_objext
   11482 if { (ac_try="$ac_compile"
   11483 case "(($ac_try" in
   11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11485   *) ac_try_echo=$ac_try;;
   11486 esac
   11487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11488 $as_echo "$ac_try_echo") >&5
   11489   (eval "$ac_compile") 2>conftest.er1
   11490   ac_status=$?
   11491   grep -v '^ *+' conftest.er1 >conftest.err
   11492   rm -f conftest.er1
   11493   cat conftest.err >&5
   11494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11495   (exit $ac_status); } && {
   11496 	 test -z "$ac_c_werror_flag" ||
   11497 	 test ! -s conftest.err
   11498        } && test -s conftest.$ac_objext; then
   11499   ac_cv_header_stdbool_h=yes
   11500 else
   11501   $as_echo "$as_me: failed program was:" >&5
   11502 sed 's/^/| /' conftest.$ac_ext >&5
   11503 
   11504 	ac_cv_header_stdbool_h=no
   11505 fi
   11506 
   11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11508 fi
   11509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
   11510 $as_echo "$ac_cv_header_stdbool_h" >&6; }
   11511    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
   11512 $as_echo_n "checking for _Bool... " >&6; }
   11513 if test "${ac_cv_type__Bool+set}" = set; then
   11514   $as_echo_n "(cached) " >&6
   11515 else
   11516   ac_cv_type__Bool=no
   11517 cat >conftest.$ac_ext <<_ACEOF
   11518 /* confdefs.h.  */
   11519 _ACEOF
   11520 cat confdefs.h >>conftest.$ac_ext
   11521 cat >>conftest.$ac_ext <<_ACEOF
   11522 /* end confdefs.h.  */
   11523 $ac_includes_default
   11524 int
   11525 main ()
   11526 {
   11527 if (sizeof (_Bool))
   11528        return 0;
   11529   ;
   11530   return 0;
   11531 }
   11532 _ACEOF
   11533 rm -f conftest.$ac_objext
   11534 if { (ac_try="$ac_compile"
   11535 case "(($ac_try" in
   11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11537   *) ac_try_echo=$ac_try;;
   11538 esac
   11539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11540 $as_echo "$ac_try_echo") >&5
   11541   (eval "$ac_compile") 2>conftest.er1
   11542   ac_status=$?
   11543   grep -v '^ *+' conftest.er1 >conftest.err
   11544   rm -f conftest.er1
   11545   cat conftest.err >&5
   11546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11547   (exit $ac_status); } && {
   11548 	 test -z "$ac_c_werror_flag" ||
   11549 	 test ! -s conftest.err
   11550        } && test -s conftest.$ac_objext; then
   11551   cat >conftest.$ac_ext <<_ACEOF
   11552 /* confdefs.h.  */
   11553 _ACEOF
   11554 cat confdefs.h >>conftest.$ac_ext
   11555 cat >>conftest.$ac_ext <<_ACEOF
   11556 /* end confdefs.h.  */
   11557 $ac_includes_default
   11558 int
   11559 main ()
   11560 {
   11561 if (sizeof ((_Bool)))
   11562 	  return 0;
   11563   ;
   11564   return 0;
   11565 }
   11566 _ACEOF
   11567 rm -f conftest.$ac_objext
   11568 if { (ac_try="$ac_compile"
   11569 case "(($ac_try" in
   11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11571   *) ac_try_echo=$ac_try;;
   11572 esac
   11573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11574 $as_echo "$ac_try_echo") >&5
   11575   (eval "$ac_compile") 2>conftest.er1
   11576   ac_status=$?
   11577   grep -v '^ *+' conftest.er1 >conftest.err
   11578   rm -f conftest.er1
   11579   cat conftest.err >&5
   11580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11581   (exit $ac_status); } && {
   11582 	 test -z "$ac_c_werror_flag" ||
   11583 	 test ! -s conftest.err
   11584        } && test -s conftest.$ac_objext; then
   11585   :
   11586 else
   11587   $as_echo "$as_me: failed program was:" >&5
   11588 sed 's/^/| /' conftest.$ac_ext >&5
   11589 
   11590 	ac_cv_type__Bool=yes
   11591 fi
   11592 
   11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11594 else
   11595   $as_echo "$as_me: failed program was:" >&5
   11596 sed 's/^/| /' conftest.$ac_ext >&5
   11597 
   11598 
   11599 fi
   11600 
   11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11602 fi
   11603 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
   11604 $as_echo "$ac_cv_type__Bool" >&6; }
   11605 if test "x$ac_cv_type__Bool" = x""yes; then
   11606 
   11607 cat >>confdefs.h <<_ACEOF
   11608 #define HAVE__BOOL 1
   11609 _ACEOF
   11610 
   11611 
   11612 fi
   11613 
   11614    if test $ac_cv_header_stdbool_h = yes; then
   11615 
   11616 cat >>confdefs.h <<\_ACEOF
   11617 #define HAVE_STDBOOL_H 1
   11618 _ACEOF
   11619 
   11620    fi
   11621 
   11622   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
   11623 $as_echo_n "checking for long long int... " >&6; }
   11624 if test "${ac_cv_type_long_long_int+set}" = set; then
   11625   $as_echo_n "(cached) " >&6
   11626 else
   11627   cat >conftest.$ac_ext <<_ACEOF
   11628 
   11629   /* confdefs.h.  */
   11630 _ACEOF
   11631 cat confdefs.h >>conftest.$ac_ext
   11632 cat >>conftest.$ac_ext <<_ACEOF
   11633 /* end confdefs.h.  */
   11634 /* For now, do not test the preprocessor; as of 2007 there are too many
   11635 	 implementations with broken preprocessors.  Perhaps this can
   11636 	 be revisited in 2012.  In the meantime, code should not expect
   11637 	 #if to work with literals wider than 32 bits.  */
   11638       /* Test literals.  */
   11639       long long int ll = 9223372036854775807ll;
   11640       long long int nll = -9223372036854775807LL;
   11641       unsigned long long int ull = 18446744073709551615ULL;
   11642       /* Test constant expressions.   */
   11643       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   11644 		     ? 1 : -1)];
   11645       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   11646 		     ? 1 : -1)];
   11647       int i = 63;
   11648 int
   11649 main ()
   11650 {
   11651 /* Test availability of runtime routines for shift and division.  */
   11652       long long int llmax = 9223372036854775807ll;
   11653       unsigned long long int ullmax = 18446744073709551615ull;
   11654       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   11655 	      | (llmax / ll) | (llmax % ll)
   11656 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   11657 	      | (ullmax / ull) | (ullmax % ull));
   11658   ;
   11659   return 0;
   11660 }
   11661 
   11662 _ACEOF
   11663 rm -f conftest.$ac_objext conftest$ac_exeext
   11664 if { (ac_try="$ac_link"
   11665 case "(($ac_try" in
   11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11667   *) ac_try_echo=$ac_try;;
   11668 esac
   11669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11670 $as_echo "$ac_try_echo") >&5
   11671   (eval "$ac_link") 2>conftest.er1
   11672   ac_status=$?
   11673   grep -v '^ *+' conftest.er1 >conftest.err
   11674   rm -f conftest.er1
   11675   cat conftest.err >&5
   11676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11677   (exit $ac_status); } && {
   11678 	 test -z "$ac_c_werror_flag" ||
   11679 	 test ! -s conftest.err
   11680        } && test -s conftest$ac_exeext && {
   11681 	 test "$cross_compiling" = yes ||
   11682 	 $as_test_x conftest$ac_exeext
   11683        }; then
   11684   			if test "$cross_compiling" = yes; then
   11685   ac_cv_type_long_long_int=yes
   11686 else
   11687   cat >conftest.$ac_ext <<_ACEOF
   11688 /* confdefs.h.  */
   11689 _ACEOF
   11690 cat confdefs.h >>conftest.$ac_ext
   11691 cat >>conftest.$ac_ext <<_ACEOF
   11692 /* end confdefs.h.  */
   11693 #include <limits.h>
   11694 	       #ifndef LLONG_MAX
   11695 	       # define HALF \
   11696 			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
   11697 	       # define LLONG_MAX (HALF - 1 + HALF)
   11698 	       #endif
   11699 int
   11700 main ()
   11701 {
   11702 long long int n = 1;
   11703 	       int i;
   11704 	       for (i = 0; ; i++)
   11705 		 {
   11706 		   long long int m = n << i;
   11707 		   if (m >> i != n)
   11708 		     return 1;
   11709 		   if (LLONG_MAX / 2 < m)
   11710 		     break;
   11711 		 }
   11712 	       return 0;
   11713   ;
   11714   return 0;
   11715 }
   11716 _ACEOF
   11717 rm -f conftest$ac_exeext
   11718 if { (ac_try="$ac_link"
   11719 case "(($ac_try" in
   11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11721   *) ac_try_echo=$ac_try;;
   11722 esac
   11723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11724 $as_echo "$ac_try_echo") >&5
   11725   (eval "$ac_link") 2>&5
   11726   ac_status=$?
   11727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   11729   { (case "(($ac_try" in
   11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11731   *) ac_try_echo=$ac_try;;
   11732 esac
   11733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11734 $as_echo "$ac_try_echo") >&5
   11735   (eval "$ac_try") 2>&5
   11736   ac_status=$?
   11737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11738   (exit $ac_status); }; }; then
   11739   ac_cv_type_long_long_int=yes
   11740 else
   11741   $as_echo "$as_me: program exited with status $ac_status" >&5
   11742 $as_echo "$as_me: failed program was:" >&5
   11743 sed 's/^/| /' conftest.$ac_ext >&5
   11744 
   11745 ( exit $ac_status )
   11746 ac_cv_type_long_long_int=no
   11747 fi
   11748 rm -rf conftest.dSYM
   11749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11750 fi
   11751 
   11752 
   11753 else
   11754   $as_echo "$as_me: failed program was:" >&5
   11755 sed 's/^/| /' conftest.$ac_ext >&5
   11756 
   11757 	ac_cv_type_long_long_int=no
   11758 fi
   11759 
   11760 rm -rf conftest.dSYM
   11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11762       conftest$ac_exeext conftest.$ac_ext
   11763 fi
   11764 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
   11765 $as_echo "$ac_cv_type_long_long_int" >&6; }
   11766   if test $ac_cv_type_long_long_int = yes; then
   11767 
   11768 cat >>confdefs.h <<\_ACEOF
   11769 #define HAVE_LONG_LONG_INT 1
   11770 _ACEOF
   11771 
   11772   fi
   11773 
   11774 
   11775   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
   11776 $as_echo_n "checking for unsigned long long int... " >&6; }
   11777 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
   11778   $as_echo_n "(cached) " >&6
   11779 else
   11780   cat >conftest.$ac_ext <<_ACEOF
   11781 
   11782   /* confdefs.h.  */
   11783 _ACEOF
   11784 cat confdefs.h >>conftest.$ac_ext
   11785 cat >>conftest.$ac_ext <<_ACEOF
   11786 /* end confdefs.h.  */
   11787 /* For now, do not test the preprocessor; as of 2007 there are too many
   11788 	 implementations with broken preprocessors.  Perhaps this can
   11789 	 be revisited in 2012.  In the meantime, code should not expect
   11790 	 #if to work with literals wider than 32 bits.  */
   11791       /* Test literals.  */
   11792       long long int ll = 9223372036854775807ll;
   11793       long long int nll = -9223372036854775807LL;
   11794       unsigned long long int ull = 18446744073709551615ULL;
   11795       /* Test constant expressions.   */
   11796       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   11797 		     ? 1 : -1)];
   11798       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   11799 		     ? 1 : -1)];
   11800       int i = 63;
   11801 int
   11802 main ()
   11803 {
   11804 /* Test availability of runtime routines for shift and division.  */
   11805       long long int llmax = 9223372036854775807ll;
   11806       unsigned long long int ullmax = 18446744073709551615ull;
   11807       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   11808 	      | (llmax / ll) | (llmax % ll)
   11809 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   11810 	      | (ullmax / ull) | (ullmax % ull));
   11811   ;
   11812   return 0;
   11813 }
   11814 
   11815 _ACEOF
   11816 rm -f conftest.$ac_objext conftest$ac_exeext
   11817 if { (ac_try="$ac_link"
   11818 case "(($ac_try" in
   11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11820   *) ac_try_echo=$ac_try;;
   11821 esac
   11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11823 $as_echo "$ac_try_echo") >&5
   11824   (eval "$ac_link") 2>conftest.er1
   11825   ac_status=$?
   11826   grep -v '^ *+' conftest.er1 >conftest.err
   11827   rm -f conftest.er1
   11828   cat conftest.err >&5
   11829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11830   (exit $ac_status); } && {
   11831 	 test -z "$ac_c_werror_flag" ||
   11832 	 test ! -s conftest.err
   11833        } && test -s conftest$ac_exeext && {
   11834 	 test "$cross_compiling" = yes ||
   11835 	 $as_test_x conftest$ac_exeext
   11836        }; then
   11837   ac_cv_type_unsigned_long_long_int=yes
   11838 else
   11839   $as_echo "$as_me: failed program was:" >&5
   11840 sed 's/^/| /' conftest.$ac_ext >&5
   11841 
   11842 	ac_cv_type_unsigned_long_long_int=no
   11843 fi
   11844 
   11845 rm -rf conftest.dSYM
   11846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11847       conftest$ac_exeext conftest.$ac_ext
   11848 fi
   11849 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
   11850 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
   11851   if test $ac_cv_type_unsigned_long_long_int = yes; then
   11852 
   11853 cat >>confdefs.h <<\_ACEOF
   11854 #define HAVE_UNSIGNED_LONG_LONG_INT 1
   11855 _ACEOF
   11856 
   11857   fi
   11858 
   11859 
   11860 
   11861 
   11862 
   11863 
   11864 
   11865 
   11866 
   11867 
   11868 
   11869 
   11870 
   11871 
   11872   if test -z "$ERRNO_H"; then
   11873     { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
   11874 $as_echo_n "checking for working strerror function... " >&6; }
   11875 if test "${gl_cv_func_working_strerror+set}" = set; then
   11876   $as_echo_n "(cached) " >&6
   11877 else
   11878   if test "$cross_compiling" = yes; then
   11879            cat >conftest.$ac_ext <<_ACEOF
   11880 /* confdefs.h.  */
   11881 _ACEOF
   11882 cat confdefs.h >>conftest.$ac_ext
   11883 cat >>conftest.$ac_ext <<_ACEOF
   11884 /* end confdefs.h.  */
   11885 #include <string.h>
   11886 
   11887 int
   11888 main ()
   11889 {
   11890 return !*strerror (-2);
   11891   ;
   11892   return 0;
   11893 }
   11894 _ACEOF
   11895 rm -f conftest.$ac_objext
   11896 if { (ac_try="$ac_compile"
   11897 case "(($ac_try" in
   11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11899   *) ac_try_echo=$ac_try;;
   11900 esac
   11901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11902 $as_echo "$ac_try_echo") >&5
   11903   (eval "$ac_compile") 2>conftest.er1
   11904   ac_status=$?
   11905   grep -v '^ *+' conftest.er1 >conftest.err
   11906   rm -f conftest.er1
   11907   cat conftest.err >&5
   11908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11909   (exit $ac_status); } && {
   11910 	 test -z "$ac_c_werror_flag" ||
   11911 	 test ! -s conftest.err
   11912        } && test -s conftest.$ac_objext; then
   11913   gl_cv_func_working_strerror=yes
   11914 else
   11915   $as_echo "$as_me: failed program was:" >&5
   11916 sed 's/^/| /' conftest.$ac_ext >&5
   11917 
   11918 	gl_cv_func_working_strerror=no
   11919 fi
   11920 
   11921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11922 
   11923 else
   11924   cat >conftest.$ac_ext <<_ACEOF
   11925 /* confdefs.h.  */
   11926 _ACEOF
   11927 cat confdefs.h >>conftest.$ac_ext
   11928 cat >>conftest.$ac_ext <<_ACEOF
   11929 /* end confdefs.h.  */
   11930 #include <string.h>
   11931 
   11932 int
   11933 main ()
   11934 {
   11935 return !*strerror (-2);
   11936   ;
   11937   return 0;
   11938 }
   11939 _ACEOF
   11940 rm -f conftest$ac_exeext
   11941 if { (ac_try="$ac_link"
   11942 case "(($ac_try" in
   11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11944   *) ac_try_echo=$ac_try;;
   11945 esac
   11946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11947 $as_echo "$ac_try_echo") >&5
   11948   (eval "$ac_link") 2>&5
   11949   ac_status=$?
   11950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   11952   { (case "(($ac_try" in
   11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11954   *) ac_try_echo=$ac_try;;
   11955 esac
   11956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   11957 $as_echo "$ac_try_echo") >&5
   11958   (eval "$ac_try") 2>&5
   11959   ac_status=$?
   11960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11961   (exit $ac_status); }; }; then
   11962   gl_cv_func_working_strerror=yes
   11963 else
   11964   $as_echo "$as_me: program exited with status $ac_status" >&5
   11965 $as_echo "$as_me: failed program was:" >&5
   11966 sed 's/^/| /' conftest.$ac_ext >&5
   11967 
   11968 ( exit $ac_status )
   11969 gl_cv_func_working_strerror=no
   11970 fi
   11971 rm -rf conftest.dSYM
   11972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11973 fi
   11974 
   11975 
   11976 
   11977 fi
   11978 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
   11979 $as_echo "$gl_cv_func_working_strerror" >&6; }
   11980     if test $gl_cv_func_working_strerror = no; then
   11981                   REPLACE_STRERROR=1
   11982     fi
   11983   else
   11984             REPLACE_STRERROR=1
   11985   fi
   11986   if test $REPLACE_STRERROR = 1; then
   11987 
   11988   { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
   11989 $as_echo_n "checking whether strerror is declared... " >&6; }
   11990 if test "${ac_cv_have_decl_strerror+set}" = set; then
   11991   $as_echo_n "(cached) " >&6
   11992 else
   11993   cat >conftest.$ac_ext <<_ACEOF
   11994 /* confdefs.h.  */
   11995 _ACEOF
   11996 cat confdefs.h >>conftest.$ac_ext
   11997 cat >>conftest.$ac_ext <<_ACEOF
   11998 /* end confdefs.h.  */
   11999 $ac_includes_default
   12000 int
   12001 main ()
   12002 {
   12003 #ifndef strerror
   12004   (void) strerror;
   12005 #endif
   12006 
   12007   ;
   12008   return 0;
   12009 }
   12010 _ACEOF
   12011 rm -f conftest.$ac_objext
   12012 if { (ac_try="$ac_compile"
   12013 case "(($ac_try" in
   12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12015   *) ac_try_echo=$ac_try;;
   12016 esac
   12017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12018 $as_echo "$ac_try_echo") >&5
   12019   (eval "$ac_compile") 2>conftest.er1
   12020   ac_status=$?
   12021   grep -v '^ *+' conftest.er1 >conftest.err
   12022   rm -f conftest.er1
   12023   cat conftest.err >&5
   12024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12025   (exit $ac_status); } && {
   12026 	 test -z "$ac_c_werror_flag" ||
   12027 	 test ! -s conftest.err
   12028        } && test -s conftest.$ac_objext; then
   12029   ac_cv_have_decl_strerror=yes
   12030 else
   12031   $as_echo "$as_me: failed program was:" >&5
   12032 sed 's/^/| /' conftest.$ac_ext >&5
   12033 
   12034 	ac_cv_have_decl_strerror=no
   12035 fi
   12036 
   12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12038 fi
   12039 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
   12040 $as_echo "$ac_cv_have_decl_strerror" >&6; }
   12041 if test "x$ac_cv_have_decl_strerror" = x""yes; then
   12042 
   12043 cat >>confdefs.h <<_ACEOF
   12044 #define HAVE_DECL_STRERROR 1
   12045 _ACEOF
   12046 
   12047 
   12048 else
   12049   cat >>confdefs.h <<_ACEOF
   12050 #define HAVE_DECL_STRERROR 0
   12051 _ACEOF
   12052 
   12053 
   12054 fi
   12055 
   12056 
   12057 
   12058 
   12059 
   12060 
   12061 
   12062 
   12063   if test $ac_cv_header_sys_socket_h != yes; then
   12064 
   12065 for ac_header in winsock2.h
   12066 do
   12067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12069   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   12070 $as_echo_n "checking for $ac_header... " >&6; }
   12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12072   $as_echo_n "(cached) " >&6
   12073 fi
   12074 ac_res=`eval 'as_val=${'$as_ac_Header'}
   12075 		 $as_echo "$as_val"'`
   12076 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   12077 $as_echo "$ac_res" >&6; }
   12078 else
   12079   # Is the header compilable?
   12080 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   12081 $as_echo_n "checking $ac_header usability... " >&6; }
   12082 cat >conftest.$ac_ext <<_ACEOF
   12083 /* confdefs.h.  */
   12084 _ACEOF
   12085 cat confdefs.h >>conftest.$ac_ext
   12086 cat >>conftest.$ac_ext <<_ACEOF
   12087 /* end confdefs.h.  */
   12088 $ac_includes_default
   12089 #include <$ac_header>
   12090 _ACEOF
   12091 rm -f conftest.$ac_objext
   12092 if { (ac_try="$ac_compile"
   12093 case "(($ac_try" in
   12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12095   *) ac_try_echo=$ac_try;;
   12096 esac
   12097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12098 $as_echo "$ac_try_echo") >&5
   12099   (eval "$ac_compile") 2>conftest.er1
   12100   ac_status=$?
   12101   grep -v '^ *+' conftest.er1 >conftest.err
   12102   rm -f conftest.er1
   12103   cat conftest.err >&5
   12104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12105   (exit $ac_status); } && {
   12106 	 test -z "$ac_c_werror_flag" ||
   12107 	 test ! -s conftest.err
   12108        } && test -s conftest.$ac_objext; then
   12109   ac_header_compiler=yes
   12110 else
   12111   $as_echo "$as_me: failed program was:" >&5
   12112 sed 's/^/| /' conftest.$ac_ext >&5
   12113 
   12114 	ac_header_compiler=no
   12115 fi
   12116 
   12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12118 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12119 $as_echo "$ac_header_compiler" >&6; }
   12120 
   12121 # Is the header present?
   12122 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   12123 $as_echo_n "checking $ac_header presence... " >&6; }
   12124 cat >conftest.$ac_ext <<_ACEOF
   12125 /* confdefs.h.  */
   12126 _ACEOF
   12127 cat confdefs.h >>conftest.$ac_ext
   12128 cat >>conftest.$ac_ext <<_ACEOF
   12129 /* end confdefs.h.  */
   12130 #include <$ac_header>
   12131 _ACEOF
   12132 if { (ac_try="$ac_cpp conftest.$ac_ext"
   12133 case "(($ac_try" in
   12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12135   *) ac_try_echo=$ac_try;;
   12136 esac
   12137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12138 $as_echo "$ac_try_echo") >&5
   12139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   12140   ac_status=$?
   12141   grep -v '^ *+' conftest.er1 >conftest.err
   12142   rm -f conftest.er1
   12143   cat conftest.err >&5
   12144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12145   (exit $ac_status); } >/dev/null && {
   12146 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   12147 	 test ! -s conftest.err
   12148        }; then
   12149   ac_header_preproc=yes
   12150 else
   12151   $as_echo "$as_me: failed program was:" >&5
   12152 sed 's/^/| /' conftest.$ac_ext >&5
   12153 
   12154   ac_header_preproc=no
   12155 fi
   12156 
   12157 rm -f conftest.err conftest.$ac_ext
   12158 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12159 $as_echo "$ac_header_preproc" >&6; }
   12160 
   12161 # So?  What about this header?
   12162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   12163   yes:no: )
   12164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   12165 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   12167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   12168     ac_header_preproc=yes
   12169     ;;
   12170   no:yes:* )
   12171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   12172 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   12173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   12174 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   12175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   12176 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   12177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   12178 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   12179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   12181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   12182 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   12183     ( cat <<\_ASBOX
   12184 ## ------------------------------------ ##
   12185 ## Report this to bug-gnu-utils (at] gnu.org ##
   12186 ## ------------------------------------ ##
   12187 _ASBOX
   12188      ) | sed "s/^/$as_me: WARNING:     /" >&2
   12189     ;;
   12190 esac
   12191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   12192 $as_echo_n "checking for $ac_header... " >&6; }
   12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12194   $as_echo_n "(cached) " >&6
   12195 else
   12196   eval "$as_ac_Header=\$ac_header_preproc"
   12197 fi
   12198 ac_res=`eval 'as_val=${'$as_ac_Header'}
   12199 		 $as_echo "$as_val"'`
   12200 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   12201 $as_echo "$ac_res" >&6; }
   12202 
   12203 fi
   12204 as_val=`eval 'as_val=${'$as_ac_Header'}
   12205 		 $as_echo "$as_val"'`
   12206    if test "x$as_val" = x""yes; then
   12207   cat >>confdefs.h <<_ACEOF
   12208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12209 _ACEOF
   12210 
   12211 fi
   12212 
   12213 done
   12214 
   12215   fi
   12216 
   12217   fi
   12218 
   12219 
   12220 
   12221 
   12222 
   12223 
   12224 
   12225 
   12226 
   12227 
   12228 
   12229 
   12230 
   12231 
   12232 
   12233 
   12234 
   12235      if test $gl_cv_have_include_next = yes; then
   12236        gl_cv_next_string_h='<'string.h'>'
   12237      else
   12238        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
   12239 $as_echo_n "checking absolute name of <string.h>... " >&6; }
   12240 if test "${gl_cv_next_string_h+set}" = set; then
   12241   $as_echo_n "(cached) " >&6
   12242 else
   12243 
   12244 	  if test $ac_cv_header_string_h = yes; then
   12245 	    cat >conftest.$ac_ext <<_ACEOF
   12246 /* confdefs.h.  */
   12247 _ACEOF
   12248 cat confdefs.h >>conftest.$ac_ext
   12249 cat >>conftest.$ac_ext <<_ACEOF
   12250 /* end confdefs.h.  */
   12251 #include <string.h>
   12252 
   12253 _ACEOF
   12254 	    	    	    	    	    	    	    	    case "$host_os" in
   12255 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   12256 	      *)    gl_absname_cpp="$ac_cpp" ;;
   12257 	    esac
   12258 	    	    	    	    gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   12259 	       sed -n '\#/string.h#{
   12260 		 s#.*"\(.*/string.h\)".*#\1#
   12261 		 s#^/[^/]#//&#
   12262 		 p
   12263 		 q
   12264 	       }'`'"'
   12265 	  else
   12266 	    gl_cv_next_string_h='<'string.h'>'
   12267 	  fi
   12268 
   12269 fi
   12270 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
   12271 $as_echo "$gl_cv_next_string_h" >&6; }
   12272      fi
   12273      NEXT_STRING_H=$gl_cv_next_string_h
   12274 
   12275      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   12276        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   12277        gl_next_as_first_directive='<'string.h'>'
   12278      else
   12279        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   12280        gl_next_as_first_directive=$gl_cv_next_string_h
   12281      fi
   12282      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
   12283 
   12284 
   12285 
   12286 
   12287 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
   12288 $as_echo_n "checking whether strndup is declared... " >&6; }
   12289 if test "${ac_cv_have_decl_strndup+set}" = set; then
   12290   $as_echo_n "(cached) " >&6
   12291 else
   12292   cat >conftest.$ac_ext <<_ACEOF
   12293 /* confdefs.h.  */
   12294 _ACEOF
   12295 cat confdefs.h >>conftest.$ac_ext
   12296 cat >>conftest.$ac_ext <<_ACEOF
   12297 /* end confdefs.h.  */
   12298 $ac_includes_default
   12299 int
   12300 main ()
   12301 {
   12302 #ifndef strndup
   12303   (void) strndup;
   12304 #endif
   12305 
   12306   ;
   12307   return 0;
   12308 }
   12309 _ACEOF
   12310 rm -f conftest.$ac_objext
   12311 if { (ac_try="$ac_compile"
   12312 case "(($ac_try" in
   12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12314   *) ac_try_echo=$ac_try;;
   12315 esac
   12316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12317 $as_echo "$ac_try_echo") >&5
   12318   (eval "$ac_compile") 2>conftest.er1
   12319   ac_status=$?
   12320   grep -v '^ *+' conftest.er1 >conftest.err
   12321   rm -f conftest.er1
   12322   cat conftest.err >&5
   12323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12324   (exit $ac_status); } && {
   12325 	 test -z "$ac_c_werror_flag" ||
   12326 	 test ! -s conftest.err
   12327        } && test -s conftest.$ac_objext; then
   12328   ac_cv_have_decl_strndup=yes
   12329 else
   12330   $as_echo "$as_me: failed program was:" >&5
   12331 sed 's/^/| /' conftest.$ac_ext >&5
   12332 
   12333 	ac_cv_have_decl_strndup=no
   12334 fi
   12335 
   12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12337 fi
   12338 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
   12339 $as_echo "$ac_cv_have_decl_strndup" >&6; }
   12340 if test "x$ac_cv_have_decl_strndup" = x""yes; then
   12341 
   12342 cat >>confdefs.h <<_ACEOF
   12343 #define HAVE_DECL_STRNDUP 1
   12344 _ACEOF
   12345 
   12346 
   12347 else
   12348   cat >>confdefs.h <<_ACEOF
   12349 #define HAVE_DECL_STRNDUP 0
   12350 _ACEOF
   12351 
   12352 
   12353 fi
   12354 
   12355 
   12356 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
   12357 $as_echo_n "checking whether strnlen is declared... " >&6; }
   12358 if test "${ac_cv_have_decl_strnlen+set}" = set; then
   12359   $as_echo_n "(cached) " >&6
   12360 else
   12361   cat >conftest.$ac_ext <<_ACEOF
   12362 /* confdefs.h.  */
   12363 _ACEOF
   12364 cat confdefs.h >>conftest.$ac_ext
   12365 cat >>conftest.$ac_ext <<_ACEOF
   12366 /* end confdefs.h.  */
   12367 $ac_includes_default
   12368 int
   12369 main ()
   12370 {
   12371 #ifndef strnlen
   12372   (void) strnlen;
   12373 #endif
   12374 
   12375   ;
   12376   return 0;
   12377 }
   12378 _ACEOF
   12379 rm -f conftest.$ac_objext
   12380 if { (ac_try="$ac_compile"
   12381 case "(($ac_try" in
   12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12383   *) ac_try_echo=$ac_try;;
   12384 esac
   12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12386 $as_echo "$ac_try_echo") >&5
   12387   (eval "$ac_compile") 2>conftest.er1
   12388   ac_status=$?
   12389   grep -v '^ *+' conftest.er1 >conftest.err
   12390   rm -f conftest.er1
   12391   cat conftest.err >&5
   12392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12393   (exit $ac_status); } && {
   12394 	 test -z "$ac_c_werror_flag" ||
   12395 	 test ! -s conftest.err
   12396        } && test -s conftest.$ac_objext; then
   12397   ac_cv_have_decl_strnlen=yes
   12398 else
   12399   $as_echo "$as_me: failed program was:" >&5
   12400 sed 's/^/| /' conftest.$ac_ext >&5
   12401 
   12402 	ac_cv_have_decl_strnlen=no
   12403 fi
   12404 
   12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12406 fi
   12407 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
   12408 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
   12409 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
   12410 
   12411 cat >>confdefs.h <<_ACEOF
   12412 #define HAVE_DECL_STRNLEN 1
   12413 _ACEOF
   12414 
   12415 
   12416 else
   12417   cat >>confdefs.h <<_ACEOF
   12418 #define HAVE_DECL_STRNLEN 0
   12419 _ACEOF
   12420 
   12421 
   12422 fi
   12423 
   12424 
   12425 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   12426 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
   12427 if test "${ac_cv_header_stat_broken+set}" = set; then
   12428   $as_echo_n "(cached) " >&6
   12429 else
   12430   cat >conftest.$ac_ext <<_ACEOF
   12431 /* confdefs.h.  */
   12432 _ACEOF
   12433 cat confdefs.h >>conftest.$ac_ext
   12434 cat >>conftest.$ac_ext <<_ACEOF
   12435 /* end confdefs.h.  */
   12436 #include <sys/types.h>
   12437 #include <sys/stat.h>
   12438 
   12439 #if defined S_ISBLK && defined S_IFDIR
   12440 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
   12441 #endif
   12442 
   12443 #if defined S_ISBLK && defined S_IFCHR
   12444 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
   12445 #endif
   12446 
   12447 #if defined S_ISLNK && defined S_IFREG
   12448 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
   12449 #endif
   12450 
   12451 #if defined S_ISSOCK && defined S_IFREG
   12452 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
   12453 #endif
   12454 
   12455 _ACEOF
   12456 rm -f conftest.$ac_objext
   12457 if { (ac_try="$ac_compile"
   12458 case "(($ac_try" in
   12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12460   *) ac_try_echo=$ac_try;;
   12461 esac
   12462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12463 $as_echo "$ac_try_echo") >&5
   12464   (eval "$ac_compile") 2>conftest.er1
   12465   ac_status=$?
   12466   grep -v '^ *+' conftest.er1 >conftest.err
   12467   rm -f conftest.er1
   12468   cat conftest.err >&5
   12469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12470   (exit $ac_status); } && {
   12471 	 test -z "$ac_c_werror_flag" ||
   12472 	 test ! -s conftest.err
   12473        } && test -s conftest.$ac_objext; then
   12474   ac_cv_header_stat_broken=no
   12475 else
   12476   $as_echo "$as_me: failed program was:" >&5
   12477 sed 's/^/| /' conftest.$ac_ext >&5
   12478 
   12479 	ac_cv_header_stat_broken=yes
   12480 fi
   12481 
   12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12483 fi
   12484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   12485 $as_echo "$ac_cv_header_stat_broken" >&6; }
   12486 if test $ac_cv_header_stat_broken = yes; then
   12487 
   12488 cat >>confdefs.h <<\_ACEOF
   12489 #define STAT_MACROS_BROKEN 1
   12490 _ACEOF
   12491 
   12492 fi
   12493 
   12494 
   12495 
   12496 
   12497 
   12498 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
   12499 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
   12500 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
   12501   $as_echo_n "(cached) " >&6
   12502 else
   12503   cat >conftest.$ac_ext <<_ACEOF
   12504 /* confdefs.h.  */
   12505 _ACEOF
   12506 cat confdefs.h >>conftest.$ac_ext
   12507 cat >>conftest.$ac_ext <<_ACEOF
   12508 /* end confdefs.h.  */
   12509 $ac_includes_default
   12510 int
   12511 main ()
   12512 {
   12513 #ifndef clearerr_unlocked
   12514   (void) clearerr_unlocked;
   12515 #endif
   12516 
   12517   ;
   12518   return 0;
   12519 }
   12520 _ACEOF
   12521 rm -f conftest.$ac_objext
   12522 if { (ac_try="$ac_compile"
   12523 case "(($ac_try" in
   12524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12525   *) ac_try_echo=$ac_try;;
   12526 esac
   12527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12528 $as_echo "$ac_try_echo") >&5
   12529   (eval "$ac_compile") 2>conftest.er1
   12530   ac_status=$?
   12531   grep -v '^ *+' conftest.er1 >conftest.err
   12532   rm -f conftest.er1
   12533   cat conftest.err >&5
   12534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12535   (exit $ac_status); } && {
   12536 	 test -z "$ac_c_werror_flag" ||
   12537 	 test ! -s conftest.err
   12538        } && test -s conftest.$ac_objext; then
   12539   ac_cv_have_decl_clearerr_unlocked=yes
   12540 else
   12541   $as_echo "$as_me: failed program was:" >&5
   12542 sed 's/^/| /' conftest.$ac_ext >&5
   12543 
   12544 	ac_cv_have_decl_clearerr_unlocked=no
   12545 fi
   12546 
   12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12548 fi
   12549 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
   12550 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
   12551 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
   12552 
   12553 cat >>confdefs.h <<_ACEOF
   12554 #define HAVE_DECL_CLEARERR_UNLOCKED 1
   12555 _ACEOF
   12556 
   12557 
   12558 else
   12559   cat >>confdefs.h <<_ACEOF
   12560 #define HAVE_DECL_CLEARERR_UNLOCKED 0
   12561 _ACEOF
   12562 
   12563 
   12564 fi
   12565 
   12566 
   12567 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
   12568 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
   12569 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
   12570   $as_echo_n "(cached) " >&6
   12571 else
   12572   cat >conftest.$ac_ext <<_ACEOF
   12573 /* confdefs.h.  */
   12574 _ACEOF
   12575 cat confdefs.h >>conftest.$ac_ext
   12576 cat >>conftest.$ac_ext <<_ACEOF
   12577 /* end confdefs.h.  */
   12578 $ac_includes_default
   12579 int
   12580 main ()
   12581 {
   12582 #ifndef feof_unlocked
   12583   (void) feof_unlocked;
   12584 #endif
   12585 
   12586   ;
   12587   return 0;
   12588 }
   12589 _ACEOF
   12590 rm -f conftest.$ac_objext
   12591 if { (ac_try="$ac_compile"
   12592 case "(($ac_try" in
   12593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12594   *) ac_try_echo=$ac_try;;
   12595 esac
   12596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12597 $as_echo "$ac_try_echo") >&5
   12598   (eval "$ac_compile") 2>conftest.er1
   12599   ac_status=$?
   12600   grep -v '^ *+' conftest.er1 >conftest.err
   12601   rm -f conftest.er1
   12602   cat conftest.err >&5
   12603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12604   (exit $ac_status); } && {
   12605 	 test -z "$ac_c_werror_flag" ||
   12606 	 test ! -s conftest.err
   12607        } && test -s conftest.$ac_objext; then
   12608   ac_cv_have_decl_feof_unlocked=yes
   12609 else
   12610   $as_echo "$as_me: failed program was:" >&5
   12611 sed 's/^/| /' conftest.$ac_ext >&5
   12612 
   12613 	ac_cv_have_decl_feof_unlocked=no
   12614 fi
   12615 
   12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12617 fi
   12618 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
   12619 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
   12620 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
   12621 
   12622 cat >>confdefs.h <<_ACEOF
   12623 #define HAVE_DECL_FEOF_UNLOCKED 1
   12624 _ACEOF
   12625 
   12626 
   12627 else
   12628   cat >>confdefs.h <<_ACEOF
   12629 #define HAVE_DECL_FEOF_UNLOCKED 0
   12630 _ACEOF
   12631 
   12632 
   12633 fi
   12634 
   12635 
   12636 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
   12637 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
   12638 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
   12639   $as_echo_n "(cached) " >&6
   12640 else
   12641   cat >conftest.$ac_ext <<_ACEOF
   12642 /* confdefs.h.  */
   12643 _ACEOF
   12644 cat confdefs.h >>conftest.$ac_ext
   12645 cat >>conftest.$ac_ext <<_ACEOF
   12646 /* end confdefs.h.  */
   12647 $ac_includes_default
   12648 int
   12649 main ()
   12650 {
   12651 #ifndef ferror_unlocked
   12652   (void) ferror_unlocked;
   12653 #endif
   12654 
   12655   ;
   12656   return 0;
   12657 }
   12658 _ACEOF
   12659 rm -f conftest.$ac_objext
   12660 if { (ac_try="$ac_compile"
   12661 case "(($ac_try" in
   12662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12663   *) ac_try_echo=$ac_try;;
   12664 esac
   12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12666 $as_echo "$ac_try_echo") >&5
   12667   (eval "$ac_compile") 2>conftest.er1
   12668   ac_status=$?
   12669   grep -v '^ *+' conftest.er1 >conftest.err
   12670   rm -f conftest.er1
   12671   cat conftest.err >&5
   12672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12673   (exit $ac_status); } && {
   12674 	 test -z "$ac_c_werror_flag" ||
   12675 	 test ! -s conftest.err
   12676        } && test -s conftest.$ac_objext; then
   12677   ac_cv_have_decl_ferror_unlocked=yes
   12678 else
   12679   $as_echo "$as_me: failed program was:" >&5
   12680 sed 's/^/| /' conftest.$ac_ext >&5
   12681 
   12682 	ac_cv_have_decl_ferror_unlocked=no
   12683 fi
   12684 
   12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12686 fi
   12687 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
   12688 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
   12689 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
   12690 
   12691 cat >>confdefs.h <<_ACEOF
   12692 #define HAVE_DECL_FERROR_UNLOCKED 1
   12693 _ACEOF
   12694 
   12695 
   12696 else
   12697   cat >>confdefs.h <<_ACEOF
   12698 #define HAVE_DECL_FERROR_UNLOCKED 0
   12699 _ACEOF
   12700 
   12701 
   12702 fi
   12703 
   12704 
   12705 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
   12706 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
   12707 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
   12708   $as_echo_n "(cached) " >&6
   12709 else
   12710   cat >conftest.$ac_ext <<_ACEOF
   12711 /* confdefs.h.  */
   12712 _ACEOF
   12713 cat confdefs.h >>conftest.$ac_ext
   12714 cat >>conftest.$ac_ext <<_ACEOF
   12715 /* end confdefs.h.  */
   12716 $ac_includes_default
   12717 int
   12718 main ()
   12719 {
   12720 #ifndef fflush_unlocked
   12721   (void) fflush_unlocked;
   12722 #endif
   12723 
   12724   ;
   12725   return 0;
   12726 }
   12727 _ACEOF
   12728 rm -f conftest.$ac_objext
   12729 if { (ac_try="$ac_compile"
   12730 case "(($ac_try" in
   12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12732   *) ac_try_echo=$ac_try;;
   12733 esac
   12734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12735 $as_echo "$ac_try_echo") >&5
   12736   (eval "$ac_compile") 2>conftest.er1
   12737   ac_status=$?
   12738   grep -v '^ *+' conftest.er1 >conftest.err
   12739   rm -f conftest.er1
   12740   cat conftest.err >&5
   12741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12742   (exit $ac_status); } && {
   12743 	 test -z "$ac_c_werror_flag" ||
   12744 	 test ! -s conftest.err
   12745        } && test -s conftest.$ac_objext; then
   12746   ac_cv_have_decl_fflush_unlocked=yes
   12747 else
   12748   $as_echo "$as_me: failed program was:" >&5
   12749 sed 's/^/| /' conftest.$ac_ext >&5
   12750 
   12751 	ac_cv_have_decl_fflush_unlocked=no
   12752 fi
   12753 
   12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12755 fi
   12756 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
   12757 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
   12758 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
   12759 
   12760 cat >>confdefs.h <<_ACEOF
   12761 #define HAVE_DECL_FFLUSH_UNLOCKED 1
   12762 _ACEOF
   12763 
   12764 
   12765 else
   12766   cat >>confdefs.h <<_ACEOF
   12767 #define HAVE_DECL_FFLUSH_UNLOCKED 0
   12768 _ACEOF
   12769 
   12770 
   12771 fi
   12772 
   12773 
   12774 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
   12775 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
   12776 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
   12777   $as_echo_n "(cached) " >&6
   12778 else
   12779   cat >conftest.$ac_ext <<_ACEOF
   12780 /* confdefs.h.  */
   12781 _ACEOF
   12782 cat confdefs.h >>conftest.$ac_ext
   12783 cat >>conftest.$ac_ext <<_ACEOF
   12784 /* end confdefs.h.  */
   12785 $ac_includes_default
   12786 int
   12787 main ()
   12788 {
   12789 #ifndef fgets_unlocked
   12790   (void) fgets_unlocked;
   12791 #endif
   12792 
   12793   ;
   12794   return 0;
   12795 }
   12796 _ACEOF
   12797 rm -f conftest.$ac_objext
   12798 if { (ac_try="$ac_compile"
   12799 case "(($ac_try" in
   12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12801   *) ac_try_echo=$ac_try;;
   12802 esac
   12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12804 $as_echo "$ac_try_echo") >&5
   12805   (eval "$ac_compile") 2>conftest.er1
   12806   ac_status=$?
   12807   grep -v '^ *+' conftest.er1 >conftest.err
   12808   rm -f conftest.er1
   12809   cat conftest.err >&5
   12810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12811   (exit $ac_status); } && {
   12812 	 test -z "$ac_c_werror_flag" ||
   12813 	 test ! -s conftest.err
   12814        } && test -s conftest.$ac_objext; then
   12815   ac_cv_have_decl_fgets_unlocked=yes
   12816 else
   12817   $as_echo "$as_me: failed program was:" >&5
   12818 sed 's/^/| /' conftest.$ac_ext >&5
   12819 
   12820 	ac_cv_have_decl_fgets_unlocked=no
   12821 fi
   12822 
   12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12824 fi
   12825 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
   12826 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
   12827 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
   12828 
   12829 cat >>confdefs.h <<_ACEOF
   12830 #define HAVE_DECL_FGETS_UNLOCKED 1
   12831 _ACEOF
   12832 
   12833 
   12834 else
   12835   cat >>confdefs.h <<_ACEOF
   12836 #define HAVE_DECL_FGETS_UNLOCKED 0
   12837 _ACEOF
   12838 
   12839 
   12840 fi
   12841 
   12842 
   12843 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
   12844 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
   12845 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
   12846   $as_echo_n "(cached) " >&6
   12847 else
   12848   cat >conftest.$ac_ext <<_ACEOF
   12849 /* confdefs.h.  */
   12850 _ACEOF
   12851 cat confdefs.h >>conftest.$ac_ext
   12852 cat >>conftest.$ac_ext <<_ACEOF
   12853 /* end confdefs.h.  */
   12854 $ac_includes_default
   12855 int
   12856 main ()
   12857 {
   12858 #ifndef fputc_unlocked
   12859   (void) fputc_unlocked;
   12860 #endif
   12861 
   12862   ;
   12863   return 0;
   12864 }
   12865 _ACEOF
   12866 rm -f conftest.$ac_objext
   12867 if { (ac_try="$ac_compile"
   12868 case "(($ac_try" in
   12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12870   *) ac_try_echo=$ac_try;;
   12871 esac
   12872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12873 $as_echo "$ac_try_echo") >&5
   12874   (eval "$ac_compile") 2>conftest.er1
   12875   ac_status=$?
   12876   grep -v '^ *+' conftest.er1 >conftest.err
   12877   rm -f conftest.er1
   12878   cat conftest.err >&5
   12879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12880   (exit $ac_status); } && {
   12881 	 test -z "$ac_c_werror_flag" ||
   12882 	 test ! -s conftest.err
   12883        } && test -s conftest.$ac_objext; then
   12884   ac_cv_have_decl_fputc_unlocked=yes
   12885 else
   12886   $as_echo "$as_me: failed program was:" >&5
   12887 sed 's/^/| /' conftest.$ac_ext >&5
   12888 
   12889 	ac_cv_have_decl_fputc_unlocked=no
   12890 fi
   12891 
   12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12893 fi
   12894 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
   12895 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
   12896 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
   12897 
   12898 cat >>confdefs.h <<_ACEOF
   12899 #define HAVE_DECL_FPUTC_UNLOCKED 1
   12900 _ACEOF
   12901 
   12902 
   12903 else
   12904   cat >>confdefs.h <<_ACEOF
   12905 #define HAVE_DECL_FPUTC_UNLOCKED 0
   12906 _ACEOF
   12907 
   12908 
   12909 fi
   12910 
   12911 
   12912 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
   12913 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
   12914 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
   12915   $as_echo_n "(cached) " >&6
   12916 else
   12917   cat >conftest.$ac_ext <<_ACEOF
   12918 /* confdefs.h.  */
   12919 _ACEOF
   12920 cat confdefs.h >>conftest.$ac_ext
   12921 cat >>conftest.$ac_ext <<_ACEOF
   12922 /* end confdefs.h.  */
   12923 $ac_includes_default
   12924 int
   12925 main ()
   12926 {
   12927 #ifndef fputs_unlocked
   12928   (void) fputs_unlocked;
   12929 #endif
   12930 
   12931   ;
   12932   return 0;
   12933 }
   12934 _ACEOF
   12935 rm -f conftest.$ac_objext
   12936 if { (ac_try="$ac_compile"
   12937 case "(($ac_try" in
   12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12939   *) ac_try_echo=$ac_try;;
   12940 esac
   12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   12942 $as_echo "$ac_try_echo") >&5
   12943   (eval "$ac_compile") 2>conftest.er1
   12944   ac_status=$?
   12945   grep -v '^ *+' conftest.er1 >conftest.err
   12946   rm -f conftest.er1
   12947   cat conftest.err >&5
   12948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12949   (exit $ac_status); } && {
   12950 	 test -z "$ac_c_werror_flag" ||
   12951 	 test ! -s conftest.err
   12952        } && test -s conftest.$ac_objext; then
   12953   ac_cv_have_decl_fputs_unlocked=yes
   12954 else
   12955   $as_echo "$as_me: failed program was:" >&5
   12956 sed 's/^/| /' conftest.$ac_ext >&5
   12957 
   12958 	ac_cv_have_decl_fputs_unlocked=no
   12959 fi
   12960 
   12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12962 fi
   12963 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
   12964 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
   12965 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
   12966 
   12967 cat >>confdefs.h <<_ACEOF
   12968 #define HAVE_DECL_FPUTS_UNLOCKED 1
   12969 _ACEOF
   12970 
   12971 
   12972 else
   12973   cat >>confdefs.h <<_ACEOF
   12974 #define HAVE_DECL_FPUTS_UNLOCKED 0
   12975 _ACEOF
   12976 
   12977 
   12978 fi
   12979 
   12980 
   12981 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
   12982 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
   12983 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
   12984   $as_echo_n "(cached) " >&6
   12985 else
   12986   cat >conftest.$ac_ext <<_ACEOF
   12987 /* confdefs.h.  */
   12988 _ACEOF
   12989 cat confdefs.h >>conftest.$ac_ext
   12990 cat >>conftest.$ac_ext <<_ACEOF
   12991 /* end confdefs.h.  */
   12992 $ac_includes_default
   12993 int
   12994 main ()
   12995 {
   12996 #ifndef fread_unlocked
   12997   (void) fread_unlocked;
   12998 #endif
   12999 
   13000   ;
   13001   return 0;
   13002 }
   13003 _ACEOF
   13004 rm -f conftest.$ac_objext
   13005 if { (ac_try="$ac_compile"
   13006 case "(($ac_try" in
   13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13008   *) ac_try_echo=$ac_try;;
   13009 esac
   13010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13011 $as_echo "$ac_try_echo") >&5
   13012   (eval "$ac_compile") 2>conftest.er1
   13013   ac_status=$?
   13014   grep -v '^ *+' conftest.er1 >conftest.err
   13015   rm -f conftest.er1
   13016   cat conftest.err >&5
   13017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13018   (exit $ac_status); } && {
   13019 	 test -z "$ac_c_werror_flag" ||
   13020 	 test ! -s conftest.err
   13021        } && test -s conftest.$ac_objext; then
   13022   ac_cv_have_decl_fread_unlocked=yes
   13023 else
   13024   $as_echo "$as_me: failed program was:" >&5
   13025 sed 's/^/| /' conftest.$ac_ext >&5
   13026 
   13027 	ac_cv_have_decl_fread_unlocked=no
   13028 fi
   13029 
   13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13031 fi
   13032 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
   13033 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
   13034 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
   13035 
   13036 cat >>confdefs.h <<_ACEOF
   13037 #define HAVE_DECL_FREAD_UNLOCKED 1
   13038 _ACEOF
   13039 
   13040 
   13041 else
   13042   cat >>confdefs.h <<_ACEOF
   13043 #define HAVE_DECL_FREAD_UNLOCKED 0
   13044 _ACEOF
   13045 
   13046 
   13047 fi
   13048 
   13049 
   13050 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
   13051 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
   13052 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
   13053   $as_echo_n "(cached) " >&6
   13054 else
   13055   cat >conftest.$ac_ext <<_ACEOF
   13056 /* confdefs.h.  */
   13057 _ACEOF
   13058 cat confdefs.h >>conftest.$ac_ext
   13059 cat >>conftest.$ac_ext <<_ACEOF
   13060 /* end confdefs.h.  */
   13061 $ac_includes_default
   13062 int
   13063 main ()
   13064 {
   13065 #ifndef fwrite_unlocked
   13066   (void) fwrite_unlocked;
   13067 #endif
   13068 
   13069   ;
   13070   return 0;
   13071 }
   13072 _ACEOF
   13073 rm -f conftest.$ac_objext
   13074 if { (ac_try="$ac_compile"
   13075 case "(($ac_try" in
   13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13077   *) ac_try_echo=$ac_try;;
   13078 esac
   13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13080 $as_echo "$ac_try_echo") >&5
   13081   (eval "$ac_compile") 2>conftest.er1
   13082   ac_status=$?
   13083   grep -v '^ *+' conftest.er1 >conftest.err
   13084   rm -f conftest.er1
   13085   cat conftest.err >&5
   13086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13087   (exit $ac_status); } && {
   13088 	 test -z "$ac_c_werror_flag" ||
   13089 	 test ! -s conftest.err
   13090        } && test -s conftest.$ac_objext; then
   13091   ac_cv_have_decl_fwrite_unlocked=yes
   13092 else
   13093   $as_echo "$as_me: failed program was:" >&5
   13094 sed 's/^/| /' conftest.$ac_ext >&5
   13095 
   13096 	ac_cv_have_decl_fwrite_unlocked=no
   13097 fi
   13098 
   13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13100 fi
   13101 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
   13102 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
   13103 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
   13104 
   13105 cat >>confdefs.h <<_ACEOF
   13106 #define HAVE_DECL_FWRITE_UNLOCKED 1
   13107 _ACEOF
   13108 
   13109 
   13110 else
   13111   cat >>confdefs.h <<_ACEOF
   13112 #define HAVE_DECL_FWRITE_UNLOCKED 0
   13113 _ACEOF
   13114 
   13115 
   13116 fi
   13117 
   13118 
   13119 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
   13120 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
   13121 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
   13122   $as_echo_n "(cached) " >&6
   13123 else
   13124   cat >conftest.$ac_ext <<_ACEOF
   13125 /* confdefs.h.  */
   13126 _ACEOF
   13127 cat confdefs.h >>conftest.$ac_ext
   13128 cat >>conftest.$ac_ext <<_ACEOF
   13129 /* end confdefs.h.  */
   13130 $ac_includes_default
   13131 int
   13132 main ()
   13133 {
   13134 #ifndef getchar_unlocked
   13135   (void) getchar_unlocked;
   13136 #endif
   13137 
   13138   ;
   13139   return 0;
   13140 }
   13141 _ACEOF
   13142 rm -f conftest.$ac_objext
   13143 if { (ac_try="$ac_compile"
   13144 case "(($ac_try" in
   13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13146   *) ac_try_echo=$ac_try;;
   13147 esac
   13148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13149 $as_echo "$ac_try_echo") >&5
   13150   (eval "$ac_compile") 2>conftest.er1
   13151   ac_status=$?
   13152   grep -v '^ *+' conftest.er1 >conftest.err
   13153   rm -f conftest.er1
   13154   cat conftest.err >&5
   13155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13156   (exit $ac_status); } && {
   13157 	 test -z "$ac_c_werror_flag" ||
   13158 	 test ! -s conftest.err
   13159        } && test -s conftest.$ac_objext; then
   13160   ac_cv_have_decl_getchar_unlocked=yes
   13161 else
   13162   $as_echo "$as_me: failed program was:" >&5
   13163 sed 's/^/| /' conftest.$ac_ext >&5
   13164 
   13165 	ac_cv_have_decl_getchar_unlocked=no
   13166 fi
   13167 
   13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13169 fi
   13170 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
   13171 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
   13172 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
   13173 
   13174 cat >>confdefs.h <<_ACEOF
   13175 #define HAVE_DECL_GETCHAR_UNLOCKED 1
   13176 _ACEOF
   13177 
   13178 
   13179 else
   13180   cat >>confdefs.h <<_ACEOF
   13181 #define HAVE_DECL_GETCHAR_UNLOCKED 0
   13182 _ACEOF
   13183 
   13184 
   13185 fi
   13186 
   13187 
   13188 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
   13189 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
   13190 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
   13191   $as_echo_n "(cached) " >&6
   13192 else
   13193   cat >conftest.$ac_ext <<_ACEOF
   13194 /* confdefs.h.  */
   13195 _ACEOF
   13196 cat confdefs.h >>conftest.$ac_ext
   13197 cat >>conftest.$ac_ext <<_ACEOF
   13198 /* end confdefs.h.  */
   13199 $ac_includes_default
   13200 int
   13201 main ()
   13202 {
   13203 #ifndef putc_unlocked
   13204   (void) putc_unlocked;
   13205 #endif
   13206 
   13207   ;
   13208   return 0;
   13209 }
   13210 _ACEOF
   13211 rm -f conftest.$ac_objext
   13212 if { (ac_try="$ac_compile"
   13213 case "(($ac_try" in
   13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13215   *) ac_try_echo=$ac_try;;
   13216 esac
   13217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13218 $as_echo "$ac_try_echo") >&5
   13219   (eval "$ac_compile") 2>conftest.er1
   13220   ac_status=$?
   13221   grep -v '^ *+' conftest.er1 >conftest.err
   13222   rm -f conftest.er1
   13223   cat conftest.err >&5
   13224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13225   (exit $ac_status); } && {
   13226 	 test -z "$ac_c_werror_flag" ||
   13227 	 test ! -s conftest.err
   13228        } && test -s conftest.$ac_objext; then
   13229   ac_cv_have_decl_putc_unlocked=yes
   13230 else
   13231   $as_echo "$as_me: failed program was:" >&5
   13232 sed 's/^/| /' conftest.$ac_ext >&5
   13233 
   13234 	ac_cv_have_decl_putc_unlocked=no
   13235 fi
   13236 
   13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13238 fi
   13239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
   13240 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
   13241 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
   13242 
   13243 cat >>confdefs.h <<_ACEOF
   13244 #define HAVE_DECL_PUTC_UNLOCKED 1
   13245 _ACEOF
   13246 
   13247 
   13248 else
   13249   cat >>confdefs.h <<_ACEOF
   13250 #define HAVE_DECL_PUTC_UNLOCKED 0
   13251 _ACEOF
   13252 
   13253 
   13254 fi
   13255 
   13256 
   13257 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
   13258 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
   13259 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
   13260   $as_echo_n "(cached) " >&6
   13261 else
   13262   cat >conftest.$ac_ext <<_ACEOF
   13263 /* confdefs.h.  */
   13264 _ACEOF
   13265 cat confdefs.h >>conftest.$ac_ext
   13266 cat >>conftest.$ac_ext <<_ACEOF
   13267 /* end confdefs.h.  */
   13268 $ac_includes_default
   13269 int
   13270 main ()
   13271 {
   13272 #ifndef putchar_unlocked
   13273   (void) putchar_unlocked;
   13274 #endif
   13275 
   13276   ;
   13277   return 0;
   13278 }
   13279 _ACEOF
   13280 rm -f conftest.$ac_objext
   13281 if { (ac_try="$ac_compile"
   13282 case "(($ac_try" in
   13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13284   *) ac_try_echo=$ac_try;;
   13285 esac
   13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13287 $as_echo "$ac_try_echo") >&5
   13288   (eval "$ac_compile") 2>conftest.er1
   13289   ac_status=$?
   13290   grep -v '^ *+' conftest.er1 >conftest.err
   13291   rm -f conftest.er1
   13292   cat conftest.err >&5
   13293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13294   (exit $ac_status); } && {
   13295 	 test -z "$ac_c_werror_flag" ||
   13296 	 test ! -s conftest.err
   13297        } && test -s conftest.$ac_objext; then
   13298   ac_cv_have_decl_putchar_unlocked=yes
   13299 else
   13300   $as_echo "$as_me: failed program was:" >&5
   13301 sed 's/^/| /' conftest.$ac_ext >&5
   13302 
   13303 	ac_cv_have_decl_putchar_unlocked=no
   13304 fi
   13305 
   13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13307 fi
   13308 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
   13309 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
   13310 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
   13311 
   13312 cat >>confdefs.h <<_ACEOF
   13313 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
   13314 _ACEOF
   13315 
   13316 
   13317 else
   13318   cat >>confdefs.h <<_ACEOF
   13319 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
   13320 _ACEOF
   13321 
   13322 
   13323 fi
   13324 
   13325 
   13326 
   13327   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
   13328 $as_echo_n "checking for wint_t... " >&6; }
   13329 if test "${gt_cv_c_wint_t+set}" = set; then
   13330   $as_echo_n "(cached) " >&6
   13331 else
   13332   cat >conftest.$ac_ext <<_ACEOF
   13333 /* confdefs.h.  */
   13334 _ACEOF
   13335 cat confdefs.h >>conftest.$ac_ext
   13336 cat >>conftest.$ac_ext <<_ACEOF
   13337 /* end confdefs.h.  */
   13338 
   13339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   13340    <wchar.h>.
   13341    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   13342    before <wchar.h>.  */
   13343 #include <stddef.h>
   13344 #include <stdio.h>
   13345 #include <time.h>
   13346 #include <wchar.h>
   13347        wint_t foo = (wchar_t)'\0';
   13348 int
   13349 main ()
   13350 {
   13351 
   13352   ;
   13353   return 0;
   13354 }
   13355 _ACEOF
   13356 rm -f conftest.$ac_objext
   13357 if { (ac_try="$ac_compile"
   13358 case "(($ac_try" in
   13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13360   *) ac_try_echo=$ac_try;;
   13361 esac
   13362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13363 $as_echo "$ac_try_echo") >&5
   13364   (eval "$ac_compile") 2>conftest.er1
   13365   ac_status=$?
   13366   grep -v '^ *+' conftest.er1 >conftest.err
   13367   rm -f conftest.er1
   13368   cat conftest.err >&5
   13369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13370   (exit $ac_status); } && {
   13371 	 test -z "$ac_c_werror_flag" ||
   13372 	 test ! -s conftest.err
   13373        } && test -s conftest.$ac_objext; then
   13374   gt_cv_c_wint_t=yes
   13375 else
   13376   $as_echo "$as_me: failed program was:" >&5
   13377 sed 's/^/| /' conftest.$ac_ext >&5
   13378 
   13379 	gt_cv_c_wint_t=no
   13380 fi
   13381 
   13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13383 fi
   13384 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
   13385 $as_echo "$gt_cv_c_wint_t" >&6; }
   13386   if test $gt_cv_c_wint_t = yes; then
   13387 
   13388 cat >>confdefs.h <<\_ACEOF
   13389 #define HAVE_WINT_T 1
   13390 _ACEOF
   13391 
   13392   fi
   13393 
   13394 
   13395 
   13396 
   13397 
   13398 
   13399 
   13400 
   13401 
   13402 
   13403    if false; then
   13404   GL_COND_LIBTOOL_TRUE=
   13405   GL_COND_LIBTOOL_FALSE='#'
   13406 else
   13407   GL_COND_LIBTOOL_TRUE='#'
   13408   GL_COND_LIBTOOL_FALSE=
   13409 fi
   13410 
   13411   gl_cond_libtool=false
   13412   gl_libdeps=
   13413   gl_ltlibdeps=
   13414 
   13415 
   13416 
   13417 
   13418 
   13419 
   13420 
   13421 
   13422 
   13423   gl_source_base='lib'
   13424 
   13425   # Check whether --enable-acl was given.
   13426 if test "${enable_acl+set}" = set; then
   13427   enableval=$enable_acl;
   13428 else
   13429   enable_acl=auto
   13430 fi
   13431 
   13432 
   13433   LIB_ACL=
   13434   use_acl=0
   13435 
   13436   if test "x$enable_acl" != "xno"; then
   13437 
   13438 for ac_header in sys/acl.h
   13439 do
   13440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13442   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   13443 $as_echo_n "checking for $ac_header... " >&6; }
   13444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13445   $as_echo_n "(cached) " >&6
   13446 fi
   13447 ac_res=`eval 'as_val=${'$as_ac_Header'}
   13448 		 $as_echo "$as_val"'`
   13449 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   13450 $as_echo "$ac_res" >&6; }
   13451 else
   13452   # Is the header compilable?
   13453 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13454 $as_echo_n "checking $ac_header usability... " >&6; }
   13455 cat >conftest.$ac_ext <<_ACEOF
   13456 /* confdefs.h.  */
   13457 _ACEOF
   13458 cat confdefs.h >>conftest.$ac_ext
   13459 cat >>conftest.$ac_ext <<_ACEOF
   13460 /* end confdefs.h.  */
   13461 $ac_includes_default
   13462 #include <$ac_header>
   13463 _ACEOF
   13464 rm -f conftest.$ac_objext
   13465 if { (ac_try="$ac_compile"
   13466 case "(($ac_try" in
   13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13468   *) ac_try_echo=$ac_try;;
   13469 esac
   13470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13471 $as_echo "$ac_try_echo") >&5
   13472   (eval "$ac_compile") 2>conftest.er1
   13473   ac_status=$?
   13474   grep -v '^ *+' conftest.er1 >conftest.err
   13475   rm -f conftest.er1
   13476   cat conftest.err >&5
   13477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13478   (exit $ac_status); } && {
   13479 	 test -z "$ac_c_werror_flag" ||
   13480 	 test ! -s conftest.err
   13481        } && test -s conftest.$ac_objext; then
   13482   ac_header_compiler=yes
   13483 else
   13484   $as_echo "$as_me: failed program was:" >&5
   13485 sed 's/^/| /' conftest.$ac_ext >&5
   13486 
   13487 	ac_header_compiler=no
   13488 fi
   13489 
   13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13492 $as_echo "$ac_header_compiler" >&6; }
   13493 
   13494 # Is the header present?
   13495 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13496 $as_echo_n "checking $ac_header presence... " >&6; }
   13497 cat >conftest.$ac_ext <<_ACEOF
   13498 /* confdefs.h.  */
   13499 _ACEOF
   13500 cat confdefs.h >>conftest.$ac_ext
   13501 cat >>conftest.$ac_ext <<_ACEOF
   13502 /* end confdefs.h.  */
   13503 #include <$ac_header>
   13504 _ACEOF
   13505 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13506 case "(($ac_try" in
   13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13508   *) ac_try_echo=$ac_try;;
   13509 esac
   13510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13511 $as_echo "$ac_try_echo") >&5
   13512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13513   ac_status=$?
   13514   grep -v '^ *+' conftest.er1 >conftest.err
   13515   rm -f conftest.er1
   13516   cat conftest.err >&5
   13517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13518   (exit $ac_status); } >/dev/null && {
   13519 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13520 	 test ! -s conftest.err
   13521        }; then
   13522   ac_header_preproc=yes
   13523 else
   13524   $as_echo "$as_me: failed program was:" >&5
   13525 sed 's/^/| /' conftest.$ac_ext >&5
   13526 
   13527   ac_header_preproc=no
   13528 fi
   13529 
   13530 rm -f conftest.err conftest.$ac_ext
   13531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13532 $as_echo "$ac_header_preproc" >&6; }
   13533 
   13534 # So?  What about this header?
   13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13536   yes:no: )
   13537     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13538 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13541     ac_header_preproc=yes
   13542     ;;
   13543   no:yes:* )
   13544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13545 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13547 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13549 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13551 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13555 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13556     ( cat <<\_ASBOX
   13557 ## ------------------------------------ ##
   13558 ## Report this to bug-gnu-utils (at] gnu.org ##
   13559 ## ------------------------------------ ##
   13560 _ASBOX
   13561      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13562     ;;
   13563 esac
   13564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   13565 $as_echo_n "checking for $ac_header... " >&6; }
   13566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13567   $as_echo_n "(cached) " >&6
   13568 else
   13569   eval "$as_ac_Header=\$ac_header_preproc"
   13570 fi
   13571 ac_res=`eval 'as_val=${'$as_ac_Header'}
   13572 		 $as_echo "$as_val"'`
   13573 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   13574 $as_echo "$ac_res" >&6; }
   13575 
   13576 fi
   13577 as_val=`eval 'as_val=${'$as_ac_Header'}
   13578 		 $as_echo "$as_val"'`
   13579    if test "x$as_val" = x""yes; then
   13580   cat >>confdefs.h <<_ACEOF
   13581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13582 _ACEOF
   13583 
   13584 fi
   13585 
   13586 done
   13587 
   13588     if test $ac_cv_header_sys_acl_h = yes; then
   13589       ac_save_LIBS=$LIBS
   13590 
   13591                   if test $use_acl = 0; then
   13592 	{ $as_echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
   13593 $as_echo_n "checking for library containing acl_get_file... " >&6; }
   13594 if test "${ac_cv_search_acl_get_file+set}" = set; then
   13595   $as_echo_n "(cached) " >&6
   13596 else
   13597   ac_func_search_save_LIBS=$LIBS
   13598 cat >conftest.$ac_ext <<_ACEOF
   13599 /* confdefs.h.  */
   13600 _ACEOF
   13601 cat confdefs.h >>conftest.$ac_ext
   13602 cat >>conftest.$ac_ext <<_ACEOF
   13603 /* end confdefs.h.  */
   13604 
   13605 /* Override any GCC internal prototype to avoid an error.
   13606    Use char because int might match the return type of a GCC
   13607    builtin and then its argument prototype would still apply.  */
   13608 #ifdef __cplusplus
   13609 extern "C"
   13610 #endif
   13611 char acl_get_file ();
   13612 int
   13613 main ()
   13614 {
   13615 return acl_get_file ();
   13616   ;
   13617   return 0;
   13618 }
   13619 _ACEOF
   13620 for ac_lib in '' acl pacl; do
   13621   if test -z "$ac_lib"; then
   13622     ac_res="none required"
   13623   else
   13624     ac_res=-l$ac_lib
   13625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13626   fi
   13627   rm -f conftest.$ac_objext conftest$ac_exeext
   13628 if { (ac_try="$ac_link"
   13629 case "(($ac_try" in
   13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13631   *) ac_try_echo=$ac_try;;
   13632 esac
   13633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13634 $as_echo "$ac_try_echo") >&5
   13635   (eval "$ac_link") 2>conftest.er1
   13636   ac_status=$?
   13637   grep -v '^ *+' conftest.er1 >conftest.err
   13638   rm -f conftest.er1
   13639   cat conftest.err >&5
   13640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13641   (exit $ac_status); } && {
   13642 	 test -z "$ac_c_werror_flag" ||
   13643 	 test ! -s conftest.err
   13644        } && test -s conftest$ac_exeext && {
   13645 	 test "$cross_compiling" = yes ||
   13646 	 $as_test_x conftest$ac_exeext
   13647        }; then
   13648   ac_cv_search_acl_get_file=$ac_res
   13649 else
   13650   $as_echo "$as_me: failed program was:" >&5
   13651 sed 's/^/| /' conftest.$ac_ext >&5
   13652 
   13653 
   13654 fi
   13655 
   13656 rm -rf conftest.dSYM
   13657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13658       conftest$ac_exeext
   13659   if test "${ac_cv_search_acl_get_file+set}" = set; then
   13660   break
   13661 fi
   13662 done
   13663 if test "${ac_cv_search_acl_get_file+set}" = set; then
   13664   :
   13665 else
   13666   ac_cv_search_acl_get_file=no
   13667 fi
   13668 rm conftest.$ac_ext
   13669 LIBS=$ac_func_search_save_LIBS
   13670 fi
   13671 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
   13672 $as_echo "$ac_cv_search_acl_get_file" >&6; }
   13673 ac_res=$ac_cv_search_acl_get_file
   13674 if test "$ac_res" != no; then
   13675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13676   if test "$ac_cv_search_acl_get_file" != "none required"; then
   13677 	     LIB_ACL=$ac_cv_search_acl_get_file
   13678            fi
   13679 
   13680 
   13681 
   13682 
   13683 
   13684 
   13685 
   13686 
   13687 
   13688 
   13689 
   13690 
   13691 
   13692 
   13693 
   13694 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
   13695 	      acl_free acl_from_mode acl_from_text \
   13696 	      acl_delete_def_file acl_extended_file \
   13697 	      acl_delete_fd_np acl_delete_file_np \
   13698 	      acl_copy_ext_native acl_create_entry_np \
   13699 	      acl_to_short_text acl_free_text
   13700 do
   13701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13702 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   13703 $as_echo_n "checking for $ac_func... " >&6; }
   13704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   13705   $as_echo_n "(cached) " >&6
   13706 else
   13707   cat >conftest.$ac_ext <<_ACEOF
   13708 /* confdefs.h.  */
   13709 _ACEOF
   13710 cat confdefs.h >>conftest.$ac_ext
   13711 cat >>conftest.$ac_ext <<_ACEOF
   13712 /* end confdefs.h.  */
   13713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   13714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   13715 #define $ac_func innocuous_$ac_func
   13716 
   13717 /* System header to define __stub macros and hopefully few prototypes,
   13718     which can conflict with char $ac_func (); below.
   13719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   13720     <limits.h> exists even on freestanding compilers.  */
   13721 
   13722 #ifdef __STDC__
   13723 # include <limits.h>
   13724 #else
   13725 # include <assert.h>
   13726 #endif
   13727 
   13728 #undef $ac_func
   13729 
   13730 /* Override any GCC internal prototype to avoid an error.
   13731    Use char because int might match the return type of a GCC
   13732    builtin and then its argument prototype would still apply.  */
   13733 #ifdef __cplusplus
   13734 extern "C"
   13735 #endif
   13736 char $ac_func ();
   13737 /* The GNU C library defines this for functions which it implements
   13738     to always fail with ENOSYS.  Some functions are actually named
   13739     something starting with __ and the normal name is an alias.  */
   13740 #if defined __stub_$ac_func || defined __stub___$ac_func
   13741 choke me
   13742 #endif
   13743 
   13744 int
   13745 main ()
   13746 {
   13747 return $ac_func ();
   13748   ;
   13749   return 0;
   13750 }
   13751 _ACEOF
   13752 rm -f conftest.$ac_objext conftest$ac_exeext
   13753 if { (ac_try="$ac_link"
   13754 case "(($ac_try" in
   13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13756   *) ac_try_echo=$ac_try;;
   13757 esac
   13758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13759 $as_echo "$ac_try_echo") >&5
   13760   (eval "$ac_link") 2>conftest.er1
   13761   ac_status=$?
   13762   grep -v '^ *+' conftest.er1 >conftest.err
   13763   rm -f conftest.er1
   13764   cat conftest.err >&5
   13765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13766   (exit $ac_status); } && {
   13767 	 test -z "$ac_c_werror_flag" ||
   13768 	 test ! -s conftest.err
   13769        } && test -s conftest$ac_exeext && {
   13770 	 test "$cross_compiling" = yes ||
   13771 	 $as_test_x conftest$ac_exeext
   13772        }; then
   13773   eval "$as_ac_var=yes"
   13774 else
   13775   $as_echo "$as_me: failed program was:" >&5
   13776 sed 's/^/| /' conftest.$ac_ext >&5
   13777 
   13778 	eval "$as_ac_var=no"
   13779 fi
   13780 
   13781 rm -rf conftest.dSYM
   13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13783       conftest$ac_exeext conftest.$ac_ext
   13784 fi
   13785 ac_res=`eval 'as_val=${'$as_ac_var'}
   13786 		 $as_echo "$as_val"'`
   13787 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   13788 $as_echo "$ac_res" >&6; }
   13789 as_val=`eval 'as_val=${'$as_ac_var'}
   13790 		 $as_echo "$as_val"'`
   13791    if test "x$as_val" = x""yes; then
   13792   cat >>confdefs.h <<_ACEOF
   13793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13794 _ACEOF
   13795 
   13796 fi
   13797 done
   13798 
   13799 	   # If the acl_get_file bug is detected, don't enable the ACL support.
   13800 
   13801   { $as_echo "$as_me:$LINENO: checking for working acl_get_file" >&5
   13802 $as_echo_n "checking for working acl_get_file... " >&6; }
   13803 if test "${gl_cv_func_working_acl_get_file+set}" = set; then
   13804   $as_echo_n "(cached) " >&6
   13805 else
   13806   if test "$cross_compiling" = yes; then
   13807   gl_cv_func_working_acl_get_file=cross-compiling
   13808 else
   13809   cat >conftest.$ac_ext <<_ACEOF
   13810 /* confdefs.h.  */
   13811 _ACEOF
   13812 cat confdefs.h >>conftest.$ac_ext
   13813 cat >>conftest.$ac_ext <<_ACEOF
   13814 /* end confdefs.h.  */
   13815 #include <sys/types.h>
   13816 	   #include <sys/acl.h>
   13817 	   #include <errno.h>
   13818 
   13819 int
   13820 main ()
   13821 {
   13822 return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
   13823 		       && errno == ENOENT);
   13824   ;
   13825   return 0;
   13826 }
   13827 _ACEOF
   13828 rm -f conftest$ac_exeext
   13829 if { (ac_try="$ac_link"
   13830 case "(($ac_try" in
   13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13832   *) ac_try_echo=$ac_try;;
   13833 esac
   13834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13835 $as_echo "$ac_try_echo") >&5
   13836   (eval "$ac_link") 2>&5
   13837   ac_status=$?
   13838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   13840   { (case "(($ac_try" in
   13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13842   *) ac_try_echo=$ac_try;;
   13843 esac
   13844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13845 $as_echo "$ac_try_echo") >&5
   13846   (eval "$ac_try") 2>&5
   13847   ac_status=$?
   13848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13849   (exit $ac_status); }; }; then
   13850   gl_cv_func_working_acl_get_file=yes
   13851 else
   13852   $as_echo "$as_me: program exited with status $ac_status" >&5
   13853 $as_echo "$as_me: failed program was:" >&5
   13854 sed 's/^/| /' conftest.$ac_ext >&5
   13855 
   13856 ( exit $ac_status )
   13857 gl_cv_func_working_acl_get_file=no
   13858 fi
   13859 rm -rf conftest.dSYM
   13860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   13861 fi
   13862 
   13863 
   13864 fi
   13865 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5
   13866 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
   13867 
   13868   if test $gl_cv_func_working_acl_get_file = yes; then
   13869   use_acl=1
   13870 fi
   13871 
   13872 
   13873 	   if test $use_acl = 1; then
   13874 
   13875 for ac_header in acl/libacl.h
   13876 do
   13877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13879   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   13880 $as_echo_n "checking for $ac_header... " >&6; }
   13881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13882   $as_echo_n "(cached) " >&6
   13883 fi
   13884 ac_res=`eval 'as_val=${'$as_ac_Header'}
   13885 		 $as_echo "$as_val"'`
   13886 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   13887 $as_echo "$ac_res" >&6; }
   13888 else
   13889   # Is the header compilable?
   13890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13891 $as_echo_n "checking $ac_header usability... " >&6; }
   13892 cat >conftest.$ac_ext <<_ACEOF
   13893 /* confdefs.h.  */
   13894 _ACEOF
   13895 cat confdefs.h >>conftest.$ac_ext
   13896 cat >>conftest.$ac_ext <<_ACEOF
   13897 /* end confdefs.h.  */
   13898 $ac_includes_default
   13899 #include <$ac_header>
   13900 _ACEOF
   13901 rm -f conftest.$ac_objext
   13902 if { (ac_try="$ac_compile"
   13903 case "(($ac_try" in
   13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13905   *) ac_try_echo=$ac_try;;
   13906 esac
   13907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13908 $as_echo "$ac_try_echo") >&5
   13909   (eval "$ac_compile") 2>conftest.er1
   13910   ac_status=$?
   13911   grep -v '^ *+' conftest.er1 >conftest.err
   13912   rm -f conftest.er1
   13913   cat conftest.err >&5
   13914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13915   (exit $ac_status); } && {
   13916 	 test -z "$ac_c_werror_flag" ||
   13917 	 test ! -s conftest.err
   13918        } && test -s conftest.$ac_objext; then
   13919   ac_header_compiler=yes
   13920 else
   13921   $as_echo "$as_me: failed program was:" >&5
   13922 sed 's/^/| /' conftest.$ac_ext >&5
   13923 
   13924 	ac_header_compiler=no
   13925 fi
   13926 
   13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13929 $as_echo "$ac_header_compiler" >&6; }
   13930 
   13931 # Is the header present?
   13932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13933 $as_echo_n "checking $ac_header presence... " >&6; }
   13934 cat >conftest.$ac_ext <<_ACEOF
   13935 /* confdefs.h.  */
   13936 _ACEOF
   13937 cat confdefs.h >>conftest.$ac_ext
   13938 cat >>conftest.$ac_ext <<_ACEOF
   13939 /* end confdefs.h.  */
   13940 #include <$ac_header>
   13941 _ACEOF
   13942 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13943 case "(($ac_try" in
   13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13945   *) ac_try_echo=$ac_try;;
   13946 esac
   13947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   13948 $as_echo "$ac_try_echo") >&5
   13949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13950   ac_status=$?
   13951   grep -v '^ *+' conftest.er1 >conftest.err
   13952   rm -f conftest.er1
   13953   cat conftest.err >&5
   13954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13955   (exit $ac_status); } >/dev/null && {
   13956 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13957 	 test ! -s conftest.err
   13958        }; then
   13959   ac_header_preproc=yes
   13960 else
   13961   $as_echo "$as_me: failed program was:" >&5
   13962 sed 's/^/| /' conftest.$ac_ext >&5
   13963 
   13964   ac_header_preproc=no
   13965 fi
   13966 
   13967 rm -f conftest.err conftest.$ac_ext
   13968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13969 $as_echo "$ac_header_preproc" >&6; }
   13970 
   13971 # So?  What about this header?
   13972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13973   yes:no: )
   13974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13978     ac_header_preproc=yes
   13979     ;;
   13980   no:yes:* )
   13981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13984 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13988 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13989     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13993     ( cat <<\_ASBOX
   13994 ## ------------------------------------ ##
   13995 ## Report this to bug-gnu-utils (at] gnu.org ##
   13996 ## ------------------------------------ ##
   13997 _ASBOX
   13998      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13999     ;;
   14000 esac
   14001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   14002 $as_echo_n "checking for $ac_header... " >&6; }
   14003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14004   $as_echo_n "(cached) " >&6
   14005 else
   14006   eval "$as_ac_Header=\$ac_header_preproc"
   14007 fi
   14008 ac_res=`eval 'as_val=${'$as_ac_Header'}
   14009 		 $as_echo "$as_val"'`
   14010 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14011 $as_echo "$ac_res" >&6; }
   14012 
   14013 fi
   14014 as_val=`eval 'as_val=${'$as_ac_Header'}
   14015 		 $as_echo "$as_val"'`
   14016    if test "x$as_val" = x""yes; then
   14017   cat >>confdefs.h <<_ACEOF
   14018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14019 _ACEOF
   14020 
   14021 fi
   14022 
   14023 done
   14024 
   14025 
   14026 
   14027 
   14028 
   14029 
   14030 
   14031 
   14032 
   14033 
   14034 for ac_func in acl_entries
   14035 do
   14036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14038 $as_echo_n "checking for $ac_func... " >&6; }
   14039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14040   $as_echo_n "(cached) " >&6
   14041 else
   14042   cat >conftest.$ac_ext <<_ACEOF
   14043 /* confdefs.h.  */
   14044 _ACEOF
   14045 cat confdefs.h >>conftest.$ac_ext
   14046 cat >>conftest.$ac_ext <<_ACEOF
   14047 /* end confdefs.h.  */
   14048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14050 #define $ac_func innocuous_$ac_func
   14051 
   14052 /* System header to define __stub macros and hopefully few prototypes,
   14053     which can conflict with char $ac_func (); below.
   14054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14055     <limits.h> exists even on freestanding compilers.  */
   14056 
   14057 #ifdef __STDC__
   14058 # include <limits.h>
   14059 #else
   14060 # include <assert.h>
   14061 #endif
   14062 
   14063 #undef $ac_func
   14064 
   14065 /* Override any GCC internal prototype to avoid an error.
   14066    Use char because int might match the return type of a GCC
   14067    builtin and then its argument prototype would still apply.  */
   14068 #ifdef __cplusplus
   14069 extern "C"
   14070 #endif
   14071 char $ac_func ();
   14072 /* The GNU C library defines this for functions which it implements
   14073     to always fail with ENOSYS.  Some functions are actually named
   14074     something starting with __ and the normal name is an alias.  */
   14075 #if defined __stub_$ac_func || defined __stub___$ac_func
   14076 choke me
   14077 #endif
   14078 
   14079 int
   14080 main ()
   14081 {
   14082 return $ac_func ();
   14083   ;
   14084   return 0;
   14085 }
   14086 _ACEOF
   14087 rm -f conftest.$ac_objext conftest$ac_exeext
   14088 if { (ac_try="$ac_link"
   14089 case "(($ac_try" in
   14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14091   *) ac_try_echo=$ac_try;;
   14092 esac
   14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14094 $as_echo "$ac_try_echo") >&5
   14095   (eval "$ac_link") 2>conftest.er1
   14096   ac_status=$?
   14097   grep -v '^ *+' conftest.er1 >conftest.err
   14098   rm -f conftest.er1
   14099   cat conftest.err >&5
   14100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14101   (exit $ac_status); } && {
   14102 	 test -z "$ac_c_werror_flag" ||
   14103 	 test ! -s conftest.err
   14104        } && test -s conftest$ac_exeext && {
   14105 	 test "$cross_compiling" = yes ||
   14106 	 $as_test_x conftest$ac_exeext
   14107        }; then
   14108   eval "$as_ac_var=yes"
   14109 else
   14110   $as_echo "$as_me: failed program was:" >&5
   14111 sed 's/^/| /' conftest.$ac_ext >&5
   14112 
   14113 	eval "$as_ac_var=no"
   14114 fi
   14115 
   14116 rm -rf conftest.dSYM
   14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14118       conftest$ac_exeext conftest.$ac_ext
   14119 fi
   14120 ac_res=`eval 'as_val=${'$as_ac_var'}
   14121 		 $as_echo "$as_val"'`
   14122 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14123 $as_echo "$ac_res" >&6; }
   14124 as_val=`eval 'as_val=${'$as_ac_var'}
   14125 		 $as_echo "$as_val"'`
   14126    if test "x$as_val" = x""yes; then
   14127   cat >>confdefs.h <<_ACEOF
   14128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14129 _ACEOF
   14130 
   14131 else
   14132 
   14133     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
   14134 
   14135 fi
   14136 done
   14137 
   14138 
   14139 	     { $as_echo "$as_me:$LINENO: checking for ACL_FIRST_ENTRY" >&5
   14140 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
   14141 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then
   14142   $as_echo_n "(cached) " >&6
   14143 else
   14144   cat >conftest.$ac_ext <<_ACEOF
   14145 #include <sys/types.h>
   14146 #include <sys/acl.h>
   14147 int type = ACL_FIRST_ENTRY;
   14148 _ACEOF
   14149 rm -f conftest.$ac_objext
   14150 if { (ac_try="$ac_compile"
   14151 case "(($ac_try" in
   14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14153   *) ac_try_echo=$ac_try;;
   14154 esac
   14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14156 $as_echo "$ac_try_echo") >&5
   14157   (eval "$ac_compile") 2>conftest.er1
   14158   ac_status=$?
   14159   grep -v '^ *+' conftest.er1 >conftest.err
   14160   rm -f conftest.er1
   14161   cat conftest.err >&5
   14162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14163   (exit $ac_status); } && {
   14164 	 test -z "$ac_c_werror_flag" ||
   14165 	 test ! -s conftest.err
   14166        } && test -s conftest.$ac_objext; then
   14167   gl_cv_acl_ACL_FIRST_ENTRY=yes
   14168 else
   14169   $as_echo "$as_me: failed program was:" >&5
   14170 sed 's/^/| /' conftest.$ac_ext >&5
   14171 
   14172 	gl_cv_acl_ACL_FIRST_ENTRY=no
   14173 fi
   14174 
   14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14176 fi
   14177 { $as_echo "$as_me:$LINENO: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
   14178 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
   14179 	     if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
   14180 
   14181 cat >>confdefs.h <<\_ACEOF
   14182 #define HAVE_ACL_FIRST_ENTRY 1
   14183 _ACEOF
   14184 
   14185 	     fi
   14186 	     	     { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED" >&5
   14187 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
   14188 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then
   14189   $as_echo_n "(cached) " >&6
   14190 else
   14191   cat >conftest.$ac_ext <<_ACEOF
   14192 #include <sys/types.h>
   14193 #include <sys/acl.h>
   14194 int type = ACL_TYPE_EXTENDED;
   14195 _ACEOF
   14196 rm -f conftest.$ac_objext
   14197 if { (ac_try="$ac_compile"
   14198 case "(($ac_try" in
   14199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14200   *) ac_try_echo=$ac_try;;
   14201 esac
   14202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14203 $as_echo "$ac_try_echo") >&5
   14204   (eval "$ac_compile") 2>conftest.er1
   14205   ac_status=$?
   14206   grep -v '^ *+' conftest.er1 >conftest.err
   14207   rm -f conftest.er1
   14208   cat conftest.err >&5
   14209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14210   (exit $ac_status); } && {
   14211 	 test -z "$ac_c_werror_flag" ||
   14212 	 test ! -s conftest.err
   14213        } && test -s conftest.$ac_objext; then
   14214   gl_cv_acl_ACL_TYPE_EXTENDED=yes
   14215 else
   14216   $as_echo "$as_me: failed program was:" >&5
   14217 sed 's/^/| /' conftest.$ac_ext >&5
   14218 
   14219 	gl_cv_acl_ACL_TYPE_EXTENDED=no
   14220 fi
   14221 
   14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14223 fi
   14224 { $as_echo "$as_me:$LINENO: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
   14225 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
   14226 	     if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
   14227 
   14228 cat >>confdefs.h <<\_ACEOF
   14229 #define HAVE_ACL_TYPE_EXTENDED 1
   14230 _ACEOF
   14231 
   14232 	     fi
   14233 	   else
   14234 	     LIB_ACL=
   14235 	   fi
   14236 
   14237 fi
   14238 
   14239       fi
   14240 
   14241             if test $use_acl = 0; then
   14242 
   14243 for ac_func in acl
   14244 do
   14245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14246 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14247 $as_echo_n "checking for $ac_func... " >&6; }
   14248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14249   $as_echo_n "(cached) " >&6
   14250 else
   14251   cat >conftest.$ac_ext <<_ACEOF
   14252 /* confdefs.h.  */
   14253 _ACEOF
   14254 cat confdefs.h >>conftest.$ac_ext
   14255 cat >>conftest.$ac_ext <<_ACEOF
   14256 /* end confdefs.h.  */
   14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14259 #define $ac_func innocuous_$ac_func
   14260 
   14261 /* System header to define __stub macros and hopefully few prototypes,
   14262     which can conflict with char $ac_func (); below.
   14263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14264     <limits.h> exists even on freestanding compilers.  */
   14265 
   14266 #ifdef __STDC__
   14267 # include <limits.h>
   14268 #else
   14269 # include <assert.h>
   14270 #endif
   14271 
   14272 #undef $ac_func
   14273 
   14274 /* Override any GCC internal prototype to avoid an error.
   14275    Use char because int might match the return type of a GCC
   14276    builtin and then its argument prototype would still apply.  */
   14277 #ifdef __cplusplus
   14278 extern "C"
   14279 #endif
   14280 char $ac_func ();
   14281 /* The GNU C library defines this for functions which it implements
   14282     to always fail with ENOSYS.  Some functions are actually named
   14283     something starting with __ and the normal name is an alias.  */
   14284 #if defined __stub_$ac_func || defined __stub___$ac_func
   14285 choke me
   14286 #endif
   14287 
   14288 int
   14289 main ()
   14290 {
   14291 return $ac_func ();
   14292   ;
   14293   return 0;
   14294 }
   14295 _ACEOF
   14296 rm -f conftest.$ac_objext conftest$ac_exeext
   14297 if { (ac_try="$ac_link"
   14298 case "(($ac_try" in
   14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14300   *) ac_try_echo=$ac_try;;
   14301 esac
   14302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14303 $as_echo "$ac_try_echo") >&5
   14304   (eval "$ac_link") 2>conftest.er1
   14305   ac_status=$?
   14306   grep -v '^ *+' conftest.er1 >conftest.err
   14307   rm -f conftest.er1
   14308   cat conftest.err >&5
   14309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14310   (exit $ac_status); } && {
   14311 	 test -z "$ac_c_werror_flag" ||
   14312 	 test ! -s conftest.err
   14313        } && test -s conftest$ac_exeext && {
   14314 	 test "$cross_compiling" = yes ||
   14315 	 $as_test_x conftest$ac_exeext
   14316        }; then
   14317   eval "$as_ac_var=yes"
   14318 else
   14319   $as_echo "$as_me: failed program was:" >&5
   14320 sed 's/^/| /' conftest.$ac_ext >&5
   14321 
   14322 	eval "$as_ac_var=no"
   14323 fi
   14324 
   14325 rm -rf conftest.dSYM
   14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14327       conftest$ac_exeext conftest.$ac_ext
   14328 fi
   14329 ac_res=`eval 'as_val=${'$as_ac_var'}
   14330 		 $as_echo "$as_val"'`
   14331 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14332 $as_echo "$ac_res" >&6; }
   14333 as_val=`eval 'as_val=${'$as_ac_var'}
   14334 		 $as_echo "$as_val"'`
   14335    if test "x$as_val" = x""yes; then
   14336   cat >>confdefs.h <<_ACEOF
   14337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14338 _ACEOF
   14339 
   14340 fi
   14341 done
   14342 
   14343 	if test $ac_cv_func_acl = yes; then
   14344 	  { $as_echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5
   14345 $as_echo_n "checking for library containing acl_trivial... " >&6; }
   14346 if test "${ac_cv_search_acl_trivial+set}" = set; then
   14347   $as_echo_n "(cached) " >&6
   14348 else
   14349   ac_func_search_save_LIBS=$LIBS
   14350 cat >conftest.$ac_ext <<_ACEOF
   14351 /* confdefs.h.  */
   14352 _ACEOF
   14353 cat confdefs.h >>conftest.$ac_ext
   14354 cat >>conftest.$ac_ext <<_ACEOF
   14355 /* end confdefs.h.  */
   14356 
   14357 /* Override any GCC internal prototype to avoid an error.
   14358    Use char because int might match the return type of a GCC
   14359    builtin and then its argument prototype would still apply.  */
   14360 #ifdef __cplusplus
   14361 extern "C"
   14362 #endif
   14363 char acl_trivial ();
   14364 int
   14365 main ()
   14366 {
   14367 return acl_trivial ();
   14368   ;
   14369   return 0;
   14370 }
   14371 _ACEOF
   14372 for ac_lib in '' sec; do
   14373   if test -z "$ac_lib"; then
   14374     ac_res="none required"
   14375   else
   14376     ac_res=-l$ac_lib
   14377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14378   fi
   14379   rm -f conftest.$ac_objext conftest$ac_exeext
   14380 if { (ac_try="$ac_link"
   14381 case "(($ac_try" in
   14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14383   *) ac_try_echo=$ac_try;;
   14384 esac
   14385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14386 $as_echo "$ac_try_echo") >&5
   14387   (eval "$ac_link") 2>conftest.er1
   14388   ac_status=$?
   14389   grep -v '^ *+' conftest.er1 >conftest.err
   14390   rm -f conftest.er1
   14391   cat conftest.err >&5
   14392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14393   (exit $ac_status); } && {
   14394 	 test -z "$ac_c_werror_flag" ||
   14395 	 test ! -s conftest.err
   14396        } && test -s conftest$ac_exeext && {
   14397 	 test "$cross_compiling" = yes ||
   14398 	 $as_test_x conftest$ac_exeext
   14399        }; then
   14400   ac_cv_search_acl_trivial=$ac_res
   14401 else
   14402   $as_echo "$as_me: failed program was:" >&5
   14403 sed 's/^/| /' conftest.$ac_ext >&5
   14404 
   14405 
   14406 fi
   14407 
   14408 rm -rf conftest.dSYM
   14409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14410       conftest$ac_exeext
   14411   if test "${ac_cv_search_acl_trivial+set}" = set; then
   14412   break
   14413 fi
   14414 done
   14415 if test "${ac_cv_search_acl_trivial+set}" = set; then
   14416   :
   14417 else
   14418   ac_cv_search_acl_trivial=no
   14419 fi
   14420 rm conftest.$ac_ext
   14421 LIBS=$ac_func_search_save_LIBS
   14422 fi
   14423 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5
   14424 $as_echo "$ac_cv_search_acl_trivial" >&6; }
   14425 ac_res=$ac_cv_search_acl_trivial
   14426 if test "$ac_res" != no; then
   14427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14428   if test "$ac_cv_search_acl_trivial" != "none required"; then
   14429 	       LIB_ACL=$ac_cv_search_acl_trivial
   14430 	     fi
   14431 
   14432 fi
   14433 
   14434 
   14435 for ac_func in acl_trivial
   14436 do
   14437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14439 $as_echo_n "checking for $ac_func... " >&6; }
   14440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14441   $as_echo_n "(cached) " >&6
   14442 else
   14443   cat >conftest.$ac_ext <<_ACEOF
   14444 /* confdefs.h.  */
   14445 _ACEOF
   14446 cat confdefs.h >>conftest.$ac_ext
   14447 cat >>conftest.$ac_ext <<_ACEOF
   14448 /* end confdefs.h.  */
   14449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14451 #define $ac_func innocuous_$ac_func
   14452 
   14453 /* System header to define __stub macros and hopefully few prototypes,
   14454     which can conflict with char $ac_func (); below.
   14455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14456     <limits.h> exists even on freestanding compilers.  */
   14457 
   14458 #ifdef __STDC__
   14459 # include <limits.h>
   14460 #else
   14461 # include <assert.h>
   14462 #endif
   14463 
   14464 #undef $ac_func
   14465 
   14466 /* Override any GCC internal prototype to avoid an error.
   14467    Use char because int might match the return type of a GCC
   14468    builtin and then its argument prototype would still apply.  */
   14469 #ifdef __cplusplus
   14470 extern "C"
   14471 #endif
   14472 char $ac_func ();
   14473 /* The GNU C library defines this for functions which it implements
   14474     to always fail with ENOSYS.  Some functions are actually named
   14475     something starting with __ and the normal name is an alias.  */
   14476 #if defined __stub_$ac_func || defined __stub___$ac_func
   14477 choke me
   14478 #endif
   14479 
   14480 int
   14481 main ()
   14482 {
   14483 return $ac_func ();
   14484   ;
   14485   return 0;
   14486 }
   14487 _ACEOF
   14488 rm -f conftest.$ac_objext conftest$ac_exeext
   14489 if { (ac_try="$ac_link"
   14490 case "(($ac_try" in
   14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14492   *) ac_try_echo=$ac_try;;
   14493 esac
   14494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14495 $as_echo "$ac_try_echo") >&5
   14496   (eval "$ac_link") 2>conftest.er1
   14497   ac_status=$?
   14498   grep -v '^ *+' conftest.er1 >conftest.err
   14499   rm -f conftest.er1
   14500   cat conftest.err >&5
   14501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14502   (exit $ac_status); } && {
   14503 	 test -z "$ac_c_werror_flag" ||
   14504 	 test ! -s conftest.err
   14505        } && test -s conftest$ac_exeext && {
   14506 	 test "$cross_compiling" = yes ||
   14507 	 $as_test_x conftest$ac_exeext
   14508        }; then
   14509   eval "$as_ac_var=yes"
   14510 else
   14511   $as_echo "$as_me: failed program was:" >&5
   14512 sed 's/^/| /' conftest.$ac_ext >&5
   14513 
   14514 	eval "$as_ac_var=no"
   14515 fi
   14516 
   14517 rm -rf conftest.dSYM
   14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14519       conftest$ac_exeext conftest.$ac_ext
   14520 fi
   14521 ac_res=`eval 'as_val=${'$as_ac_var'}
   14522 		 $as_echo "$as_val"'`
   14523 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14524 $as_echo "$ac_res" >&6; }
   14525 as_val=`eval 'as_val=${'$as_ac_var'}
   14526 		 $as_echo "$as_val"'`
   14527    if test "x$as_val" = x""yes; then
   14528   cat >>confdefs.h <<_ACEOF
   14529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14530 _ACEOF
   14531 
   14532 fi
   14533 done
   14534 
   14535 	  use_acl=1
   14536 	fi
   14537       fi
   14538 
   14539             if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then
   14540 
   14541 for ac_func in getacl
   14542 do
   14543 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14544 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14545 $as_echo_n "checking for $ac_func... " >&6; }
   14546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14547   $as_echo_n "(cached) " >&6
   14548 else
   14549   cat >conftest.$ac_ext <<_ACEOF
   14550 /* confdefs.h.  */
   14551 _ACEOF
   14552 cat confdefs.h >>conftest.$ac_ext
   14553 cat >>conftest.$ac_ext <<_ACEOF
   14554 /* end confdefs.h.  */
   14555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14557 #define $ac_func innocuous_$ac_func
   14558 
   14559 /* System header to define __stub macros and hopefully few prototypes,
   14560     which can conflict with char $ac_func (); below.
   14561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14562     <limits.h> exists even on freestanding compilers.  */
   14563 
   14564 #ifdef __STDC__
   14565 # include <limits.h>
   14566 #else
   14567 # include <assert.h>
   14568 #endif
   14569 
   14570 #undef $ac_func
   14571 
   14572 /* Override any GCC internal prototype to avoid an error.
   14573    Use char because int might match the return type of a GCC
   14574    builtin and then its argument prototype would still apply.  */
   14575 #ifdef __cplusplus
   14576 extern "C"
   14577 #endif
   14578 char $ac_func ();
   14579 /* The GNU C library defines this for functions which it implements
   14580     to always fail with ENOSYS.  Some functions are actually named
   14581     something starting with __ and the normal name is an alias.  */
   14582 #if defined __stub_$ac_func || defined __stub___$ac_func
   14583 choke me
   14584 #endif
   14585 
   14586 int
   14587 main ()
   14588 {
   14589 return $ac_func ();
   14590   ;
   14591   return 0;
   14592 }
   14593 _ACEOF
   14594 rm -f conftest.$ac_objext conftest$ac_exeext
   14595 if { (ac_try="$ac_link"
   14596 case "(($ac_try" in
   14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14598   *) ac_try_echo=$ac_try;;
   14599 esac
   14600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14601 $as_echo "$ac_try_echo") >&5
   14602   (eval "$ac_link") 2>conftest.er1
   14603   ac_status=$?
   14604   grep -v '^ *+' conftest.er1 >conftest.err
   14605   rm -f conftest.er1
   14606   cat conftest.err >&5
   14607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14608   (exit $ac_status); } && {
   14609 	 test -z "$ac_c_werror_flag" ||
   14610 	 test ! -s conftest.err
   14611        } && test -s conftest$ac_exeext && {
   14612 	 test "$cross_compiling" = yes ||
   14613 	 $as_test_x conftest$ac_exeext
   14614        }; then
   14615   eval "$as_ac_var=yes"
   14616 else
   14617   $as_echo "$as_me: failed program was:" >&5
   14618 sed 's/^/| /' conftest.$ac_ext >&5
   14619 
   14620 	eval "$as_ac_var=no"
   14621 fi
   14622 
   14623 rm -rf conftest.dSYM
   14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14625       conftest$ac_exeext conftest.$ac_ext
   14626 fi
   14627 ac_res=`eval 'as_val=${'$as_ac_var'}
   14628 		 $as_echo "$as_val"'`
   14629 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14630 $as_echo "$ac_res" >&6; }
   14631 as_val=`eval 'as_val=${'$as_ac_var'}
   14632 		 $as_echo "$as_val"'`
   14633    if test "x$as_val" = x""yes; then
   14634   cat >>confdefs.h <<_ACEOF
   14635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14636 _ACEOF
   14637 
   14638 fi
   14639 done
   14640 
   14641 	if test $ac_cv_func_getacl = yes; then
   14642 	  use_acl=1
   14643 	fi
   14644       fi
   14645 
   14646             if test $use_acl = 0; then
   14647 
   14648 for ac_func in aclx_get
   14649 do
   14650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14652 $as_echo_n "checking for $ac_func... " >&6; }
   14653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14654   $as_echo_n "(cached) " >&6
   14655 else
   14656   cat >conftest.$ac_ext <<_ACEOF
   14657 /* confdefs.h.  */
   14658 _ACEOF
   14659 cat confdefs.h >>conftest.$ac_ext
   14660 cat >>conftest.$ac_ext <<_ACEOF
   14661 /* end confdefs.h.  */
   14662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14664 #define $ac_func innocuous_$ac_func
   14665 
   14666 /* System header to define __stub macros and hopefully few prototypes,
   14667     which can conflict with char $ac_func (); below.
   14668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14669     <limits.h> exists even on freestanding compilers.  */
   14670 
   14671 #ifdef __STDC__
   14672 # include <limits.h>
   14673 #else
   14674 # include <assert.h>
   14675 #endif
   14676 
   14677 #undef $ac_func
   14678 
   14679 /* Override any GCC internal prototype to avoid an error.
   14680    Use char because int might match the return type of a GCC
   14681    builtin and then its argument prototype would still apply.  */
   14682 #ifdef __cplusplus
   14683 extern "C"
   14684 #endif
   14685 char $ac_func ();
   14686 /* The GNU C library defines this for functions which it implements
   14687     to always fail with ENOSYS.  Some functions are actually named
   14688     something starting with __ and the normal name is an alias.  */
   14689 #if defined __stub_$ac_func || defined __stub___$ac_func
   14690 choke me
   14691 #endif
   14692 
   14693 int
   14694 main ()
   14695 {
   14696 return $ac_func ();
   14697   ;
   14698   return 0;
   14699 }
   14700 _ACEOF
   14701 rm -f conftest.$ac_objext conftest$ac_exeext
   14702 if { (ac_try="$ac_link"
   14703 case "(($ac_try" in
   14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14705   *) ac_try_echo=$ac_try;;
   14706 esac
   14707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14708 $as_echo "$ac_try_echo") >&5
   14709   (eval "$ac_link") 2>conftest.er1
   14710   ac_status=$?
   14711   grep -v '^ *+' conftest.er1 >conftest.err
   14712   rm -f conftest.er1
   14713   cat conftest.err >&5
   14714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14715   (exit $ac_status); } && {
   14716 	 test -z "$ac_c_werror_flag" ||
   14717 	 test ! -s conftest.err
   14718        } && test -s conftest$ac_exeext && {
   14719 	 test "$cross_compiling" = yes ||
   14720 	 $as_test_x conftest$ac_exeext
   14721        }; then
   14722   eval "$as_ac_var=yes"
   14723 else
   14724   $as_echo "$as_me: failed program was:" >&5
   14725 sed 's/^/| /' conftest.$ac_ext >&5
   14726 
   14727 	eval "$as_ac_var=no"
   14728 fi
   14729 
   14730 rm -rf conftest.dSYM
   14731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14732       conftest$ac_exeext conftest.$ac_ext
   14733 fi
   14734 ac_res=`eval 'as_val=${'$as_ac_var'}
   14735 		 $as_echo "$as_val"'`
   14736 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14737 $as_echo "$ac_res" >&6; }
   14738 as_val=`eval 'as_val=${'$as_ac_var'}
   14739 		 $as_echo "$as_val"'`
   14740    if test "x$as_val" = x""yes; then
   14741   cat >>confdefs.h <<_ACEOF
   14742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14743 _ACEOF
   14744 
   14745 fi
   14746 done
   14747 
   14748 	if test $ac_cv_func_aclx_get = yes; then
   14749 	  use_acl=1
   14750 	fi
   14751       fi
   14752 
   14753             if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
   14754 
   14755 for ac_func in statacl
   14756 do
   14757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14758 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   14759 $as_echo_n "checking for $ac_func... " >&6; }
   14760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14761   $as_echo_n "(cached) " >&6
   14762 else
   14763   cat >conftest.$ac_ext <<_ACEOF
   14764 /* confdefs.h.  */
   14765 _ACEOF
   14766 cat confdefs.h >>conftest.$ac_ext
   14767 cat >>conftest.$ac_ext <<_ACEOF
   14768 /* end confdefs.h.  */
   14769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14771 #define $ac_func innocuous_$ac_func
   14772 
   14773 /* System header to define __stub macros and hopefully few prototypes,
   14774     which can conflict with char $ac_func (); below.
   14775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14776     <limits.h> exists even on freestanding compilers.  */
   14777 
   14778 #ifdef __STDC__
   14779 # include <limits.h>
   14780 #else
   14781 # include <assert.h>
   14782 #endif
   14783 
   14784 #undef $ac_func
   14785 
   14786 /* Override any GCC internal prototype to avoid an error.
   14787    Use char because int might match the return type of a GCC
   14788    builtin and then its argument prototype would still apply.  */
   14789 #ifdef __cplusplus
   14790 extern "C"
   14791 #endif
   14792 char $ac_func ();
   14793 /* The GNU C library defines this for functions which it implements
   14794     to always fail with ENOSYS.  Some functions are actually named
   14795     something starting with __ and the normal name is an alias.  */
   14796 #if defined __stub_$ac_func || defined __stub___$ac_func
   14797 choke me
   14798 #endif
   14799 
   14800 int
   14801 main ()
   14802 {
   14803 return $ac_func ();
   14804   ;
   14805   return 0;
   14806 }
   14807 _ACEOF
   14808 rm -f conftest.$ac_objext conftest$ac_exeext
   14809 if { (ac_try="$ac_link"
   14810 case "(($ac_try" in
   14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14812   *) ac_try_echo=$ac_try;;
   14813 esac
   14814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14815 $as_echo "$ac_try_echo") >&5
   14816   (eval "$ac_link") 2>conftest.er1
   14817   ac_status=$?
   14818   grep -v '^ *+' conftest.er1 >conftest.err
   14819   rm -f conftest.er1
   14820   cat conftest.err >&5
   14821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14822   (exit $ac_status); } && {
   14823 	 test -z "$ac_c_werror_flag" ||
   14824 	 test ! -s conftest.err
   14825        } && test -s conftest$ac_exeext && {
   14826 	 test "$cross_compiling" = yes ||
   14827 	 $as_test_x conftest$ac_exeext
   14828        }; then
   14829   eval "$as_ac_var=yes"
   14830 else
   14831   $as_echo "$as_me: failed program was:" >&5
   14832 sed 's/^/| /' conftest.$ac_ext >&5
   14833 
   14834 	eval "$as_ac_var=no"
   14835 fi
   14836 
   14837 rm -rf conftest.dSYM
   14838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14839       conftest$ac_exeext conftest.$ac_ext
   14840 fi
   14841 ac_res=`eval 'as_val=${'$as_ac_var'}
   14842 		 $as_echo "$as_val"'`
   14843 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   14844 $as_echo "$ac_res" >&6; }
   14845 as_val=`eval 'as_val=${'$as_ac_var'}
   14846 		 $as_echo "$as_val"'`
   14847    if test "x$as_val" = x""yes; then
   14848   cat >>confdefs.h <<_ACEOF
   14849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14850 _ACEOF
   14851 
   14852 fi
   14853 done
   14854 
   14855 	if test $ac_cv_func_statacl = yes; then
   14856 	  use_acl=1
   14857 	fi
   14858       fi
   14859 
   14860       LIBS=$ac_save_LIBS
   14861     fi
   14862     if test "x$enable_acl$use_acl" = "xyes0"; then
   14863       { { $as_echo "$as_me:$LINENO: error: ACLs enabled but support not detected" >&5
   14864 $as_echo "$as_me: error: ACLs enabled but support not detected" >&2;}
   14865    { (exit 1); exit 1; }; }
   14866     fi
   14867   fi
   14868 
   14869 
   14870 cat >>confdefs.h <<_ACEOF
   14871 #define USE_ACL $use_acl
   14872 _ACEOF
   14873 
   14874   USE_ACL=$use_acl
   14875 
   14876 
   14877 
   14878 
   14879 
   14880 
   14881 
   14882   if test $ac_cv_func_alloca_works = no; then
   14883     :
   14884   fi
   14885 
   14886   # Define an additional variable used in the Makefile substitution.
   14887   if test $ac_cv_working_alloca_h = yes; then
   14888     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
   14889 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
   14890 if test "${gl_cv_rpl_alloca+set}" = set; then
   14891   $as_echo_n "(cached) " >&6
   14892 else
   14893 
   14894       cat >conftest.$ac_ext <<_ACEOF
   14895 /* confdefs.h.  */
   14896 _ACEOF
   14897 cat confdefs.h >>conftest.$ac_ext
   14898 cat >>conftest.$ac_ext <<_ACEOF
   14899 /* end confdefs.h.  */
   14900 
   14901 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
   14902         Need own alloca
   14903 #endif
   14904 
   14905 _ACEOF
   14906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14907   $EGREP "Need own alloca" >/dev/null 2>&1; then
   14908   gl_cv_rpl_alloca=yes
   14909 else
   14910   gl_cv_rpl_alloca=no
   14911 fi
   14912 rm -f conftest*
   14913 
   14914 
   14915 fi
   14916 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
   14917 $as_echo "$gl_cv_rpl_alloca" >&6; }
   14918     if test $gl_cv_rpl_alloca = yes; then
   14919 
   14920 cat >>confdefs.h <<\_ACEOF
   14921 #define HAVE_ALLOCA 1
   14922 _ACEOF
   14923 
   14924       ALLOCA_H=alloca.h
   14925     else
   14926                   ALLOCA_H=
   14927     fi
   14928   else
   14929     ALLOCA_H=alloca.h
   14930   fi
   14931 
   14932 
   14933 
   14934 
   14935 
   14936 
   14937 
   14938 
   14939 
   14940 
   14941 
   14942   if test $ac_cv_func_btowc = no; then
   14943     HAVE_BTOWC=0
   14944   else
   14945 
   14946 
   14947 
   14948          { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
   14949 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
   14950 if test "${gl_cv_func_btowc_eof+set}" = set; then
   14951   $as_echo_n "(cached) " >&6
   14952 else
   14953 
   14954                         case "$host_os" in
   14955                  # Guess no on IRIX.
   14956           irix*) gl_cv_func_btowc_eof="guessing no" ;;
   14957                  # Guess yes otherwise.
   14958           *)     gl_cv_func_btowc_eof="guessing yes" ;;
   14959         esac
   14960         if test $LOCALE_FR != none; then
   14961           if test "$cross_compiling" = yes; then
   14962   :
   14963 else
   14964   cat >conftest.$ac_ext <<_ACEOF
   14965 /* confdefs.h.  */
   14966 _ACEOF
   14967 cat confdefs.h >>conftest.$ac_ext
   14968 cat >>conftest.$ac_ext <<_ACEOF
   14969 /* end confdefs.h.  */
   14970 
   14971 #include <locale.h>
   14972 #include <stdio.h>
   14973 #include <string.h>
   14974 #include <wchar.h>
   14975 int main ()
   14976 {
   14977   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
   14978     {
   14979       if (btowc (EOF) != WEOF)
   14980         return 1;
   14981     }
   14982   return 0;
   14983 }
   14984 _ACEOF
   14985 rm -f conftest$ac_exeext
   14986 if { (ac_try="$ac_link"
   14987 case "(($ac_try" in
   14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14989   *) ac_try_echo=$ac_try;;
   14990 esac
   14991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   14992 $as_echo "$ac_try_echo") >&5
   14993   (eval "$ac_link") 2>&5
   14994   ac_status=$?
   14995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   14997   { (case "(($ac_try" in
   14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14999   *) ac_try_echo=$ac_try;;
   15000 esac
   15001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15002 $as_echo "$ac_try_echo") >&5
   15003   (eval "$ac_try") 2>&5
   15004   ac_status=$?
   15005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15006   (exit $ac_status); }; }; then
   15007   gl_cv_func_btowc_eof=yes
   15008 else
   15009   $as_echo "$as_me: program exited with status $ac_status" >&5
   15010 $as_echo "$as_me: failed program was:" >&5
   15011 sed 's/^/| /' conftest.$ac_ext >&5
   15012 
   15013 ( exit $ac_status )
   15014 gl_cv_func_btowc_eof=no
   15015 fi
   15016 rm -rf conftest.dSYM
   15017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   15018 fi
   15019 
   15020 
   15021         fi
   15022 
   15023 fi
   15024 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
   15025 $as_echo "$gl_cv_func_btowc_eof" >&6; }
   15026     case "$gl_cv_func_btowc_eof" in
   15027       *yes) ;;
   15028       *) REPLACE_BTOWC=1 ;;
   15029     esac
   15030   fi
   15031   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
   15032 
   15033 
   15034   WCHAR_H=wchar.h
   15035 
   15036 
   15037 
   15038 
   15039 
   15040 
   15041 
   15042 
   15043 
   15044   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
   15045 
   15046 
   15047   :
   15048 
   15049   fi
   15050 
   15051 
   15052 
   15053   GNULIB_BTOWC=1
   15054 
   15055 
   15056 
   15057 
   15058 
   15059 
   15060 
   15061 
   15062 
   15063 
   15064   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
   15065 
   15066 
   15067 
   15068 
   15069 
   15070 
   15071 
   15072 
   15073 
   15074   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
   15075 
   15076 
   15077 
   15078 
   15079 
   15080 
   15081 
   15082 
   15083 
   15084   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
   15085 
   15086 
   15087 
   15088 
   15089 
   15090 
   15091 
   15092 
   15093   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
   15094 $as_echo_n "checking whether // is distinct from /... " >&6; }
   15095 if test "${gl_cv_double_slash_root+set}" = set; then
   15096   $as_echo_n "(cached) " >&6
   15097 else
   15098    if test x"$cross_compiling" = xyes ; then
   15099 	# When cross-compiling, there is no way to tell whether // is special
   15100 	# short of a list of hosts.  However, the only known hosts to date
   15101 	# that have a distinct // are Apollo DomainOS (too old to port to),
   15102 	# Cygwin, and z/OS.  If anyone knows of another system for which // has
   15103 	# special semantics and is distinct from /, please report it to
   15104 	# <bug-gnulib (at] gnu.org>.
   15105 	case $host in
   15106 	  *-cygwin | i370-ibm-openedition)
   15107 	    gl_cv_double_slash_root=yes ;;
   15108 	  *)
   15109 	    # Be optimistic and assume that / and // are the same when we
   15110 	    # don't know.
   15111 	    gl_cv_double_slash_root='unknown, assuming no' ;;
   15112 	esac
   15113       else
   15114 	set x `ls -di / // 2>/dev/null`
   15115 	if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   15116 	  gl_cv_double_slash_root=no
   15117 	else
   15118 	  gl_cv_double_slash_root=yes
   15119 	fi
   15120       fi
   15121 fi
   15122 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
   15123 $as_echo "$gl_cv_double_slash_root" >&6; }
   15124   if test "$gl_cv_double_slash_root" = yes; then
   15125 
   15126 cat >>confdefs.h <<\_ACEOF
   15127 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
   15128 _ACEOF
   15129 
   15130   fi
   15131 
   15132 
   15133 
   15134 
   15135 
   15136 
   15137 
   15138 
   15139 
   15140 
   15141 
   15142 
   15143 
   15144 
   15145 
   15146 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
   15147 $as_echo_n "checking for error_at_line... " >&6; }
   15148 if test "${ac_cv_lib_error_at_line+set}" = set; then
   15149   $as_echo_n "(cached) " >&6
   15150 else
   15151   cat >conftest.$ac_ext <<_ACEOF
   15152 /* confdefs.h.  */
   15153 _ACEOF
   15154 cat confdefs.h >>conftest.$ac_ext
   15155 cat >>conftest.$ac_ext <<_ACEOF
   15156 /* end confdefs.h.  */
   15157 #include <error.h>
   15158 int
   15159 main ()
   15160 {
   15161 error_at_line (0, 0, "", 0, "an error occurred");
   15162   ;
   15163   return 0;
   15164 }
   15165 _ACEOF
   15166 rm -f conftest.$ac_objext conftest$ac_exeext
   15167 if { (ac_try="$ac_link"
   15168 case "(($ac_try" in
   15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15170   *) ac_try_echo=$ac_try;;
   15171 esac
   15172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15173 $as_echo "$ac_try_echo") >&5
   15174   (eval "$ac_link") 2>conftest.er1
   15175   ac_status=$?
   15176   grep -v '^ *+' conftest.er1 >conftest.err
   15177   rm -f conftest.er1
   15178   cat conftest.err >&5
   15179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15180   (exit $ac_status); } && {
   15181 	 test -z "$ac_c_werror_flag" ||
   15182 	 test ! -s conftest.err
   15183        } && test -s conftest$ac_exeext && {
   15184 	 test "$cross_compiling" = yes ||
   15185 	 $as_test_x conftest$ac_exeext
   15186        }; then
   15187   ac_cv_lib_error_at_line=yes
   15188 else
   15189   $as_echo "$as_me: failed program was:" >&5
   15190 sed 's/^/| /' conftest.$ac_ext >&5
   15191 
   15192 	ac_cv_lib_error_at_line=no
   15193 fi
   15194 
   15195 rm -rf conftest.dSYM
   15196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15197       conftest$ac_exeext conftest.$ac_ext
   15198 fi
   15199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
   15200 $as_echo "$ac_cv_lib_error_at_line" >&6; }
   15201 if test $ac_cv_lib_error_at_line = no; then
   15202 
   15203 
   15204 
   15205 
   15206 
   15207 
   15208 
   15209 
   15210   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
   15211 
   15212 fi
   15213 
   15214 
   15215 
   15216   :
   15217 
   15218 
   15219 
   15220 
   15221   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
   15222 
   15223 
   15224 
   15225   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
   15226 
   15227 
   15228 
   15229 
   15230 
   15231 
   15232 
   15233 
   15234 
   15235 
   15236   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
   15237 
   15238 
   15239     :
   15240 
   15241 
   15242 
   15243 
   15244 
   15245 
   15246 
   15247 
   15248 
   15249 
   15250 
   15251 
   15252 
   15253 
   15254 
   15255 for ac_func in getdelim
   15256 do
   15257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15258 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   15259 $as_echo_n "checking for $ac_func... " >&6; }
   15260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15261   $as_echo_n "(cached) " >&6
   15262 else
   15263   cat >conftest.$ac_ext <<_ACEOF
   15264 /* confdefs.h.  */
   15265 _ACEOF
   15266 cat confdefs.h >>conftest.$ac_ext
   15267 cat >>conftest.$ac_ext <<_ACEOF
   15268 /* end confdefs.h.  */
   15269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15271 #define $ac_func innocuous_$ac_func
   15272 
   15273 /* System header to define __stub macros and hopefully few prototypes,
   15274     which can conflict with char $ac_func (); below.
   15275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15276     <limits.h> exists even on freestanding compilers.  */
   15277 
   15278 #ifdef __STDC__
   15279 # include <limits.h>
   15280 #else
   15281 # include <assert.h>
   15282 #endif
   15283 
   15284 #undef $ac_func
   15285 
   15286 /* Override any GCC internal prototype to avoid an error.
   15287    Use char because int might match the return type of a GCC
   15288    builtin and then its argument prototype would still apply.  */
   15289 #ifdef __cplusplus
   15290 extern "C"
   15291 #endif
   15292 char $ac_func ();
   15293 /* The GNU C library defines this for functions which it implements
   15294     to always fail with ENOSYS.  Some functions are actually named
   15295     something starting with __ and the normal name is an alias.  */
   15296 #if defined __stub_$ac_func || defined __stub___$ac_func
   15297 choke me
   15298 #endif
   15299 
   15300 int
   15301 main ()
   15302 {
   15303 return $ac_func ();
   15304   ;
   15305   return 0;
   15306 }
   15307 _ACEOF
   15308 rm -f conftest.$ac_objext conftest$ac_exeext
   15309 if { (ac_try="$ac_link"
   15310 case "(($ac_try" in
   15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15312   *) ac_try_echo=$ac_try;;
   15313 esac
   15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15315 $as_echo "$ac_try_echo") >&5
   15316   (eval "$ac_link") 2>conftest.er1
   15317   ac_status=$?
   15318   grep -v '^ *+' conftest.er1 >conftest.err
   15319   rm -f conftest.er1
   15320   cat conftest.err >&5
   15321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15322   (exit $ac_status); } && {
   15323 	 test -z "$ac_c_werror_flag" ||
   15324 	 test ! -s conftest.err
   15325        } && test -s conftest$ac_exeext && {
   15326 	 test "$cross_compiling" = yes ||
   15327 	 $as_test_x conftest$ac_exeext
   15328        }; then
   15329   eval "$as_ac_var=yes"
   15330 else
   15331   $as_echo "$as_me: failed program was:" >&5
   15332 sed 's/^/| /' conftest.$ac_ext >&5
   15333 
   15334 	eval "$as_ac_var=no"
   15335 fi
   15336 
   15337 rm -rf conftest.dSYM
   15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15339       conftest$ac_exeext conftest.$ac_ext
   15340 fi
   15341 ac_res=`eval 'as_val=${'$as_ac_var'}
   15342 		 $as_echo "$as_val"'`
   15343 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   15344 $as_echo "$ac_res" >&6; }
   15345 as_val=`eval 'as_val=${'$as_ac_var'}
   15346 		 $as_echo "$as_val"'`
   15347    if test "x$as_val" = x""yes; then
   15348   cat >>confdefs.h <<_ACEOF
   15349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15350 _ACEOF
   15351 
   15352 else
   15353 
   15354     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
   15355 
   15356 fi
   15357 done
   15358 
   15359 
   15360 
   15361 
   15362 
   15363 
   15364 
   15365   if test $ac_cv_func_getdelim = no; then
   15366 
   15367 
   15368 
   15369 for ac_func in flockfile funlockfile
   15370 do
   15371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15372 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   15373 $as_echo_n "checking for $ac_func... " >&6; }
   15374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15375   $as_echo_n "(cached) " >&6
   15376 else
   15377   cat >conftest.$ac_ext <<_ACEOF
   15378 /* confdefs.h.  */
   15379 _ACEOF
   15380 cat confdefs.h >>conftest.$ac_ext
   15381 cat >>conftest.$ac_ext <<_ACEOF
   15382 /* end confdefs.h.  */
   15383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15385 #define $ac_func innocuous_$ac_func
   15386 
   15387 /* System header to define __stub macros and hopefully few prototypes,
   15388     which can conflict with char $ac_func (); below.
   15389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15390     <limits.h> exists even on freestanding compilers.  */
   15391 
   15392 #ifdef __STDC__
   15393 # include <limits.h>
   15394 #else
   15395 # include <assert.h>
   15396 #endif
   15397 
   15398 #undef $ac_func
   15399 
   15400 /* Override any GCC internal prototype to avoid an error.
   15401    Use char because int might match the return type of a GCC
   15402    builtin and then its argument prototype would still apply.  */
   15403 #ifdef __cplusplus
   15404 extern "C"
   15405 #endif
   15406 char $ac_func ();
   15407 /* The GNU C library defines this for functions which it implements
   15408     to always fail with ENOSYS.  Some functions are actually named
   15409     something starting with __ and the normal name is an alias.  */
   15410 #if defined __stub_$ac_func || defined __stub___$ac_func
   15411 choke me
   15412 #endif
   15413 
   15414 int
   15415 main ()
   15416 {
   15417 return $ac_func ();
   15418   ;
   15419   return 0;
   15420 }
   15421 _ACEOF
   15422 rm -f conftest.$ac_objext conftest$ac_exeext
   15423 if { (ac_try="$ac_link"
   15424 case "(($ac_try" in
   15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15426   *) ac_try_echo=$ac_try;;
   15427 esac
   15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15429 $as_echo "$ac_try_echo") >&5
   15430   (eval "$ac_link") 2>conftest.er1
   15431   ac_status=$?
   15432   grep -v '^ *+' conftest.er1 >conftest.err
   15433   rm -f conftest.er1
   15434   cat conftest.err >&5
   15435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15436   (exit $ac_status); } && {
   15437 	 test -z "$ac_c_werror_flag" ||
   15438 	 test ! -s conftest.err
   15439        } && test -s conftest$ac_exeext && {
   15440 	 test "$cross_compiling" = yes ||
   15441 	 $as_test_x conftest$ac_exeext
   15442        }; then
   15443   eval "$as_ac_var=yes"
   15444 else
   15445   $as_echo "$as_me: failed program was:" >&5
   15446 sed 's/^/| /' conftest.$ac_ext >&5
   15447 
   15448 	eval "$as_ac_var=no"
   15449 fi
   15450 
   15451 rm -rf conftest.dSYM
   15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15453       conftest$ac_exeext conftest.$ac_ext
   15454 fi
   15455 ac_res=`eval 'as_val=${'$as_ac_var'}
   15456 		 $as_echo "$as_val"'`
   15457 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   15458 $as_echo "$ac_res" >&6; }
   15459 as_val=`eval 'as_val=${'$as_ac_var'}
   15460 		 $as_echo "$as_val"'`
   15461    if test "x$as_val" = x""yes; then
   15462   cat >>confdefs.h <<_ACEOF
   15463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15464 _ACEOF
   15465 
   15466 fi
   15467 done
   15468 
   15469   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
   15470 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
   15471 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
   15472   $as_echo_n "(cached) " >&6
   15473 else
   15474   cat >conftest.$ac_ext <<_ACEOF
   15475 /* confdefs.h.  */
   15476 _ACEOF
   15477 cat confdefs.h >>conftest.$ac_ext
   15478 cat >>conftest.$ac_ext <<_ACEOF
   15479 /* end confdefs.h.  */
   15480 $ac_includes_default
   15481 int
   15482 main ()
   15483 {
   15484 #ifndef getc_unlocked
   15485   (void) getc_unlocked;
   15486 #endif
   15487 
   15488   ;
   15489   return 0;
   15490 }
   15491 _ACEOF
   15492 rm -f conftest.$ac_objext
   15493 if { (ac_try="$ac_compile"
   15494 case "(($ac_try" in
   15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15496   *) ac_try_echo=$ac_try;;
   15497 esac
   15498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15499 $as_echo "$ac_try_echo") >&5
   15500   (eval "$ac_compile") 2>conftest.er1
   15501   ac_status=$?
   15502   grep -v '^ *+' conftest.er1 >conftest.err
   15503   rm -f conftest.er1
   15504   cat conftest.err >&5
   15505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15506   (exit $ac_status); } && {
   15507 	 test -z "$ac_c_werror_flag" ||
   15508 	 test ! -s conftest.err
   15509        } && test -s conftest.$ac_objext; then
   15510   ac_cv_have_decl_getc_unlocked=yes
   15511 else
   15512   $as_echo "$as_me: failed program was:" >&5
   15513 sed 's/^/| /' conftest.$ac_ext >&5
   15514 
   15515 	ac_cv_have_decl_getc_unlocked=no
   15516 fi
   15517 
   15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15519 fi
   15520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
   15521 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
   15522 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
   15523 
   15524 cat >>confdefs.h <<_ACEOF
   15525 #define HAVE_DECL_GETC_UNLOCKED 1
   15526 _ACEOF
   15527 
   15528 
   15529 else
   15530   cat >>confdefs.h <<_ACEOF
   15531 #define HAVE_DECL_GETC_UNLOCKED 0
   15532 _ACEOF
   15533 
   15534 
   15535 fi
   15536 
   15537 
   15538 
   15539   fi
   15540 
   15541   if test $ac_cv_have_decl_getdelim = no; then
   15542     HAVE_DECL_GETDELIM=0
   15543   fi
   15544 
   15545 
   15546 
   15547   GNULIB_GETDELIM=1
   15548 
   15549 
   15550 
   15551 
   15552 
   15553 
   15554 
   15555 
   15556 
   15557 
   15558 
   15559   gl_getline_needs_run_time_check=no
   15560   { $as_echo "$as_me:$LINENO: checking for getline" >&5
   15561 $as_echo_n "checking for getline... " >&6; }
   15562 if test "${ac_cv_func_getline+set}" = set; then
   15563   $as_echo_n "(cached) " >&6
   15564 else
   15565   cat >conftest.$ac_ext <<_ACEOF
   15566 /* confdefs.h.  */
   15567 _ACEOF
   15568 cat confdefs.h >>conftest.$ac_ext
   15569 cat >>conftest.$ac_ext <<_ACEOF
   15570 /* end confdefs.h.  */
   15571 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
   15572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15573 #define getline innocuous_getline
   15574 
   15575 /* System header to define __stub macros and hopefully few prototypes,
   15576     which can conflict with char getline (); below.
   15577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15578     <limits.h> exists even on freestanding compilers.  */
   15579 
   15580 #ifdef __STDC__
   15581 # include <limits.h>
   15582 #else
   15583 # include <assert.h>
   15584 #endif
   15585 
   15586 #undef getline
   15587 
   15588 /* Override any GCC internal prototype to avoid an error.
   15589    Use char because int might match the return type of a GCC
   15590    builtin and then its argument prototype would still apply.  */
   15591 #ifdef __cplusplus
   15592 extern "C"
   15593 #endif
   15594 char getline ();
   15595 /* The GNU C library defines this for functions which it implements
   15596     to always fail with ENOSYS.  Some functions are actually named
   15597     something starting with __ and the normal name is an alias.  */
   15598 #if defined __stub_getline || defined __stub___getline
   15599 choke me
   15600 #endif
   15601 
   15602 int
   15603 main ()
   15604 {
   15605 return getline ();
   15606   ;
   15607   return 0;
   15608 }
   15609 _ACEOF
   15610 rm -f conftest.$ac_objext conftest$ac_exeext
   15611 if { (ac_try="$ac_link"
   15612 case "(($ac_try" in
   15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15614   *) ac_try_echo=$ac_try;;
   15615 esac
   15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15617 $as_echo "$ac_try_echo") >&5
   15618   (eval "$ac_link") 2>conftest.er1
   15619   ac_status=$?
   15620   grep -v '^ *+' conftest.er1 >conftest.err
   15621   rm -f conftest.er1
   15622   cat conftest.err >&5
   15623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15624   (exit $ac_status); } && {
   15625 	 test -z "$ac_c_werror_flag" ||
   15626 	 test ! -s conftest.err
   15627        } && test -s conftest$ac_exeext && {
   15628 	 test "$cross_compiling" = yes ||
   15629 	 $as_test_x conftest$ac_exeext
   15630        }; then
   15631   ac_cv_func_getline=yes
   15632 else
   15633   $as_echo "$as_me: failed program was:" >&5
   15634 sed 's/^/| /' conftest.$ac_ext >&5
   15635 
   15636 	ac_cv_func_getline=no
   15637 fi
   15638 
   15639 rm -rf conftest.dSYM
   15640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15641       conftest$ac_exeext conftest.$ac_ext
   15642 fi
   15643 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
   15644 $as_echo "$ac_cv_func_getline" >&6; }
   15645 if test "x$ac_cv_func_getline" = x""yes; then
   15646   		gl_getline_needs_run_time_check=yes
   15647 else
   15648   am_cv_func_working_getline=no
   15649 fi
   15650 
   15651   if test $gl_getline_needs_run_time_check = yes; then
   15652     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
   15653 $as_echo_n "checking for working getline function... " >&6; }
   15654 if test "${am_cv_func_working_getline+set}" = set; then
   15655   $as_echo_n "(cached) " >&6
   15656 else
   15657   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
   15658     if test "$cross_compiling" = yes; then
   15659         cat >conftest.$ac_ext <<_ACEOF
   15660 /* confdefs.h.  */
   15661 _ACEOF
   15662 cat confdefs.h >>conftest.$ac_ext
   15663 cat >>conftest.$ac_ext <<_ACEOF
   15664 /* end confdefs.h.  */
   15665 
   15666 #include <features.h>
   15667 #ifdef __GNU_LIBRARY__
   15668  #if (__GLIBC__ >= 2)
   15669   Lucky GNU user
   15670  #endif
   15671 #endif
   15672 
   15673 _ACEOF
   15674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15675   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
   15676   am_cv_func_working_getline=yes
   15677 else
   15678   am_cv_func_working_getline=no
   15679 fi
   15680 rm -f conftest*
   15681 
   15682 
   15683 else
   15684   cat >conftest.$ac_ext <<_ACEOF
   15685 /* confdefs.h.  */
   15686 _ACEOF
   15687 cat confdefs.h >>conftest.$ac_ext
   15688 cat >>conftest.$ac_ext <<_ACEOF
   15689 /* end confdefs.h.  */
   15690 
   15691 #    include <stdio.h>
   15692 #    include <stdlib.h>
   15693 #    include <string.h>
   15694     int main ()
   15695     { /* Based on a test program from Karl Heuer.  */
   15696       char *line = NULL;
   15697       size_t siz = 0;
   15698       int len;
   15699       FILE *in = fopen ("./conftest.data", "r");
   15700       if (!in)
   15701 	return 1;
   15702       len = getline (&line, &siz, in);
   15703       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
   15704     }
   15705 
   15706 _ACEOF
   15707 rm -f conftest$ac_exeext
   15708 if { (ac_try="$ac_link"
   15709 case "(($ac_try" in
   15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15711   *) ac_try_echo=$ac_try;;
   15712 esac
   15713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15714 $as_echo "$ac_try_echo") >&5
   15715   (eval "$ac_link") 2>&5
   15716   ac_status=$?
   15717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   15719   { (case "(($ac_try" in
   15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15721   *) ac_try_echo=$ac_try;;
   15722 esac
   15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15724 $as_echo "$ac_try_echo") >&5
   15725   (eval "$ac_try") 2>&5
   15726   ac_status=$?
   15727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15728   (exit $ac_status); }; }; then
   15729   am_cv_func_working_getline=yes
   15730 else
   15731   $as_echo "$as_me: program exited with status $ac_status" >&5
   15732 $as_echo "$as_me: failed program was:" >&5
   15733 sed 's/^/| /' conftest.$ac_ext >&5
   15734 
   15735 ( exit $ac_status )
   15736 am_cv_func_working_getline=no
   15737 fi
   15738 rm -rf conftest.dSYM
   15739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   15740 fi
   15741 
   15742 
   15743 fi
   15744 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
   15745 $as_echo "$am_cv_func_working_getline" >&6; }
   15746   fi
   15747 
   15748   if test $ac_cv_have_decl_getline = no; then
   15749     HAVE_DECL_GETLINE=0
   15750   fi
   15751 
   15752   if test $am_cv_func_working_getline = no; then
   15753     REPLACE_GETLINE=1
   15754 
   15755 
   15756 
   15757 
   15758 
   15759 
   15760 
   15761 
   15762   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
   15763 
   15764 
   15765 
   15766 
   15767 
   15768 
   15769 
   15770 
   15771 
   15772 
   15773 
   15774 
   15775 
   15776 
   15777 
   15778 
   15779 
   15780 for ac_func in getdelim
   15781 do
   15782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   15784 $as_echo_n "checking for $ac_func... " >&6; }
   15785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15786   $as_echo_n "(cached) " >&6
   15787 else
   15788   cat >conftest.$ac_ext <<_ACEOF
   15789 /* confdefs.h.  */
   15790 _ACEOF
   15791 cat confdefs.h >>conftest.$ac_ext
   15792 cat >>conftest.$ac_ext <<_ACEOF
   15793 /* end confdefs.h.  */
   15794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15796 #define $ac_func innocuous_$ac_func
   15797 
   15798 /* System header to define __stub macros and hopefully few prototypes,
   15799     which can conflict with char $ac_func (); below.
   15800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15801     <limits.h> exists even on freestanding compilers.  */
   15802 
   15803 #ifdef __STDC__
   15804 # include <limits.h>
   15805 #else
   15806 # include <assert.h>
   15807 #endif
   15808 
   15809 #undef $ac_func
   15810 
   15811 /* Override any GCC internal prototype to avoid an error.
   15812    Use char because int might match the return type of a GCC
   15813    builtin and then its argument prototype would still apply.  */
   15814 #ifdef __cplusplus
   15815 extern "C"
   15816 #endif
   15817 char $ac_func ();
   15818 /* The GNU C library defines this for functions which it implements
   15819     to always fail with ENOSYS.  Some functions are actually named
   15820     something starting with __ and the normal name is an alias.  */
   15821 #if defined __stub_$ac_func || defined __stub___$ac_func
   15822 choke me
   15823 #endif
   15824 
   15825 int
   15826 main ()
   15827 {
   15828 return $ac_func ();
   15829   ;
   15830   return 0;
   15831 }
   15832 _ACEOF
   15833 rm -f conftest.$ac_objext conftest$ac_exeext
   15834 if { (ac_try="$ac_link"
   15835 case "(($ac_try" in
   15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15837   *) ac_try_echo=$ac_try;;
   15838 esac
   15839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15840 $as_echo "$ac_try_echo") >&5
   15841   (eval "$ac_link") 2>conftest.er1
   15842   ac_status=$?
   15843   grep -v '^ *+' conftest.er1 >conftest.err
   15844   rm -f conftest.er1
   15845   cat conftest.err >&5
   15846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15847   (exit $ac_status); } && {
   15848 	 test -z "$ac_c_werror_flag" ||
   15849 	 test ! -s conftest.err
   15850        } && test -s conftest$ac_exeext && {
   15851 	 test "$cross_compiling" = yes ||
   15852 	 $as_test_x conftest$ac_exeext
   15853        }; then
   15854   eval "$as_ac_var=yes"
   15855 else
   15856   $as_echo "$as_me: failed program was:" >&5
   15857 sed 's/^/| /' conftest.$ac_ext >&5
   15858 
   15859 	eval "$as_ac_var=no"
   15860 fi
   15861 
   15862 rm -rf conftest.dSYM
   15863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15864       conftest$ac_exeext conftest.$ac_ext
   15865 fi
   15866 ac_res=`eval 'as_val=${'$as_ac_var'}
   15867 		 $as_echo "$as_val"'`
   15868 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   15869 $as_echo "$ac_res" >&6; }
   15870 as_val=`eval 'as_val=${'$as_ac_var'}
   15871 		 $as_echo "$as_val"'`
   15872    if test "x$as_val" = x""yes; then
   15873   cat >>confdefs.h <<_ACEOF
   15874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15875 _ACEOF
   15876 
   15877 else
   15878 
   15879     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
   15880 
   15881 fi
   15882 done
   15883 
   15884 
   15885 
   15886 
   15887 
   15888 
   15889 
   15890   if test $ac_cv_func_getdelim = no; then
   15891 
   15892 
   15893 
   15894 for ac_func in flockfile funlockfile
   15895 do
   15896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   15898 $as_echo_n "checking for $ac_func... " >&6; }
   15899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15900   $as_echo_n "(cached) " >&6
   15901 else
   15902   cat >conftest.$ac_ext <<_ACEOF
   15903 /* confdefs.h.  */
   15904 _ACEOF
   15905 cat confdefs.h >>conftest.$ac_ext
   15906 cat >>conftest.$ac_ext <<_ACEOF
   15907 /* end confdefs.h.  */
   15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15910 #define $ac_func innocuous_$ac_func
   15911 
   15912 /* System header to define __stub macros and hopefully few prototypes,
   15913     which can conflict with char $ac_func (); below.
   15914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15915     <limits.h> exists even on freestanding compilers.  */
   15916 
   15917 #ifdef __STDC__
   15918 # include <limits.h>
   15919 #else
   15920 # include <assert.h>
   15921 #endif
   15922 
   15923 #undef $ac_func
   15924 
   15925 /* Override any GCC internal prototype to avoid an error.
   15926    Use char because int might match the return type of a GCC
   15927    builtin and then its argument prototype would still apply.  */
   15928 #ifdef __cplusplus
   15929 extern "C"
   15930 #endif
   15931 char $ac_func ();
   15932 /* The GNU C library defines this for functions which it implements
   15933     to always fail with ENOSYS.  Some functions are actually named
   15934     something starting with __ and the normal name is an alias.  */
   15935 #if defined __stub_$ac_func || defined __stub___$ac_func
   15936 choke me
   15937 #endif
   15938 
   15939 int
   15940 main ()
   15941 {
   15942 return $ac_func ();
   15943   ;
   15944   return 0;
   15945 }
   15946 _ACEOF
   15947 rm -f conftest.$ac_objext conftest$ac_exeext
   15948 if { (ac_try="$ac_link"
   15949 case "(($ac_try" in
   15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15951   *) ac_try_echo=$ac_try;;
   15952 esac
   15953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   15954 $as_echo "$ac_try_echo") >&5
   15955   (eval "$ac_link") 2>conftest.er1
   15956   ac_status=$?
   15957   grep -v '^ *+' conftest.er1 >conftest.err
   15958   rm -f conftest.er1
   15959   cat conftest.err >&5
   15960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15961   (exit $ac_status); } && {
   15962 	 test -z "$ac_c_werror_flag" ||
   15963 	 test ! -s conftest.err
   15964        } && test -s conftest$ac_exeext && {
   15965 	 test "$cross_compiling" = yes ||
   15966 	 $as_test_x conftest$ac_exeext
   15967        }; then
   15968   eval "$as_ac_var=yes"
   15969 else
   15970   $as_echo "$as_me: failed program was:" >&5
   15971 sed 's/^/| /' conftest.$ac_ext >&5
   15972 
   15973 	eval "$as_ac_var=no"
   15974 fi
   15975 
   15976 rm -rf conftest.dSYM
   15977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15978       conftest$ac_exeext conftest.$ac_ext
   15979 fi
   15980 ac_res=`eval 'as_val=${'$as_ac_var'}
   15981 		 $as_echo "$as_val"'`
   15982 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   15983 $as_echo "$ac_res" >&6; }
   15984 as_val=`eval 'as_val=${'$as_ac_var'}
   15985 		 $as_echo "$as_val"'`
   15986    if test "x$as_val" = x""yes; then
   15987   cat >>confdefs.h <<_ACEOF
   15988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15989 _ACEOF
   15990 
   15991 fi
   15992 done
   15993 
   15994   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
   15995 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
   15996 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
   15997   $as_echo_n "(cached) " >&6
   15998 else
   15999   cat >conftest.$ac_ext <<_ACEOF
   16000 /* confdefs.h.  */
   16001 _ACEOF
   16002 cat confdefs.h >>conftest.$ac_ext
   16003 cat >>conftest.$ac_ext <<_ACEOF
   16004 /* end confdefs.h.  */
   16005 $ac_includes_default
   16006 int
   16007 main ()
   16008 {
   16009 #ifndef getc_unlocked
   16010   (void) getc_unlocked;
   16011 #endif
   16012 
   16013   ;
   16014   return 0;
   16015 }
   16016 _ACEOF
   16017 rm -f conftest.$ac_objext
   16018 if { (ac_try="$ac_compile"
   16019 case "(($ac_try" in
   16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16021   *) ac_try_echo=$ac_try;;
   16022 esac
   16023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16024 $as_echo "$ac_try_echo") >&5
   16025   (eval "$ac_compile") 2>conftest.er1
   16026   ac_status=$?
   16027   grep -v '^ *+' conftest.er1 >conftest.err
   16028   rm -f conftest.er1
   16029   cat conftest.err >&5
   16030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16031   (exit $ac_status); } && {
   16032 	 test -z "$ac_c_werror_flag" ||
   16033 	 test ! -s conftest.err
   16034        } && test -s conftest.$ac_objext; then
   16035   ac_cv_have_decl_getc_unlocked=yes
   16036 else
   16037   $as_echo "$as_me: failed program was:" >&5
   16038 sed 's/^/| /' conftest.$ac_ext >&5
   16039 
   16040 	ac_cv_have_decl_getc_unlocked=no
   16041 fi
   16042 
   16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16044 fi
   16045 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
   16046 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
   16047 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
   16048 
   16049 cat >>confdefs.h <<_ACEOF
   16050 #define HAVE_DECL_GETC_UNLOCKED 1
   16051 _ACEOF
   16052 
   16053 
   16054 else
   16055   cat >>confdefs.h <<_ACEOF
   16056 #define HAVE_DECL_GETC_UNLOCKED 0
   16057 _ACEOF
   16058 
   16059 
   16060 fi
   16061 
   16062 
   16063 
   16064   fi
   16065 
   16066   if test $ac_cv_have_decl_getdelim = no; then
   16067     HAVE_DECL_GETDELIM=0
   16068   fi
   16069 
   16070 
   16071   fi
   16072 
   16073 
   16074 
   16075   GNULIB_GETLINE=1
   16076 
   16077 
   16078 
   16079   if test -n "$GETOPT_H"; then
   16080 
   16081 
   16082 
   16083 
   16084 
   16085 
   16086 
   16087 
   16088 
   16089   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
   16090 
   16091 
   16092 
   16093 
   16094 
   16095 
   16096 
   16097 
   16098 
   16099   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
   16100 
   16101 
   16102   GETOPT_H=getopt.h
   16103 
   16104 cat >>confdefs.h <<\_ACEOF
   16105 #define __GETOPT_PREFIX rpl_
   16106 _ACEOF
   16107 
   16108 
   16109 
   16110 
   16111 
   16112 
   16113 
   16114 
   16115 
   16116 
   16117 fi
   16118 
   16119 
   16120 
   16121 
   16122 
   16123 
   16124 for ac_func in getpagesize
   16125 do
   16126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16127 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   16128 $as_echo_n "checking for $ac_func... " >&6; }
   16129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16130   $as_echo_n "(cached) " >&6
   16131 else
   16132   cat >conftest.$ac_ext <<_ACEOF
   16133 /* confdefs.h.  */
   16134 _ACEOF
   16135 cat confdefs.h >>conftest.$ac_ext
   16136 cat >>conftest.$ac_ext <<_ACEOF
   16137 /* end confdefs.h.  */
   16138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16140 #define $ac_func innocuous_$ac_func
   16141 
   16142 /* System header to define __stub macros and hopefully few prototypes,
   16143     which can conflict with char $ac_func (); below.
   16144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16145     <limits.h> exists even on freestanding compilers.  */
   16146 
   16147 #ifdef __STDC__
   16148 # include <limits.h>
   16149 #else
   16150 # include <assert.h>
   16151 #endif
   16152 
   16153 #undef $ac_func
   16154 
   16155 /* Override any GCC internal prototype to avoid an error.
   16156    Use char because int might match the return type of a GCC
   16157    builtin and then its argument prototype would still apply.  */
   16158 #ifdef __cplusplus
   16159 extern "C"
   16160 #endif
   16161 char $ac_func ();
   16162 /* The GNU C library defines this for functions which it implements
   16163     to always fail with ENOSYS.  Some functions are actually named
   16164     something starting with __ and the normal name is an alias.  */
   16165 #if defined __stub_$ac_func || defined __stub___$ac_func
   16166 choke me
   16167 #endif
   16168 
   16169 int
   16170 main ()
   16171 {
   16172 return $ac_func ();
   16173   ;
   16174   return 0;
   16175 }
   16176 _ACEOF
   16177 rm -f conftest.$ac_objext conftest$ac_exeext
   16178 if { (ac_try="$ac_link"
   16179 case "(($ac_try" in
   16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16181   *) ac_try_echo=$ac_try;;
   16182 esac
   16183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16184 $as_echo "$ac_try_echo") >&5
   16185   (eval "$ac_link") 2>conftest.er1
   16186   ac_status=$?
   16187   grep -v '^ *+' conftest.er1 >conftest.err
   16188   rm -f conftest.er1
   16189   cat conftest.err >&5
   16190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16191   (exit $ac_status); } && {
   16192 	 test -z "$ac_c_werror_flag" ||
   16193 	 test ! -s conftest.err
   16194        } && test -s conftest$ac_exeext && {
   16195 	 test "$cross_compiling" = yes ||
   16196 	 $as_test_x conftest$ac_exeext
   16197        }; then
   16198   eval "$as_ac_var=yes"
   16199 else
   16200   $as_echo "$as_me: failed program was:" >&5
   16201 sed 's/^/| /' conftest.$ac_ext >&5
   16202 
   16203 	eval "$as_ac_var=no"
   16204 fi
   16205 
   16206 rm -rf conftest.dSYM
   16207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16208       conftest$ac_exeext conftest.$ac_ext
   16209 fi
   16210 ac_res=`eval 'as_val=${'$as_ac_var'}
   16211 		 $as_echo "$as_val"'`
   16212 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16213 $as_echo "$ac_res" >&6; }
   16214 as_val=`eval 'as_val=${'$as_ac_var'}
   16215 		 $as_echo "$as_val"'`
   16216    if test "x$as_val" = x""yes; then
   16217   cat >>confdefs.h <<_ACEOF
   16218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16219 _ACEOF
   16220 
   16221 fi
   16222 done
   16223 
   16224   if test $ac_cv_func_getpagesize = no; then
   16225     HAVE_GETPAGESIZE=0
   16226 
   16227 for ac_header in OS.h
   16228 do
   16229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16231   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16232 $as_echo_n "checking for $ac_header... " >&6; }
   16233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16234   $as_echo_n "(cached) " >&6
   16235 fi
   16236 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16237 		 $as_echo "$as_val"'`
   16238 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16239 $as_echo "$ac_res" >&6; }
   16240 else
   16241   # Is the header compilable?
   16242 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   16243 $as_echo_n "checking $ac_header usability... " >&6; }
   16244 cat >conftest.$ac_ext <<_ACEOF
   16245 /* confdefs.h.  */
   16246 _ACEOF
   16247 cat confdefs.h >>conftest.$ac_ext
   16248 cat >>conftest.$ac_ext <<_ACEOF
   16249 /* end confdefs.h.  */
   16250 $ac_includes_default
   16251 #include <$ac_header>
   16252 _ACEOF
   16253 rm -f conftest.$ac_objext
   16254 if { (ac_try="$ac_compile"
   16255 case "(($ac_try" in
   16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16257   *) ac_try_echo=$ac_try;;
   16258 esac
   16259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16260 $as_echo "$ac_try_echo") >&5
   16261   (eval "$ac_compile") 2>conftest.er1
   16262   ac_status=$?
   16263   grep -v '^ *+' conftest.er1 >conftest.err
   16264   rm -f conftest.er1
   16265   cat conftest.err >&5
   16266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16267   (exit $ac_status); } && {
   16268 	 test -z "$ac_c_werror_flag" ||
   16269 	 test ! -s conftest.err
   16270        } && test -s conftest.$ac_objext; then
   16271   ac_header_compiler=yes
   16272 else
   16273   $as_echo "$as_me: failed program was:" >&5
   16274 sed 's/^/| /' conftest.$ac_ext >&5
   16275 
   16276 	ac_header_compiler=no
   16277 fi
   16278 
   16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16281 $as_echo "$ac_header_compiler" >&6; }
   16282 
   16283 # Is the header present?
   16284 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16285 $as_echo_n "checking $ac_header presence... " >&6; }
   16286 cat >conftest.$ac_ext <<_ACEOF
   16287 /* confdefs.h.  */
   16288 _ACEOF
   16289 cat confdefs.h >>conftest.$ac_ext
   16290 cat >>conftest.$ac_ext <<_ACEOF
   16291 /* end confdefs.h.  */
   16292 #include <$ac_header>
   16293 _ACEOF
   16294 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16295 case "(($ac_try" in
   16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16297   *) ac_try_echo=$ac_try;;
   16298 esac
   16299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16300 $as_echo "$ac_try_echo") >&5
   16301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16302   ac_status=$?
   16303   grep -v '^ *+' conftest.er1 >conftest.err
   16304   rm -f conftest.er1
   16305   cat conftest.err >&5
   16306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16307   (exit $ac_status); } >/dev/null && {
   16308 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   16309 	 test ! -s conftest.err
   16310        }; then
   16311   ac_header_preproc=yes
   16312 else
   16313   $as_echo "$as_me: failed program was:" >&5
   16314 sed 's/^/| /' conftest.$ac_ext >&5
   16315 
   16316   ac_header_preproc=no
   16317 fi
   16318 
   16319 rm -f conftest.err conftest.$ac_ext
   16320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16321 $as_echo "$ac_header_preproc" >&6; }
   16322 
   16323 # So?  What about this header?
   16324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16325   yes:no: )
   16326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16327 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16330     ac_header_preproc=yes
   16331     ;;
   16332   no:yes:* )
   16333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16334 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16336 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16338 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16340 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16344 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16345     ( cat <<\_ASBOX
   16346 ## ------------------------------------ ##
   16347 ## Report this to bug-gnu-utils (at] gnu.org ##
   16348 ## ------------------------------------ ##
   16349 _ASBOX
   16350      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16351     ;;
   16352 esac
   16353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16354 $as_echo_n "checking for $ac_header... " >&6; }
   16355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16356   $as_echo_n "(cached) " >&6
   16357 else
   16358   eval "$as_ac_Header=\$ac_header_preproc"
   16359 fi
   16360 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16361 		 $as_echo "$as_val"'`
   16362 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16363 $as_echo "$ac_res" >&6; }
   16364 
   16365 fi
   16366 as_val=`eval 'as_val=${'$as_ac_Header'}
   16367 		 $as_echo "$as_val"'`
   16368    if test "x$as_val" = x""yes; then
   16369   cat >>confdefs.h <<_ACEOF
   16370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16371 _ACEOF
   16372 
   16373 fi
   16374 
   16375 done
   16376 
   16377     if test $ac_cv_header_OS_h = yes; then
   16378       HAVE_OS_H=1
   16379     fi
   16380 
   16381 for ac_header in sys/param.h
   16382 do
   16383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16385   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16386 $as_echo_n "checking for $ac_header... " >&6; }
   16387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16388   $as_echo_n "(cached) " >&6
   16389 fi
   16390 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16391 		 $as_echo "$as_val"'`
   16392 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16393 $as_echo "$ac_res" >&6; }
   16394 else
   16395   # Is the header compilable?
   16396 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   16397 $as_echo_n "checking $ac_header usability... " >&6; }
   16398 cat >conftest.$ac_ext <<_ACEOF
   16399 /* confdefs.h.  */
   16400 _ACEOF
   16401 cat confdefs.h >>conftest.$ac_ext
   16402 cat >>conftest.$ac_ext <<_ACEOF
   16403 /* end confdefs.h.  */
   16404 $ac_includes_default
   16405 #include <$ac_header>
   16406 _ACEOF
   16407 rm -f conftest.$ac_objext
   16408 if { (ac_try="$ac_compile"
   16409 case "(($ac_try" in
   16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16411   *) ac_try_echo=$ac_try;;
   16412 esac
   16413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16414 $as_echo "$ac_try_echo") >&5
   16415   (eval "$ac_compile") 2>conftest.er1
   16416   ac_status=$?
   16417   grep -v '^ *+' conftest.er1 >conftest.err
   16418   rm -f conftest.er1
   16419   cat conftest.err >&5
   16420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16421   (exit $ac_status); } && {
   16422 	 test -z "$ac_c_werror_flag" ||
   16423 	 test ! -s conftest.err
   16424        } && test -s conftest.$ac_objext; then
   16425   ac_header_compiler=yes
   16426 else
   16427   $as_echo "$as_me: failed program was:" >&5
   16428 sed 's/^/| /' conftest.$ac_ext >&5
   16429 
   16430 	ac_header_compiler=no
   16431 fi
   16432 
   16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16434 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16435 $as_echo "$ac_header_compiler" >&6; }
   16436 
   16437 # Is the header present?
   16438 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16439 $as_echo_n "checking $ac_header presence... " >&6; }
   16440 cat >conftest.$ac_ext <<_ACEOF
   16441 /* confdefs.h.  */
   16442 _ACEOF
   16443 cat confdefs.h >>conftest.$ac_ext
   16444 cat >>conftest.$ac_ext <<_ACEOF
   16445 /* end confdefs.h.  */
   16446 #include <$ac_header>
   16447 _ACEOF
   16448 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16449 case "(($ac_try" in
   16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16451   *) ac_try_echo=$ac_try;;
   16452 esac
   16453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16454 $as_echo "$ac_try_echo") >&5
   16455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16456   ac_status=$?
   16457   grep -v '^ *+' conftest.er1 >conftest.err
   16458   rm -f conftest.er1
   16459   cat conftest.err >&5
   16460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16461   (exit $ac_status); } >/dev/null && {
   16462 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   16463 	 test ! -s conftest.err
   16464        }; then
   16465   ac_header_preproc=yes
   16466 else
   16467   $as_echo "$as_me: failed program was:" >&5
   16468 sed 's/^/| /' conftest.$ac_ext >&5
   16469 
   16470   ac_header_preproc=no
   16471 fi
   16472 
   16473 rm -f conftest.err conftest.$ac_ext
   16474 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16475 $as_echo "$ac_header_preproc" >&6; }
   16476 
   16477 # So?  What about this header?
   16478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16479   yes:no: )
   16480     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16481 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16482     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16483 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16484     ac_header_preproc=yes
   16485     ;;
   16486   no:yes:* )
   16487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16488 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16489     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16490 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16491     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16492 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16494 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16497     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16498 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16499     ( cat <<\_ASBOX
   16500 ## ------------------------------------ ##
   16501 ## Report this to bug-gnu-utils (at] gnu.org ##
   16502 ## ------------------------------------ ##
   16503 _ASBOX
   16504      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16505     ;;
   16506 esac
   16507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16508 $as_echo_n "checking for $ac_header... " >&6; }
   16509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16510   $as_echo_n "(cached) " >&6
   16511 else
   16512   eval "$as_ac_Header=\$ac_header_preproc"
   16513 fi
   16514 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16515 		 $as_echo "$as_val"'`
   16516 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16517 $as_echo "$ac_res" >&6; }
   16518 
   16519 fi
   16520 as_val=`eval 'as_val=${'$as_ac_Header'}
   16521 		 $as_echo "$as_val"'`
   16522    if test "x$as_val" = x""yes; then
   16523   cat >>confdefs.h <<_ACEOF
   16524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16525 _ACEOF
   16526 
   16527 fi
   16528 
   16529 done
   16530 
   16531     if test $ac_cv_header_sys_param_h = yes; then
   16532       HAVE_SYS_PARAM_H=1
   16533     fi
   16534   fi
   16535   case "$host_os" in
   16536     mingw*)
   16537       REPLACE_GETPAGESIZE=1
   16538 
   16539 
   16540 
   16541 
   16542 
   16543 
   16544 
   16545 
   16546   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
   16547 
   16548       ;;
   16549   esac
   16550 
   16551 
   16552 
   16553   GNULIB_GETPAGESIZE=1
   16554 
   16555 
   16556 
   16557 
   16558 
   16559 
   16560 
   16561 
   16562 
   16563 
   16564 
   16565 
   16566 
   16567 
   16568   { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
   16569 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
   16570 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
   16571   $as_echo_n "(cached) " >&6
   16572 else
   16573   cat >conftest.$ac_ext <<_ACEOF
   16574 /* confdefs.h.  */
   16575 _ACEOF
   16576 cat confdefs.h >>conftest.$ac_ext
   16577 cat >>conftest.$ac_ext <<_ACEOF
   16578 /* end confdefs.h.  */
   16579 #include <sys/time.h>
   16580 	    struct timeval c;
   16581 
   16582 int
   16583 main ()
   16584 {
   16585 
   16586 	    int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
   16587 	    int x = f (&c, 0);
   16588 	    return !(x | c.tv_sec | c.tv_usec);
   16589 
   16590   ;
   16591   return 0;
   16592 }
   16593 _ACEOF
   16594 rm -f conftest.$ac_objext
   16595 if { (ac_try="$ac_compile"
   16596 case "(($ac_try" in
   16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16598   *) ac_try_echo=$ac_try;;
   16599 esac
   16600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16601 $as_echo "$ac_try_echo") >&5
   16602   (eval "$ac_compile") 2>conftest.er1
   16603   ac_status=$?
   16604   grep -v '^ *+' conftest.er1 >conftest.err
   16605   rm -f conftest.er1
   16606   cat conftest.err >&5
   16607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16608   (exit $ac_status); } && {
   16609 	 test -z "$ac_c_werror_flag" ||
   16610 	 test ! -s conftest.err
   16611        } && test -s conftest.$ac_objext; then
   16612   gl_cv_func_gettimeofday_posix_signature=yes
   16613 else
   16614   $as_echo "$as_me: failed program was:" >&5
   16615 sed 's/^/| /' conftest.$ac_ext >&5
   16616 
   16617 	gl_cv_func_gettimeofday_posix_signature=no
   16618 fi
   16619 
   16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16621 fi
   16622 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
   16623 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
   16624 
   16625 
   16626 
   16627 
   16628  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
   16629 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
   16630 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
   16631   $as_echo_n "(cached) " >&6
   16632 else
   16633   if test "$cross_compiling" = yes; then
   16634        gl_cv_func_gettimeofday_clobber=yes
   16635 else
   16636   cat >conftest.$ac_ext <<_ACEOF
   16637 /* confdefs.h.  */
   16638 _ACEOF
   16639 cat confdefs.h >>conftest.$ac_ext
   16640 cat >>conftest.$ac_ext <<_ACEOF
   16641 /* end confdefs.h.  */
   16642 #include <string.h>
   16643 	  #include <sys/time.h>
   16644 	  #include <time.h>
   16645 	  #include <stdlib.h>
   16646 
   16647 int
   16648 main ()
   16649 {
   16650 
   16651 	  time_t t = 0;
   16652 	  struct tm *lt;
   16653 	  struct tm saved_lt;
   16654 	  struct timeval tv;
   16655 	  lt = localtime (&t);
   16656 	  saved_lt = *lt;
   16657 	  gettimeofday (&tv, NULL);
   16658 	  return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
   16659 
   16660   ;
   16661   return 0;
   16662 }
   16663 _ACEOF
   16664 rm -f conftest$ac_exeext
   16665 if { (ac_try="$ac_link"
   16666 case "(($ac_try" in
   16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16668   *) ac_try_echo=$ac_try;;
   16669 esac
   16670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16671 $as_echo "$ac_try_echo") >&5
   16672   (eval "$ac_link") 2>&5
   16673   ac_status=$?
   16674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   16676   { (case "(($ac_try" in
   16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16678   *) ac_try_echo=$ac_try;;
   16679 esac
   16680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16681 $as_echo "$ac_try_echo") >&5
   16682   (eval "$ac_try") 2>&5
   16683   ac_status=$?
   16684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16685   (exit $ac_status); }; }; then
   16686   gl_cv_func_gettimeofday_clobber=no
   16687 else
   16688   $as_echo "$as_me: program exited with status $ac_status" >&5
   16689 $as_echo "$as_me: failed program was:" >&5
   16690 sed 's/^/| /' conftest.$ac_ext >&5
   16691 
   16692 ( exit $ac_status )
   16693 gl_cv_func_gettimeofday_clobber=yes
   16694 fi
   16695 rm -rf conftest.dSYM
   16696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   16697 fi
   16698 
   16699 
   16700 fi
   16701 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
   16702 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
   16703 
   16704  if test $gl_cv_func_gettimeofday_clobber = yes; then
   16705    REPLACE_GETTIMEOFDAY=1
   16706    SYS_TIME_H=sys/time.h
   16707 
   16708 
   16709 
   16710 
   16711 
   16712 
   16713 
   16714 
   16715 
   16716   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
   16717 
   16718 
   16719 
   16720 for ac_header in sys/timeb.h
   16721 do
   16722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16724   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16725 $as_echo_n "checking for $ac_header... " >&6; }
   16726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16727   $as_echo_n "(cached) " >&6
   16728 fi
   16729 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16730 		 $as_echo "$as_val"'`
   16731 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16732 $as_echo "$ac_res" >&6; }
   16733 else
   16734   # Is the header compilable?
   16735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   16736 $as_echo_n "checking $ac_header usability... " >&6; }
   16737 cat >conftest.$ac_ext <<_ACEOF
   16738 /* confdefs.h.  */
   16739 _ACEOF
   16740 cat confdefs.h >>conftest.$ac_ext
   16741 cat >>conftest.$ac_ext <<_ACEOF
   16742 /* end confdefs.h.  */
   16743 $ac_includes_default
   16744 #include <$ac_header>
   16745 _ACEOF
   16746 rm -f conftest.$ac_objext
   16747 if { (ac_try="$ac_compile"
   16748 case "(($ac_try" in
   16749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16750   *) ac_try_echo=$ac_try;;
   16751 esac
   16752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16753 $as_echo "$ac_try_echo") >&5
   16754   (eval "$ac_compile") 2>conftest.er1
   16755   ac_status=$?
   16756   grep -v '^ *+' conftest.er1 >conftest.err
   16757   rm -f conftest.er1
   16758   cat conftest.err >&5
   16759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16760   (exit $ac_status); } && {
   16761 	 test -z "$ac_c_werror_flag" ||
   16762 	 test ! -s conftest.err
   16763        } && test -s conftest.$ac_objext; then
   16764   ac_header_compiler=yes
   16765 else
   16766   $as_echo "$as_me: failed program was:" >&5
   16767 sed 's/^/| /' conftest.$ac_ext >&5
   16768 
   16769 	ac_header_compiler=no
   16770 fi
   16771 
   16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16774 $as_echo "$ac_header_compiler" >&6; }
   16775 
   16776 # Is the header present?
   16777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16778 $as_echo_n "checking $ac_header presence... " >&6; }
   16779 cat >conftest.$ac_ext <<_ACEOF
   16780 /* confdefs.h.  */
   16781 _ACEOF
   16782 cat confdefs.h >>conftest.$ac_ext
   16783 cat >>conftest.$ac_ext <<_ACEOF
   16784 /* end confdefs.h.  */
   16785 #include <$ac_header>
   16786 _ACEOF
   16787 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16788 case "(($ac_try" in
   16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16790   *) ac_try_echo=$ac_try;;
   16791 esac
   16792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16793 $as_echo "$ac_try_echo") >&5
   16794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16795   ac_status=$?
   16796   grep -v '^ *+' conftest.er1 >conftest.err
   16797   rm -f conftest.er1
   16798   cat conftest.err >&5
   16799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16800   (exit $ac_status); } >/dev/null && {
   16801 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   16802 	 test ! -s conftest.err
   16803        }; then
   16804   ac_header_preproc=yes
   16805 else
   16806   $as_echo "$as_me: failed program was:" >&5
   16807 sed 's/^/| /' conftest.$ac_ext >&5
   16808 
   16809   ac_header_preproc=no
   16810 fi
   16811 
   16812 rm -f conftest.err conftest.$ac_ext
   16813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16814 $as_echo "$ac_header_preproc" >&6; }
   16815 
   16816 # So?  What about this header?
   16817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16818   yes:no: )
   16819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16823     ac_header_preproc=yes
   16824     ;;
   16825   no:yes:* )
   16826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16829 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16833 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16838     ( cat <<\_ASBOX
   16839 ## ------------------------------------ ##
   16840 ## Report this to bug-gnu-utils (at] gnu.org ##
   16841 ## ------------------------------------ ##
   16842 _ASBOX
   16843      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16844     ;;
   16845 esac
   16846 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   16847 $as_echo_n "checking for $ac_header... " >&6; }
   16848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16849   $as_echo_n "(cached) " >&6
   16850 else
   16851   eval "$as_ac_Header=\$ac_header_preproc"
   16852 fi
   16853 ac_res=`eval 'as_val=${'$as_ac_Header'}
   16854 		 $as_echo "$as_val"'`
   16855 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16856 $as_echo "$ac_res" >&6; }
   16857 
   16858 fi
   16859 as_val=`eval 'as_val=${'$as_ac_Header'}
   16860 		 $as_echo "$as_val"'`
   16861    if test "x$as_val" = x""yes; then
   16862   cat >>confdefs.h <<_ACEOF
   16863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16864 _ACEOF
   16865 
   16866 fi
   16867 
   16868 done
   16869 
   16870 
   16871 for ac_func in _ftime
   16872 do
   16873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   16875 $as_echo_n "checking for $ac_func... " >&6; }
   16876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16877   $as_echo_n "(cached) " >&6
   16878 else
   16879   cat >conftest.$ac_ext <<_ACEOF
   16880 /* confdefs.h.  */
   16881 _ACEOF
   16882 cat confdefs.h >>conftest.$ac_ext
   16883 cat >>conftest.$ac_ext <<_ACEOF
   16884 /* end confdefs.h.  */
   16885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16887 #define $ac_func innocuous_$ac_func
   16888 
   16889 /* System header to define __stub macros and hopefully few prototypes,
   16890     which can conflict with char $ac_func (); below.
   16891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16892     <limits.h> exists even on freestanding compilers.  */
   16893 
   16894 #ifdef __STDC__
   16895 # include <limits.h>
   16896 #else
   16897 # include <assert.h>
   16898 #endif
   16899 
   16900 #undef $ac_func
   16901 
   16902 /* Override any GCC internal prototype to avoid an error.
   16903    Use char because int might match the return type of a GCC
   16904    builtin and then its argument prototype would still apply.  */
   16905 #ifdef __cplusplus
   16906 extern "C"
   16907 #endif
   16908 char $ac_func ();
   16909 /* The GNU C library defines this for functions which it implements
   16910     to always fail with ENOSYS.  Some functions are actually named
   16911     something starting with __ and the normal name is an alias.  */
   16912 #if defined __stub_$ac_func || defined __stub___$ac_func
   16913 choke me
   16914 #endif
   16915 
   16916 int
   16917 main ()
   16918 {
   16919 return $ac_func ();
   16920   ;
   16921   return 0;
   16922 }
   16923 _ACEOF
   16924 rm -f conftest.$ac_objext conftest$ac_exeext
   16925 if { (ac_try="$ac_link"
   16926 case "(($ac_try" in
   16927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16928   *) ac_try_echo=$ac_try;;
   16929 esac
   16930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   16931 $as_echo "$ac_try_echo") >&5
   16932   (eval "$ac_link") 2>conftest.er1
   16933   ac_status=$?
   16934   grep -v '^ *+' conftest.er1 >conftest.err
   16935   rm -f conftest.er1
   16936   cat conftest.err >&5
   16937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16938   (exit $ac_status); } && {
   16939 	 test -z "$ac_c_werror_flag" ||
   16940 	 test ! -s conftest.err
   16941        } && test -s conftest$ac_exeext && {
   16942 	 test "$cross_compiling" = yes ||
   16943 	 $as_test_x conftest$ac_exeext
   16944        }; then
   16945   eval "$as_ac_var=yes"
   16946 else
   16947   $as_echo "$as_me: failed program was:" >&5
   16948 sed 's/^/| /' conftest.$ac_ext >&5
   16949 
   16950 	eval "$as_ac_var=no"
   16951 fi
   16952 
   16953 rm -rf conftest.dSYM
   16954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16955       conftest$ac_exeext conftest.$ac_ext
   16956 fi
   16957 ac_res=`eval 'as_val=${'$as_ac_var'}
   16958 		 $as_echo "$as_val"'`
   16959 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   16960 $as_echo "$ac_res" >&6; }
   16961 as_val=`eval 'as_val=${'$as_ac_var'}
   16962 		 $as_echo "$as_val"'`
   16963    if test "x$as_val" = x""yes; then
   16964   cat >>confdefs.h <<_ACEOF
   16965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16966 _ACEOF
   16967 
   16968 fi
   16969 done
   16970 
   16971 
   16972 
   16973 cat >>confdefs.h <<\_ACEOF
   16974 #define gmtime rpl_gmtime
   16975 _ACEOF
   16976 
   16977 
   16978 cat >>confdefs.h <<\_ACEOF
   16979 #define localtime rpl_localtime
   16980 _ACEOF
   16981 
   16982 
   16983 
   16984 cat >>confdefs.h <<\_ACEOF
   16985 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
   16986 _ACEOF
   16987 
   16988  fi
   16989 
   16990 
   16991   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
   16992     REPLACE_GETTIMEOFDAY=1
   16993     SYS_TIME_H=sys/time.h
   16994     if test $gl_cv_func_gettimeofday_clobber != yes; then
   16995 
   16996 
   16997 
   16998 
   16999 
   17000 
   17001 
   17002 
   17003   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
   17004 
   17005 
   17006 
   17007 for ac_header in sys/timeb.h
   17008 do
   17009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17011   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   17012 $as_echo_n "checking for $ac_header... " >&6; }
   17013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17014   $as_echo_n "(cached) " >&6
   17015 fi
   17016 ac_res=`eval 'as_val=${'$as_ac_Header'}
   17017 		 $as_echo "$as_val"'`
   17018 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   17019 $as_echo "$ac_res" >&6; }
   17020 else
   17021   # Is the header compilable?
   17022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   17023 $as_echo_n "checking $ac_header usability... " >&6; }
   17024 cat >conftest.$ac_ext <<_ACEOF
   17025 /* confdefs.h.  */
   17026 _ACEOF
   17027 cat confdefs.h >>conftest.$ac_ext
   17028 cat >>conftest.$ac_ext <<_ACEOF
   17029 /* end confdefs.h.  */
   17030 $ac_includes_default
   17031 #include <$ac_header>
   17032 _ACEOF
   17033 rm -f conftest.$ac_objext
   17034 if { (ac_try="$ac_compile"
   17035 case "(($ac_try" in
   17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17037   *) ac_try_echo=$ac_try;;
   17038 esac
   17039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17040 $as_echo "$ac_try_echo") >&5
   17041   (eval "$ac_compile") 2>conftest.er1
   17042   ac_status=$?
   17043   grep -v '^ *+' conftest.er1 >conftest.err
   17044   rm -f conftest.er1
   17045   cat conftest.err >&5
   17046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17047   (exit $ac_status); } && {
   17048 	 test -z "$ac_c_werror_flag" ||
   17049 	 test ! -s conftest.err
   17050        } && test -s conftest.$ac_objext; then
   17051   ac_header_compiler=yes
   17052 else
   17053   $as_echo "$as_me: failed program was:" >&5
   17054 sed 's/^/| /' conftest.$ac_ext >&5
   17055 
   17056 	ac_header_compiler=no
   17057 fi
   17058 
   17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   17061 $as_echo "$ac_header_compiler" >&6; }
   17062 
   17063 # Is the header present?
   17064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   17065 $as_echo_n "checking $ac_header presence... " >&6; }
   17066 cat >conftest.$ac_ext <<_ACEOF
   17067 /* confdefs.h.  */
   17068 _ACEOF
   17069 cat confdefs.h >>conftest.$ac_ext
   17070 cat >>conftest.$ac_ext <<_ACEOF
   17071 /* end confdefs.h.  */
   17072 #include <$ac_header>
   17073 _ACEOF
   17074 if { (ac_try="$ac_cpp conftest.$ac_ext"
   17075 case "(($ac_try" in
   17076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17077   *) ac_try_echo=$ac_try;;
   17078 esac
   17079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17080 $as_echo "$ac_try_echo") >&5
   17081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   17082   ac_status=$?
   17083   grep -v '^ *+' conftest.er1 >conftest.err
   17084   rm -f conftest.er1
   17085   cat conftest.err >&5
   17086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17087   (exit $ac_status); } >/dev/null && {
   17088 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   17089 	 test ! -s conftest.err
   17090        }; then
   17091   ac_header_preproc=yes
   17092 else
   17093   $as_echo "$as_me: failed program was:" >&5
   17094 sed 's/^/| /' conftest.$ac_ext >&5
   17095 
   17096   ac_header_preproc=no
   17097 fi
   17098 
   17099 rm -f conftest.err conftest.$ac_ext
   17100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   17101 $as_echo "$ac_header_preproc" >&6; }
   17102 
   17103 # So?  What about this header?
   17104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   17105   yes:no: )
   17106     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   17107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   17108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   17109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   17110     ac_header_preproc=yes
   17111     ;;
   17112   no:yes:* )
   17113     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   17114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   17115     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   17116 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   17117     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   17118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   17119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   17120 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   17121     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   17122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   17123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   17124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   17125     ( cat <<\_ASBOX
   17126 ## ------------------------------------ ##
   17127 ## Report this to bug-gnu-utils (at] gnu.org ##
   17128 ## ------------------------------------ ##
   17129 _ASBOX
   17130      ) | sed "s/^/$as_me: WARNING:     /" >&2
   17131     ;;
   17132 esac
   17133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   17134 $as_echo_n "checking for $ac_header... " >&6; }
   17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17136   $as_echo_n "(cached) " >&6
   17137 else
   17138   eval "$as_ac_Header=\$ac_header_preproc"
   17139 fi
   17140 ac_res=`eval 'as_val=${'$as_ac_Header'}
   17141 		 $as_echo "$as_val"'`
   17142 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   17143 $as_echo "$ac_res" >&6; }
   17144 
   17145 fi
   17146 as_val=`eval 'as_val=${'$as_ac_Header'}
   17147 		 $as_echo "$as_val"'`
   17148    if test "x$as_val" = x""yes; then
   17149   cat >>confdefs.h <<_ACEOF
   17150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17151 _ACEOF
   17152 
   17153 fi
   17154 
   17155 done
   17156 
   17157 
   17158 for ac_func in _ftime
   17159 do
   17160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17161 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   17162 $as_echo_n "checking for $ac_func... " >&6; }
   17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17164   $as_echo_n "(cached) " >&6
   17165 else
   17166   cat >conftest.$ac_ext <<_ACEOF
   17167 /* confdefs.h.  */
   17168 _ACEOF
   17169 cat confdefs.h >>conftest.$ac_ext
   17170 cat >>conftest.$ac_ext <<_ACEOF
   17171 /* end confdefs.h.  */
   17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17174 #define $ac_func innocuous_$ac_func
   17175 
   17176 /* System header to define __stub macros and hopefully few prototypes,
   17177     which can conflict with char $ac_func (); below.
   17178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17179     <limits.h> exists even on freestanding compilers.  */
   17180 
   17181 #ifdef __STDC__
   17182 # include <limits.h>
   17183 #else
   17184 # include <assert.h>
   17185 #endif
   17186 
   17187 #undef $ac_func
   17188 
   17189 /* Override any GCC internal prototype to avoid an error.
   17190    Use char because int might match the return type of a GCC
   17191    builtin and then its argument prototype would still apply.  */
   17192 #ifdef __cplusplus
   17193 extern "C"
   17194 #endif
   17195 char $ac_func ();
   17196 /* The GNU C library defines this for functions which it implements
   17197     to always fail with ENOSYS.  Some functions are actually named
   17198     something starting with __ and the normal name is an alias.  */
   17199 #if defined __stub_$ac_func || defined __stub___$ac_func
   17200 choke me
   17201 #endif
   17202 
   17203 int
   17204 main ()
   17205 {
   17206 return $ac_func ();
   17207   ;
   17208   return 0;
   17209 }
   17210 _ACEOF
   17211 rm -f conftest.$ac_objext conftest$ac_exeext
   17212 if { (ac_try="$ac_link"
   17213 case "(($ac_try" in
   17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17215   *) ac_try_echo=$ac_try;;
   17216 esac
   17217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17218 $as_echo "$ac_try_echo") >&5
   17219   (eval "$ac_link") 2>conftest.er1
   17220   ac_status=$?
   17221   grep -v '^ *+' conftest.er1 >conftest.err
   17222   rm -f conftest.er1
   17223   cat conftest.err >&5
   17224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17225   (exit $ac_status); } && {
   17226 	 test -z "$ac_c_werror_flag" ||
   17227 	 test ! -s conftest.err
   17228        } && test -s conftest$ac_exeext && {
   17229 	 test "$cross_compiling" = yes ||
   17230 	 $as_test_x conftest$ac_exeext
   17231        }; then
   17232   eval "$as_ac_var=yes"
   17233 else
   17234   $as_echo "$as_me: failed program was:" >&5
   17235 sed 's/^/| /' conftest.$ac_ext >&5
   17236 
   17237 	eval "$as_ac_var=no"
   17238 fi
   17239 
   17240 rm -rf conftest.dSYM
   17241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17242       conftest$ac_exeext conftest.$ac_ext
   17243 fi
   17244 ac_res=`eval 'as_val=${'$as_ac_var'}
   17245 		 $as_echo "$as_val"'`
   17246 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   17247 $as_echo "$ac_res" >&6; }
   17248 as_val=`eval 'as_val=${'$as_ac_var'}
   17249 		 $as_echo "$as_val"'`
   17250    if test "x$as_val" = x""yes; then
   17251   cat >>confdefs.h <<_ACEOF
   17252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17253 _ACEOF
   17254 
   17255 fi
   17256 done
   17257 
   17258 
   17259     fi
   17260   fi
   17261 
   17262 
   17263 
   17264   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
   17265 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
   17266 if test "${gl_cv_c_inline_effective+set}" = set; then
   17267   $as_echo_n "(cached) " >&6
   17268 else
   17269   if test $ac_cv_c_inline = no; then
   17270        gl_cv_c_inline_effective=no
   17271      else
   17272                                           cat >conftest.$ac_ext <<_ACEOF
   17273 /* confdefs.h.  */
   17274 _ACEOF
   17275 cat confdefs.h >>conftest.$ac_ext
   17276 cat >>conftest.$ac_ext <<_ACEOF
   17277 /* end confdefs.h.  */
   17278 
   17279 int
   17280 main ()
   17281 {
   17282 #ifdef __NO_INLINE__
   17283                #error "inline is not effective"
   17284              #endif
   17285   ;
   17286   return 0;
   17287 }
   17288 _ACEOF
   17289 rm -f conftest.$ac_objext
   17290 if { (ac_try="$ac_compile"
   17291 case "(($ac_try" in
   17292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17293   *) ac_try_echo=$ac_try;;
   17294 esac
   17295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17296 $as_echo "$ac_try_echo") >&5
   17297   (eval "$ac_compile") 2>conftest.er1
   17298   ac_status=$?
   17299   grep -v '^ *+' conftest.er1 >conftest.err
   17300   rm -f conftest.er1
   17301   cat conftest.err >&5
   17302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17303   (exit $ac_status); } && {
   17304 	 test -z "$ac_c_werror_flag" ||
   17305 	 test ! -s conftest.err
   17306        } && test -s conftest.$ac_objext; then
   17307   gl_cv_c_inline_effective=yes
   17308 else
   17309   $as_echo "$as_me: failed program was:" >&5
   17310 sed 's/^/| /' conftest.$ac_ext >&5
   17311 
   17312 	gl_cv_c_inline_effective=no
   17313 fi
   17314 
   17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17316      fi
   17317 
   17318 fi
   17319 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
   17320 $as_echo "$gl_cv_c_inline_effective" >&6; }
   17321   if test $gl_cv_c_inline_effective = yes; then
   17322 
   17323 cat >>confdefs.h <<\_ACEOF
   17324 #define HAVE_INLINE 1
   17325 _ACEOF
   17326 
   17327   fi
   17328 
   17329 
   17330 
   17331 
   17332 
   17333 
   17334 
   17335 
   17336 
   17337 
   17338 
   17339   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
   17340 
   17341 
   17342 
   17343 
   17344 
   17345 
   17346 
   17347 
   17348 
   17349   if test $ac_cv_func_lstat = yes; then
   17350     { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
   17351 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
   17352 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
   17353   $as_echo_n "(cached) " >&6
   17354 else
   17355   rm -f conftest.sym conftest.file
   17356 echo >conftest.file
   17357 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
   17358   if test "$cross_compiling" = yes; then
   17359   ac_cv_func_lstat_dereferences_slashed_symlink=no
   17360 else
   17361   cat >conftest.$ac_ext <<_ACEOF
   17362 /* confdefs.h.  */
   17363 _ACEOF
   17364 cat confdefs.h >>conftest.$ac_ext
   17365 cat >>conftest.$ac_ext <<_ACEOF
   17366 /* end confdefs.h.  */
   17367 $ac_includes_default
   17368 int
   17369 main ()
   17370 {
   17371 struct stat sbuf;
   17372      /* Linux will dereference the symlink and fail.
   17373 	That is better in the sense that it means we will not
   17374 	have to compile and use the lstat wrapper.  */
   17375      return lstat ("conftest.sym/", &sbuf) == 0;
   17376   ;
   17377   return 0;
   17378 }
   17379 _ACEOF
   17380 rm -f conftest$ac_exeext
   17381 if { (ac_try="$ac_link"
   17382 case "(($ac_try" in
   17383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17384   *) ac_try_echo=$ac_try;;
   17385 esac
   17386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17387 $as_echo "$ac_try_echo") >&5
   17388   (eval "$ac_link") 2>&5
   17389   ac_status=$?
   17390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17392   { (case "(($ac_try" in
   17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17394   *) ac_try_echo=$ac_try;;
   17395 esac
   17396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17397 $as_echo "$ac_try_echo") >&5
   17398   (eval "$ac_try") 2>&5
   17399   ac_status=$?
   17400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17401   (exit $ac_status); }; }; then
   17402   ac_cv_func_lstat_dereferences_slashed_symlink=yes
   17403 else
   17404   $as_echo "$as_me: program exited with status $ac_status" >&5
   17405 $as_echo "$as_me: failed program was:" >&5
   17406 sed 's/^/| /' conftest.$ac_ext >&5
   17407 
   17408 ( exit $ac_status )
   17409 ac_cv_func_lstat_dereferences_slashed_symlink=no
   17410 fi
   17411 rm -rf conftest.dSYM
   17412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17413 fi
   17414 
   17415 
   17416 else
   17417   # If the `ln -s' command failed, then we probably don't even
   17418   # have an lstat function.
   17419   ac_cv_func_lstat_dereferences_slashed_symlink=no
   17420 fi
   17421 rm -f conftest.sym conftest.file
   17422 
   17423 fi
   17424 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
   17425 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
   17426 
   17427 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
   17428 
   17429 cat >>confdefs.h <<_ACEOF
   17430 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
   17431 _ACEOF
   17432 
   17433 
   17434 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
   17435 
   17436 
   17437 
   17438 
   17439 
   17440 
   17441 
   17442 
   17443   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
   17444 
   17445 fi
   17446 
   17447         if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
   17448       REPLACE_LSTAT=1
   17449     fi
   17450     # Prerequisites of lib/lstat.c.
   17451 
   17452   fi
   17453 
   17454 
   17455 
   17456   GNULIB_LSTAT=1
   17457 
   17458 
   17459 for ac_header in stdlib.h
   17460 do
   17461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17463   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   17464 $as_echo_n "checking for $ac_header... " >&6; }
   17465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17466   $as_echo_n "(cached) " >&6
   17467 fi
   17468 ac_res=`eval 'as_val=${'$as_ac_Header'}
   17469 		 $as_echo "$as_val"'`
   17470 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   17471 $as_echo "$ac_res" >&6; }
   17472 else
   17473   # Is the header compilable?
   17474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   17475 $as_echo_n "checking $ac_header usability... " >&6; }
   17476 cat >conftest.$ac_ext <<_ACEOF
   17477 /* confdefs.h.  */
   17478 _ACEOF
   17479 cat confdefs.h >>conftest.$ac_ext
   17480 cat >>conftest.$ac_ext <<_ACEOF
   17481 /* end confdefs.h.  */
   17482 $ac_includes_default
   17483 #include <$ac_header>
   17484 _ACEOF
   17485 rm -f conftest.$ac_objext
   17486 if { (ac_try="$ac_compile"
   17487 case "(($ac_try" in
   17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17489   *) ac_try_echo=$ac_try;;
   17490 esac
   17491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17492 $as_echo "$ac_try_echo") >&5
   17493   (eval "$ac_compile") 2>conftest.er1
   17494   ac_status=$?
   17495   grep -v '^ *+' conftest.er1 >conftest.err
   17496   rm -f conftest.er1
   17497   cat conftest.err >&5
   17498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17499   (exit $ac_status); } && {
   17500 	 test -z "$ac_c_werror_flag" ||
   17501 	 test ! -s conftest.err
   17502        } && test -s conftest.$ac_objext; then
   17503   ac_header_compiler=yes
   17504 else
   17505   $as_echo "$as_me: failed program was:" >&5
   17506 sed 's/^/| /' conftest.$ac_ext >&5
   17507 
   17508 	ac_header_compiler=no
   17509 fi
   17510 
   17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   17513 $as_echo "$ac_header_compiler" >&6; }
   17514 
   17515 # Is the header present?
   17516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   17517 $as_echo_n "checking $ac_header presence... " >&6; }
   17518 cat >conftest.$ac_ext <<_ACEOF
   17519 /* confdefs.h.  */
   17520 _ACEOF
   17521 cat confdefs.h >>conftest.$ac_ext
   17522 cat >>conftest.$ac_ext <<_ACEOF
   17523 /* end confdefs.h.  */
   17524 #include <$ac_header>
   17525 _ACEOF
   17526 if { (ac_try="$ac_cpp conftest.$ac_ext"
   17527 case "(($ac_try" in
   17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17529   *) ac_try_echo=$ac_try;;
   17530 esac
   17531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17532 $as_echo "$ac_try_echo") >&5
   17533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   17534   ac_status=$?
   17535   grep -v '^ *+' conftest.er1 >conftest.err
   17536   rm -f conftest.er1
   17537   cat conftest.err >&5
   17538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17539   (exit $ac_status); } >/dev/null && {
   17540 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   17541 	 test ! -s conftest.err
   17542        }; then
   17543   ac_header_preproc=yes
   17544 else
   17545   $as_echo "$as_me: failed program was:" >&5
   17546 sed 's/^/| /' conftest.$ac_ext >&5
   17547 
   17548   ac_header_preproc=no
   17549 fi
   17550 
   17551 rm -f conftest.err conftest.$ac_ext
   17552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   17553 $as_echo "$ac_header_preproc" >&6; }
   17554 
   17555 # So?  What about this header?
   17556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   17557   yes:no: )
   17558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   17559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   17560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   17561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   17562     ac_header_preproc=yes
   17563     ;;
   17564   no:yes:* )
   17565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   17566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   17567     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   17568 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   17569     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   17570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   17571     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   17572 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   17573     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   17574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   17575     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   17576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   17577     ( cat <<\_ASBOX
   17578 ## ------------------------------------ ##
   17579 ## Report this to bug-gnu-utils (at] gnu.org ##
   17580 ## ------------------------------------ ##
   17581 _ASBOX
   17582      ) | sed "s/^/$as_me: WARNING:     /" >&2
   17583     ;;
   17584 esac
   17585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   17586 $as_echo_n "checking for $ac_header... " >&6; }
   17587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17588   $as_echo_n "(cached) " >&6
   17589 else
   17590   eval "$as_ac_Header=\$ac_header_preproc"
   17591 fi
   17592 ac_res=`eval 'as_val=${'$as_ac_Header'}
   17593 		 $as_echo "$as_val"'`
   17594 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   17595 $as_echo "$ac_res" >&6; }
   17596 
   17597 fi
   17598 as_val=`eval 'as_val=${'$as_ac_Header'}
   17599 		 $as_echo "$as_val"'`
   17600    if test "x$as_val" = x""yes; then
   17601   cat >>confdefs.h <<_ACEOF
   17602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17603 _ACEOF
   17604 
   17605 fi
   17606 
   17607 done
   17608 
   17609 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
   17610 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   17611 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
   17612   $as_echo_n "(cached) " >&6
   17613 else
   17614   if test "$cross_compiling" = yes; then
   17615   ac_cv_func_malloc_0_nonnull=no
   17616 else
   17617   cat >conftest.$ac_ext <<_ACEOF
   17618 /* confdefs.h.  */
   17619 _ACEOF
   17620 cat confdefs.h >>conftest.$ac_ext
   17621 cat >>conftest.$ac_ext <<_ACEOF
   17622 /* end confdefs.h.  */
   17623 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   17624 # include <stdlib.h>
   17625 #else
   17626 char *malloc ();
   17627 #endif
   17628 
   17629 int
   17630 main ()
   17631 {
   17632 return ! malloc (0);
   17633   ;
   17634   return 0;
   17635 }
   17636 _ACEOF
   17637 rm -f conftest$ac_exeext
   17638 if { (ac_try="$ac_link"
   17639 case "(($ac_try" in
   17640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17641   *) ac_try_echo=$ac_try;;
   17642 esac
   17643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17644 $as_echo "$ac_try_echo") >&5
   17645   (eval "$ac_link") 2>&5
   17646   ac_status=$?
   17647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17649   { (case "(($ac_try" in
   17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17651   *) ac_try_echo=$ac_try;;
   17652 esac
   17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17654 $as_echo "$ac_try_echo") >&5
   17655   (eval "$ac_try") 2>&5
   17656   ac_status=$?
   17657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17658   (exit $ac_status); }; }; then
   17659   ac_cv_func_malloc_0_nonnull=yes
   17660 else
   17661   $as_echo "$as_me: program exited with status $ac_status" >&5
   17662 $as_echo "$as_me: failed program was:" >&5
   17663 sed 's/^/| /' conftest.$ac_ext >&5
   17664 
   17665 ( exit $ac_status )
   17666 ac_cv_func_malloc_0_nonnull=no
   17667 fi
   17668 rm -rf conftest.dSYM
   17669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17670 fi
   17671 
   17672 
   17673 fi
   17674 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
   17675 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
   17676 if test $ac_cv_func_malloc_0_nonnull = yes; then
   17677 
   17678 cat >>confdefs.h <<\_ACEOF
   17679 #define HAVE_MALLOC 1
   17680 _ACEOF
   17681 
   17682 else
   17683   cat >>confdefs.h <<\_ACEOF
   17684 #define HAVE_MALLOC 0
   17685 _ACEOF
   17686 
   17687 
   17688 
   17689 
   17690 
   17691 
   17692 
   17693 
   17694 
   17695   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
   17696 
   17697 
   17698 cat >>confdefs.h <<\_ACEOF
   17699 #define malloc rpl_malloc
   17700 _ACEOF
   17701 
   17702 fi
   17703 
   17704 
   17705 
   17706 
   17707 cat >>confdefs.h <<\_ACEOF
   17708 #define GNULIB_MALLOC_GNU 1
   17709 _ACEOF
   17710 
   17711 
   17712 
   17713   if test $gl_cv_func_malloc_posix = yes; then
   17714     HAVE_MALLOC_POSIX=1
   17715 
   17716 cat >>confdefs.h <<\_ACEOF
   17717 #define HAVE_MALLOC_POSIX 1
   17718 _ACEOF
   17719 
   17720   else
   17721 
   17722 
   17723 
   17724 
   17725 
   17726 
   17727 
   17728 
   17729   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
   17730 
   17731     HAVE_MALLOC_POSIX=0
   17732   fi
   17733 
   17734 
   17735 
   17736 
   17737   GNULIB_MALLOC_POSIX=1
   17738 
   17739 
   17740 
   17741 
   17742 
   17743 
   17744 
   17745 
   17746 
   17747 
   17748 
   17749 
   17750   if test $ac_cv_func_mbrlen = no; then
   17751     HAVE_MBRLEN=0
   17752   else
   17753                     if test $REPLACE_MBRTOWC = 1; then
   17754       REPLACE_MBRLEN=1
   17755     fi
   17756   fi
   17757   if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
   17758 
   17759 
   17760   WCHAR_H=wchar.h
   17761 
   17762 
   17763 
   17764 
   17765 
   17766 
   17767 
   17768 
   17769 
   17770   gl_LIBOBJS="$gl_LIBOBJS mbrlen.$ac_objext"
   17771 
   17772 
   17773   :
   17774 
   17775   fi
   17776 
   17777 
   17778 
   17779   GNULIB_MBRLEN=1
   17780 
   17781 
   17782 
   17783 
   17784 
   17785 
   17786 
   17787 
   17788 
   17789 
   17790 
   17791 
   17792 
   17793 
   17794 
   17795 
   17796 
   17797 
   17798 
   17799 
   17800 
   17801   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   17802 
   17803 
   17804 
   17805      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
   17806 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   17807 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
   17808   $as_echo_n "(cached) " >&6
   17809 else
   17810 
   17811                   case "$host_os" in
   17812               # Guess no on AIX and OSF/1.
   17813         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   17814               # Guess yes otherwise.
   17815         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   17816       esac
   17817       if test $LOCALE_JA != none; then
   17818         if test "$cross_compiling" = yes; then
   17819   :
   17820 else
   17821   cat >conftest.$ac_ext <<_ACEOF
   17822 /* confdefs.h.  */
   17823 _ACEOF
   17824 cat confdefs.h >>conftest.$ac_ext
   17825 cat >>conftest.$ac_ext <<_ACEOF
   17826 /* end confdefs.h.  */
   17827 
   17828 #include <locale.h>
   17829 #include <string.h>
   17830 #include <wchar.h>
   17831 int main ()
   17832 {
   17833   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   17834     {
   17835       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   17836       mbstate_t state;
   17837       wchar_t wc;
   17838 
   17839       memset (&state, '\0', sizeof (mbstate_t));
   17840       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   17841         if (mbsinit (&state))
   17842           return 1;
   17843     }
   17844   return 0;
   17845 }
   17846 _ACEOF
   17847 rm -f conftest$ac_exeext
   17848 if { (ac_try="$ac_link"
   17849 case "(($ac_try" in
   17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17851   *) ac_try_echo=$ac_try;;
   17852 esac
   17853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17854 $as_echo "$ac_try_echo") >&5
   17855   (eval "$ac_link") 2>&5
   17856   ac_status=$?
   17857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17859   { (case "(($ac_try" in
   17860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17861   *) ac_try_echo=$ac_try;;
   17862 esac
   17863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17864 $as_echo "$ac_try_echo") >&5
   17865   (eval "$ac_try") 2>&5
   17866   ac_status=$?
   17867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17868   (exit $ac_status); }; }; then
   17869   gl_cv_func_mbrtowc_incomplete_state=yes
   17870 else
   17871   $as_echo "$as_me: program exited with status $ac_status" >&5
   17872 $as_echo "$as_me: failed program was:" >&5
   17873 sed 's/^/| /' conftest.$ac_ext >&5
   17874 
   17875 ( exit $ac_status )
   17876 gl_cv_func_mbrtowc_incomplete_state=no
   17877 fi
   17878 rm -rf conftest.dSYM
   17879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17880 fi
   17881 
   17882 
   17883       fi
   17884 
   17885 fi
   17886 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   17887 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   17888 
   17889 
   17890 
   17891 
   17892      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
   17893 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   17894 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
   17895   $as_echo_n "(cached) " >&6
   17896 else
   17897 
   17898                   case "$host_os" in
   17899                     # Guess no on Solaris 8.
   17900         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   17901                     # Guess yes otherwise.
   17902         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   17903       esac
   17904       if test $LOCALE_ZH_CN != none; then
   17905         if test "$cross_compiling" = yes; then
   17906   :
   17907 else
   17908   cat >conftest.$ac_ext <<_ACEOF
   17909 /* confdefs.h.  */
   17910 _ACEOF
   17911 cat confdefs.h >>conftest.$ac_ext
   17912 cat >>conftest.$ac_ext <<_ACEOF
   17913 /* end confdefs.h.  */
   17914 
   17915 #include <locale.h>
   17916 #include <stdlib.h>
   17917 #include <string.h>
   17918 #include <wchar.h>
   17919 int main ()
   17920 {
   17921   /* This fails on Solaris 8:
   17922      mbrtowc returns 2, and sets wc to 0x00F0.
   17923      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   17924   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   17925     {
   17926       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   17927       mbstate_t state;
   17928       wchar_t wc;
   17929 
   17930       memset (&state, '\0', sizeof (mbstate_t));
   17931       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   17932           && mbtowc (&wc, input + 3, 6) == 4)
   17933         return 1;
   17934     }
   17935   return 0;
   17936 }
   17937 _ACEOF
   17938 rm -f conftest$ac_exeext
   17939 if { (ac_try="$ac_link"
   17940 case "(($ac_try" in
   17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17942   *) ac_try_echo=$ac_try;;
   17943 esac
   17944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17945 $as_echo "$ac_try_echo") >&5
   17946   (eval "$ac_link") 2>&5
   17947   ac_status=$?
   17948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17950   { (case "(($ac_try" in
   17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17952   *) ac_try_echo=$ac_try;;
   17953 esac
   17954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   17955 $as_echo "$ac_try_echo") >&5
   17956   (eval "$ac_try") 2>&5
   17957   ac_status=$?
   17958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17959   (exit $ac_status); }; }; then
   17960   gl_cv_func_mbrtowc_sanitycheck=yes
   17961 else
   17962   $as_echo "$as_me: program exited with status $ac_status" >&5
   17963 $as_echo "$as_me: failed program was:" >&5
   17964 sed 's/^/| /' conftest.$ac_ext >&5
   17965 
   17966 ( exit $ac_status )
   17967 gl_cv_func_mbrtowc_sanitycheck=no
   17968 fi
   17969 rm -rf conftest.dSYM
   17970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17971 fi
   17972 
   17973 
   17974       fi
   17975 
   17976 fi
   17977 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   17978 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   17979 
   17980     REPLACE_MBSTATE_T=0
   17981     case "$gl_cv_func_mbrtowc_incomplete_state" in
   17982       *yes) ;;
   17983       *) REPLACE_MBSTATE_T=1 ;;
   17984     esac
   17985     case "$gl_cv_func_mbrtowc_sanitycheck" in
   17986       *yes) ;;
   17987       *) REPLACE_MBSTATE_T=1 ;;
   17988     esac
   17989   else
   17990     REPLACE_MBSTATE_T=1
   17991   fi
   17992   if test $REPLACE_MBSTATE_T = 1; then
   17993 
   17994 
   17995   WCHAR_H=wchar.h
   17996 
   17997   fi
   17998 
   17999   if test $REPLACE_MBSTATE_T = 1; then
   18000     REPLACE_MBRTOWC=1
   18001   fi
   18002 
   18003 
   18004 
   18005 
   18006 
   18007 
   18008   if test $ac_cv_func_mbrtowc = no; then
   18009     HAVE_MBRTOWC=0
   18010   fi
   18011   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
   18012 
   18013 
   18014 
   18015      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
   18016 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
   18017 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
   18018   $as_echo_n "(cached) " >&6
   18019 else
   18020 
   18021                   case "$host_os" in
   18022               # Guess no on OSF/1.
   18023         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
   18024               # Guess yes otherwise.
   18025         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
   18026       esac
   18027       if test $LOCALE_FR_UTF8 != none; then
   18028         if test "$cross_compiling" = yes; then
   18029   :
   18030 else
   18031   cat >conftest.$ac_ext <<_ACEOF
   18032 /* confdefs.h.  */
   18033 _ACEOF
   18034 cat confdefs.h >>conftest.$ac_ext
   18035 cat >>conftest.$ac_ext <<_ACEOF
   18036 /* end confdefs.h.  */
   18037 
   18038 #include <locale.h>
   18039 #include <string.h>
   18040 #include <wchar.h>
   18041 int main ()
   18042 {
   18043   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   18044     {
   18045       mbstate_t state;
   18046       wchar_t wc;
   18047       int ret;
   18048 
   18049       memset (&state, '\0', sizeof (mbstate_t));
   18050       wc = (wchar_t) 0xBADFACE;
   18051       mbrtowc (&wc, NULL, 5, &state);
   18052       /* Check that wc was not modified.  */
   18053       if (wc != (wchar_t) 0xBADFACE)
   18054         return 1;
   18055     }
   18056   return 0;
   18057 }
   18058 _ACEOF
   18059 rm -f conftest$ac_exeext
   18060 if { (ac_try="$ac_link"
   18061 case "(($ac_try" in
   18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18063   *) ac_try_echo=$ac_try;;
   18064 esac
   18065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18066 $as_echo "$ac_try_echo") >&5
   18067   (eval "$ac_link") 2>&5
   18068   ac_status=$?
   18069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18071   { (case "(($ac_try" in
   18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18073   *) ac_try_echo=$ac_try;;
   18074 esac
   18075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18076 $as_echo "$ac_try_echo") >&5
   18077   (eval "$ac_try") 2>&5
   18078   ac_status=$?
   18079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18080   (exit $ac_status); }; }; then
   18081   gl_cv_func_mbrtowc_null_arg=yes
   18082 else
   18083   $as_echo "$as_me: program exited with status $ac_status" >&5
   18084 $as_echo "$as_me: failed program was:" >&5
   18085 sed 's/^/| /' conftest.$ac_ext >&5
   18086 
   18087 ( exit $ac_status )
   18088 gl_cv_func_mbrtowc_null_arg=no
   18089 fi
   18090 rm -rf conftest.dSYM
   18091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18092 fi
   18093 
   18094 
   18095       fi
   18096 
   18097 fi
   18098 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
   18099 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
   18100 
   18101 
   18102 
   18103 
   18104 
   18105      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
   18106 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
   18107 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
   18108   $as_echo_n "(cached) " >&6
   18109 else
   18110 
   18111                   case "$host_os" in
   18112                           # Guess no on HP-UX and Solaris.
   18113         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
   18114                           # Guess yes otherwise.
   18115         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
   18116       esac
   18117       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
   18118         if test "$cross_compiling" = yes; then
   18119   :
   18120 else
   18121   cat >conftest.$ac_ext <<_ACEOF
   18122 /* confdefs.h.  */
   18123 _ACEOF
   18124 cat confdefs.h >>conftest.$ac_ext
   18125 cat >>conftest.$ac_ext <<_ACEOF
   18126 /* end confdefs.h.  */
   18127 
   18128 #include <locale.h>
   18129 #include <string.h>
   18130 #include <wchar.h>
   18131 int main ()
   18132 {
   18133   /* This fails on Solaris.  */
   18134   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   18135     {
   18136       char input[] = "B\303\274\303\237er"; /* "Ber" */
   18137       mbstate_t state;
   18138       wchar_t wc;
   18139 
   18140       memset (&state, '\0', sizeof (mbstate_t));
   18141       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   18142         {
   18143           input[1] = '\0';
   18144           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
   18145             return 1;
   18146         }
   18147     }
   18148   /* This fails on HP-UX 11.11.  */
   18149   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   18150     {
   18151       char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   18152       mbstate_t state;
   18153       wchar_t wc;
   18154 
   18155       memset (&state, '\0', sizeof (mbstate_t));
   18156       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   18157         {
   18158           input[1] = '\0';
   18159           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
   18160             return 1;
   18161         }
   18162     }
   18163   return 0;
   18164 }
   18165 _ACEOF
   18166 rm -f conftest$ac_exeext
   18167 if { (ac_try="$ac_link"
   18168 case "(($ac_try" in
   18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18170   *) ac_try_echo=$ac_try;;
   18171 esac
   18172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18173 $as_echo "$ac_try_echo") >&5
   18174   (eval "$ac_link") 2>&5
   18175   ac_status=$?
   18176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18178   { (case "(($ac_try" in
   18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18180   *) ac_try_echo=$ac_try;;
   18181 esac
   18182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18183 $as_echo "$ac_try_echo") >&5
   18184   (eval "$ac_try") 2>&5
   18185   ac_status=$?
   18186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18187   (exit $ac_status); }; }; then
   18188   gl_cv_func_mbrtowc_retval=yes
   18189 else
   18190   $as_echo "$as_me: program exited with status $ac_status" >&5
   18191 $as_echo "$as_me: failed program was:" >&5
   18192 sed 's/^/| /' conftest.$ac_ext >&5
   18193 
   18194 ( exit $ac_status )
   18195 gl_cv_func_mbrtowc_retval=no
   18196 fi
   18197 rm -rf conftest.dSYM
   18198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18199 fi
   18200 
   18201 
   18202       fi
   18203 
   18204 fi
   18205 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
   18206 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
   18207 
   18208 
   18209 
   18210 
   18211      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
   18212 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
   18213 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
   18214   $as_echo_n "(cached) " >&6
   18215 else
   18216 
   18217                   case "$host_os" in
   18218                        # Guess no on Solaris 8 and 9.
   18219         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
   18220                        # Guess yes otherwise.
   18221         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
   18222       esac
   18223       if test $LOCALE_ZH_CN != none; then
   18224         if test "$cross_compiling" = yes; then
   18225   :
   18226 else
   18227   cat >conftest.$ac_ext <<_ACEOF
   18228 /* confdefs.h.  */
   18229 _ACEOF
   18230 cat confdefs.h >>conftest.$ac_ext
   18231 cat >>conftest.$ac_ext <<_ACEOF
   18232 /* end confdefs.h.  */
   18233 
   18234 #include <locale.h>
   18235 #include <string.h>
   18236 #include <wchar.h>
   18237 int main ()
   18238 {
   18239   /* This fails on Solaris 8 and 9.  */
   18240   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   18241     {
   18242       mbstate_t state;
   18243       wchar_t wc;
   18244 
   18245       memset (&state, '\0', sizeof (mbstate_t));
   18246       if (mbrtowc (&wc, "", 1, &state) != 0)
   18247         return 1;
   18248     }
   18249   return 0;
   18250 }
   18251 _ACEOF
   18252 rm -f conftest$ac_exeext
   18253 if { (ac_try="$ac_link"
   18254 case "(($ac_try" in
   18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18256   *) ac_try_echo=$ac_try;;
   18257 esac
   18258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18259 $as_echo "$ac_try_echo") >&5
   18260   (eval "$ac_link") 2>&5
   18261   ac_status=$?
   18262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18264   { (case "(($ac_try" in
   18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18266   *) ac_try_echo=$ac_try;;
   18267 esac
   18268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18269 $as_echo "$ac_try_echo") >&5
   18270   (eval "$ac_try") 2>&5
   18271   ac_status=$?
   18272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18273   (exit $ac_status); }; }; then
   18274   gl_cv_func_mbrtowc_nul_retval=yes
   18275 else
   18276   $as_echo "$as_me: program exited with status $ac_status" >&5
   18277 $as_echo "$as_me: failed program was:" >&5
   18278 sed 's/^/| /' conftest.$ac_ext >&5
   18279 
   18280 ( exit $ac_status )
   18281 gl_cv_func_mbrtowc_nul_retval=no
   18282 fi
   18283 rm -rf conftest.dSYM
   18284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18285 fi
   18286 
   18287 
   18288       fi
   18289 
   18290 fi
   18291 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
   18292 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
   18293 
   18294     case "$gl_cv_func_mbrtowc_null_arg" in
   18295       *yes) ;;
   18296       *)
   18297 cat >>confdefs.h <<\_ACEOF
   18298 #define MBRTOWC_NULL_ARG_BUG 1
   18299 _ACEOF
   18300 
   18301          REPLACE_MBRTOWC=1
   18302          ;;
   18303     esac
   18304     case "$gl_cv_func_mbrtowc_retval" in
   18305       *yes) ;;
   18306       *)
   18307 cat >>confdefs.h <<\_ACEOF
   18308 #define MBRTOWC_RETVAL_BUG 1
   18309 _ACEOF
   18310 
   18311          REPLACE_MBRTOWC=1
   18312          ;;
   18313     esac
   18314     case "$gl_cv_func_mbrtowc_nul_retval" in
   18315       *yes) ;;
   18316       *)
   18317 cat >>confdefs.h <<\_ACEOF
   18318 #define MBRTOWC_NUL_RETVAL_BUG 1
   18319 _ACEOF
   18320 
   18321          REPLACE_MBRTOWC=1
   18322          ;;
   18323     esac
   18324   fi
   18325   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
   18326 
   18327 
   18328   WCHAR_H=wchar.h
   18329 
   18330 
   18331 
   18332 
   18333 
   18334 
   18335 
   18336 
   18337 
   18338   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
   18339 
   18340 
   18341   :
   18342 
   18343   fi
   18344 
   18345 
   18346 
   18347   GNULIB_MBRTOWC=1
   18348 
   18349 
   18350 
   18351 
   18352 
   18353 
   18354 
   18355 
   18356 
   18357 
   18358 
   18359 
   18360 
   18361 
   18362 
   18363 
   18364 
   18365 
   18366 
   18367 
   18368 
   18369   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   18370 
   18371 
   18372 
   18373      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
   18374 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   18375 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
   18376   $as_echo_n "(cached) " >&6
   18377 else
   18378 
   18379                   case "$host_os" in
   18380               # Guess no on AIX and OSF/1.
   18381         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   18382               # Guess yes otherwise.
   18383         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   18384       esac
   18385       if test $LOCALE_JA != none; then
   18386         if test "$cross_compiling" = yes; then
   18387   :
   18388 else
   18389   cat >conftest.$ac_ext <<_ACEOF
   18390 /* confdefs.h.  */
   18391 _ACEOF
   18392 cat confdefs.h >>conftest.$ac_ext
   18393 cat >>conftest.$ac_ext <<_ACEOF
   18394 /* end confdefs.h.  */
   18395 
   18396 #include <locale.h>
   18397 #include <string.h>
   18398 #include <wchar.h>
   18399 int main ()
   18400 {
   18401   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   18402     {
   18403       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   18404       mbstate_t state;
   18405       wchar_t wc;
   18406 
   18407       memset (&state, '\0', sizeof (mbstate_t));
   18408       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   18409         if (mbsinit (&state))
   18410           return 1;
   18411     }
   18412   return 0;
   18413 }
   18414 _ACEOF
   18415 rm -f conftest$ac_exeext
   18416 if { (ac_try="$ac_link"
   18417 case "(($ac_try" in
   18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18419   *) ac_try_echo=$ac_try;;
   18420 esac
   18421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18422 $as_echo "$ac_try_echo") >&5
   18423   (eval "$ac_link") 2>&5
   18424   ac_status=$?
   18425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18427   { (case "(($ac_try" in
   18428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18429   *) ac_try_echo=$ac_try;;
   18430 esac
   18431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18432 $as_echo "$ac_try_echo") >&5
   18433   (eval "$ac_try") 2>&5
   18434   ac_status=$?
   18435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18436   (exit $ac_status); }; }; then
   18437   gl_cv_func_mbrtowc_incomplete_state=yes
   18438 else
   18439   $as_echo "$as_me: program exited with status $ac_status" >&5
   18440 $as_echo "$as_me: failed program was:" >&5
   18441 sed 's/^/| /' conftest.$ac_ext >&5
   18442 
   18443 ( exit $ac_status )
   18444 gl_cv_func_mbrtowc_incomplete_state=no
   18445 fi
   18446 rm -rf conftest.dSYM
   18447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18448 fi
   18449 
   18450 
   18451       fi
   18452 
   18453 fi
   18454 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   18455 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   18456 
   18457 
   18458 
   18459 
   18460      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
   18461 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   18462 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
   18463   $as_echo_n "(cached) " >&6
   18464 else
   18465 
   18466                   case "$host_os" in
   18467                     # Guess no on Solaris 8.
   18468         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   18469                     # Guess yes otherwise.
   18470         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   18471       esac
   18472       if test $LOCALE_ZH_CN != none; then
   18473         if test "$cross_compiling" = yes; then
   18474   :
   18475 else
   18476   cat >conftest.$ac_ext <<_ACEOF
   18477 /* confdefs.h.  */
   18478 _ACEOF
   18479 cat confdefs.h >>conftest.$ac_ext
   18480 cat >>conftest.$ac_ext <<_ACEOF
   18481 /* end confdefs.h.  */
   18482 
   18483 #include <locale.h>
   18484 #include <stdlib.h>
   18485 #include <string.h>
   18486 #include <wchar.h>
   18487 int main ()
   18488 {
   18489   /* This fails on Solaris 8:
   18490      mbrtowc returns 2, and sets wc to 0x00F0.
   18491      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   18492   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   18493     {
   18494       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   18495       mbstate_t state;
   18496       wchar_t wc;
   18497 
   18498       memset (&state, '\0', sizeof (mbstate_t));
   18499       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   18500           && mbtowc (&wc, input + 3, 6) == 4)
   18501         return 1;
   18502     }
   18503   return 0;
   18504 }
   18505 _ACEOF
   18506 rm -f conftest$ac_exeext
   18507 if { (ac_try="$ac_link"
   18508 case "(($ac_try" in
   18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18510   *) ac_try_echo=$ac_try;;
   18511 esac
   18512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18513 $as_echo "$ac_try_echo") >&5
   18514   (eval "$ac_link") 2>&5
   18515   ac_status=$?
   18516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18518   { (case "(($ac_try" in
   18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18520   *) ac_try_echo=$ac_try;;
   18521 esac
   18522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18523 $as_echo "$ac_try_echo") >&5
   18524   (eval "$ac_try") 2>&5
   18525   ac_status=$?
   18526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18527   (exit $ac_status); }; }; then
   18528   gl_cv_func_mbrtowc_sanitycheck=yes
   18529 else
   18530   $as_echo "$as_me: program exited with status $ac_status" >&5
   18531 $as_echo "$as_me: failed program was:" >&5
   18532 sed 's/^/| /' conftest.$ac_ext >&5
   18533 
   18534 ( exit $ac_status )
   18535 gl_cv_func_mbrtowc_sanitycheck=no
   18536 fi
   18537 rm -rf conftest.dSYM
   18538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18539 fi
   18540 
   18541 
   18542       fi
   18543 
   18544 fi
   18545 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   18546 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   18547 
   18548     REPLACE_MBSTATE_T=0
   18549     case "$gl_cv_func_mbrtowc_incomplete_state" in
   18550       *yes) ;;
   18551       *) REPLACE_MBSTATE_T=1 ;;
   18552     esac
   18553     case "$gl_cv_func_mbrtowc_sanitycheck" in
   18554       *yes) ;;
   18555       *) REPLACE_MBSTATE_T=1 ;;
   18556     esac
   18557   else
   18558     REPLACE_MBSTATE_T=1
   18559   fi
   18560   if test $REPLACE_MBSTATE_T = 1; then
   18561 
   18562 
   18563   WCHAR_H=wchar.h
   18564 
   18565   fi
   18566 
   18567   if test $REPLACE_MBSTATE_T = 1; then
   18568     REPLACE_MBSINIT=1
   18569   fi
   18570 
   18571 
   18572 
   18573 
   18574 
   18575 
   18576   if test $ac_cv_func_mbsinit = no; then
   18577     HAVE_MBSINIT=0
   18578   fi
   18579   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
   18580 
   18581 
   18582   WCHAR_H=wchar.h
   18583 
   18584 
   18585 
   18586 
   18587 
   18588 
   18589 
   18590 
   18591 
   18592   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
   18593 
   18594 
   18595   :
   18596 
   18597   fi
   18598 
   18599 
   18600 
   18601   GNULIB_MBSINIT=1
   18602 
   18603 
   18604 
   18605 
   18606   GNULIB_MEMCHR=1
   18607 
   18608 
   18609 
   18610 
   18611 
   18612   { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5
   18613 $as_echo_n "checking for working mkstemp... " >&6; }
   18614 if test "${gl_cv_func_working_mkstemp+set}" = set; then
   18615   $as_echo_n "(cached) " >&6
   18616 else
   18617 
   18618       mkdir conftest.mkstemp
   18619       if test "$cross_compiling" = yes; then
   18620   gl_cv_func_working_mkstemp=no
   18621 else
   18622   cat >conftest.$ac_ext <<_ACEOF
   18623 /* confdefs.h.  */
   18624 _ACEOF
   18625 cat confdefs.h >>conftest.$ac_ext
   18626 cat >>conftest.$ac_ext <<_ACEOF
   18627 /* end confdefs.h.  */
   18628 $ac_includes_default
   18629 int
   18630 main ()
   18631 {
   18632 int i;
   18633 	    off_t large = (off_t) 4294967295u;
   18634 	    if (large < 0)
   18635 	      large = 2147483647;
   18636 	    for (i = 0; i < 70; i++)
   18637 	      {
   18638 		char templ[] = "conftest.mkstemp/coXXXXXX";
   18639 		int (*mkstemp_function) (char *) = mkstemp;
   18640 		int fd = mkstemp_function (templ);
   18641 		if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
   18642 		  return 1;
   18643 		close (fd);
   18644 	      }
   18645 	    return 0;
   18646   ;
   18647   return 0;
   18648 }
   18649 _ACEOF
   18650 rm -f conftest$ac_exeext
   18651 if { (ac_try="$ac_link"
   18652 case "(($ac_try" in
   18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18654   *) ac_try_echo=$ac_try;;
   18655 esac
   18656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18657 $as_echo "$ac_try_echo") >&5
   18658   (eval "$ac_link") 2>&5
   18659   ac_status=$?
   18660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18662   { (case "(($ac_try" in
   18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18664   *) ac_try_echo=$ac_try;;
   18665 esac
   18666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18667 $as_echo "$ac_try_echo") >&5
   18668   (eval "$ac_try") 2>&5
   18669   ac_status=$?
   18670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18671   (exit $ac_status); }; }; then
   18672   gl_cv_func_working_mkstemp=yes
   18673 else
   18674   $as_echo "$as_me: program exited with status $ac_status" >&5
   18675 $as_echo "$as_me: failed program was:" >&5
   18676 sed 's/^/| /' conftest.$ac_ext >&5
   18677 
   18678 ( exit $ac_status )
   18679 gl_cv_func_working_mkstemp=no
   18680 fi
   18681 rm -rf conftest.dSYM
   18682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18683 fi
   18684 
   18685 
   18686       rm -rf conftest.mkstemp
   18687 
   18688 fi
   18689 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_mkstemp" >&5
   18690 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
   18691 
   18692   if test $gl_cv_func_working_mkstemp != yes; then
   18693     REPLACE_MKSTEMP=1
   18694 
   18695 
   18696 
   18697 
   18698 
   18699 
   18700 
   18701 
   18702   gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
   18703 
   18704 
   18705 
   18706   fi
   18707 
   18708 
   18709 
   18710   GNULIB_MKSTEMP=1
   18711 
   18712 
   18713 
   18714 
   18715 
   18716 
   18717 
   18718 
   18719 
   18720 
   18721 
   18722 
   18723 
   18724 
   18725 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
   18726 $as_echo_n "checking for obstacks... " >&6; }
   18727 if test "${ac_cv_func_obstack+set}" = set; then
   18728   $as_echo_n "(cached) " >&6
   18729 else
   18730   cat >conftest.$ac_ext <<_ACEOF
   18731 /* confdefs.h.  */
   18732 _ACEOF
   18733 cat confdefs.h >>conftest.$ac_ext
   18734 cat >>conftest.$ac_ext <<_ACEOF
   18735 /* end confdefs.h.  */
   18736 $ac_includes_default
   18737 		      #include "obstack.h"
   18738 int
   18739 main ()
   18740 {
   18741 struct obstack mem;
   18742 		       #define obstack_chunk_alloc malloc
   18743 		       #define obstack_chunk_free free
   18744 		       obstack_init (&mem);
   18745 		       obstack_free (&mem, 0);
   18746   ;
   18747   return 0;
   18748 }
   18749 _ACEOF
   18750 rm -f conftest.$ac_objext conftest$ac_exeext
   18751 if { (ac_try="$ac_link"
   18752 case "(($ac_try" in
   18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18754   *) ac_try_echo=$ac_try;;
   18755 esac
   18756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   18757 $as_echo "$ac_try_echo") >&5
   18758   (eval "$ac_link") 2>conftest.er1
   18759   ac_status=$?
   18760   grep -v '^ *+' conftest.er1 >conftest.err
   18761   rm -f conftest.er1
   18762   cat conftest.err >&5
   18763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18764   (exit $ac_status); } && {
   18765 	 test -z "$ac_c_werror_flag" ||
   18766 	 test ! -s conftest.err
   18767        } && test -s conftest$ac_exeext && {
   18768 	 test "$cross_compiling" = yes ||
   18769 	 $as_test_x conftest$ac_exeext
   18770        }; then
   18771   ac_cv_func_obstack=yes
   18772 else
   18773   $as_echo "$as_me: failed program was:" >&5
   18774 sed 's/^/| /' conftest.$ac_ext >&5
   18775 
   18776 	ac_cv_func_obstack=no
   18777 fi
   18778 
   18779 rm -rf conftest.dSYM
   18780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18781       conftest$ac_exeext conftest.$ac_ext
   18782 fi
   18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
   18784 $as_echo "$ac_cv_func_obstack" >&6; }
   18785 if test $ac_cv_func_obstack = yes; then
   18786 
   18787 cat >>confdefs.h <<\_ACEOF
   18788 #define HAVE_OBSTACK 1
   18789 _ACEOF
   18790 
   18791 else
   18792 
   18793 
   18794 
   18795 
   18796 
   18797 
   18798 
   18799 
   18800   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
   18801 
   18802 fi
   18803 
   18804 
   18805 
   18806 
   18807 
   18808 
   18809 
   18810 
   18811 
   18812 
   18813 
   18814 
   18815 
   18816 
   18817 
   18818 
   18819 
   18820 
   18821 
   18822 
   18823 
   18824 
   18825 
   18826 
   18827   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
   18828 
   18829 
   18830 
   18831 
   18832 
   18833 
   18834 
   18835 
   18836 
   18837 
   18838 
   18839 
   18840   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
   18841 
   18842 
   18843 
   18844 
   18845   if test $gl_cv_func_malloc_posix = yes; then
   18846     HAVE_REALLOC_POSIX=1
   18847 
   18848 cat >>confdefs.h <<\_ACEOF
   18849 #define HAVE_REALLOC_POSIX 1
   18850 _ACEOF
   18851 
   18852   else
   18853 
   18854 
   18855 
   18856 
   18857 
   18858 
   18859 
   18860 
   18861   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
   18862 
   18863     HAVE_REALLOC_POSIX=0
   18864   fi
   18865 
   18866 
   18867 
   18868 
   18869   GNULIB_REALLOC_POSIX=1
   18870 
   18871 
   18872 
   18873 
   18874 
   18875 
   18876 
   18877 
   18878 
   18879 
   18880 # Check whether --with-included-regex was given.
   18881 if test "${with_included_regex+set}" = set; then
   18882   withval=$with_included_regex;
   18883 fi
   18884 
   18885 
   18886   case $with_included_regex in #(
   18887   yes|no) ac_use_included_regex=$with_included_regex
   18888 	;;
   18889   '')
   18890     # If the system regex support is good enough that it passes the
   18891     # following run test, then default to *not* using the included regex.c.
   18892     # If cross compiling, assume the test would fail and use the included
   18893     # regex.c.
   18894     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
   18895 $as_echo_n "checking for working re_compile_pattern... " >&6; }
   18896 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
   18897   $as_echo_n "(cached) " >&6
   18898 else
   18899   if test "$cross_compiling" = yes; then
   18900          gl_cv_func_re_compile_pattern_working=no
   18901 else
   18902   cat >conftest.$ac_ext <<_ACEOF
   18903 /* confdefs.h.  */
   18904 _ACEOF
   18905 cat confdefs.h >>conftest.$ac_ext
   18906 cat >>conftest.$ac_ext <<_ACEOF
   18907 /* end confdefs.h.  */
   18908 $ac_includes_default
   18909 	   #if HAVE_LOCALE_H
   18910 	    #include <locale.h>
   18911 	   #endif
   18912 	   #include <limits.h>
   18913 	   #include <regex.h>
   18914 
   18915 int
   18916 main ()
   18917 {
   18918 static struct re_pattern_buffer regex;
   18919 	    unsigned char folded_chars[UCHAR_MAX + 1];
   18920 	    int i;
   18921 	    const char *s;
   18922 	    struct re_registers regs;
   18923 
   18924 	    #if HAVE_LOCALE_H
   18925 	      /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
   18926 		 This test needs valgrind to catch the bug on Debian
   18927 		 GNU/Linux 3.1 x86, but it might catch the bug better
   18928 		 on other platforms and it shouldn't hurt to try the
   18929 		 test here.  */
   18930 	      if (setlocale (LC_ALL, "en_US.UTF-8"))
   18931 		{
   18932 		  static char const pat[] = "insert into";
   18933 		  static char const data[] =
   18934 		    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
   18935 		  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
   18936 				 | RE_ICASE);
   18937 		  memset (&regex, 0, sizeof regex);
   18938 		  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
   18939 		  if (s)
   18940 		    return 1;
   18941 		  if (re_search (&regex, data, sizeof data - 1,
   18942 				 0, sizeof data - 1, &regs)
   18943 		      != -1)
   18944 		    return 1;
   18945 		  if (! setlocale (LC_ALL, "C"))
   18946 		    return 1;
   18947 		}
   18948 	    #endif
   18949 
   18950 	    /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
   18951 	    re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
   18952 	    memset (&regex, 0, sizeof regex);
   18953 	    s = re_compile_pattern ("a[^x]b", 6, &regex);
   18954 	    if (s)
   18955 	      return 1;
   18956 
   18957 	    /* This should fail, but succeeds for glibc-2.5.  */
   18958 	    if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
   18959 	      return 1;
   18960 
   18961 	    /* This regular expression is from Spencer ere test number 75
   18962 	       in grep-2.3.  */
   18963 	    re_set_syntax (RE_SYNTAX_POSIX_EGREP);
   18964 	    memset (&regex, 0, sizeof regex);
   18965 	    for (i = 0; i <= UCHAR_MAX; i++)
   18966 	      folded_chars[i] = i;
   18967 	    regex.translate = folded_chars;
   18968 	    s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
   18969 	    /* This should fail with _Invalid character class name_ error.  */
   18970 	    if (!s)
   18971 	      return 1;
   18972 
   18973 	    /* This should succeed, but does not for glibc-2.1.3.  */
   18974 	    memset (&regex, 0, sizeof regex);
   18975 	    s = re_compile_pattern ("{1", 2, &regex);
   18976 
   18977 	    if (s)
   18978 	      return 1;
   18979 
   18980 	    /* The following example is derived from a problem report
   18981 	       against gawk from Jorge Stolfi <stolfi (at] ic.unicamp.br>.  */
   18982 	    memset (&regex, 0, sizeof regex);
   18983 	    s = re_compile_pattern ("[an\371]*n", 7, &regex);
   18984 	    if (s)
   18985 	      return 1;
   18986 
   18987 	    /* This should match, but does not for glibc-2.2.1.  */
   18988 	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
   18989 	      return 1;
   18990 
   18991 	    memset (&regex, 0, sizeof regex);
   18992 	    s = re_compile_pattern ("x", 1, &regex);
   18993 	    if (s)
   18994 	      return 1;
   18995 
   18996 	    /* glibc-2.2.93 does not work with a negative RANGE argument.  */
   18997 	    if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
   18998 	      return 1;
   18999 
   19000 	    /* The version of regex.c in older versions of gnulib
   19001 	       ignored RE_ICASE.  Detect that problem too.  */
   19002 	    re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
   19003 	    memset (&regex, 0, sizeof regex);
   19004 	    s = re_compile_pattern ("x", 1, &regex);
   19005 	    if (s)
   19006 	      return 1;
   19007 
   19008 	    if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
   19009 	      return 1;
   19010 
   19011 	    /* Catch a bug reported by Vin Shelton in
   19012 	       http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
   19013 	       */
   19014 	    re_set_syntax (RE_SYNTAX_POSIX_BASIC
   19015 			   & ~RE_CONTEXT_INVALID_DUP
   19016 			   & ~RE_NO_EMPTY_RANGES);
   19017 	    memset (&regex, 0, sizeof regex);
   19018 	    s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
   19019 	    if (s)
   19020 	      return 1;
   19021 
   19022 	    /* REG_STARTEND was added to glibc on 2004-01-15.
   19023 	       Reject older versions.  */
   19024 	    if (! REG_STARTEND)
   19025 	      return 1;
   19026 
   19027 	    /* Reject hosts whose regoff_t values are too narrow.
   19028 	       These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
   19029 	       and 32-bit int.  */
   19030 	    if (sizeof (regoff_t) < sizeof (ptrdiff_t)
   19031 		|| sizeof (regoff_t) < sizeof (ssize_t))
   19032 	      return 1;
   19033 
   19034 	    return 0;
   19035   ;
   19036   return 0;
   19037 }
   19038 _ACEOF
   19039 rm -f conftest$ac_exeext
   19040 if { (ac_try="$ac_link"
   19041 case "(($ac_try" in
   19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19043   *) ac_try_echo=$ac_try;;
   19044 esac
   19045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19046 $as_echo "$ac_try_echo") >&5
   19047   (eval "$ac_link") 2>&5
   19048   ac_status=$?
   19049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19051   { (case "(($ac_try" in
   19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19053   *) ac_try_echo=$ac_try;;
   19054 esac
   19055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19056 $as_echo "$ac_try_echo") >&5
   19057   (eval "$ac_try") 2>&5
   19058   ac_status=$?
   19059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19060   (exit $ac_status); }; }; then
   19061   gl_cv_func_re_compile_pattern_working=yes
   19062 else
   19063   $as_echo "$as_me: program exited with status $ac_status" >&5
   19064 $as_echo "$as_me: failed program was:" >&5
   19065 sed 's/^/| /' conftest.$ac_ext >&5
   19066 
   19067 ( exit $ac_status )
   19068 gl_cv_func_re_compile_pattern_working=no
   19069 fi
   19070 rm -rf conftest.dSYM
   19071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19072 fi
   19073 
   19074 
   19075 fi
   19076 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
   19077 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
   19078     case $gl_cv_func_re_compile_pattern_working in #(
   19079     yes) ac_use_included_regex=no;; #(
   19080     no) ac_use_included_regex=yes;;
   19081     esac
   19082     ;;
   19083   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
   19084 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
   19085    { (exit 1); exit 1; }; }
   19086     ;;
   19087   esac
   19088 
   19089   if test $ac_use_included_regex = yes; then
   19090 
   19091 cat >>confdefs.h <<\_ACEOF
   19092 #define _REGEX_LARGE_OFFSETS 1
   19093 _ACEOF
   19094 
   19095 
   19096 cat >>confdefs.h <<\_ACEOF
   19097 #define re_syntax_options rpl_re_syntax_options
   19098 _ACEOF
   19099 
   19100 
   19101 cat >>confdefs.h <<\_ACEOF
   19102 #define re_set_syntax rpl_re_set_syntax
   19103 _ACEOF
   19104 
   19105 
   19106 cat >>confdefs.h <<\_ACEOF
   19107 #define re_compile_pattern rpl_re_compile_pattern
   19108 _ACEOF
   19109 
   19110 
   19111 cat >>confdefs.h <<\_ACEOF
   19112 #define re_compile_fastmap rpl_re_compile_fastmap
   19113 _ACEOF
   19114 
   19115 
   19116 cat >>confdefs.h <<\_ACEOF
   19117 #define re_search rpl_re_search
   19118 _ACEOF
   19119 
   19120 
   19121 cat >>confdefs.h <<\_ACEOF
   19122 #define re_search_2 rpl_re_search_2
   19123 _ACEOF
   19124 
   19125 
   19126 cat >>confdefs.h <<\_ACEOF
   19127 #define re_match rpl_re_match
   19128 _ACEOF
   19129 
   19130 
   19131 cat >>confdefs.h <<\_ACEOF
   19132 #define re_match_2 rpl_re_match_2
   19133 _ACEOF
   19134 
   19135 
   19136 cat >>confdefs.h <<\_ACEOF
   19137 #define re_set_registers rpl_re_set_registers
   19138 _ACEOF
   19139 
   19140 
   19141 cat >>confdefs.h <<\_ACEOF
   19142 #define re_comp rpl_re_comp
   19143 _ACEOF
   19144 
   19145 
   19146 cat >>confdefs.h <<\_ACEOF
   19147 #define re_exec rpl_re_exec
   19148 _ACEOF
   19149 
   19150 
   19151 cat >>confdefs.h <<\_ACEOF
   19152 #define regcomp rpl_regcomp
   19153 _ACEOF
   19154 
   19155 
   19156 cat >>confdefs.h <<\_ACEOF
   19157 #define regexec rpl_regexec
   19158 _ACEOF
   19159 
   19160 
   19161 cat >>confdefs.h <<\_ACEOF
   19162 #define regerror rpl_regerror
   19163 _ACEOF
   19164 
   19165 
   19166 cat >>confdefs.h <<\_ACEOF
   19167 #define regfree rpl_regfree
   19168 _ACEOF
   19169 
   19170 
   19171 
   19172 
   19173 
   19174 
   19175 
   19176 
   19177 
   19178   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
   19179 
   19180 
   19181 
   19182 
   19183 
   19184 
   19185 for ac_header in libintl.h
   19186 do
   19187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19189   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19190 $as_echo_n "checking for $ac_header... " >&6; }
   19191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19192   $as_echo_n "(cached) " >&6
   19193 fi
   19194 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19195 		 $as_echo "$as_val"'`
   19196 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19197 $as_echo "$ac_res" >&6; }
   19198 else
   19199   # Is the header compilable?
   19200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   19201 $as_echo_n "checking $ac_header usability... " >&6; }
   19202 cat >conftest.$ac_ext <<_ACEOF
   19203 /* confdefs.h.  */
   19204 _ACEOF
   19205 cat confdefs.h >>conftest.$ac_ext
   19206 cat >>conftest.$ac_ext <<_ACEOF
   19207 /* end confdefs.h.  */
   19208 $ac_includes_default
   19209 #include <$ac_header>
   19210 _ACEOF
   19211 rm -f conftest.$ac_objext
   19212 if { (ac_try="$ac_compile"
   19213 case "(($ac_try" in
   19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19215   *) ac_try_echo=$ac_try;;
   19216 esac
   19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19218 $as_echo "$ac_try_echo") >&5
   19219   (eval "$ac_compile") 2>conftest.er1
   19220   ac_status=$?
   19221   grep -v '^ *+' conftest.er1 >conftest.err
   19222   rm -f conftest.er1
   19223   cat conftest.err >&5
   19224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19225   (exit $ac_status); } && {
   19226 	 test -z "$ac_c_werror_flag" ||
   19227 	 test ! -s conftest.err
   19228        } && test -s conftest.$ac_objext; then
   19229   ac_header_compiler=yes
   19230 else
   19231   $as_echo "$as_me: failed program was:" >&5
   19232 sed 's/^/| /' conftest.$ac_ext >&5
   19233 
   19234 	ac_header_compiler=no
   19235 fi
   19236 
   19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   19239 $as_echo "$ac_header_compiler" >&6; }
   19240 
   19241 # Is the header present?
   19242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   19243 $as_echo_n "checking $ac_header presence... " >&6; }
   19244 cat >conftest.$ac_ext <<_ACEOF
   19245 /* confdefs.h.  */
   19246 _ACEOF
   19247 cat confdefs.h >>conftest.$ac_ext
   19248 cat >>conftest.$ac_ext <<_ACEOF
   19249 /* end confdefs.h.  */
   19250 #include <$ac_header>
   19251 _ACEOF
   19252 if { (ac_try="$ac_cpp conftest.$ac_ext"
   19253 case "(($ac_try" in
   19254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19255   *) ac_try_echo=$ac_try;;
   19256 esac
   19257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19258 $as_echo "$ac_try_echo") >&5
   19259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   19260   ac_status=$?
   19261   grep -v '^ *+' conftest.er1 >conftest.err
   19262   rm -f conftest.er1
   19263   cat conftest.err >&5
   19264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19265   (exit $ac_status); } >/dev/null && {
   19266 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   19267 	 test ! -s conftest.err
   19268        }; then
   19269   ac_header_preproc=yes
   19270 else
   19271   $as_echo "$as_me: failed program was:" >&5
   19272 sed 's/^/| /' conftest.$ac_ext >&5
   19273 
   19274   ac_header_preproc=no
   19275 fi
   19276 
   19277 rm -f conftest.err conftest.$ac_ext
   19278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   19279 $as_echo "$ac_header_preproc" >&6; }
   19280 
   19281 # So?  What about this header?
   19282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   19283   yes:no: )
   19284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   19285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   19286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   19287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   19288     ac_header_preproc=yes
   19289     ;;
   19290   no:yes:* )
   19291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   19292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   19293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   19294 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   19295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   19296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   19297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   19298 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   19299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   19300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   19301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   19302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   19303     ( cat <<\_ASBOX
   19304 ## ------------------------------------ ##
   19305 ## Report this to bug-gnu-utils (at] gnu.org ##
   19306 ## ------------------------------------ ##
   19307 _ASBOX
   19308      ) | sed "s/^/$as_me: WARNING:     /" >&2
   19309     ;;
   19310 esac
   19311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19312 $as_echo_n "checking for $ac_header... " >&6; }
   19313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19314   $as_echo_n "(cached) " >&6
   19315 else
   19316   eval "$as_ac_Header=\$ac_header_preproc"
   19317 fi
   19318 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19319 		 $as_echo "$as_val"'`
   19320 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19321 $as_echo "$ac_res" >&6; }
   19322 
   19323 fi
   19324 as_val=`eval 'as_val=${'$as_ac_Header'}
   19325 		 $as_echo "$as_val"'`
   19326    if test "x$as_val" = x""yes; then
   19327   cat >>confdefs.h <<_ACEOF
   19328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19329 _ACEOF
   19330 
   19331 fi
   19332 
   19333 done
   19334 
   19335 
   19336 
   19337 
   19338 
   19339 
   19340 
   19341 
   19342 
   19343 
   19344 
   19345   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
   19346 $as_echo_n "checking whether isblank is declared... " >&6; }
   19347 if test "${ac_cv_have_decl_isblank+set}" = set; then
   19348   $as_echo_n "(cached) " >&6
   19349 else
   19350   cat >conftest.$ac_ext <<_ACEOF
   19351 /* confdefs.h.  */
   19352 _ACEOF
   19353 cat confdefs.h >>conftest.$ac_ext
   19354 cat >>conftest.$ac_ext <<_ACEOF
   19355 /* end confdefs.h.  */
   19356 #include <ctype.h>
   19357 
   19358 int
   19359 main ()
   19360 {
   19361 #ifndef isblank
   19362   (void) isblank;
   19363 #endif
   19364 
   19365   ;
   19366   return 0;
   19367 }
   19368 _ACEOF
   19369 rm -f conftest.$ac_objext
   19370 if { (ac_try="$ac_compile"
   19371 case "(($ac_try" in
   19372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19373   *) ac_try_echo=$ac_try;;
   19374 esac
   19375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19376 $as_echo "$ac_try_echo") >&5
   19377   (eval "$ac_compile") 2>conftest.er1
   19378   ac_status=$?
   19379   grep -v '^ *+' conftest.er1 >conftest.err
   19380   rm -f conftest.er1
   19381   cat conftest.err >&5
   19382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19383   (exit $ac_status); } && {
   19384 	 test -z "$ac_c_werror_flag" ||
   19385 	 test ! -s conftest.err
   19386        } && test -s conftest.$ac_objext; then
   19387   ac_cv_have_decl_isblank=yes
   19388 else
   19389   $as_echo "$as_me: failed program was:" >&5
   19390 sed 's/^/| /' conftest.$ac_ext >&5
   19391 
   19392 	ac_cv_have_decl_isblank=no
   19393 fi
   19394 
   19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19396 fi
   19397 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
   19398 $as_echo "$ac_cv_have_decl_isblank" >&6; }
   19399 if test "x$ac_cv_have_decl_isblank" = x""yes; then
   19400 
   19401 cat >>confdefs.h <<_ACEOF
   19402 #define HAVE_DECL_ISBLANK 1
   19403 _ACEOF
   19404 
   19405 
   19406 else
   19407   cat >>confdefs.h <<_ACEOF
   19408 #define HAVE_DECL_ISBLANK 0
   19409 _ACEOF
   19410 
   19411 
   19412 fi
   19413 
   19414 
   19415 
   19416   fi
   19417 
   19418 
   19419 
   19420  { $as_echo "$as_me:$LINENO: checking whether rename is broken with a trailing slash" >&5
   19421 $as_echo_n "checking whether rename is broken with a trailing slash... " >&6; }
   19422 if test "${gl_cv_func_rename_trailing_slash_bug+set}" = set; then
   19423   $as_echo_n "(cached) " >&6
   19424 else
   19425 
   19426     rm -rf conftest.d1 conftest.d2
   19427     mkdir conftest.d1 ||
   19428       { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
   19429 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
   19430    { (exit 1); exit 1; }; }
   19431     if test "$cross_compiling" = yes; then
   19432         gl_cv_func_rename_trailing_slash_bug=yes
   19433 else
   19434   cat >conftest.$ac_ext <<_ACEOF
   19435 /* confdefs.h.  */
   19436 _ACEOF
   19437 cat confdefs.h >>conftest.$ac_ext
   19438 cat >>conftest.$ac_ext <<_ACEOF
   19439 /* end confdefs.h.  */
   19440 
   19441 #       include <stdio.h>
   19442 #       include <stdlib.h>
   19443         int
   19444         main ()
   19445         {
   19446           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
   19447         }
   19448 
   19449 _ACEOF
   19450 rm -f conftest$ac_exeext
   19451 if { (ac_try="$ac_link"
   19452 case "(($ac_try" in
   19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19454   *) ac_try_echo=$ac_try;;
   19455 esac
   19456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19457 $as_echo "$ac_try_echo") >&5
   19458   (eval "$ac_link") 2>&5
   19459   ac_status=$?
   19460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19462   { (case "(($ac_try" in
   19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19464   *) ac_try_echo=$ac_try;;
   19465 esac
   19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19467 $as_echo "$ac_try_echo") >&5
   19468   (eval "$ac_try") 2>&5
   19469   ac_status=$?
   19470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19471   (exit $ac_status); }; }; then
   19472   gl_cv_func_rename_trailing_slash_bug=no
   19473 else
   19474   $as_echo "$as_me: program exited with status $ac_status" >&5
   19475 $as_echo "$as_me: failed program was:" >&5
   19476 sed 's/^/| /' conftest.$ac_ext >&5
   19477 
   19478 ( exit $ac_status )
   19479 gl_cv_func_rename_trailing_slash_bug=yes
   19480 fi
   19481 rm -rf conftest.dSYM
   19482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19483 fi
   19484 
   19485 
   19486 
   19487       rm -rf conftest.d1 conftest.d2
   19488 
   19489 fi
   19490 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_slash_bug" >&5
   19491 $as_echo "$gl_cv_func_rename_trailing_slash_bug" >&6; }
   19492  { $as_echo "$as_me:$LINENO: checking whether rename is broken when the destination exists" >&5
   19493 $as_echo_n "checking whether rename is broken when the destination exists... " >&6; }
   19494 if test "${gl_cv_func_rename_dest_exists_bug+set}" = set; then
   19495   $as_echo_n "(cached) " >&6
   19496 else
   19497 
   19498     case "$host_os" in
   19499       mingw*) gl_cv_func_rename_dest_exists_bug=yes ;;
   19500       *) gl_cv_func_rename_dest_exists_bug=no ;;
   19501     esac
   19502 
   19503 fi
   19504 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_exists_bug" >&5
   19505 $as_echo "$gl_cv_func_rename_dest_exists_bug" >&6; }
   19506   if test $gl_cv_func_rename_trailing_slash_bug = yes ||
   19507      test $gl_cv_func_rename_dest_exists_bug = yes; then
   19508 
   19509 
   19510 
   19511 
   19512 
   19513 
   19514 
   19515 
   19516   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
   19517 
   19518 
   19519 cat >>confdefs.h <<\_ACEOF
   19520 #define rename rpl_rename
   19521 _ACEOF
   19522 
   19523     if test $gl_cv_func_rename_trailing_slash_bug = yes; then
   19524 
   19525 cat >>confdefs.h <<\_ACEOF
   19526 #define RENAME_TRAILING_SLASH_BUG 1
   19527 _ACEOF
   19528 
   19529     fi
   19530     if test $gl_cv_func_rename_dest_exists_bug = yes; then
   19531 
   19532 cat >>confdefs.h <<\_ACEOF
   19533 #define RENAME_DEST_EXISTS_BUG 1
   19534 _ACEOF
   19535 
   19536     fi
   19537     :
   19538   fi
   19539 
   19540 
   19541 
   19542 
   19543 for ac_header in selinux/selinux.h
   19544 do
   19545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19547   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19548 $as_echo_n "checking for $ac_header... " >&6; }
   19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19550   $as_echo_n "(cached) " >&6
   19551 fi
   19552 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19553 		 $as_echo "$as_val"'`
   19554 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19555 $as_echo "$ac_res" >&6; }
   19556 else
   19557   # Is the header compilable?
   19558 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   19559 $as_echo_n "checking $ac_header usability... " >&6; }
   19560 cat >conftest.$ac_ext <<_ACEOF
   19561 /* confdefs.h.  */
   19562 _ACEOF
   19563 cat confdefs.h >>conftest.$ac_ext
   19564 cat >>conftest.$ac_ext <<_ACEOF
   19565 /* end confdefs.h.  */
   19566 $ac_includes_default
   19567 #include <$ac_header>
   19568 _ACEOF
   19569 rm -f conftest.$ac_objext
   19570 if { (ac_try="$ac_compile"
   19571 case "(($ac_try" in
   19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19573   *) ac_try_echo=$ac_try;;
   19574 esac
   19575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19576 $as_echo "$ac_try_echo") >&5
   19577   (eval "$ac_compile") 2>conftest.er1
   19578   ac_status=$?
   19579   grep -v '^ *+' conftest.er1 >conftest.err
   19580   rm -f conftest.er1
   19581   cat conftest.err >&5
   19582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19583   (exit $ac_status); } && {
   19584 	 test -z "$ac_c_werror_flag" ||
   19585 	 test ! -s conftest.err
   19586        } && test -s conftest.$ac_objext; then
   19587   ac_header_compiler=yes
   19588 else
   19589   $as_echo "$as_me: failed program was:" >&5
   19590 sed 's/^/| /' conftest.$ac_ext >&5
   19591 
   19592 	ac_header_compiler=no
   19593 fi
   19594 
   19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   19597 $as_echo "$ac_header_compiler" >&6; }
   19598 
   19599 # Is the header present?
   19600 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   19601 $as_echo_n "checking $ac_header presence... " >&6; }
   19602 cat >conftest.$ac_ext <<_ACEOF
   19603 /* confdefs.h.  */
   19604 _ACEOF
   19605 cat confdefs.h >>conftest.$ac_ext
   19606 cat >>conftest.$ac_ext <<_ACEOF
   19607 /* end confdefs.h.  */
   19608 #include <$ac_header>
   19609 _ACEOF
   19610 if { (ac_try="$ac_cpp conftest.$ac_ext"
   19611 case "(($ac_try" in
   19612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19613   *) ac_try_echo=$ac_try;;
   19614 esac
   19615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19616 $as_echo "$ac_try_echo") >&5
   19617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   19618   ac_status=$?
   19619   grep -v '^ *+' conftest.er1 >conftest.err
   19620   rm -f conftest.er1
   19621   cat conftest.err >&5
   19622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19623   (exit $ac_status); } >/dev/null && {
   19624 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   19625 	 test ! -s conftest.err
   19626        }; then
   19627   ac_header_preproc=yes
   19628 else
   19629   $as_echo "$as_me: failed program was:" >&5
   19630 sed 's/^/| /' conftest.$ac_ext >&5
   19631 
   19632   ac_header_preproc=no
   19633 fi
   19634 
   19635 rm -f conftest.err conftest.$ac_ext
   19636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   19637 $as_echo "$ac_header_preproc" >&6; }
   19638 
   19639 # So?  What about this header?
   19640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   19641   yes:no: )
   19642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   19643 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   19644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   19645 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   19646     ac_header_preproc=yes
   19647     ;;
   19648   no:yes:* )
   19649     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   19650 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   19651     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   19652 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   19653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   19654 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   19655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   19656 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   19657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   19658 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   19659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   19660 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   19661     ( cat <<\_ASBOX
   19662 ## ------------------------------------ ##
   19663 ## Report this to bug-gnu-utils (at] gnu.org ##
   19664 ## ------------------------------------ ##
   19665 _ASBOX
   19666      ) | sed "s/^/$as_me: WARNING:     /" >&2
   19667     ;;
   19668 esac
   19669 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19670 $as_echo_n "checking for $ac_header... " >&6; }
   19671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19672   $as_echo_n "(cached) " >&6
   19673 else
   19674   eval "$as_ac_Header=\$ac_header_preproc"
   19675 fi
   19676 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19677 		 $as_echo "$as_val"'`
   19678 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19679 $as_echo "$ac_res" >&6; }
   19680 
   19681 fi
   19682 as_val=`eval 'as_val=${'$as_ac_Header'}
   19683 		 $as_echo "$as_val"'`
   19684    if test "x$as_val" = x""yes; then
   19685   cat >>confdefs.h <<_ACEOF
   19686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19687 _ACEOF
   19688  SELINUX_SELINUX_H=
   19689 else
   19690   SELINUX_SELINUX_H=selinux/selinux.h
   19691 fi
   19692 
   19693 done
   19694 
   19695 
   19696 
   19697   case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
   19698     no:*) # already warned
   19699       ;;
   19700     *:no)
   19701       { $as_echo "$as_me:$LINENO: WARNING: libselinux was found but selinux/selinux.h is missing." >&5
   19702 $as_echo "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;}
   19703       { $as_echo "$as_me:$LINENO: WARNING: sed will be compiled without SELinux support." >&5
   19704 $as_echo "$as_me: WARNING: sed will be compiled without SELinux support." >&2;}
   19705   esac
   19706 
   19707 
   19708 
   19709 for ac_header in selinux/context.h
   19710 do
   19711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19713   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19714 $as_echo_n "checking for $ac_header... " >&6; }
   19715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19716   $as_echo_n "(cached) " >&6
   19717 fi
   19718 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19719 		 $as_echo "$as_val"'`
   19720 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19721 $as_echo "$ac_res" >&6; }
   19722 else
   19723   # Is the header compilable?
   19724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   19725 $as_echo_n "checking $ac_header usability... " >&6; }
   19726 cat >conftest.$ac_ext <<_ACEOF
   19727 /* confdefs.h.  */
   19728 _ACEOF
   19729 cat confdefs.h >>conftest.$ac_ext
   19730 cat >>conftest.$ac_ext <<_ACEOF
   19731 /* end confdefs.h.  */
   19732 $ac_includes_default
   19733 #include <$ac_header>
   19734 _ACEOF
   19735 rm -f conftest.$ac_objext
   19736 if { (ac_try="$ac_compile"
   19737 case "(($ac_try" in
   19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19739   *) ac_try_echo=$ac_try;;
   19740 esac
   19741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19742 $as_echo "$ac_try_echo") >&5
   19743   (eval "$ac_compile") 2>conftest.er1
   19744   ac_status=$?
   19745   grep -v '^ *+' conftest.er1 >conftest.err
   19746   rm -f conftest.er1
   19747   cat conftest.err >&5
   19748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19749   (exit $ac_status); } && {
   19750 	 test -z "$ac_c_werror_flag" ||
   19751 	 test ! -s conftest.err
   19752        } && test -s conftest.$ac_objext; then
   19753   ac_header_compiler=yes
   19754 else
   19755   $as_echo "$as_me: failed program was:" >&5
   19756 sed 's/^/| /' conftest.$ac_ext >&5
   19757 
   19758 	ac_header_compiler=no
   19759 fi
   19760 
   19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   19763 $as_echo "$ac_header_compiler" >&6; }
   19764 
   19765 # Is the header present?
   19766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   19767 $as_echo_n "checking $ac_header presence... " >&6; }
   19768 cat >conftest.$ac_ext <<_ACEOF
   19769 /* confdefs.h.  */
   19770 _ACEOF
   19771 cat confdefs.h >>conftest.$ac_ext
   19772 cat >>conftest.$ac_ext <<_ACEOF
   19773 /* end confdefs.h.  */
   19774 #include <$ac_header>
   19775 _ACEOF
   19776 if { (ac_try="$ac_cpp conftest.$ac_ext"
   19777 case "(($ac_try" in
   19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19779   *) ac_try_echo=$ac_try;;
   19780 esac
   19781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19782 $as_echo "$ac_try_echo") >&5
   19783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   19784   ac_status=$?
   19785   grep -v '^ *+' conftest.er1 >conftest.err
   19786   rm -f conftest.er1
   19787   cat conftest.err >&5
   19788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19789   (exit $ac_status); } >/dev/null && {
   19790 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   19791 	 test ! -s conftest.err
   19792        }; then
   19793   ac_header_preproc=yes
   19794 else
   19795   $as_echo "$as_me: failed program was:" >&5
   19796 sed 's/^/| /' conftest.$ac_ext >&5
   19797 
   19798   ac_header_preproc=no
   19799 fi
   19800 
   19801 rm -f conftest.err conftest.$ac_ext
   19802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   19803 $as_echo "$ac_header_preproc" >&6; }
   19804 
   19805 # So?  What about this header?
   19806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   19807   yes:no: )
   19808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   19809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   19810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   19811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   19812     ac_header_preproc=yes
   19813     ;;
   19814   no:yes:* )
   19815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   19816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   19817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   19818 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   19819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   19820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   19821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   19822 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   19823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   19824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   19825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   19826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   19827     ( cat <<\_ASBOX
   19828 ## ------------------------------------ ##
   19829 ## Report this to bug-gnu-utils (at] gnu.org ##
   19830 ## ------------------------------------ ##
   19831 _ASBOX
   19832      ) | sed "s/^/$as_me: WARNING:     /" >&2
   19833     ;;
   19834 esac
   19835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   19836 $as_echo_n "checking for $ac_header... " >&6; }
   19837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19838   $as_echo_n "(cached) " >&6
   19839 else
   19840   eval "$as_ac_Header=\$ac_header_preproc"
   19841 fi
   19842 ac_res=`eval 'as_val=${'$as_ac_Header'}
   19843 		 $as_echo "$as_val"'`
   19844 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   19845 $as_echo "$ac_res" >&6; }
   19846 
   19847 fi
   19848 as_val=`eval 'as_val=${'$as_ac_Header'}
   19849 		 $as_echo "$as_val"'`
   19850    if test "x$as_val" = x""yes; then
   19851   cat >>confdefs.h <<_ACEOF
   19852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19853 _ACEOF
   19854  SELINUX_CONTEXT_H=
   19855 else
   19856   SELINUX_CONTEXT_H=selinux/context.h
   19857 fi
   19858 
   19859 done
   19860 
   19861 
   19862 
   19863 
   19864 
   19865   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
   19866 $as_echo_n "checking for ssize_t... " >&6; }
   19867 if test "${gt_cv_ssize_t+set}" = set; then
   19868   $as_echo_n "(cached) " >&6
   19869 else
   19870   cat >conftest.$ac_ext <<_ACEOF
   19871 /* confdefs.h.  */
   19872 _ACEOF
   19873 cat confdefs.h >>conftest.$ac_ext
   19874 cat >>conftest.$ac_ext <<_ACEOF
   19875 /* end confdefs.h.  */
   19876 #include <sys/types.h>
   19877 int
   19878 main ()
   19879 {
   19880 int x = sizeof (ssize_t *) + sizeof (ssize_t);
   19881         return !x;
   19882   ;
   19883   return 0;
   19884 }
   19885 _ACEOF
   19886 rm -f conftest.$ac_objext
   19887 if { (ac_try="$ac_compile"
   19888 case "(($ac_try" in
   19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19890   *) ac_try_echo=$ac_try;;
   19891 esac
   19892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   19893 $as_echo "$ac_try_echo") >&5
   19894   (eval "$ac_compile") 2>conftest.er1
   19895   ac_status=$?
   19896   grep -v '^ *+' conftest.er1 >conftest.err
   19897   rm -f conftest.er1
   19898   cat conftest.err >&5
   19899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19900   (exit $ac_status); } && {
   19901 	 test -z "$ac_c_werror_flag" ||
   19902 	 test ! -s conftest.err
   19903        } && test -s conftest.$ac_objext; then
   19904   gt_cv_ssize_t=yes
   19905 else
   19906   $as_echo "$as_me: failed program was:" >&5
   19907 sed 's/^/| /' conftest.$ac_ext >&5
   19908 
   19909 	gt_cv_ssize_t=no
   19910 fi
   19911 
   19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19913 fi
   19914 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
   19915 $as_echo "$gt_cv_ssize_t" >&6; }
   19916   if test $gt_cv_ssize_t = no; then
   19917 
   19918 cat >>confdefs.h <<\_ACEOF
   19919 #define ssize_t int
   19920 _ACEOF
   19921 
   19922   fi
   19923 
   19924 
   19925 
   19926 
   19927   # Define two additional variables used in the Makefile substitution.
   19928 
   19929   if test "$ac_cv_header_stdbool_h" = yes; then
   19930     STDBOOL_H=''
   19931   else
   19932     STDBOOL_H='stdbool.h'
   19933   fi
   19934 
   19935 
   19936   if test "$ac_cv_type__Bool" = yes; then
   19937     HAVE__BOOL=1
   19938   else
   19939     HAVE__BOOL=0
   19940   fi
   19941 
   19942 
   19943 
   19944 
   19945 
   19946   if test $ac_cv_type_long_long_int = yes; then
   19947     HAVE_LONG_LONG_INT=1
   19948   else
   19949     HAVE_LONG_LONG_INT=0
   19950   fi
   19951 
   19952 
   19953   if test $ac_cv_type_unsigned_long_long_int = yes; then
   19954     HAVE_UNSIGNED_LONG_LONG_INT=1
   19955   else
   19956     HAVE_UNSIGNED_LONG_LONG_INT=0
   19957   fi
   19958 
   19959 
   19960       if test $ac_cv_header_inttypes_h = yes; then
   19961     HAVE_INTTYPES_H=1
   19962   else
   19963     HAVE_INTTYPES_H=0
   19964   fi
   19965 
   19966 
   19967       if test $ac_cv_header_sys_types_h = yes; then
   19968     HAVE_SYS_TYPES_H=1
   19969   else
   19970     HAVE_SYS_TYPES_H=0
   19971   fi
   19972 
   19973 
   19974 
   19975 
   19976 
   19977 
   19978 
   19979 
   19980 
   19981 
   19982 
   19983 
   19984 
   19985      if test $gl_cv_have_include_next = yes; then
   19986        gl_cv_next_stdint_h='<'stdint.h'>'
   19987      else
   19988        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
   19989 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
   19990 if test "${gl_cv_next_stdint_h+set}" = set; then
   19991   $as_echo_n "(cached) " >&6
   19992 else
   19993 
   19994 	  if test $ac_cv_header_stdint_h = yes; then
   19995 	    cat >conftest.$ac_ext <<_ACEOF
   19996 /* confdefs.h.  */
   19997 _ACEOF
   19998 cat confdefs.h >>conftest.$ac_ext
   19999 cat >>conftest.$ac_ext <<_ACEOF
   20000 /* end confdefs.h.  */
   20001 #include <stdint.h>
   20002 
   20003 _ACEOF
   20004 	    	    	    	    	    	    	    	    case "$host_os" in
   20005 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20006 	      *)    gl_absname_cpp="$ac_cpp" ;;
   20007 	    esac
   20008 	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20009 	       sed -n '\#/stdint.h#{
   20010 		 s#.*"\(.*/stdint.h\)".*#\1#
   20011 		 s#^/[^/]#//&#
   20012 		 p
   20013 		 q
   20014 	       }'`'"'
   20015 	  else
   20016 	    gl_cv_next_stdint_h='<'stdint.h'>'
   20017 	  fi
   20018 
   20019 fi
   20020 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
   20021 $as_echo "$gl_cv_next_stdint_h" >&6; }
   20022      fi
   20023      NEXT_STDINT_H=$gl_cv_next_stdint_h
   20024 
   20025      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20026        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20027        gl_next_as_first_directive='<'stdint.h'>'
   20028      else
   20029        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20030        gl_next_as_first_directive=$gl_cv_next_stdint_h
   20031      fi
   20032      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
   20033 
   20034 
   20035 
   20036   if test $ac_cv_header_stdint_h = yes; then
   20037     HAVE_STDINT_H=1
   20038   else
   20039     HAVE_STDINT_H=0
   20040   fi
   20041 
   20042 
   20043     if test $ac_cv_header_stdint_h = yes; then
   20044     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
   20045 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
   20046 if test "${gl_cv_header_working_stdint_h+set}" = set; then
   20047   $as_echo_n "(cached) " >&6
   20048 else
   20049   gl_cv_header_working_stdint_h=no
   20050        cat >conftest.$ac_ext <<_ACEOF
   20051 
   20052          /* confdefs.h.  */
   20053 _ACEOF
   20054 cat confdefs.h >>conftest.$ac_ext
   20055 cat >>conftest.$ac_ext <<_ACEOF
   20056 /* end confdefs.h.  */
   20057 
   20058 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
   20059 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
   20060 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   20061 #include <stdint.h>
   20062 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
   20063 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
   20064 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
   20065 #endif
   20066 
   20067 
   20068   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20069      included before <wchar.h>.  */
   20070   #include <stddef.h>
   20071   #include <signal.h>
   20072   #if HAVE_WCHAR_H
   20073   # include <stdio.h>
   20074   # include <time.h>
   20075   # include <wchar.h>
   20076   #endif
   20077 
   20078 
   20079 #ifdef INT8_MAX
   20080 int8_t a1 = INT8_MAX;
   20081 int8_t a1min = INT8_MIN;
   20082 #endif
   20083 #ifdef INT16_MAX
   20084 int16_t a2 = INT16_MAX;
   20085 int16_t a2min = INT16_MIN;
   20086 #endif
   20087 #ifdef INT32_MAX
   20088 int32_t a3 = INT32_MAX;
   20089 int32_t a3min = INT32_MIN;
   20090 #endif
   20091 #ifdef INT64_MAX
   20092 int64_t a4 = INT64_MAX;
   20093 int64_t a4min = INT64_MIN;
   20094 #endif
   20095 #ifdef UINT8_MAX
   20096 uint8_t b1 = UINT8_MAX;
   20097 #else
   20098 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
   20099 #endif
   20100 #ifdef UINT16_MAX
   20101 uint16_t b2 = UINT16_MAX;
   20102 #endif
   20103 #ifdef UINT32_MAX
   20104 uint32_t b3 = UINT32_MAX;
   20105 #endif
   20106 #ifdef UINT64_MAX
   20107 uint64_t b4 = UINT64_MAX;
   20108 #endif
   20109 int_least8_t c1 = INT8_C (0x7f);
   20110 int_least8_t c1max = INT_LEAST8_MAX;
   20111 int_least8_t c1min = INT_LEAST8_MIN;
   20112 int_least16_t c2 = INT16_C (0x7fff);
   20113 int_least16_t c2max = INT_LEAST16_MAX;
   20114 int_least16_t c2min = INT_LEAST16_MIN;
   20115 int_least32_t c3 = INT32_C (0x7fffffff);
   20116 int_least32_t c3max = INT_LEAST32_MAX;
   20117 int_least32_t c3min = INT_LEAST32_MIN;
   20118 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
   20119 int_least64_t c4max = INT_LEAST64_MAX;
   20120 int_least64_t c4min = INT_LEAST64_MIN;
   20121 uint_least8_t d1 = UINT8_C (0xff);
   20122 uint_least8_t d1max = UINT_LEAST8_MAX;
   20123 uint_least16_t d2 = UINT16_C (0xffff);
   20124 uint_least16_t d2max = UINT_LEAST16_MAX;
   20125 uint_least32_t d3 = UINT32_C (0xffffffff);
   20126 uint_least32_t d3max = UINT_LEAST32_MAX;
   20127 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
   20128 uint_least64_t d4max = UINT_LEAST64_MAX;
   20129 int_fast8_t e1 = INT_FAST8_MAX;
   20130 int_fast8_t e1min = INT_FAST8_MIN;
   20131 int_fast16_t e2 = INT_FAST16_MAX;
   20132 int_fast16_t e2min = INT_FAST16_MIN;
   20133 int_fast32_t e3 = INT_FAST32_MAX;
   20134 int_fast32_t e3min = INT_FAST32_MIN;
   20135 int_fast64_t e4 = INT_FAST64_MAX;
   20136 int_fast64_t e4min = INT_FAST64_MIN;
   20137 uint_fast8_t f1 = UINT_FAST8_MAX;
   20138 uint_fast16_t f2 = UINT_FAST16_MAX;
   20139 uint_fast32_t f3 = UINT_FAST32_MAX;
   20140 uint_fast64_t f4 = UINT_FAST64_MAX;
   20141 #ifdef INTPTR_MAX
   20142 intptr_t g = INTPTR_MAX;
   20143 intptr_t gmin = INTPTR_MIN;
   20144 #endif
   20145 #ifdef UINTPTR_MAX
   20146 uintptr_t h = UINTPTR_MAX;
   20147 #endif
   20148 intmax_t i = INTMAX_MAX;
   20149 uintmax_t j = UINTMAX_MAX;
   20150 
   20151 #include <limits.h> /* for CHAR_BIT */
   20152 #define TYPE_MINIMUM(t) \
   20153   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
   20154 #define TYPE_MAXIMUM(t) \
   20155   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
   20156 struct s {
   20157   int check_PTRDIFF:
   20158       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
   20159       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
   20160       ? 1 : -1;
   20161   /* Detect bug in FreeBSD 6.0 / ia64.  */
   20162   int check_SIG_ATOMIC:
   20163       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
   20164       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
   20165       ? 1 : -1;
   20166   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
   20167   int check_WCHAR:
   20168       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
   20169       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
   20170       ? 1 : -1;
   20171   /* Detect bug in mingw.  */
   20172   int check_WINT:
   20173       WINT_MIN == TYPE_MINIMUM (wint_t)
   20174       && WINT_MAX == TYPE_MAXIMUM (wint_t)
   20175       ? 1 : -1;
   20176 
   20177   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
   20178   int check_UINT8_C:
   20179         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
   20180   int check_UINT16_C:
   20181         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
   20182 
   20183   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
   20184 #ifdef UINT8_MAX
   20185   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
   20186 #endif
   20187 #ifdef UINT16_MAX
   20188   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
   20189 #endif
   20190 #ifdef UINT32_MAX
   20191   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
   20192 #endif
   20193 #ifdef UINT64_MAX
   20194   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
   20195 #endif
   20196   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
   20197   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
   20198   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
   20199   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
   20200   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
   20201   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
   20202   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
   20203   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
   20204   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
   20205   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
   20206   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
   20207 };
   20208 
   20209 int
   20210 main ()
   20211 {
   20212 
   20213   ;
   20214   return 0;
   20215 }
   20216 _ACEOF
   20217 rm -f conftest.$ac_objext
   20218 if { (ac_try="$ac_compile"
   20219 case "(($ac_try" in
   20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20221   *) ac_try_echo=$ac_try;;
   20222 esac
   20223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20224 $as_echo "$ac_try_echo") >&5
   20225   (eval "$ac_compile") 2>conftest.er1
   20226   ac_status=$?
   20227   grep -v '^ *+' conftest.er1 >conftest.err
   20228   rm -f conftest.er1
   20229   cat conftest.err >&5
   20230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20231   (exit $ac_status); } && {
   20232 	 test -z "$ac_c_werror_flag" ||
   20233 	 test ! -s conftest.err
   20234        } && test -s conftest.$ac_objext; then
   20235                                                     if test "$cross_compiling" = yes; then
   20236                  gl_cv_header_working_stdint_h=yes
   20237 
   20238 else
   20239   cat >conftest.$ac_ext <<_ACEOF
   20240 
   20241             /* confdefs.h.  */
   20242 _ACEOF
   20243 cat confdefs.h >>conftest.$ac_ext
   20244 cat >>conftest.$ac_ext <<_ACEOF
   20245 /* end confdefs.h.  */
   20246 
   20247 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
   20248 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
   20249 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   20250 #include <stdint.h>
   20251 
   20252 
   20253   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20254      included before <wchar.h>.  */
   20255   #include <stddef.h>
   20256   #include <signal.h>
   20257   #if HAVE_WCHAR_H
   20258   # include <stdio.h>
   20259   # include <time.h>
   20260   # include <wchar.h>
   20261   #endif
   20262 
   20263 
   20264 #include <stdio.h>
   20265 #include <string.h>
   20266 #define MVAL(macro) MVAL1(macro)
   20267 #define MVAL1(expression) #expression
   20268 static const char *macro_values[] =
   20269   {
   20270 #ifdef INT8_MAX
   20271     MVAL (INT8_MAX),
   20272 #endif
   20273 #ifdef INT16_MAX
   20274     MVAL (INT16_MAX),
   20275 #endif
   20276 #ifdef INT32_MAX
   20277     MVAL (INT32_MAX),
   20278 #endif
   20279 #ifdef INT64_MAX
   20280     MVAL (INT64_MAX),
   20281 #endif
   20282 #ifdef UINT8_MAX
   20283     MVAL (UINT8_MAX),
   20284 #endif
   20285 #ifdef UINT16_MAX
   20286     MVAL (UINT16_MAX),
   20287 #endif
   20288 #ifdef UINT32_MAX
   20289     MVAL (UINT32_MAX),
   20290 #endif
   20291 #ifdef UINT64_MAX
   20292     MVAL (UINT64_MAX),
   20293 #endif
   20294     NULL
   20295   };
   20296 
   20297 int
   20298 main ()
   20299 {
   20300 
   20301   const char **mv;
   20302   for (mv = macro_values; *mv != NULL; mv++)
   20303     {
   20304       const char *value = *mv;
   20305       /* Test whether it looks like a cast expression.  */
   20306       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
   20307           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
   20308           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
   20309           || strncmp (value, "((int)"/*)*/, 6) == 0
   20310           || strncmp (value, "((signed short)"/*)*/, 15) == 0
   20311           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
   20312         return 1;
   20313     }
   20314   return 0;
   20315 
   20316   ;
   20317   return 0;
   20318 }
   20319 _ACEOF
   20320 rm -f conftest$ac_exeext
   20321 if { (ac_try="$ac_link"
   20322 case "(($ac_try" in
   20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20324   *) ac_try_echo=$ac_try;;
   20325 esac
   20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20327 $as_echo "$ac_try_echo") >&5
   20328   (eval "$ac_link") 2>&5
   20329   ac_status=$?
   20330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20332   { (case "(($ac_try" in
   20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20334   *) ac_try_echo=$ac_try;;
   20335 esac
   20336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20337 $as_echo "$ac_try_echo") >&5
   20338   (eval "$ac_try") 2>&5
   20339   ac_status=$?
   20340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20341   (exit $ac_status); }; }; then
   20342   gl_cv_header_working_stdint_h=yes
   20343 else
   20344   $as_echo "$as_me: program exited with status $ac_status" >&5
   20345 $as_echo "$as_me: failed program was:" >&5
   20346 sed 's/^/| /' conftest.$ac_ext >&5
   20347 
   20348 fi
   20349 rm -rf conftest.dSYM
   20350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20351 fi
   20352 
   20353 
   20354 
   20355 else
   20356   $as_echo "$as_me: failed program was:" >&5
   20357 sed 's/^/| /' conftest.$ac_ext >&5
   20358 
   20359 
   20360 fi
   20361 
   20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20363 
   20364 fi
   20365 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
   20366 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
   20367   fi
   20368   if test "$gl_cv_header_working_stdint_h" = yes; then
   20369     STDINT_H=
   20370   else
   20371 
   20372 
   20373 for ac_header in sys/inttypes.h sys/bitypes.h
   20374 do
   20375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20377   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   20378 $as_echo_n "checking for $ac_header... " >&6; }
   20379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20380   $as_echo_n "(cached) " >&6
   20381 fi
   20382 ac_res=`eval 'as_val=${'$as_ac_Header'}
   20383 		 $as_echo "$as_val"'`
   20384 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   20385 $as_echo "$ac_res" >&6; }
   20386 else
   20387   # Is the header compilable?
   20388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20389 $as_echo_n "checking $ac_header usability... " >&6; }
   20390 cat >conftest.$ac_ext <<_ACEOF
   20391 /* confdefs.h.  */
   20392 _ACEOF
   20393 cat confdefs.h >>conftest.$ac_ext
   20394 cat >>conftest.$ac_ext <<_ACEOF
   20395 /* end confdefs.h.  */
   20396 $ac_includes_default
   20397 #include <$ac_header>
   20398 _ACEOF
   20399 rm -f conftest.$ac_objext
   20400 if { (ac_try="$ac_compile"
   20401 case "(($ac_try" in
   20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20403   *) ac_try_echo=$ac_try;;
   20404 esac
   20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20406 $as_echo "$ac_try_echo") >&5
   20407   (eval "$ac_compile") 2>conftest.er1
   20408   ac_status=$?
   20409   grep -v '^ *+' conftest.er1 >conftest.err
   20410   rm -f conftest.er1
   20411   cat conftest.err >&5
   20412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20413   (exit $ac_status); } && {
   20414 	 test -z "$ac_c_werror_flag" ||
   20415 	 test ! -s conftest.err
   20416        } && test -s conftest.$ac_objext; then
   20417   ac_header_compiler=yes
   20418 else
   20419   $as_echo "$as_me: failed program was:" >&5
   20420 sed 's/^/| /' conftest.$ac_ext >&5
   20421 
   20422 	ac_header_compiler=no
   20423 fi
   20424 
   20425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20427 $as_echo "$ac_header_compiler" >&6; }
   20428 
   20429 # Is the header present?
   20430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20431 $as_echo_n "checking $ac_header presence... " >&6; }
   20432 cat >conftest.$ac_ext <<_ACEOF
   20433 /* confdefs.h.  */
   20434 _ACEOF
   20435 cat confdefs.h >>conftest.$ac_ext
   20436 cat >>conftest.$ac_ext <<_ACEOF
   20437 /* end confdefs.h.  */
   20438 #include <$ac_header>
   20439 _ACEOF
   20440 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20441 case "(($ac_try" in
   20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20443   *) ac_try_echo=$ac_try;;
   20444 esac
   20445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20446 $as_echo "$ac_try_echo") >&5
   20447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20448   ac_status=$?
   20449   grep -v '^ *+' conftest.er1 >conftest.err
   20450   rm -f conftest.er1
   20451   cat conftest.err >&5
   20452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20453   (exit $ac_status); } >/dev/null && {
   20454 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20455 	 test ! -s conftest.err
   20456        }; then
   20457   ac_header_preproc=yes
   20458 else
   20459   $as_echo "$as_me: failed program was:" >&5
   20460 sed 's/^/| /' conftest.$ac_ext >&5
   20461 
   20462   ac_header_preproc=no
   20463 fi
   20464 
   20465 rm -f conftest.err conftest.$ac_ext
   20466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20467 $as_echo "$ac_header_preproc" >&6; }
   20468 
   20469 # So?  What about this header?
   20470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20471   yes:no: )
   20472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20476     ac_header_preproc=yes
   20477     ;;
   20478   no:yes:* )
   20479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20482 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   20483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   20484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   20485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   20486 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   20487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   20488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   20489     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   20490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   20491     ( cat <<\_ASBOX
   20492 ## ------------------------------------ ##
   20493 ## Report this to bug-gnu-utils (at] gnu.org ##
   20494 ## ------------------------------------ ##
   20495 _ASBOX
   20496      ) | sed "s/^/$as_me: WARNING:     /" >&2
   20497     ;;
   20498 esac
   20499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   20500 $as_echo_n "checking for $ac_header... " >&6; }
   20501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20502   $as_echo_n "(cached) " >&6
   20503 else
   20504   eval "$as_ac_Header=\$ac_header_preproc"
   20505 fi
   20506 ac_res=`eval 'as_val=${'$as_ac_Header'}
   20507 		 $as_echo "$as_val"'`
   20508 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   20509 $as_echo "$ac_res" >&6; }
   20510 
   20511 fi
   20512 as_val=`eval 'as_val=${'$as_ac_Header'}
   20513 		 $as_echo "$as_val"'`
   20514    if test "x$as_val" = x""yes; then
   20515   cat >>confdefs.h <<_ACEOF
   20516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20517 _ACEOF
   20518 
   20519 fi
   20520 
   20521 done
   20522 
   20523     if test $ac_cv_header_sys_inttypes_h = yes; then
   20524       HAVE_SYS_INTTYPES_H=1
   20525     else
   20526       HAVE_SYS_INTTYPES_H=0
   20527     fi
   20528 
   20529     if test $ac_cv_header_sys_bitypes_h = yes; then
   20530       HAVE_SYS_BITYPES_H=1
   20531     else
   20532       HAVE_SYS_BITYPES_H=0
   20533     fi
   20534 
   20535 
   20536 
   20537 
   20538 
   20539 
   20540 
   20541 
   20542 
   20543 
   20544 
   20545   if test $APPLE_UNIVERSAL_BUILD = 0; then
   20546 
   20547 
   20548 
   20549 
   20550   for gltype in ptrdiff_t size_t ; do
   20551     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
   20552 $as_echo_n "checking for bit size of $gltype... " >&6; }
   20553 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
   20554   $as_echo_n "(cached) " >&6
   20555 else
   20556   if test "$cross_compiling" = yes; then
   20557   # Depending upon the size, compute the lo and hi bounds.
   20558 cat >conftest.$ac_ext <<_ACEOF
   20559 /* confdefs.h.  */
   20560 _ACEOF
   20561 cat confdefs.h >>conftest.$ac_ext
   20562 cat >>conftest.$ac_ext <<_ACEOF
   20563 /* end confdefs.h.  */
   20564 
   20565   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20566      included before <wchar.h>.  */
   20567   #include <stddef.h>
   20568   #include <signal.h>
   20569   #if HAVE_WCHAR_H
   20570   # include <stdio.h>
   20571   # include <time.h>
   20572   # include <wchar.h>
   20573   #endif
   20574 
   20575 #include <limits.h>
   20576 int
   20577 main ()
   20578 {
   20579 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
   20580 test_array [0] = 0
   20581 
   20582   ;
   20583   return 0;
   20584 }
   20585 _ACEOF
   20586 rm -f conftest.$ac_objext
   20587 if { (ac_try="$ac_compile"
   20588 case "(($ac_try" in
   20589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20590   *) ac_try_echo=$ac_try;;
   20591 esac
   20592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20593 $as_echo "$ac_try_echo") >&5
   20594   (eval "$ac_compile") 2>conftest.er1
   20595   ac_status=$?
   20596   grep -v '^ *+' conftest.er1 >conftest.err
   20597   rm -f conftest.er1
   20598   cat conftest.err >&5
   20599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20600   (exit $ac_status); } && {
   20601 	 test -z "$ac_c_werror_flag" ||
   20602 	 test ! -s conftest.err
   20603        } && test -s conftest.$ac_objext; then
   20604   ac_lo=0 ac_mid=0
   20605   while :; do
   20606     cat >conftest.$ac_ext <<_ACEOF
   20607 /* confdefs.h.  */
   20608 _ACEOF
   20609 cat confdefs.h >>conftest.$ac_ext
   20610 cat >>conftest.$ac_ext <<_ACEOF
   20611 /* end confdefs.h.  */
   20612 
   20613   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20614      included before <wchar.h>.  */
   20615   #include <stddef.h>
   20616   #include <signal.h>
   20617   #if HAVE_WCHAR_H
   20618   # include <stdio.h>
   20619   # include <time.h>
   20620   # include <wchar.h>
   20621   #endif
   20622 
   20623 #include <limits.h>
   20624 int
   20625 main ()
   20626 {
   20627 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
   20628 test_array [0] = 0
   20629 
   20630   ;
   20631   return 0;
   20632 }
   20633 _ACEOF
   20634 rm -f conftest.$ac_objext
   20635 if { (ac_try="$ac_compile"
   20636 case "(($ac_try" in
   20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20638   *) ac_try_echo=$ac_try;;
   20639 esac
   20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20641 $as_echo "$ac_try_echo") >&5
   20642   (eval "$ac_compile") 2>conftest.er1
   20643   ac_status=$?
   20644   grep -v '^ *+' conftest.er1 >conftest.err
   20645   rm -f conftest.er1
   20646   cat conftest.err >&5
   20647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20648   (exit $ac_status); } && {
   20649 	 test -z "$ac_c_werror_flag" ||
   20650 	 test ! -s conftest.err
   20651        } && test -s conftest.$ac_objext; then
   20652   ac_hi=$ac_mid; break
   20653 else
   20654   $as_echo "$as_me: failed program was:" >&5
   20655 sed 's/^/| /' conftest.$ac_ext >&5
   20656 
   20657 	ac_lo=`expr $ac_mid + 1`
   20658 			if test $ac_lo -le $ac_mid; then
   20659 			  ac_lo= ac_hi=
   20660 			  break
   20661 			fi
   20662 			ac_mid=`expr 2 '*' $ac_mid + 1`
   20663 fi
   20664 
   20665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20666   done
   20667 else
   20668   $as_echo "$as_me: failed program was:" >&5
   20669 sed 's/^/| /' conftest.$ac_ext >&5
   20670 
   20671 	cat >conftest.$ac_ext <<_ACEOF
   20672 /* confdefs.h.  */
   20673 _ACEOF
   20674 cat confdefs.h >>conftest.$ac_ext
   20675 cat >>conftest.$ac_ext <<_ACEOF
   20676 /* end confdefs.h.  */
   20677 
   20678   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20679      included before <wchar.h>.  */
   20680   #include <stddef.h>
   20681   #include <signal.h>
   20682   #if HAVE_WCHAR_H
   20683   # include <stdio.h>
   20684   # include <time.h>
   20685   # include <wchar.h>
   20686   #endif
   20687 
   20688 #include <limits.h>
   20689 int
   20690 main ()
   20691 {
   20692 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
   20693 test_array [0] = 0
   20694 
   20695   ;
   20696   return 0;
   20697 }
   20698 _ACEOF
   20699 rm -f conftest.$ac_objext
   20700 if { (ac_try="$ac_compile"
   20701 case "(($ac_try" in
   20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20703   *) ac_try_echo=$ac_try;;
   20704 esac
   20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20706 $as_echo "$ac_try_echo") >&5
   20707   (eval "$ac_compile") 2>conftest.er1
   20708   ac_status=$?
   20709   grep -v '^ *+' conftest.er1 >conftest.err
   20710   rm -f conftest.er1
   20711   cat conftest.err >&5
   20712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20713   (exit $ac_status); } && {
   20714 	 test -z "$ac_c_werror_flag" ||
   20715 	 test ! -s conftest.err
   20716        } && test -s conftest.$ac_objext; then
   20717   ac_hi=-1 ac_mid=-1
   20718   while :; do
   20719     cat >conftest.$ac_ext <<_ACEOF
   20720 /* confdefs.h.  */
   20721 _ACEOF
   20722 cat confdefs.h >>conftest.$ac_ext
   20723 cat >>conftest.$ac_ext <<_ACEOF
   20724 /* end confdefs.h.  */
   20725 
   20726   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20727      included before <wchar.h>.  */
   20728   #include <stddef.h>
   20729   #include <signal.h>
   20730   #if HAVE_WCHAR_H
   20731   # include <stdio.h>
   20732   # include <time.h>
   20733   # include <wchar.h>
   20734   #endif
   20735 
   20736 #include <limits.h>
   20737 int
   20738 main ()
   20739 {
   20740 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
   20741 test_array [0] = 0
   20742 
   20743   ;
   20744   return 0;
   20745 }
   20746 _ACEOF
   20747 rm -f conftest.$ac_objext
   20748 if { (ac_try="$ac_compile"
   20749 case "(($ac_try" in
   20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20751   *) ac_try_echo=$ac_try;;
   20752 esac
   20753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20754 $as_echo "$ac_try_echo") >&5
   20755   (eval "$ac_compile") 2>conftest.er1
   20756   ac_status=$?
   20757   grep -v '^ *+' conftest.er1 >conftest.err
   20758   rm -f conftest.er1
   20759   cat conftest.err >&5
   20760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20761   (exit $ac_status); } && {
   20762 	 test -z "$ac_c_werror_flag" ||
   20763 	 test ! -s conftest.err
   20764        } && test -s conftest.$ac_objext; then
   20765   ac_lo=$ac_mid; break
   20766 else
   20767   $as_echo "$as_me: failed program was:" >&5
   20768 sed 's/^/| /' conftest.$ac_ext >&5
   20769 
   20770 	ac_hi=`expr '(' $ac_mid ')' - 1`
   20771 			if test $ac_mid -le $ac_hi; then
   20772 			  ac_lo= ac_hi=
   20773 			  break
   20774 			fi
   20775 			ac_mid=`expr 2 '*' $ac_mid`
   20776 fi
   20777 
   20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20779   done
   20780 else
   20781   $as_echo "$as_me: failed program was:" >&5
   20782 sed 's/^/| /' conftest.$ac_ext >&5
   20783 
   20784 	ac_lo= ac_hi=
   20785 fi
   20786 
   20787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20788 fi
   20789 
   20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20791 # Binary search between lo and hi bounds.
   20792 while test "x$ac_lo" != "x$ac_hi"; do
   20793   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   20794   cat >conftest.$ac_ext <<_ACEOF
   20795 /* confdefs.h.  */
   20796 _ACEOF
   20797 cat confdefs.h >>conftest.$ac_ext
   20798 cat >>conftest.$ac_ext <<_ACEOF
   20799 /* end confdefs.h.  */
   20800 
   20801   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20802      included before <wchar.h>.  */
   20803   #include <stddef.h>
   20804   #include <signal.h>
   20805   #if HAVE_WCHAR_H
   20806   # include <stdio.h>
   20807   # include <time.h>
   20808   # include <wchar.h>
   20809   #endif
   20810 
   20811 #include <limits.h>
   20812 int
   20813 main ()
   20814 {
   20815 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
   20816 test_array [0] = 0
   20817 
   20818   ;
   20819   return 0;
   20820 }
   20821 _ACEOF
   20822 rm -f conftest.$ac_objext
   20823 if { (ac_try="$ac_compile"
   20824 case "(($ac_try" in
   20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20826   *) ac_try_echo=$ac_try;;
   20827 esac
   20828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20829 $as_echo "$ac_try_echo") >&5
   20830   (eval "$ac_compile") 2>conftest.er1
   20831   ac_status=$?
   20832   grep -v '^ *+' conftest.er1 >conftest.err
   20833   rm -f conftest.er1
   20834   cat conftest.err >&5
   20835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20836   (exit $ac_status); } && {
   20837 	 test -z "$ac_c_werror_flag" ||
   20838 	 test ! -s conftest.err
   20839        } && test -s conftest.$ac_objext; then
   20840   ac_hi=$ac_mid
   20841 else
   20842   $as_echo "$as_me: failed program was:" >&5
   20843 sed 's/^/| /' conftest.$ac_ext >&5
   20844 
   20845 	ac_lo=`expr '(' $ac_mid ')' + 1`
   20846 fi
   20847 
   20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20849 done
   20850 case $ac_lo in
   20851 ?*) result=$ac_lo;;
   20852 '') result=unknown ;;
   20853 esac
   20854 else
   20855   cat >conftest.$ac_ext <<_ACEOF
   20856 /* confdefs.h.  */
   20857 _ACEOF
   20858 cat confdefs.h >>conftest.$ac_ext
   20859 cat >>conftest.$ac_ext <<_ACEOF
   20860 /* end confdefs.h.  */
   20861 
   20862   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20863      included before <wchar.h>.  */
   20864   #include <stddef.h>
   20865   #include <signal.h>
   20866   #if HAVE_WCHAR_H
   20867   # include <stdio.h>
   20868   # include <time.h>
   20869   # include <wchar.h>
   20870   #endif
   20871 
   20872 #include <limits.h>
   20873 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
   20874 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
   20875 #include <stdio.h>
   20876 #include <stdlib.h>
   20877 int
   20878 main ()
   20879 {
   20880 
   20881   FILE *f = fopen ("conftest.val", "w");
   20882   if (! f)
   20883     return 1;
   20884   if ((sizeof ($gltype) * CHAR_BIT) < 0)
   20885     {
   20886       long int i = longval ();
   20887       if (i != (sizeof ($gltype) * CHAR_BIT))
   20888 	return 1;
   20889       fprintf (f, "%ld", i);
   20890     }
   20891   else
   20892     {
   20893       unsigned long int i = ulongval ();
   20894       if (i != (sizeof ($gltype) * CHAR_BIT))
   20895 	return 1;
   20896       fprintf (f, "%lu", i);
   20897     }
   20898   /* Do not output a trailing newline, as this causes \r\n confusion
   20899      on some platforms.  */
   20900   return ferror (f) || fclose (f) != 0;
   20901 
   20902   ;
   20903   return 0;
   20904 }
   20905 _ACEOF
   20906 rm -f conftest$ac_exeext
   20907 if { (ac_try="$ac_link"
   20908 case "(($ac_try" in
   20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20910   *) ac_try_echo=$ac_try;;
   20911 esac
   20912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20913 $as_echo "$ac_try_echo") >&5
   20914   (eval "$ac_link") 2>&5
   20915   ac_status=$?
   20916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20918   { (case "(($ac_try" in
   20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20920   *) ac_try_echo=$ac_try;;
   20921 esac
   20922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   20923 $as_echo "$ac_try_echo") >&5
   20924   (eval "$ac_try") 2>&5
   20925   ac_status=$?
   20926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20927   (exit $ac_status); }; }; then
   20928   result=`cat conftest.val`
   20929 else
   20930   $as_echo "$as_me: program exited with status $ac_status" >&5
   20931 $as_echo "$as_me: failed program was:" >&5
   20932 sed 's/^/| /' conftest.$ac_ext >&5
   20933 
   20934 ( exit $ac_status )
   20935 result=unknown
   20936 fi
   20937 rm -rf conftest.dSYM
   20938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20939 fi
   20940 rm -f conftest.val
   20941        eval gl_cv_bitsizeof_${gltype}=\$result
   20942 
   20943 fi
   20944 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
   20945 		 $as_echo "$as_val"'`
   20946 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   20947 $as_echo "$ac_res" >&6; }
   20948     eval result=\$gl_cv_bitsizeof_${gltype}
   20949     if test $result = unknown; then
   20950                                                 result=0
   20951     fi
   20952     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   20953     cat >>confdefs.h <<_ACEOF
   20954 #define BITSIZEOF_${GLTYPE} $result
   20955 _ACEOF
   20956 
   20957     eval BITSIZEOF_${GLTYPE}=\$result
   20958   done
   20959 
   20960 
   20961   fi
   20962 
   20963 
   20964 
   20965 
   20966 
   20967   for gltype in sig_atomic_t wchar_t wint_t ; do
   20968     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
   20969 $as_echo_n "checking for bit size of $gltype... " >&6; }
   20970 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
   20971   $as_echo_n "(cached) " >&6
   20972 else
   20973   if test "$cross_compiling" = yes; then
   20974   # Depending upon the size, compute the lo and hi bounds.
   20975 cat >conftest.$ac_ext <<_ACEOF
   20976 /* confdefs.h.  */
   20977 _ACEOF
   20978 cat confdefs.h >>conftest.$ac_ext
   20979 cat >>conftest.$ac_ext <<_ACEOF
   20980 /* end confdefs.h.  */
   20981 
   20982   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   20983      included before <wchar.h>.  */
   20984   #include <stddef.h>
   20985   #include <signal.h>
   20986   #if HAVE_WCHAR_H
   20987   # include <stdio.h>
   20988   # include <time.h>
   20989   # include <wchar.h>
   20990   #endif
   20991 
   20992 #include <limits.h>
   20993 int
   20994 main ()
   20995 {
   20996 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
   20997 test_array [0] = 0
   20998 
   20999   ;
   21000   return 0;
   21001 }
   21002 _ACEOF
   21003 rm -f conftest.$ac_objext
   21004 if { (ac_try="$ac_compile"
   21005 case "(($ac_try" in
   21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21007   *) ac_try_echo=$ac_try;;
   21008 esac
   21009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21010 $as_echo "$ac_try_echo") >&5
   21011   (eval "$ac_compile") 2>conftest.er1
   21012   ac_status=$?
   21013   grep -v '^ *+' conftest.er1 >conftest.err
   21014   rm -f conftest.er1
   21015   cat conftest.err >&5
   21016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21017   (exit $ac_status); } && {
   21018 	 test -z "$ac_c_werror_flag" ||
   21019 	 test ! -s conftest.err
   21020        } && test -s conftest.$ac_objext; then
   21021   ac_lo=0 ac_mid=0
   21022   while :; do
   21023     cat >conftest.$ac_ext <<_ACEOF
   21024 /* confdefs.h.  */
   21025 _ACEOF
   21026 cat confdefs.h >>conftest.$ac_ext
   21027 cat >>conftest.$ac_ext <<_ACEOF
   21028 /* end confdefs.h.  */
   21029 
   21030   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21031      included before <wchar.h>.  */
   21032   #include <stddef.h>
   21033   #include <signal.h>
   21034   #if HAVE_WCHAR_H
   21035   # include <stdio.h>
   21036   # include <time.h>
   21037   # include <wchar.h>
   21038   #endif
   21039 
   21040 #include <limits.h>
   21041 int
   21042 main ()
   21043 {
   21044 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
   21045 test_array [0] = 0
   21046 
   21047   ;
   21048   return 0;
   21049 }
   21050 _ACEOF
   21051 rm -f conftest.$ac_objext
   21052 if { (ac_try="$ac_compile"
   21053 case "(($ac_try" in
   21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21055   *) ac_try_echo=$ac_try;;
   21056 esac
   21057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21058 $as_echo "$ac_try_echo") >&5
   21059   (eval "$ac_compile") 2>conftest.er1
   21060   ac_status=$?
   21061   grep -v '^ *+' conftest.er1 >conftest.err
   21062   rm -f conftest.er1
   21063   cat conftest.err >&5
   21064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21065   (exit $ac_status); } && {
   21066 	 test -z "$ac_c_werror_flag" ||
   21067 	 test ! -s conftest.err
   21068        } && test -s conftest.$ac_objext; then
   21069   ac_hi=$ac_mid; break
   21070 else
   21071   $as_echo "$as_me: failed program was:" >&5
   21072 sed 's/^/| /' conftest.$ac_ext >&5
   21073 
   21074 	ac_lo=`expr $ac_mid + 1`
   21075 			if test $ac_lo -le $ac_mid; then
   21076 			  ac_lo= ac_hi=
   21077 			  break
   21078 			fi
   21079 			ac_mid=`expr 2 '*' $ac_mid + 1`
   21080 fi
   21081 
   21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21083   done
   21084 else
   21085   $as_echo "$as_me: failed program was:" >&5
   21086 sed 's/^/| /' conftest.$ac_ext >&5
   21087 
   21088 	cat >conftest.$ac_ext <<_ACEOF
   21089 /* confdefs.h.  */
   21090 _ACEOF
   21091 cat confdefs.h >>conftest.$ac_ext
   21092 cat >>conftest.$ac_ext <<_ACEOF
   21093 /* end confdefs.h.  */
   21094 
   21095   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21096      included before <wchar.h>.  */
   21097   #include <stddef.h>
   21098   #include <signal.h>
   21099   #if HAVE_WCHAR_H
   21100   # include <stdio.h>
   21101   # include <time.h>
   21102   # include <wchar.h>
   21103   #endif
   21104 
   21105 #include <limits.h>
   21106 int
   21107 main ()
   21108 {
   21109 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
   21110 test_array [0] = 0
   21111 
   21112   ;
   21113   return 0;
   21114 }
   21115 _ACEOF
   21116 rm -f conftest.$ac_objext
   21117 if { (ac_try="$ac_compile"
   21118 case "(($ac_try" in
   21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21120   *) ac_try_echo=$ac_try;;
   21121 esac
   21122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21123 $as_echo "$ac_try_echo") >&5
   21124   (eval "$ac_compile") 2>conftest.er1
   21125   ac_status=$?
   21126   grep -v '^ *+' conftest.er1 >conftest.err
   21127   rm -f conftest.er1
   21128   cat conftest.err >&5
   21129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21130   (exit $ac_status); } && {
   21131 	 test -z "$ac_c_werror_flag" ||
   21132 	 test ! -s conftest.err
   21133        } && test -s conftest.$ac_objext; then
   21134   ac_hi=-1 ac_mid=-1
   21135   while :; do
   21136     cat >conftest.$ac_ext <<_ACEOF
   21137 /* confdefs.h.  */
   21138 _ACEOF
   21139 cat confdefs.h >>conftest.$ac_ext
   21140 cat >>conftest.$ac_ext <<_ACEOF
   21141 /* end confdefs.h.  */
   21142 
   21143   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21144      included before <wchar.h>.  */
   21145   #include <stddef.h>
   21146   #include <signal.h>
   21147   #if HAVE_WCHAR_H
   21148   # include <stdio.h>
   21149   # include <time.h>
   21150   # include <wchar.h>
   21151   #endif
   21152 
   21153 #include <limits.h>
   21154 int
   21155 main ()
   21156 {
   21157 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
   21158 test_array [0] = 0
   21159 
   21160   ;
   21161   return 0;
   21162 }
   21163 _ACEOF
   21164 rm -f conftest.$ac_objext
   21165 if { (ac_try="$ac_compile"
   21166 case "(($ac_try" in
   21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21168   *) ac_try_echo=$ac_try;;
   21169 esac
   21170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21171 $as_echo "$ac_try_echo") >&5
   21172   (eval "$ac_compile") 2>conftest.er1
   21173   ac_status=$?
   21174   grep -v '^ *+' conftest.er1 >conftest.err
   21175   rm -f conftest.er1
   21176   cat conftest.err >&5
   21177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21178   (exit $ac_status); } && {
   21179 	 test -z "$ac_c_werror_flag" ||
   21180 	 test ! -s conftest.err
   21181        } && test -s conftest.$ac_objext; then
   21182   ac_lo=$ac_mid; break
   21183 else
   21184   $as_echo "$as_me: failed program was:" >&5
   21185 sed 's/^/| /' conftest.$ac_ext >&5
   21186 
   21187 	ac_hi=`expr '(' $ac_mid ')' - 1`
   21188 			if test $ac_mid -le $ac_hi; then
   21189 			  ac_lo= ac_hi=
   21190 			  break
   21191 			fi
   21192 			ac_mid=`expr 2 '*' $ac_mid`
   21193 fi
   21194 
   21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21196   done
   21197 else
   21198   $as_echo "$as_me: failed program was:" >&5
   21199 sed 's/^/| /' conftest.$ac_ext >&5
   21200 
   21201 	ac_lo= ac_hi=
   21202 fi
   21203 
   21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21205 fi
   21206 
   21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21208 # Binary search between lo and hi bounds.
   21209 while test "x$ac_lo" != "x$ac_hi"; do
   21210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   21211   cat >conftest.$ac_ext <<_ACEOF
   21212 /* confdefs.h.  */
   21213 _ACEOF
   21214 cat confdefs.h >>conftest.$ac_ext
   21215 cat >>conftest.$ac_ext <<_ACEOF
   21216 /* end confdefs.h.  */
   21217 
   21218   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21219      included before <wchar.h>.  */
   21220   #include <stddef.h>
   21221   #include <signal.h>
   21222   #if HAVE_WCHAR_H
   21223   # include <stdio.h>
   21224   # include <time.h>
   21225   # include <wchar.h>
   21226   #endif
   21227 
   21228 #include <limits.h>
   21229 int
   21230 main ()
   21231 {
   21232 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
   21233 test_array [0] = 0
   21234 
   21235   ;
   21236   return 0;
   21237 }
   21238 _ACEOF
   21239 rm -f conftest.$ac_objext
   21240 if { (ac_try="$ac_compile"
   21241 case "(($ac_try" in
   21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21243   *) ac_try_echo=$ac_try;;
   21244 esac
   21245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21246 $as_echo "$ac_try_echo") >&5
   21247   (eval "$ac_compile") 2>conftest.er1
   21248   ac_status=$?
   21249   grep -v '^ *+' conftest.er1 >conftest.err
   21250   rm -f conftest.er1
   21251   cat conftest.err >&5
   21252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21253   (exit $ac_status); } && {
   21254 	 test -z "$ac_c_werror_flag" ||
   21255 	 test ! -s conftest.err
   21256        } && test -s conftest.$ac_objext; then
   21257   ac_hi=$ac_mid
   21258 else
   21259   $as_echo "$as_me: failed program was:" >&5
   21260 sed 's/^/| /' conftest.$ac_ext >&5
   21261 
   21262 	ac_lo=`expr '(' $ac_mid ')' + 1`
   21263 fi
   21264 
   21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21266 done
   21267 case $ac_lo in
   21268 ?*) result=$ac_lo;;
   21269 '') result=unknown ;;
   21270 esac
   21271 else
   21272   cat >conftest.$ac_ext <<_ACEOF
   21273 /* confdefs.h.  */
   21274 _ACEOF
   21275 cat confdefs.h >>conftest.$ac_ext
   21276 cat >>conftest.$ac_ext <<_ACEOF
   21277 /* end confdefs.h.  */
   21278 
   21279   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21280      included before <wchar.h>.  */
   21281   #include <stddef.h>
   21282   #include <signal.h>
   21283   #if HAVE_WCHAR_H
   21284   # include <stdio.h>
   21285   # include <time.h>
   21286   # include <wchar.h>
   21287   #endif
   21288 
   21289 #include <limits.h>
   21290 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
   21291 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
   21292 #include <stdio.h>
   21293 #include <stdlib.h>
   21294 int
   21295 main ()
   21296 {
   21297 
   21298   FILE *f = fopen ("conftest.val", "w");
   21299   if (! f)
   21300     return 1;
   21301   if ((sizeof ($gltype) * CHAR_BIT) < 0)
   21302     {
   21303       long int i = longval ();
   21304       if (i != (sizeof ($gltype) * CHAR_BIT))
   21305 	return 1;
   21306       fprintf (f, "%ld", i);
   21307     }
   21308   else
   21309     {
   21310       unsigned long int i = ulongval ();
   21311       if (i != (sizeof ($gltype) * CHAR_BIT))
   21312 	return 1;
   21313       fprintf (f, "%lu", i);
   21314     }
   21315   /* Do not output a trailing newline, as this causes \r\n confusion
   21316      on some platforms.  */
   21317   return ferror (f) || fclose (f) != 0;
   21318 
   21319   ;
   21320   return 0;
   21321 }
   21322 _ACEOF
   21323 rm -f conftest$ac_exeext
   21324 if { (ac_try="$ac_link"
   21325 case "(($ac_try" in
   21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21327   *) ac_try_echo=$ac_try;;
   21328 esac
   21329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21330 $as_echo "$ac_try_echo") >&5
   21331   (eval "$ac_link") 2>&5
   21332   ac_status=$?
   21333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   21335   { (case "(($ac_try" in
   21336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21337   *) ac_try_echo=$ac_try;;
   21338 esac
   21339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21340 $as_echo "$ac_try_echo") >&5
   21341   (eval "$ac_try") 2>&5
   21342   ac_status=$?
   21343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21344   (exit $ac_status); }; }; then
   21345   result=`cat conftest.val`
   21346 else
   21347   $as_echo "$as_me: program exited with status $ac_status" >&5
   21348 $as_echo "$as_me: failed program was:" >&5
   21349 sed 's/^/| /' conftest.$ac_ext >&5
   21350 
   21351 ( exit $ac_status )
   21352 result=unknown
   21353 fi
   21354 rm -rf conftest.dSYM
   21355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   21356 fi
   21357 rm -f conftest.val
   21358        eval gl_cv_bitsizeof_${gltype}=\$result
   21359 
   21360 fi
   21361 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
   21362 		 $as_echo "$as_val"'`
   21363 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   21364 $as_echo "$ac_res" >&6; }
   21365     eval result=\$gl_cv_bitsizeof_${gltype}
   21366     if test $result = unknown; then
   21367                                                 result=0
   21368     fi
   21369     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   21370     cat >>confdefs.h <<_ACEOF
   21371 #define BITSIZEOF_${GLTYPE} $result
   21372 _ACEOF
   21373 
   21374     eval BITSIZEOF_${GLTYPE}=\$result
   21375   done
   21376 
   21377 
   21378 
   21379 
   21380 
   21381 
   21382 
   21383   for gltype in sig_atomic_t wchar_t wint_t ; do
   21384     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
   21385 $as_echo_n "checking whether $gltype is signed... " >&6; }
   21386 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
   21387   $as_echo_n "(cached) " >&6
   21388 else
   21389   cat >conftest.$ac_ext <<_ACEOF
   21390 /* confdefs.h.  */
   21391 _ACEOF
   21392 cat confdefs.h >>conftest.$ac_ext
   21393 cat >>conftest.$ac_ext <<_ACEOF
   21394 /* end confdefs.h.  */
   21395 
   21396   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21397      included before <wchar.h>.  */
   21398   #include <stddef.h>
   21399   #include <signal.h>
   21400   #if HAVE_WCHAR_H
   21401   # include <stdio.h>
   21402   # include <time.h>
   21403   # include <wchar.h>
   21404   #endif
   21405 
   21406             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
   21407 int
   21408 main ()
   21409 {
   21410 
   21411   ;
   21412   return 0;
   21413 }
   21414 _ACEOF
   21415 rm -f conftest.$ac_objext
   21416 if { (ac_try="$ac_compile"
   21417 case "(($ac_try" in
   21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21419   *) ac_try_echo=$ac_try;;
   21420 esac
   21421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21422 $as_echo "$ac_try_echo") >&5
   21423   (eval "$ac_compile") 2>conftest.er1
   21424   ac_status=$?
   21425   grep -v '^ *+' conftest.er1 >conftest.err
   21426   rm -f conftest.er1
   21427   cat conftest.err >&5
   21428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21429   (exit $ac_status); } && {
   21430 	 test -z "$ac_c_werror_flag" ||
   21431 	 test ! -s conftest.err
   21432        } && test -s conftest.$ac_objext; then
   21433   result=yes
   21434 else
   21435   $as_echo "$as_me: failed program was:" >&5
   21436 sed 's/^/| /' conftest.$ac_ext >&5
   21437 
   21438 	result=no
   21439 fi
   21440 
   21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21442        eval gl_cv_type_${gltype}_signed=\$result
   21443 
   21444 fi
   21445 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
   21446 		 $as_echo "$as_val"'`
   21447 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   21448 $as_echo "$ac_res" >&6; }
   21449     eval result=\$gl_cv_type_${gltype}_signed
   21450     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   21451     if test "$result" = yes; then
   21452       cat >>confdefs.h <<_ACEOF
   21453 #define HAVE_SIGNED_${GLTYPE} 1
   21454 _ACEOF
   21455 
   21456       eval HAVE_SIGNED_${GLTYPE}=1
   21457     else
   21458       eval HAVE_SIGNED_${GLTYPE}=0
   21459     fi
   21460   done
   21461 
   21462 
   21463   gl_cv_type_ptrdiff_t_signed=yes
   21464   gl_cv_type_size_t_signed=no
   21465   if test $APPLE_UNIVERSAL_BUILD = 0; then
   21466 
   21467 
   21468 
   21469 
   21470   for gltype in ptrdiff_t size_t ; do
   21471     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
   21472 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   21473 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
   21474   $as_echo_n "(cached) " >&6
   21475 else
   21476   eval gl_cv_type_${gltype}_suffix=no
   21477        eval result=\$gl_cv_type_${gltype}_signed
   21478        if test "$result" = yes; then
   21479          glsufu=
   21480        else
   21481          glsufu=u
   21482        fi
   21483        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   21484          case $glsuf in
   21485            '')  gltype1='int';;
   21486            l)	gltype1='long int';;
   21487            ll)	gltype1='long long int';;
   21488            i64)	gltype1='__int64';;
   21489            u)	gltype1='unsigned int';;
   21490            ul)	gltype1='unsigned long int';;
   21491            ull)	gltype1='unsigned long long int';;
   21492            ui64)gltype1='unsigned __int64';;
   21493          esac
   21494          cat >conftest.$ac_ext <<_ACEOF
   21495 /* confdefs.h.  */
   21496 _ACEOF
   21497 cat confdefs.h >>conftest.$ac_ext
   21498 cat >>conftest.$ac_ext <<_ACEOF
   21499 /* end confdefs.h.  */
   21500 
   21501   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21502      included before <wchar.h>.  */
   21503   #include <stddef.h>
   21504   #include <signal.h>
   21505   #if HAVE_WCHAR_H
   21506   # include <stdio.h>
   21507   # include <time.h>
   21508   # include <wchar.h>
   21509   #endif
   21510 
   21511               extern $gltype foo;
   21512               extern $gltype1 foo;
   21513 int
   21514 main ()
   21515 {
   21516 
   21517   ;
   21518   return 0;
   21519 }
   21520 _ACEOF
   21521 rm -f conftest.$ac_objext
   21522 if { (ac_try="$ac_compile"
   21523 case "(($ac_try" in
   21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21525   *) ac_try_echo=$ac_try;;
   21526 esac
   21527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21528 $as_echo "$ac_try_echo") >&5
   21529   (eval "$ac_compile") 2>conftest.er1
   21530   ac_status=$?
   21531   grep -v '^ *+' conftest.er1 >conftest.err
   21532   rm -f conftest.er1
   21533   cat conftest.err >&5
   21534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21535   (exit $ac_status); } && {
   21536 	 test -z "$ac_c_werror_flag" ||
   21537 	 test ! -s conftest.err
   21538        } && test -s conftest.$ac_objext; then
   21539   eval gl_cv_type_${gltype}_suffix=\$glsuf
   21540 else
   21541   $as_echo "$as_me: failed program was:" >&5
   21542 sed 's/^/| /' conftest.$ac_ext >&5
   21543 
   21544 
   21545 fi
   21546 
   21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21548          eval result=\$gl_cv_type_${gltype}_suffix
   21549          test "$result" != no && break
   21550        done
   21551 fi
   21552 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
   21553 		 $as_echo "$as_val"'`
   21554 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   21555 $as_echo "$ac_res" >&6; }
   21556     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   21557     eval result=\$gl_cv_type_${gltype}_suffix
   21558     test "$result" = no && result=
   21559     eval ${GLTYPE}_SUFFIX=\$result
   21560     cat >>confdefs.h <<_ACEOF
   21561 #define ${GLTYPE}_SUFFIX $result
   21562 _ACEOF
   21563 
   21564   done
   21565 
   21566 
   21567   fi
   21568 
   21569 
   21570 
   21571 
   21572 
   21573   for gltype in sig_atomic_t wchar_t wint_t ; do
   21574     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
   21575 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   21576 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
   21577   $as_echo_n "(cached) " >&6
   21578 else
   21579   eval gl_cv_type_${gltype}_suffix=no
   21580        eval result=\$gl_cv_type_${gltype}_signed
   21581        if test "$result" = yes; then
   21582          glsufu=
   21583        else
   21584          glsufu=u
   21585        fi
   21586        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   21587          case $glsuf in
   21588            '')  gltype1='int';;
   21589            l)	gltype1='long int';;
   21590            ll)	gltype1='long long int';;
   21591            i64)	gltype1='__int64';;
   21592            u)	gltype1='unsigned int';;
   21593            ul)	gltype1='unsigned long int';;
   21594            ull)	gltype1='unsigned long long int';;
   21595            ui64)gltype1='unsigned __int64';;
   21596          esac
   21597          cat >conftest.$ac_ext <<_ACEOF
   21598 /* confdefs.h.  */
   21599 _ACEOF
   21600 cat confdefs.h >>conftest.$ac_ext
   21601 cat >>conftest.$ac_ext <<_ACEOF
   21602 /* end confdefs.h.  */
   21603 
   21604   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   21605      included before <wchar.h>.  */
   21606   #include <stddef.h>
   21607   #include <signal.h>
   21608   #if HAVE_WCHAR_H
   21609   # include <stdio.h>
   21610   # include <time.h>
   21611   # include <wchar.h>
   21612   #endif
   21613 
   21614               extern $gltype foo;
   21615               extern $gltype1 foo;
   21616 int
   21617 main ()
   21618 {
   21619 
   21620   ;
   21621   return 0;
   21622 }
   21623 _ACEOF
   21624 rm -f conftest.$ac_objext
   21625 if { (ac_try="$ac_compile"
   21626 case "(($ac_try" in
   21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21628   *) ac_try_echo=$ac_try;;
   21629 esac
   21630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21631 $as_echo "$ac_try_echo") >&5
   21632   (eval "$ac_compile") 2>conftest.er1
   21633   ac_status=$?
   21634   grep -v '^ *+' conftest.er1 >conftest.err
   21635   rm -f conftest.er1
   21636   cat conftest.err >&5
   21637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21638   (exit $ac_status); } && {
   21639 	 test -z "$ac_c_werror_flag" ||
   21640 	 test ! -s conftest.err
   21641        } && test -s conftest.$ac_objext; then
   21642   eval gl_cv_type_${gltype}_suffix=\$glsuf
   21643 else
   21644   $as_echo "$as_me: failed program was:" >&5
   21645 sed 's/^/| /' conftest.$ac_ext >&5
   21646 
   21647 
   21648 fi
   21649 
   21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21651          eval result=\$gl_cv_type_${gltype}_suffix
   21652          test "$result" != no && break
   21653        done
   21654 fi
   21655 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
   21656 		 $as_echo "$as_val"'`
   21657 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   21658 $as_echo "$ac_res" >&6; }
   21659     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   21660     eval result=\$gl_cv_type_${gltype}_suffix
   21661     test "$result" = no && result=
   21662     eval ${GLTYPE}_SUFFIX=\$result
   21663     cat >>confdefs.h <<_ACEOF
   21664 #define ${GLTYPE}_SUFFIX $result
   21665 _ACEOF
   21666 
   21667   done
   21668 
   21669 
   21670 
   21671     STDINT_H=stdint.h
   21672   fi
   21673 
   21674 
   21675 
   21676 
   21677 
   21678 
   21679 
   21680 
   21681 
   21682 
   21683 
   21684 
   21685 
   21686 
   21687 
   21688      if test $gl_cv_have_include_next = yes; then
   21689        gl_cv_next_stdio_h='<'stdio.h'>'
   21690      else
   21691        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
   21692 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
   21693 if test "${gl_cv_next_stdio_h+set}" = set; then
   21694   $as_echo_n "(cached) " >&6
   21695 else
   21696 
   21697 	  if test $ac_cv_header_stdio_h = yes; then
   21698 	    cat >conftest.$ac_ext <<_ACEOF
   21699 /* confdefs.h.  */
   21700 _ACEOF
   21701 cat confdefs.h >>conftest.$ac_ext
   21702 cat >>conftest.$ac_ext <<_ACEOF
   21703 /* end confdefs.h.  */
   21704 #include <stdio.h>
   21705 
   21706 _ACEOF
   21707 	    	    	    	    	    	    	    	    case "$host_os" in
   21708 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21709 	      *)    gl_absname_cpp="$ac_cpp" ;;
   21710 	    esac
   21711 	    	    	    	    gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21712 	       sed -n '\#/stdio.h#{
   21713 		 s#.*"\(.*/stdio.h\)".*#\1#
   21714 		 s#^/[^/]#//&#
   21715 		 p
   21716 		 q
   21717 	       }'`'"'
   21718 	  else
   21719 	    gl_cv_next_stdio_h='<'stdio.h'>'
   21720 	  fi
   21721 
   21722 fi
   21723 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
   21724 $as_echo "$gl_cv_next_stdio_h" >&6; }
   21725      fi
   21726      NEXT_STDIO_H=$gl_cv_next_stdio_h
   21727 
   21728      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21729        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21730        gl_next_as_first_directive='<'stdio.h'>'
   21731      else
   21732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21733        gl_next_as_first_directive=$gl_cv_next_stdio_h
   21734      fi
   21735      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
   21736 
   21737 
   21738 
   21739       GNULIB_FPRINTF=1
   21740   GNULIB_PRINTF=1
   21741   GNULIB_VFPRINTF=1
   21742   GNULIB_VPRINTF=1
   21743   GNULIB_FPUTC=1
   21744   GNULIB_PUTC=1
   21745   GNULIB_PUTCHAR=1
   21746   GNULIB_FPUTS=1
   21747   GNULIB_PUTS=1
   21748   GNULIB_FWRITE=1
   21749 
   21750 
   21751 
   21752 
   21753 
   21754 
   21755 
   21756 
   21757 
   21758 
   21759 
   21760 
   21761 
   21762 
   21763 
   21764      if test $gl_cv_have_include_next = yes; then
   21765        gl_cv_next_stdlib_h='<'stdlib.h'>'
   21766      else
   21767        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
   21768 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
   21769 if test "${gl_cv_next_stdlib_h+set}" = set; then
   21770   $as_echo_n "(cached) " >&6
   21771 else
   21772 
   21773 	  if test $ac_cv_header_stdlib_h = yes; then
   21774 	    cat >conftest.$ac_ext <<_ACEOF
   21775 /* confdefs.h.  */
   21776 _ACEOF
   21777 cat confdefs.h >>conftest.$ac_ext
   21778 cat >>conftest.$ac_ext <<_ACEOF
   21779 /* end confdefs.h.  */
   21780 #include <stdlib.h>
   21781 
   21782 _ACEOF
   21783 	    	    	    	    	    	    	    	    case "$host_os" in
   21784 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21785 	      *)    gl_absname_cpp="$ac_cpp" ;;
   21786 	    esac
   21787 	    	    	    	    gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21788 	       sed -n '\#/stdlib.h#{
   21789 		 s#.*"\(.*/stdlib.h\)".*#\1#
   21790 		 s#^/[^/]#//&#
   21791 		 p
   21792 		 q
   21793 	       }'`'"'
   21794 	  else
   21795 	    gl_cv_next_stdlib_h='<'stdlib.h'>'
   21796 	  fi
   21797 
   21798 fi
   21799 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
   21800 $as_echo "$gl_cv_next_stdlib_h" >&6; }
   21801      fi
   21802      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
   21803 
   21804      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21805        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21806        gl_next_as_first_directive='<'stdlib.h'>'
   21807      else
   21808        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21809        gl_next_as_first_directive=$gl_cv_next_stdlib_h
   21810      fi
   21811      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
   21812 
   21813 
   21814 
   21815 
   21816 for ac_header in random.h
   21817 do
   21818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21819 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
   21820 $as_echo_n "checking for $ac_header... " >&6; }
   21821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21822   $as_echo_n "(cached) " >&6
   21823 else
   21824   cat >conftest.$ac_ext <<_ACEOF
   21825 /* confdefs.h.  */
   21826 _ACEOF
   21827 cat confdefs.h >>conftest.$ac_ext
   21828 cat >>conftest.$ac_ext <<_ACEOF
   21829 /* end confdefs.h.  */
   21830 $ac_includes_default
   21831 
   21832 #include <$ac_header>
   21833 _ACEOF
   21834 rm -f conftest.$ac_objext
   21835 if { (ac_try="$ac_compile"
   21836 case "(($ac_try" in
   21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21838   *) ac_try_echo=$ac_try;;
   21839 esac
   21840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21841 $as_echo "$ac_try_echo") >&5
   21842   (eval "$ac_compile") 2>conftest.er1
   21843   ac_status=$?
   21844   grep -v '^ *+' conftest.er1 >conftest.err
   21845   rm -f conftest.er1
   21846   cat conftest.err >&5
   21847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21848   (exit $ac_status); } && {
   21849 	 test -z "$ac_c_werror_flag" ||
   21850 	 test ! -s conftest.err
   21851        } && test -s conftest.$ac_objext; then
   21852   eval "$as_ac_Header=yes"
   21853 else
   21854   $as_echo "$as_me: failed program was:" >&5
   21855 sed 's/^/| /' conftest.$ac_ext >&5
   21856 
   21857 	eval "$as_ac_Header=no"
   21858 fi
   21859 
   21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21861 fi
   21862 ac_res=`eval 'as_val=${'$as_ac_Header'}
   21863 		 $as_echo "$as_val"'`
   21864 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   21865 $as_echo "$ac_res" >&6; }
   21866 as_val=`eval 'as_val=${'$as_ac_Header'}
   21867 		 $as_echo "$as_val"'`
   21868    if test "x$as_val" = x""yes; then
   21869   cat >>confdefs.h <<_ACEOF
   21870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21871 _ACEOF
   21872 
   21873 fi
   21874 
   21875 done
   21876 
   21877   if test $ac_cv_header_random_h = yes; then
   21878     HAVE_RANDOM_H=1
   21879   else
   21880     HAVE_RANDOM_H=0
   21881   fi
   21882 
   21883   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
   21884 $as_echo_n "checking for struct random_data... " >&6; }
   21885 if test "${ac_cv_type_struct_random_data+set}" = set; then
   21886   $as_echo_n "(cached) " >&6
   21887 else
   21888   ac_cv_type_struct_random_data=no
   21889 cat >conftest.$ac_ext <<_ACEOF
   21890 /* confdefs.h.  */
   21891 _ACEOF
   21892 cat confdefs.h >>conftest.$ac_ext
   21893 cat >>conftest.$ac_ext <<_ACEOF
   21894 /* end confdefs.h.  */
   21895 #include <stdlib.h>
   21896       #if HAVE_RANDOM_H
   21897       # include <random.h>
   21898       #endif
   21899 
   21900 
   21901 int
   21902 main ()
   21903 {
   21904 if (sizeof (struct random_data))
   21905        return 0;
   21906   ;
   21907   return 0;
   21908 }
   21909 _ACEOF
   21910 rm -f conftest.$ac_objext
   21911 if { (ac_try="$ac_compile"
   21912 case "(($ac_try" in
   21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21914   *) ac_try_echo=$ac_try;;
   21915 esac
   21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21917 $as_echo "$ac_try_echo") >&5
   21918   (eval "$ac_compile") 2>conftest.er1
   21919   ac_status=$?
   21920   grep -v '^ *+' conftest.er1 >conftest.err
   21921   rm -f conftest.er1
   21922   cat conftest.err >&5
   21923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21924   (exit $ac_status); } && {
   21925 	 test -z "$ac_c_werror_flag" ||
   21926 	 test ! -s conftest.err
   21927        } && test -s conftest.$ac_objext; then
   21928   cat >conftest.$ac_ext <<_ACEOF
   21929 /* confdefs.h.  */
   21930 _ACEOF
   21931 cat confdefs.h >>conftest.$ac_ext
   21932 cat >>conftest.$ac_ext <<_ACEOF
   21933 /* end confdefs.h.  */
   21934 #include <stdlib.h>
   21935       #if HAVE_RANDOM_H
   21936       # include <random.h>
   21937       #endif
   21938 
   21939 
   21940 int
   21941 main ()
   21942 {
   21943 if (sizeof ((struct random_data)))
   21944 	  return 0;
   21945   ;
   21946   return 0;
   21947 }
   21948 _ACEOF
   21949 rm -f conftest.$ac_objext
   21950 if { (ac_try="$ac_compile"
   21951 case "(($ac_try" in
   21952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21953   *) ac_try_echo=$ac_try;;
   21954 esac
   21955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   21956 $as_echo "$ac_try_echo") >&5
   21957   (eval "$ac_compile") 2>conftest.er1
   21958   ac_status=$?
   21959   grep -v '^ *+' conftest.er1 >conftest.err
   21960   rm -f conftest.er1
   21961   cat conftest.err >&5
   21962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21963   (exit $ac_status); } && {
   21964 	 test -z "$ac_c_werror_flag" ||
   21965 	 test ! -s conftest.err
   21966        } && test -s conftest.$ac_objext; then
   21967   :
   21968 else
   21969   $as_echo "$as_me: failed program was:" >&5
   21970 sed 's/^/| /' conftest.$ac_ext >&5
   21971 
   21972 	ac_cv_type_struct_random_data=yes
   21973 fi
   21974 
   21975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21976 else
   21977   $as_echo "$as_me: failed program was:" >&5
   21978 sed 's/^/| /' conftest.$ac_ext >&5
   21979 
   21980 
   21981 fi
   21982 
   21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21984 fi
   21985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
   21986 $as_echo "$ac_cv_type_struct_random_data" >&6; }
   21987 if test "x$ac_cv_type_struct_random_data" = x""yes; then
   21988 
   21989 cat >>confdefs.h <<_ACEOF
   21990 #define HAVE_STRUCT_RANDOM_DATA 1
   21991 _ACEOF
   21992 
   21993 
   21994 else
   21995   HAVE_STRUCT_RANDOM_DATA=0
   21996 fi
   21997 
   21998 
   21999 
   22000 
   22001   if test $REPLACE_STRERROR = 1; then
   22002 
   22003 
   22004 
   22005 
   22006 
   22007 
   22008 
   22009 
   22010   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
   22011 
   22012 
   22013 cat >>confdefs.h <<_ACEOF
   22014 #define REPLACE_STRERROR $REPLACE_STRERROR
   22015 _ACEOF
   22016 
   22017   fi
   22018 
   22019 
   22020 
   22021   GNULIB_STRERROR=1
   22022 
   22023 
   22024 
   22025 
   22026 
   22027 
   22028 
   22029 
   22030 
   22031 
   22032 
   22033 
   22034   if test $ac_cv_have_decl_strndup = no; then
   22035     HAVE_DECL_STRNDUP=0
   22036   fi
   22037 
   22038   # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
   22039   { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
   22040 $as_echo_n "checking for working strndup... " >&6; }
   22041 if test "${gl_cv_func_strndup+set}" = set; then
   22042   $as_echo_n "(cached) " >&6
   22043 else
   22044   if test "$cross_compiling" = yes; then
   22045   { $as_echo "$as_me:$LINENO: checking for strndup" >&5
   22046 $as_echo_n "checking for strndup... " >&6; }
   22047 if test "${ac_cv_func_strndup+set}" = set; then
   22048   $as_echo_n "(cached) " >&6
   22049 else
   22050   cat >conftest.$ac_ext <<_ACEOF
   22051 /* confdefs.h.  */
   22052 _ACEOF
   22053 cat confdefs.h >>conftest.$ac_ext
   22054 cat >>conftest.$ac_ext <<_ACEOF
   22055 /* end confdefs.h.  */
   22056 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
   22057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22058 #define strndup innocuous_strndup
   22059 
   22060 /* System header to define __stub macros and hopefully few prototypes,
   22061     which can conflict with char strndup (); below.
   22062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22063     <limits.h> exists even on freestanding compilers.  */
   22064 
   22065 #ifdef __STDC__
   22066 # include <limits.h>
   22067 #else
   22068 # include <assert.h>
   22069 #endif
   22070 
   22071 #undef strndup
   22072 
   22073 /* Override any GCC internal prototype to avoid an error.
   22074    Use char because int might match the return type of a GCC
   22075    builtin and then its argument prototype would still apply.  */
   22076 #ifdef __cplusplus
   22077 extern "C"
   22078 #endif
   22079 char strndup ();
   22080 /* The GNU C library defines this for functions which it implements
   22081     to always fail with ENOSYS.  Some functions are actually named
   22082     something starting with __ and the normal name is an alias.  */
   22083 #if defined __stub_strndup || defined __stub___strndup
   22084 choke me
   22085 #endif
   22086 
   22087 int
   22088 main ()
   22089 {
   22090 return strndup ();
   22091   ;
   22092   return 0;
   22093 }
   22094 _ACEOF
   22095 rm -f conftest.$ac_objext conftest$ac_exeext
   22096 if { (ac_try="$ac_link"
   22097 case "(($ac_try" in
   22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22099   *) ac_try_echo=$ac_try;;
   22100 esac
   22101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22102 $as_echo "$ac_try_echo") >&5
   22103   (eval "$ac_link") 2>conftest.er1
   22104   ac_status=$?
   22105   grep -v '^ *+' conftest.er1 >conftest.err
   22106   rm -f conftest.er1
   22107   cat conftest.err >&5
   22108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22109   (exit $ac_status); } && {
   22110 	 test -z "$ac_c_werror_flag" ||
   22111 	 test ! -s conftest.err
   22112        } && test -s conftest$ac_exeext && {
   22113 	 test "$cross_compiling" = yes ||
   22114 	 $as_test_x conftest$ac_exeext
   22115        }; then
   22116   ac_cv_func_strndup=yes
   22117 else
   22118   $as_echo "$as_me: failed program was:" >&5
   22119 sed 's/^/| /' conftest.$ac_ext >&5
   22120 
   22121 	ac_cv_func_strndup=no
   22122 fi
   22123 
   22124 rm -rf conftest.dSYM
   22125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22126       conftest$ac_exeext conftest.$ac_ext
   22127 fi
   22128 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
   22129 $as_echo "$ac_cv_func_strndup" >&6; }
   22130 if test "x$ac_cv_func_strndup" = x""yes; then
   22131   cat >conftest.$ac_ext <<_ACEOF
   22132 /* confdefs.h.  */
   22133 _ACEOF
   22134 cat confdefs.h >>conftest.$ac_ext
   22135 cat >>conftest.$ac_ext <<_ACEOF
   22136 /* end confdefs.h.  */
   22137 
   22138 #ifdef _AIX
   22139                too risky
   22140 #endif
   22141 
   22142 _ACEOF
   22143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22144   $EGREP "too risky" >/dev/null 2>&1; then
   22145   gl_cv_func_strndup=no
   22146 else
   22147   gl_cv_func_strndup=yes
   22148 fi
   22149 rm -f conftest*
   22150 
   22151 else
   22152   gl_cv_func_strndup=no
   22153 fi
   22154 
   22155 else
   22156   cat >conftest.$ac_ext <<_ACEOF
   22157 
   22158        /* confdefs.h.  */
   22159 _ACEOF
   22160 cat confdefs.h >>conftest.$ac_ext
   22161 cat >>conftest.$ac_ext <<_ACEOF
   22162 /* end confdefs.h.  */
   22163 #include <string.h>
   22164 			 #include <stdlib.h>
   22165 int
   22166 main ()
   22167 {
   22168 
   22169 #ifndef HAVE_DECL_STRNDUP
   22170   extern char *strndup (const char *, size_t);
   22171 #endif
   22172   char *s;
   22173   s = strndup ("some longer string", 15);
   22174   free (s);
   22175   s = strndup ("shorter string", 13);
   22176   return s[13] != '\0';
   22177   ;
   22178   return 0;
   22179 }
   22180 _ACEOF
   22181 rm -f conftest$ac_exeext
   22182 if { (ac_try="$ac_link"
   22183 case "(($ac_try" in
   22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22185   *) ac_try_echo=$ac_try;;
   22186 esac
   22187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22188 $as_echo "$ac_try_echo") >&5
   22189   (eval "$ac_link") 2>&5
   22190   ac_status=$?
   22191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   22193   { (case "(($ac_try" in
   22194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22195   *) ac_try_echo=$ac_try;;
   22196 esac
   22197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22198 $as_echo "$ac_try_echo") >&5
   22199   (eval "$ac_try") 2>&5
   22200   ac_status=$?
   22201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22202   (exit $ac_status); }; }; then
   22203   gl_cv_func_strndup=yes
   22204 else
   22205   $as_echo "$as_me: program exited with status $ac_status" >&5
   22206 $as_echo "$as_me: failed program was:" >&5
   22207 sed 's/^/| /' conftest.$ac_ext >&5
   22208 
   22209 ( exit $ac_status )
   22210 gl_cv_func_strndup=no
   22211 fi
   22212 rm -rf conftest.dSYM
   22213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   22214 fi
   22215 
   22216 
   22217 fi
   22218 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
   22219 $as_echo "$gl_cv_func_strndup" >&6; }
   22220   if test $gl_cv_func_strndup = yes; then
   22221 
   22222 cat >>confdefs.h <<\_ACEOF
   22223 #define HAVE_STRNDUP 1
   22224 _ACEOF
   22225 
   22226   else
   22227     HAVE_STRNDUP=0
   22228 
   22229 
   22230 
   22231 
   22232 
   22233 
   22234 
   22235 
   22236   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
   22237 
   22238     :
   22239   fi
   22240 
   22241 
   22242 
   22243   GNULIB_STRNDUP=1
   22244 
   22245 
   22246 
   22247 
   22248 
   22249 
   22250 
   22251 
   22252 
   22253   if test $ac_cv_have_decl_strnlen = no; then
   22254     HAVE_DECL_STRNLEN=0
   22255   fi
   22256 
   22257   { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
   22258 $as_echo_n "checking for working strnlen... " >&6; }
   22259 if test "${ac_cv_func_strnlen_working+set}" = set; then
   22260   $as_echo_n "(cached) " >&6
   22261 else
   22262   if test "$cross_compiling" = yes; then
   22263   ac_cv_func_strnlen_working=no
   22264 else
   22265   cat >conftest.$ac_ext <<_ACEOF
   22266 /* confdefs.h.  */
   22267 _ACEOF
   22268 cat confdefs.h >>conftest.$ac_ext
   22269 cat >>conftest.$ac_ext <<_ACEOF
   22270 /* end confdefs.h.  */
   22271 $ac_includes_default
   22272 int
   22273 main ()
   22274 {
   22275 
   22276 #define S "foobar"
   22277 #define S_LEN (sizeof S - 1)
   22278 
   22279   /* At least one implementation is buggy: that of AIX 4.3 would
   22280      give strnlen (S, 1) == 3.  */
   22281 
   22282   int i;
   22283   for (i = 0; i < S_LEN + 1; ++i)
   22284     {
   22285       int expected = i <= S_LEN ? i : S_LEN;
   22286       if (strnlen (S, i) != expected)
   22287 	return 1;
   22288     }
   22289   return 0;
   22290 
   22291   ;
   22292   return 0;
   22293 }
   22294 _ACEOF
   22295 rm -f conftest$ac_exeext
   22296 if { (ac_try="$ac_link"
   22297 case "(($ac_try" in
   22298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22299   *) ac_try_echo=$ac_try;;
   22300 esac
   22301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22302 $as_echo "$ac_try_echo") >&5
   22303   (eval "$ac_link") 2>&5
   22304   ac_status=$?
   22305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   22307   { (case "(($ac_try" in
   22308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22309   *) ac_try_echo=$ac_try;;
   22310 esac
   22311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22312 $as_echo "$ac_try_echo") >&5
   22313   (eval "$ac_try") 2>&5
   22314   ac_status=$?
   22315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22316   (exit $ac_status); }; }; then
   22317   ac_cv_func_strnlen_working=yes
   22318 else
   22319   $as_echo "$as_me: program exited with status $ac_status" >&5
   22320 $as_echo "$as_me: failed program was:" >&5
   22321 sed 's/^/| /' conftest.$ac_ext >&5
   22322 
   22323 ( exit $ac_status )
   22324 ac_cv_func_strnlen_working=no
   22325 fi
   22326 rm -rf conftest.dSYM
   22327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   22328 fi
   22329 
   22330 
   22331 fi
   22332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
   22333 $as_echo "$ac_cv_func_strnlen_working" >&6; }
   22334 test $ac_cv_func_strnlen_working = no &&
   22335 
   22336 
   22337 
   22338 
   22339 
   22340 
   22341 
   22342   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
   22343 
   22344 
   22345   if test $ac_cv_func_strnlen_working = no; then
   22346     # This is necessary because automake-1.6.1 doesn't understand
   22347     # that the above use of AC_FUNC_STRNLEN means we may have to use
   22348     # lib/strnlen.c.
   22349     #AC_LIBOBJ([strnlen])
   22350 
   22351 cat >>confdefs.h <<\_ACEOF
   22352 #define strnlen rpl_strnlen
   22353 _ACEOF
   22354 
   22355     :
   22356   fi
   22357 
   22358 
   22359 
   22360   GNULIB_STRNLEN=1
   22361 
   22362 
   22363 
   22364 
   22365 
   22366 
   22367 
   22368 
   22369 
   22370 
   22371 
   22372 
   22373 
   22374 
   22375 for ac_func in strverscmp
   22376 do
   22377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22378 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   22379 $as_echo_n "checking for $ac_func... " >&6; }
   22380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   22381   $as_echo_n "(cached) " >&6
   22382 else
   22383   cat >conftest.$ac_ext <<_ACEOF
   22384 /* confdefs.h.  */
   22385 _ACEOF
   22386 cat confdefs.h >>conftest.$ac_ext
   22387 cat >>conftest.$ac_ext <<_ACEOF
   22388 /* end confdefs.h.  */
   22389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   22390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22391 #define $ac_func innocuous_$ac_func
   22392 
   22393 /* System header to define __stub macros and hopefully few prototypes,
   22394     which can conflict with char $ac_func (); below.
   22395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22396     <limits.h> exists even on freestanding compilers.  */
   22397 
   22398 #ifdef __STDC__
   22399 # include <limits.h>
   22400 #else
   22401 # include <assert.h>
   22402 #endif
   22403 
   22404 #undef $ac_func
   22405 
   22406 /* Override any GCC internal prototype to avoid an error.
   22407    Use char because int might match the return type of a GCC
   22408    builtin and then its argument prototype would still apply.  */
   22409 #ifdef __cplusplus
   22410 extern "C"
   22411 #endif
   22412 char $ac_func ();
   22413 /* The GNU C library defines this for functions which it implements
   22414     to always fail with ENOSYS.  Some functions are actually named
   22415     something starting with __ and the normal name is an alias.  */
   22416 #if defined __stub_$ac_func || defined __stub___$ac_func
   22417 choke me
   22418 #endif
   22419 
   22420 int
   22421 main ()
   22422 {
   22423 return $ac_func ();
   22424   ;
   22425   return 0;
   22426 }
   22427 _ACEOF
   22428 rm -f conftest.$ac_objext conftest$ac_exeext
   22429 if { (ac_try="$ac_link"
   22430 case "(($ac_try" in
   22431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22432   *) ac_try_echo=$ac_try;;
   22433 esac
   22434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22435 $as_echo "$ac_try_echo") >&5
   22436   (eval "$ac_link") 2>conftest.er1
   22437   ac_status=$?
   22438   grep -v '^ *+' conftest.er1 >conftest.err
   22439   rm -f conftest.er1
   22440   cat conftest.err >&5
   22441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22442   (exit $ac_status); } && {
   22443 	 test -z "$ac_c_werror_flag" ||
   22444 	 test ! -s conftest.err
   22445        } && test -s conftest$ac_exeext && {
   22446 	 test "$cross_compiling" = yes ||
   22447 	 $as_test_x conftest$ac_exeext
   22448        }; then
   22449   eval "$as_ac_var=yes"
   22450 else
   22451   $as_echo "$as_me: failed program was:" >&5
   22452 sed 's/^/| /' conftest.$ac_ext >&5
   22453 
   22454 	eval "$as_ac_var=no"
   22455 fi
   22456 
   22457 rm -rf conftest.dSYM
   22458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22459       conftest$ac_exeext conftest.$ac_ext
   22460 fi
   22461 ac_res=`eval 'as_val=${'$as_ac_var'}
   22462 		 $as_echo "$as_val"'`
   22463 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   22464 $as_echo "$ac_res" >&6; }
   22465 as_val=`eval 'as_val=${'$as_ac_var'}
   22466 		 $as_echo "$as_val"'`
   22467    if test "x$as_val" = x""yes; then
   22468   cat >>confdefs.h <<_ACEOF
   22469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22470 _ACEOF
   22471 
   22472 else
   22473 
   22474     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
   22475 
   22476 fi
   22477 done
   22478 
   22479 
   22480   if test $ac_cv_func_strverscmp = no; then
   22481 
   22482   :
   22483 
   22484     HAVE_STRVERSCMP=0
   22485   fi
   22486 
   22487 
   22488 
   22489   GNULIB_STRVERSCMP=1
   22490 
   22491 
   22492 
   22493 
   22494 
   22495 
   22496 
   22497 
   22498 
   22499 
   22500   if test $ac_cv_func_lstat = yes; then
   22501     HAVE_LSTAT=1
   22502   else
   22503     HAVE_LSTAT=0
   22504   fi
   22505 
   22506 
   22507 
   22508 
   22509 
   22510 
   22511 
   22512 
   22513 
   22514 
   22515 
   22516 
   22517 
   22518 
   22519 
   22520 
   22521 
   22522      if test $gl_cv_have_include_next = yes; then
   22523        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   22524      else
   22525        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
   22526 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
   22527 if test "${gl_cv_next_sys_stat_h+set}" = set; then
   22528   $as_echo_n "(cached) " >&6
   22529 else
   22530 
   22531 	  if test $ac_cv_header_sys_stat_h = yes; then
   22532 	    cat >conftest.$ac_ext <<_ACEOF
   22533 /* confdefs.h.  */
   22534 _ACEOF
   22535 cat confdefs.h >>conftest.$ac_ext
   22536 cat >>conftest.$ac_ext <<_ACEOF
   22537 /* end confdefs.h.  */
   22538 #include <sys/stat.h>
   22539 
   22540 _ACEOF
   22541 	    	    	    	    	    	    	    	    case "$host_os" in
   22542 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   22543 	      *)    gl_absname_cpp="$ac_cpp" ;;
   22544 	    esac
   22545 	    	    	    	    gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   22546 	       sed -n '\#/sys/stat.h#{
   22547 		 s#.*"\(.*/sys/stat.h\)".*#\1#
   22548 		 s#^/[^/]#//&#
   22549 		 p
   22550 		 q
   22551 	       }'`'"'
   22552 	  else
   22553 	    gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   22554 	  fi
   22555 
   22556 fi
   22557 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
   22558 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
   22559      fi
   22560      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
   22561 
   22562      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   22563        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   22564        gl_next_as_first_directive='<'sys/stat.h'>'
   22565      else
   22566        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   22567        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
   22568      fi
   22569      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
   22570 
   22571 
   22572 
   22573   SYS_STAT_H='sys/stat.h'
   22574 
   22575 
   22576       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
   22577 $as_echo_n "checking for nlink_t... " >&6; }
   22578 if test "${ac_cv_type_nlink_t+set}" = set; then
   22579   $as_echo_n "(cached) " >&6
   22580 else
   22581   ac_cv_type_nlink_t=no
   22582 cat >conftest.$ac_ext <<_ACEOF
   22583 /* confdefs.h.  */
   22584 _ACEOF
   22585 cat confdefs.h >>conftest.$ac_ext
   22586 cat >>conftest.$ac_ext <<_ACEOF
   22587 /* end confdefs.h.  */
   22588 #include <sys/types.h>
   22589      #include <sys/stat.h>
   22590 
   22591 int
   22592 main ()
   22593 {
   22594 if (sizeof (nlink_t))
   22595        return 0;
   22596   ;
   22597   return 0;
   22598 }
   22599 _ACEOF
   22600 rm -f conftest.$ac_objext
   22601 if { (ac_try="$ac_compile"
   22602 case "(($ac_try" in
   22603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22604   *) ac_try_echo=$ac_try;;
   22605 esac
   22606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22607 $as_echo "$ac_try_echo") >&5
   22608   (eval "$ac_compile") 2>conftest.er1
   22609   ac_status=$?
   22610   grep -v '^ *+' conftest.er1 >conftest.err
   22611   rm -f conftest.er1
   22612   cat conftest.err >&5
   22613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22614   (exit $ac_status); } && {
   22615 	 test -z "$ac_c_werror_flag" ||
   22616 	 test ! -s conftest.err
   22617        } && test -s conftest.$ac_objext; then
   22618   cat >conftest.$ac_ext <<_ACEOF
   22619 /* confdefs.h.  */
   22620 _ACEOF
   22621 cat confdefs.h >>conftest.$ac_ext
   22622 cat >>conftest.$ac_ext <<_ACEOF
   22623 /* end confdefs.h.  */
   22624 #include <sys/types.h>
   22625      #include <sys/stat.h>
   22626 
   22627 int
   22628 main ()
   22629 {
   22630 if (sizeof ((nlink_t)))
   22631 	  return 0;
   22632   ;
   22633   return 0;
   22634 }
   22635 _ACEOF
   22636 rm -f conftest.$ac_objext
   22637 if { (ac_try="$ac_compile"
   22638 case "(($ac_try" in
   22639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22640   *) ac_try_echo=$ac_try;;
   22641 esac
   22642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22643 $as_echo "$ac_try_echo") >&5
   22644   (eval "$ac_compile") 2>conftest.er1
   22645   ac_status=$?
   22646   grep -v '^ *+' conftest.er1 >conftest.err
   22647   rm -f conftest.er1
   22648   cat conftest.err >&5
   22649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22650   (exit $ac_status); } && {
   22651 	 test -z "$ac_c_werror_flag" ||
   22652 	 test ! -s conftest.err
   22653        } && test -s conftest.$ac_objext; then
   22654   :
   22655 else
   22656   $as_echo "$as_me: failed program was:" >&5
   22657 sed 's/^/| /' conftest.$ac_ext >&5
   22658 
   22659 	ac_cv_type_nlink_t=yes
   22660 fi
   22661 
   22662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22663 else
   22664   $as_echo "$as_me: failed program was:" >&5
   22665 sed 's/^/| /' conftest.$ac_ext >&5
   22666 
   22667 
   22668 fi
   22669 
   22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22671 fi
   22672 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
   22673 $as_echo "$ac_cv_type_nlink_t" >&6; }
   22674 if test "x$ac_cv_type_nlink_t" = x""yes; then
   22675   :
   22676 else
   22677 
   22678 cat >>confdefs.h <<\_ACEOF
   22679 #define nlink_t int
   22680 _ACEOF
   22681 
   22682 fi
   22683 
   22684 
   22685 
   22686   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
   22687 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   22688 if test -z "$MKDIR_P"; then
   22689   if test "${ac_cv_path_mkdir+set}" = set; then
   22690   $as_echo_n "(cached) " >&6
   22691 else
   22692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22693 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   22694 do
   22695   IFS=$as_save_IFS
   22696   test -z "$as_dir" && as_dir=.
   22697   for ac_prog in mkdir gmkdir; do
   22698 	 for ac_exec_ext in '' $ac_executable_extensions; do
   22699 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   22700 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   22701 	     'mkdir (GNU coreutils) '* | \
   22702 	     'mkdir (coreutils) '* | \
   22703 	     'mkdir (fileutils) '4.1*)
   22704 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   22705 	       break 3;;
   22706 	   esac
   22707 	 done
   22708        done
   22709 done
   22710 IFS=$as_save_IFS
   22711 
   22712 fi
   22713 
   22714   if test "${ac_cv_path_mkdir+set}" = set; then
   22715     MKDIR_P="$ac_cv_path_mkdir -p"
   22716   else
   22717     # As a last resort, use the slow shell script.  Don't cache a
   22718     # value for MKDIR_P within a source directory, because that will
   22719     # break other packages using the cache if that directory is
   22720     # removed, or if the value is a relative name.
   22721     test -d ./--version && rmdir ./--version
   22722     MKDIR_P="$ac_install_sh -d"
   22723   fi
   22724 fi
   22725 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
   22726 $as_echo "$MKDIR_P" >&6; }
   22727 
   22728 
   22729 
   22730 
   22731   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
   22732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   22733 if test -z "$MKDIR_P"; then
   22734   if test "${ac_cv_path_mkdir+set}" = set; then
   22735   $as_echo_n "(cached) " >&6
   22736 else
   22737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   22739 do
   22740   IFS=$as_save_IFS
   22741   test -z "$as_dir" && as_dir=.
   22742   for ac_prog in mkdir gmkdir; do
   22743 	 for ac_exec_ext in '' $ac_executable_extensions; do
   22744 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   22745 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   22746 	     'mkdir (GNU coreutils) '* | \
   22747 	     'mkdir (coreutils) '* | \
   22748 	     'mkdir (fileutils) '4.1*)
   22749 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   22750 	       break 3;;
   22751 	   esac
   22752 	 done
   22753        done
   22754 done
   22755 IFS=$as_save_IFS
   22756 
   22757 fi
   22758 
   22759   if test "${ac_cv_path_mkdir+set}" = set; then
   22760     MKDIR_P="$ac_cv_path_mkdir -p"
   22761   else
   22762     # As a last resort, use the slow shell script.  Don't cache a
   22763     # value for MKDIR_P within a source directory, because that will
   22764     # break other packages using the cache if that directory is
   22765     # removed, or if the value is a relative name.
   22766     test -d ./--version && rmdir ./--version
   22767     MKDIR_P="$ac_install_sh -d"
   22768   fi
   22769 fi
   22770 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
   22771 $as_echo "$MKDIR_P" >&6; }
   22772 
   22773 
   22774 
   22775 
   22776 
   22777 
   22778 
   22779 
   22780 
   22781 
   22782 
   22783 
   22784   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
   22785 
   22786 
   22787   :
   22788 
   22789 
   22790 
   22791 
   22792 
   22793 
   22794 
   22795 
   22796 
   22797 
   22798 
   22799 
   22800 
   22801 
   22802 
   22803 
   22804      if test $gl_cv_have_include_next = yes; then
   22805        gl_cv_next_unistd_h='<'unistd.h'>'
   22806      else
   22807        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
   22808 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
   22809 if test "${gl_cv_next_unistd_h+set}" = set; then
   22810   $as_echo_n "(cached) " >&6
   22811 else
   22812 
   22813 	  if test $ac_cv_header_unistd_h = yes; then
   22814 	    cat >conftest.$ac_ext <<_ACEOF
   22815 /* confdefs.h.  */
   22816 _ACEOF
   22817 cat confdefs.h >>conftest.$ac_ext
   22818 cat >>conftest.$ac_ext <<_ACEOF
   22819 /* end confdefs.h.  */
   22820 #include <unistd.h>
   22821 
   22822 _ACEOF
   22823 	    	    	    	    	    	    	    	    case "$host_os" in
   22824 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   22825 	      *)    gl_absname_cpp="$ac_cpp" ;;
   22826 	    esac
   22827 	    	    	    	    gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   22828 	       sed -n '\#/unistd.h#{
   22829 		 s#.*"\(.*/unistd.h\)".*#\1#
   22830 		 s#^/[^/]#//&#
   22831 		 p
   22832 		 q
   22833 	       }'`'"'
   22834 	  else
   22835 	    gl_cv_next_unistd_h='<'unistd.h'>'
   22836 	  fi
   22837 
   22838 fi
   22839 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
   22840 $as_echo "$gl_cv_next_unistd_h" >&6; }
   22841      fi
   22842      NEXT_UNISTD_H=$gl_cv_next_unistd_h
   22843 
   22844      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   22845        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   22846        gl_next_as_first_directive='<'unistd.h'>'
   22847      else
   22848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   22849        gl_next_as_first_directive=$gl_cv_next_unistd_h
   22850      fi
   22851      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
   22852 
   22853 
   22854 
   22855 
   22856 
   22857 
   22858 
   22859 
   22860 
   22861 
   22862   if test $ac_cv_header_unistd_h = yes; then
   22863     HAVE_UNISTD_H=1
   22864   else
   22865     HAVE_UNISTD_H=0
   22866   fi
   22867 
   22868 
   22869 
   22870 
   22871 cat >>confdefs.h <<\_ACEOF
   22872 #define USE_UNLOCKED_IO 1
   22873 _ACEOF
   22874 
   22875 
   22876 
   22877 
   22878 
   22879 
   22880 
   22881 
   22882 
   22883 
   22884 
   22885 
   22886 
   22887 
   22888 
   22889 
   22890 
   22891 
   22892 
   22893 
   22894 
   22895 
   22896 
   22897 
   22898 
   22899 
   22900 
   22901 
   22902 
   22903 
   22904 
   22905 
   22906 
   22907 
   22908 
   22909 
   22910 
   22911 
   22912 
   22913 
   22914 
   22915 
   22916 
   22917 
   22918 
   22919 
   22920 
   22921 
   22922 
   22923 
   22924 
   22925 
   22926 
   22927 
   22928 
   22929 
   22930 
   22931 
   22932 
   22933   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
   22934 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
   22935 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
   22936   $as_echo_n "(cached) " >&6
   22937 else
   22938   cat >conftest.$ac_ext <<_ACEOF
   22939 #include <wchar.h>
   22940 wchar_t w;
   22941 _ACEOF
   22942 rm -f conftest.$ac_objext
   22943 if { (ac_try="$ac_compile"
   22944 case "(($ac_try" in
   22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22946   *) ac_try_echo=$ac_try;;
   22947 esac
   22948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   22949 $as_echo "$ac_try_echo") >&5
   22950   (eval "$ac_compile") 2>conftest.er1
   22951   ac_status=$?
   22952   grep -v '^ *+' conftest.er1 >conftest.err
   22953   rm -f conftest.er1
   22954   cat conftest.err >&5
   22955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22956   (exit $ac_status); } && {
   22957 	 test -z "$ac_c_werror_flag" ||
   22958 	 test ! -s conftest.err
   22959        } && test -s conftest.$ac_objext; then
   22960   gl_cv_header_wchar_h_standalone=yes
   22961 else
   22962   $as_echo "$as_me: failed program was:" >&5
   22963 sed 's/^/| /' conftest.$ac_ext >&5
   22964 
   22965 	gl_cv_header_wchar_h_standalone=no
   22966 fi
   22967 
   22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22969 fi
   22970 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
   22971 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
   22972 
   22973 
   22974   if test $gt_cv_c_wint_t = yes; then
   22975     HAVE_WINT_T=1
   22976   else
   22977     HAVE_WINT_T=0
   22978   fi
   22979 
   22980 
   22981   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
   22982     WCHAR_H=wchar.h
   22983   fi
   22984 
   22985 
   22986 
   22987 
   22988 
   22989 
   22990 
   22991   if test $ac_cv_header_wchar_h = yes; then
   22992     HAVE_WCHAR_H=1
   22993   else
   22994     HAVE_WCHAR_H=0
   22995   fi
   22996 
   22997 
   22998 
   22999 
   23000 
   23001 
   23002 
   23003 
   23004 
   23005 
   23006 
   23007 
   23008      if test $gl_cv_have_include_next = yes; then
   23009        gl_cv_next_wchar_h='<'wchar.h'>'
   23010      else
   23011        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
   23012 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
   23013 if test "${gl_cv_next_wchar_h+set}" = set; then
   23014   $as_echo_n "(cached) " >&6
   23015 else
   23016 
   23017 	  if test $ac_cv_header_wchar_h = yes; then
   23018 	    cat >conftest.$ac_ext <<_ACEOF
   23019 /* confdefs.h.  */
   23020 _ACEOF
   23021 cat confdefs.h >>conftest.$ac_ext
   23022 cat >>conftest.$ac_ext <<_ACEOF
   23023 /* end confdefs.h.  */
   23024 #include <wchar.h>
   23025 
   23026 _ACEOF
   23027 	    	    	    	    	    	    	    	    case "$host_os" in
   23028 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   23029 	      *)    gl_absname_cpp="$ac_cpp" ;;
   23030 	    esac
   23031 	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   23032 	       sed -n '\#/wchar.h#{
   23033 		 s#.*"\(.*/wchar.h\)".*#\1#
   23034 		 s#^/[^/]#//&#
   23035 		 p
   23036 		 q
   23037 	       }'`'"'
   23038 	  else
   23039 	    gl_cv_next_wchar_h='<'wchar.h'>'
   23040 	  fi
   23041 
   23042 fi
   23043 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
   23044 $as_echo "$gl_cv_next_wchar_h" >&6; }
   23045      fi
   23046      NEXT_WCHAR_H=$gl_cv_next_wchar_h
   23047 
   23048      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   23049        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   23050        gl_next_as_first_directive='<'wchar.h'>'
   23051      else
   23052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   23053        gl_next_as_first_directive=$gl_cv_next_wchar_h
   23054      fi
   23055      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
   23056 
   23057 
   23058 
   23059 
   23060 
   23061 
   23062 
   23063 
   23064 
   23065 
   23066 
   23067 
   23068 
   23069 
   23070 
   23071 
   23072 
   23073 
   23074 
   23075 
   23076 
   23077 
   23078 
   23079 
   23080   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
   23081 
   23082 
   23083 
   23084      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
   23085 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   23086 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
   23087   $as_echo_n "(cached) " >&6
   23088 else
   23089 
   23090                   case "$host_os" in
   23091               # Guess no on AIX and OSF/1.
   23092         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   23093               # Guess yes otherwise.
   23094         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   23095       esac
   23096       if test $LOCALE_JA != none; then
   23097         if test "$cross_compiling" = yes; then
   23098   :
   23099 else
   23100   cat >conftest.$ac_ext <<_ACEOF
   23101 /* confdefs.h.  */
   23102 _ACEOF
   23103 cat confdefs.h >>conftest.$ac_ext
   23104 cat >>conftest.$ac_ext <<_ACEOF
   23105 /* end confdefs.h.  */
   23106 
   23107 #include <locale.h>
   23108 #include <string.h>
   23109 #include <wchar.h>
   23110 int main ()
   23111 {
   23112   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   23113     {
   23114       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   23115       mbstate_t state;
   23116       wchar_t wc;
   23117 
   23118       memset (&state, '\0', sizeof (mbstate_t));
   23119       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   23120         if (mbsinit (&state))
   23121           return 1;
   23122     }
   23123   return 0;
   23124 }
   23125 _ACEOF
   23126 rm -f conftest$ac_exeext
   23127 if { (ac_try="$ac_link"
   23128 case "(($ac_try" in
   23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23130   *) ac_try_echo=$ac_try;;
   23131 esac
   23132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23133 $as_echo "$ac_try_echo") >&5
   23134   (eval "$ac_link") 2>&5
   23135   ac_status=$?
   23136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23138   { (case "(($ac_try" in
   23139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23140   *) ac_try_echo=$ac_try;;
   23141 esac
   23142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23143 $as_echo "$ac_try_echo") >&5
   23144   (eval "$ac_try") 2>&5
   23145   ac_status=$?
   23146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23147   (exit $ac_status); }; }; then
   23148   gl_cv_func_mbrtowc_incomplete_state=yes
   23149 else
   23150   $as_echo "$as_me: program exited with status $ac_status" >&5
   23151 $as_echo "$as_me: failed program was:" >&5
   23152 sed 's/^/| /' conftest.$ac_ext >&5
   23153 
   23154 ( exit $ac_status )
   23155 gl_cv_func_mbrtowc_incomplete_state=no
   23156 fi
   23157 rm -rf conftest.dSYM
   23158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23159 fi
   23160 
   23161 
   23162       fi
   23163 
   23164 fi
   23165 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   23166 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   23167 
   23168 
   23169 
   23170 
   23171      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
   23172 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   23173 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
   23174   $as_echo_n "(cached) " >&6
   23175 else
   23176 
   23177                   case "$host_os" in
   23178                     # Guess no on Solaris 8.
   23179         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   23180                     # Guess yes otherwise.
   23181         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   23182       esac
   23183       if test $LOCALE_ZH_CN != none; then
   23184         if test "$cross_compiling" = yes; then
   23185   :
   23186 else
   23187   cat >conftest.$ac_ext <<_ACEOF
   23188 /* confdefs.h.  */
   23189 _ACEOF
   23190 cat confdefs.h >>conftest.$ac_ext
   23191 cat >>conftest.$ac_ext <<_ACEOF
   23192 /* end confdefs.h.  */
   23193 
   23194 #include <locale.h>
   23195 #include <stdlib.h>
   23196 #include <string.h>
   23197 #include <wchar.h>
   23198 int main ()
   23199 {
   23200   /* This fails on Solaris 8:
   23201      mbrtowc returns 2, and sets wc to 0x00F0.
   23202      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   23203   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   23204     {
   23205       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   23206       mbstate_t state;
   23207       wchar_t wc;
   23208 
   23209       memset (&state, '\0', sizeof (mbstate_t));
   23210       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   23211           && mbtowc (&wc, input + 3, 6) == 4)
   23212         return 1;
   23213     }
   23214   return 0;
   23215 }
   23216 _ACEOF
   23217 rm -f conftest$ac_exeext
   23218 if { (ac_try="$ac_link"
   23219 case "(($ac_try" in
   23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23221   *) ac_try_echo=$ac_try;;
   23222 esac
   23223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23224 $as_echo "$ac_try_echo") >&5
   23225   (eval "$ac_link") 2>&5
   23226   ac_status=$?
   23227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23229   { (case "(($ac_try" in
   23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23231   *) ac_try_echo=$ac_try;;
   23232 esac
   23233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23234 $as_echo "$ac_try_echo") >&5
   23235   (eval "$ac_try") 2>&5
   23236   ac_status=$?
   23237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23238   (exit $ac_status); }; }; then
   23239   gl_cv_func_mbrtowc_sanitycheck=yes
   23240 else
   23241   $as_echo "$as_me: program exited with status $ac_status" >&5
   23242 $as_echo "$as_me: failed program was:" >&5
   23243 sed 's/^/| /' conftest.$ac_ext >&5
   23244 
   23245 ( exit $ac_status )
   23246 gl_cv_func_mbrtowc_sanitycheck=no
   23247 fi
   23248 rm -rf conftest.dSYM
   23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23250 fi
   23251 
   23252 
   23253       fi
   23254 
   23255 fi
   23256 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   23257 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   23258 
   23259     REPLACE_MBSTATE_T=0
   23260     case "$gl_cv_func_mbrtowc_incomplete_state" in
   23261       *yes) ;;
   23262       *) REPLACE_MBSTATE_T=1 ;;
   23263     esac
   23264     case "$gl_cv_func_mbrtowc_sanitycheck" in
   23265       *yes) ;;
   23266       *) REPLACE_MBSTATE_T=1 ;;
   23267     esac
   23268   else
   23269     REPLACE_MBSTATE_T=1
   23270   fi
   23271   if test $REPLACE_MBSTATE_T = 1; then
   23272 
   23273 
   23274   WCHAR_H=wchar.h
   23275 
   23276   fi
   23277 
   23278   if test $REPLACE_MBSTATE_T = 1; then
   23279     REPLACE_WCRTOMB=1
   23280   fi
   23281 
   23282 
   23283 
   23284 
   23285 
   23286 
   23287   if test $ac_cv_func_wcrtomb = no; then
   23288     HAVE_WCRTOMB=0
   23289   fi
   23290   if test $HAVE_WCRTOMB != 0 && test $REPLACE_WCRTOMB != 1; then
   23291 
   23292 
   23293 
   23294 
   23295 
   23296          { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
   23297 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
   23298 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
   23299   $as_echo_n "(cached) " >&6
   23300 else
   23301 
   23302                         case "$host_os" in
   23303                                    # Guess no on AIX 4, OSF/1 and Solaris.
   23304           aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
   23305                                    # Guess yes otherwise.
   23306           *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
   23307         esac
   23308         if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
   23309           if test "$cross_compiling" = yes; then
   23310   :
   23311 else
   23312   cat >conftest.$ac_ext <<_ACEOF
   23313 /* confdefs.h.  */
   23314 _ACEOF
   23315 cat confdefs.h >>conftest.$ac_ext
   23316 cat >>conftest.$ac_ext <<_ACEOF
   23317 /* end confdefs.h.  */
   23318 
   23319 #include <locale.h>
   23320 #include <stdio.h>
   23321 #include <string.h>
   23322 #include <wchar.h>
   23323 int main ()
   23324 {
   23325   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
   23326     {
   23327       if (wcrtomb (NULL, 0, NULL) != 1)
   23328         return 1;
   23329     }
   23330   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   23331     {
   23332       if (wcrtomb (NULL, 0, NULL) != 1)
   23333         return 1;
   23334     }
   23335   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   23336     {
   23337       if (wcrtomb (NULL, 0, NULL) != 1)
   23338         return 1;
   23339     }
   23340   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   23341     {
   23342       if (wcrtomb (NULL, 0, NULL) != 1)
   23343         return 1;
   23344     }
   23345   return 0;
   23346 }
   23347 _ACEOF
   23348 rm -f conftest$ac_exeext
   23349 if { (ac_try="$ac_link"
   23350 case "(($ac_try" in
   23351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23352   *) ac_try_echo=$ac_try;;
   23353 esac
   23354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23355 $as_echo "$ac_try_echo") >&5
   23356   (eval "$ac_link") 2>&5
   23357   ac_status=$?
   23358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23360   { (case "(($ac_try" in
   23361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23362   *) ac_try_echo=$ac_try;;
   23363 esac
   23364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23365 $as_echo "$ac_try_echo") >&5
   23366   (eval "$ac_try") 2>&5
   23367   ac_status=$?
   23368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23369   (exit $ac_status); }; }; then
   23370   gl_cv_func_wcrtomb_retval=yes
   23371 else
   23372   $as_echo "$as_me: program exited with status $ac_status" >&5
   23373 $as_echo "$as_me: failed program was:" >&5
   23374 sed 's/^/| /' conftest.$ac_ext >&5
   23375 
   23376 ( exit $ac_status )
   23377 gl_cv_func_wcrtomb_retval=no
   23378 fi
   23379 rm -rf conftest.dSYM
   23380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23381 fi
   23382 
   23383 
   23384         fi
   23385 
   23386 fi
   23387 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
   23388 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
   23389     case "$gl_cv_func_wcrtomb_retval" in
   23390       *yes) ;;
   23391       *) REPLACE_WCRTOMB=1 ;;
   23392     esac
   23393   fi
   23394   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
   23395 
   23396 
   23397   WCHAR_H=wchar.h
   23398 
   23399 
   23400 
   23401 
   23402 
   23403 
   23404 
   23405 
   23406 
   23407   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
   23408 
   23409 
   23410   :
   23411 
   23412   fi
   23413 
   23414 
   23415 
   23416   GNULIB_WCRTOMB=1
   23417 
   23418 
   23419 
   23420 
   23421 
   23422 
   23423 
   23424 
   23425 
   23426 
   23427   if test $ac_cv_func_wctob = no; then
   23428     HAVE_DECL_WCTOB=0
   23429 
   23430 
   23431   WCHAR_H=wchar.h
   23432 
   23433 
   23434 
   23435 
   23436 
   23437 
   23438 
   23439 
   23440 
   23441   gl_LIBOBJS="$gl_LIBOBJS wctob.$ac_objext"
   23442 
   23443 
   23444   :
   23445 
   23446   else
   23447 
   23448 
   23449 
   23450          { $as_echo "$as_me:$LINENO: checking whether wctob works" >&5
   23451 $as_echo_n "checking whether wctob works... " >&6; }
   23452 if test "${gl_cv_func_wctob_works+set}" = set; then
   23453   $as_echo_n "(cached) " >&6
   23454 else
   23455 
   23456                         case "$host_os" in
   23457             # Guess no on Solaris <= 9.
   23458           solaris2.[1-9] | solaris2.[1-9].*)
   23459             gl_cv_func_wctob_works="guessing no" ;;
   23460             # Guess yes otherwise.
   23461           *) gl_cv_func_wctob_works="guessing yes" ;;
   23462         esac
   23463         if test $LOCALE_FR != none; then
   23464           if test "$cross_compiling" = yes; then
   23465   :
   23466 else
   23467   cat >conftest.$ac_ext <<_ACEOF
   23468 /* confdefs.h.  */
   23469 _ACEOF
   23470 cat confdefs.h >>conftest.$ac_ext
   23471 cat >>conftest.$ac_ext <<_ACEOF
   23472 /* end confdefs.h.  */
   23473 
   23474 #include <locale.h>
   23475 #include <string.h>
   23476 #include <wchar.h>
   23477 int main ()
   23478 {
   23479   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
   23480     {
   23481       wchar_t wc;
   23482 
   23483       if (mbtowc (&wc, "\374", 1) == 1)
   23484         if (wctob (wc) != (unsigned char) '\374')
   23485           return 1;
   23486     }
   23487   return 0;
   23488 }
   23489 _ACEOF
   23490 rm -f conftest$ac_exeext
   23491 if { (ac_try="$ac_link"
   23492 case "(($ac_try" in
   23493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23494   *) ac_try_echo=$ac_try;;
   23495 esac
   23496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23497 $as_echo "$ac_try_echo") >&5
   23498   (eval "$ac_link") 2>&5
   23499   ac_status=$?
   23500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23502   { (case "(($ac_try" in
   23503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23504   *) ac_try_echo=$ac_try;;
   23505 esac
   23506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23507 $as_echo "$ac_try_echo") >&5
   23508   (eval "$ac_try") 2>&5
   23509   ac_status=$?
   23510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23511   (exit $ac_status); }; }; then
   23512   gl_cv_func_wctob_works=yes
   23513 else
   23514   $as_echo "$as_me: program exited with status $ac_status" >&5
   23515 $as_echo "$as_me: failed program was:" >&5
   23516 sed 's/^/| /' conftest.$ac_ext >&5
   23517 
   23518 ( exit $ac_status )
   23519 gl_cv_func_wctob_works=no
   23520 fi
   23521 rm -rf conftest.dSYM
   23522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23523 fi
   23524 
   23525 
   23526         fi
   23527 
   23528 fi
   23529 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wctob_works" >&5
   23530 $as_echo "$gl_cv_func_wctob_works" >&6; }
   23531     case "$gl_cv_func_wctob_works" in
   23532       *yes) ;;
   23533       *) REPLACE_WCTOB=1 ;;
   23534     esac
   23535     if test $REPLACE_WCTOB = 1; then
   23536 
   23537 
   23538   WCHAR_H=wchar.h
   23539 
   23540 
   23541 
   23542 
   23543 
   23544 
   23545 
   23546 
   23547 
   23548   gl_LIBOBJS="$gl_LIBOBJS wctob.$ac_objext"
   23549 
   23550 
   23551   :
   23552 
   23553     else
   23554 
   23555             { $as_echo "$as_me:$LINENO: checking whether wctob is declared" >&5
   23556 $as_echo_n "checking whether wctob is declared... " >&6; }
   23557 if test "${ac_cv_have_decl_wctob+set}" = set; then
   23558   $as_echo_n "(cached) " >&6
   23559 else
   23560   cat >conftest.$ac_ext <<_ACEOF
   23561 /* confdefs.h.  */
   23562 _ACEOF
   23563 cat confdefs.h >>conftest.$ac_ext
   23564 cat >>conftest.$ac_ext <<_ACEOF
   23565 /* end confdefs.h.  */
   23566 
   23567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   23568    <wchar.h>.
   23569    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
   23570    before <wchar.h>.  */
   23571 #include <stddef.h>
   23572 #include <stdio.h>
   23573 #include <time.h>
   23574 #include <wchar.h>
   23575 
   23576 
   23577 int
   23578 main ()
   23579 {
   23580 #ifndef wctob
   23581   (void) wctob;
   23582 #endif
   23583 
   23584   ;
   23585   return 0;
   23586 }
   23587 _ACEOF
   23588 rm -f conftest.$ac_objext
   23589 if { (ac_try="$ac_compile"
   23590 case "(($ac_try" in
   23591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23592   *) ac_try_echo=$ac_try;;
   23593 esac
   23594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23595 $as_echo "$ac_try_echo") >&5
   23596   (eval "$ac_compile") 2>conftest.er1
   23597   ac_status=$?
   23598   grep -v '^ *+' conftest.er1 >conftest.err
   23599   rm -f conftest.er1
   23600   cat conftest.err >&5
   23601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23602   (exit $ac_status); } && {
   23603 	 test -z "$ac_c_werror_flag" ||
   23604 	 test ! -s conftest.err
   23605        } && test -s conftest.$ac_objext; then
   23606   ac_cv_have_decl_wctob=yes
   23607 else
   23608   $as_echo "$as_me: failed program was:" >&5
   23609 sed 's/^/| /' conftest.$ac_ext >&5
   23610 
   23611 	ac_cv_have_decl_wctob=no
   23612 fi
   23613 
   23614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23615 fi
   23616 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wctob" >&5
   23617 $as_echo "$ac_cv_have_decl_wctob" >&6; }
   23618 if test "x$ac_cv_have_decl_wctob" = x""yes; then
   23619 
   23620 cat >>confdefs.h <<_ACEOF
   23621 #define HAVE_DECL_WCTOB 1
   23622 _ACEOF
   23623 
   23624 
   23625 else
   23626   cat >>confdefs.h <<_ACEOF
   23627 #define HAVE_DECL_WCTOB 0
   23628 _ACEOF
   23629 
   23630 
   23631 fi
   23632 
   23633 
   23634       if test $ac_cv_have_decl_wctob != yes; then
   23635         HAVE_DECL_WCTOB=0
   23636 
   23637 
   23638   WCHAR_H=wchar.h
   23639 
   23640       fi
   23641     fi
   23642   fi
   23643 
   23644 
   23645 
   23646   GNULIB_WCTOB=1
   23647 
   23648 
   23649 
   23650 
   23651 
   23652 
   23653 
   23654 
   23655 
   23656   if test $ac_cv_func_iswcntrl = yes; then
   23657     HAVE_ISWCNTRL=1
   23658   else
   23659     HAVE_ISWCNTRL=0
   23660   fi
   23661 
   23662 
   23663 
   23664 
   23665 
   23666 
   23667 
   23668 
   23669 
   23670 
   23671   if test $gt_cv_c_wint_t = yes; then
   23672     HAVE_WINT_T=1
   23673   else
   23674     HAVE_WINT_T=0
   23675   fi
   23676 
   23677 
   23678   WCTYPE_H=wctype.h
   23679   if test $ac_cv_header_wctype_h = yes; then
   23680     if test $ac_cv_func_iswcntrl = yes; then
   23681                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
   23682 $as_echo_n "checking whether iswcntrl works... " >&6; }
   23683 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
   23684   $as_echo_n "(cached) " >&6
   23685 else
   23686 
   23687           if test "$cross_compiling" = yes; then
   23688   cat >conftest.$ac_ext <<_ACEOF
   23689 /* confdefs.h.  */
   23690 _ACEOF
   23691 cat confdefs.h >>conftest.$ac_ext
   23692 cat >>conftest.$ac_ext <<_ACEOF
   23693 /* end confdefs.h.  */
   23694 #include <stdlib.h>
   23695                           #if __GNU_LIBRARY__ == 1
   23696                           Linux libc5 i18n is broken.
   23697                           #endif
   23698 int
   23699 main ()
   23700 {
   23701 
   23702   ;
   23703   return 0;
   23704 }
   23705 _ACEOF
   23706 rm -f conftest.$ac_objext
   23707 if { (ac_try="$ac_compile"
   23708 case "(($ac_try" in
   23709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23710   *) ac_try_echo=$ac_try;;
   23711 esac
   23712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23713 $as_echo "$ac_try_echo") >&5
   23714   (eval "$ac_compile") 2>conftest.er1
   23715   ac_status=$?
   23716   grep -v '^ *+' conftest.er1 >conftest.err
   23717   rm -f conftest.er1
   23718   cat conftest.err >&5
   23719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23720   (exit $ac_status); } && {
   23721 	 test -z "$ac_c_werror_flag" ||
   23722 	 test ! -s conftest.err
   23723        } && test -s conftest.$ac_objext; then
   23724   gl_cv_func_iswcntrl_works=yes
   23725 else
   23726   $as_echo "$as_me: failed program was:" >&5
   23727 sed 's/^/| /' conftest.$ac_ext >&5
   23728 
   23729 	gl_cv_func_iswcntrl_works=no
   23730 fi
   23731 
   23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23733 
   23734 else
   23735   cat >conftest.$ac_ext <<_ACEOF
   23736 /* confdefs.h.  */
   23737 _ACEOF
   23738 cat confdefs.h >>conftest.$ac_ext
   23739 cat >>conftest.$ac_ext <<_ACEOF
   23740 /* end confdefs.h.  */
   23741 #include <stddef.h>
   23742                       #include <stdio.h>
   23743                       #include <time.h>
   23744                       #include <wchar.h>
   23745                       #include <wctype.h>
   23746                       int main () { return iswprint ('x') == 0; }
   23747 _ACEOF
   23748 rm -f conftest$ac_exeext
   23749 if { (ac_try="$ac_link"
   23750 case "(($ac_try" in
   23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23752   *) ac_try_echo=$ac_try;;
   23753 esac
   23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23755 $as_echo "$ac_try_echo") >&5
   23756   (eval "$ac_link") 2>&5
   23757   ac_status=$?
   23758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23760   { (case "(($ac_try" in
   23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23762   *) ac_try_echo=$ac_try;;
   23763 esac
   23764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   23765 $as_echo "$ac_try_echo") >&5
   23766   (eval "$ac_try") 2>&5
   23767   ac_status=$?
   23768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23769   (exit $ac_status); }; }; then
   23770   gl_cv_func_iswcntrl_works=yes
   23771 else
   23772   $as_echo "$as_me: program exited with status $ac_status" >&5
   23773 $as_echo "$as_me: failed program was:" >&5
   23774 sed 's/^/| /' conftest.$ac_ext >&5
   23775 
   23776 ( exit $ac_status )
   23777 gl_cv_func_iswcntrl_works=no
   23778 fi
   23779 rm -rf conftest.dSYM
   23780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23781 fi
   23782 
   23783 
   23784 
   23785 fi
   23786 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
   23787 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
   23788       if test $gl_cv_func_iswcntrl_works = yes; then
   23789         WCTYPE_H=
   23790       fi
   23791     fi
   23792 
   23793 
   23794 
   23795 
   23796 
   23797 
   23798 
   23799 
   23800 
   23801 
   23802 
   23803      if test $gl_cv_have_include_next = yes; then
   23804        gl_cv_next_wctype_h='<'wctype.h'>'
   23805      else
   23806        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
   23807 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
   23808 if test "${gl_cv_next_wctype_h+set}" = set; then
   23809   $as_echo_n "(cached) " >&6
   23810 else
   23811 
   23812 	  if test $ac_cv_header_wctype_h = yes; then
   23813 	    cat >conftest.$ac_ext <<_ACEOF
   23814 /* confdefs.h.  */
   23815 _ACEOF
   23816 cat confdefs.h >>conftest.$ac_ext
   23817 cat >>conftest.$ac_ext <<_ACEOF
   23818 /* end confdefs.h.  */
   23819 #include <wctype.h>
   23820 
   23821 _ACEOF
   23822 	    	    	    	    	    	    	    	    case "$host_os" in
   23823 	      aix*) gl_absname_cpp="$ac_cpp -C" ;;
   23824 	      *)    gl_absname_cpp="$ac_cpp" ;;
   23825 	    esac
   23826 	    	    	    	    gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   23827 	       sed -n '\#/wctype.h#{
   23828 		 s#.*"\(.*/wctype.h\)".*#\1#
   23829 		 s#^/[^/]#//&#
   23830 		 p
   23831 		 q
   23832 	       }'`'"'
   23833 	  else
   23834 	    gl_cv_next_wctype_h='<'wctype.h'>'
   23835 	  fi
   23836 
   23837 fi
   23838 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
   23839 $as_echo "$gl_cv_next_wctype_h" >&6; }
   23840      fi
   23841      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
   23842 
   23843      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   23844        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   23845        gl_next_as_first_directive='<'wctype.h'>'
   23846      else
   23847        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   23848        gl_next_as_first_directive=$gl_cv_next_wctype_h
   23849      fi
   23850      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
   23851 
   23852 
   23853 
   23854     HAVE_WCTYPE_H=1
   23855   else
   23856     HAVE_WCTYPE_H=0
   23857   fi
   23858 
   23859 
   23860 
   23861   if test "$gl_cv_func_iswcntrl_works" = no; then
   23862     REPLACE_ISWCNTRL=1
   23863   else
   23864     REPLACE_ISWCNTRL=0
   23865   fi
   23866 
   23867 
   23868 
   23869 
   23870 
   23871 
   23872 
   23873 
   23874 
   23875 
   23876 
   23877   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
   23878 
   23879 
   23880 
   23881 
   23882   :
   23883 
   23884 
   23885   :
   23886 
   23887 
   23888 
   23889 
   23890   :
   23891 
   23892 
   23893 
   23894 
   23895 
   23896 
   23897 
   23898 
   23899 
   23900 
   23901 
   23902   gltests_libdeps=
   23903   gltests_ltlibdeps=
   23904 
   23905 
   23906 
   23907 
   23908 
   23909 
   23910 
   23911 
   23912 
   23913   gl_source_base='tests'
   23914 
   23915 
   23916 
   23917 
   23918 
   23919 
   23920 
   23921   LIBSED_LIBDEPS="$gl_libdeps"
   23922 
   23923   LIBSED_LTLIBDEPS="$gl_ltlibdeps"
   23924 
   23925 
   23926 
   23927 
   23928 
   23929 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
   23930 $as_echo_n "checking for long file names... " >&6; }
   23931 if test "${ac_cv_sys_long_file_names+set}" = set; then
   23932   $as_echo_n "(cached) " >&6
   23933 else
   23934   ac_cv_sys_long_file_names=yes
   23935 # Test for long file names in all the places we know might matter:
   23936 #      .		the current directory, where building will happen
   23937 #      $prefix/lib	where we will be installing things
   23938 #      $exec_prefix/lib	likewise
   23939 #      $TMPDIR		if set, where it might want to write temporary files
   23940 #      /tmp		where it might want to write temporary files
   23941 #      /var/tmp		likewise
   23942 #      /usr/tmp		likewise
   23943 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
   23944   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
   23945   # in the usual case where exec_prefix is '${prefix}'.
   23946   case $ac_dir in #(
   23947     . | /* | ?:[\\/]*) ;; #(
   23948     *) continue;;
   23949   esac
   23950   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
   23951   ac_xdir=$ac_dir/cf$$
   23952   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
   23953   ac_tf1=$ac_xdir/conftest9012345
   23954   ac_tf2=$ac_xdir/conftest9012346
   23955   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
   23956     ac_cv_sys_long_file_names=no
   23957   rm -f -r "$ac_xdir" 2>/dev/null
   23958   test $ac_cv_sys_long_file_names = no && break
   23959 done
   23960 fi
   23961 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
   23962 $as_echo "$ac_cv_sys_long_file_names" >&6; }
   23963 if test $ac_cv_sys_long_file_names = yes; then
   23964 
   23965 cat >>confdefs.h <<\_ACEOF
   23966 #define HAVE_LONG_FILE_NAMES 1
   23967 _ACEOF
   23968 
   23969 fi
   23970 
   23971 { $as_echo "$as_me:$LINENO: checking whether -lcP is needed" >&5
   23972 $as_echo_n "checking whether -lcP is needed... " >&6; }
   23973 if test "${sed_cv_libcp_needed+set}" = set; then
   23974   $as_echo_n "(cached) " >&6
   23975 else
   23976 
   23977 if test "$cross_compiling" = yes; then
   23978   sed_cv_libcp_needed="assuming no"
   23979 else
   23980   cat >conftest.$ac_ext <<_ACEOF
   23981 /* confdefs.h.  */
   23982 _ACEOF
   23983 cat confdefs.h >>conftest.$ac_ext
   23984 cat >>conftest.$ac_ext <<_ACEOF
   23985 /* end confdefs.h.  */
   23986 
   23987 #include <stdio.h>
   23988 #include <errno.h>
   23989 
   23990 int main()
   23991 {
   23992   FILE *fp;
   23993   int result;
   23994   errno = 0;
   23995   fp = fopen ("conftest.c", "r");
   23996   if (!fp) return 0;	   /* error, assume not needed */
   23997   result = fflush (fp) == EOF && errno == 0;
   23998   fclose (fp);
   23999   return result;
   24000 }
   24001 _ACEOF
   24002 rm -f conftest$ac_exeext
   24003 if { (ac_try="$ac_link"
   24004 case "(($ac_try" in
   24005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24006   *) ac_try_echo=$ac_try;;
   24007 esac
   24008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24009 $as_echo "$ac_try_echo") >&5
   24010   (eval "$ac_link") 2>&5
   24011   ac_status=$?
   24012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24014   { (case "(($ac_try" in
   24015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24016   *) ac_try_echo=$ac_try;;
   24017 esac
   24018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24019 $as_echo "$ac_try_echo") >&5
   24020   (eval "$ac_try") 2>&5
   24021   ac_status=$?
   24022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24023   (exit $ac_status); }; }; then
   24024   sed_cv_libcp_needed=no
   24025 else
   24026   $as_echo "$as_me: program exited with status $ac_status" >&5
   24027 $as_echo "$as_me: failed program was:" >&5
   24028 sed 's/^/| /' conftest.$ac_ext >&5
   24029 
   24030 ( exit $ac_status )
   24031 sed_cv_libcp_needed=yes
   24032 fi
   24033 rm -rf conftest.dSYM
   24034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24035 fi
   24036 
   24037 
   24038 
   24039 fi
   24040 { $as_echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5
   24041 $as_echo "$sed_cv_libcp_needed" >&6; }
   24042 if test "$sed_cv_libcp_needed" = yes; then
   24043   LIBS="-lcP $LIBS"
   24044 fi
   24045 
   24046 
   24047 
   24048 
   24049 
   24050 
   24051 ac_header_dirent=no
   24052 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   24053   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   24054 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   24055 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
   24056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   24057   $as_echo_n "(cached) " >&6
   24058 else
   24059   cat >conftest.$ac_ext <<_ACEOF
   24060 /* confdefs.h.  */
   24061 _ACEOF
   24062 cat confdefs.h >>conftest.$ac_ext
   24063 cat >>conftest.$ac_ext <<_ACEOF
   24064 /* end confdefs.h.  */
   24065 #include <sys/types.h>
   24066 #include <$ac_hdr>
   24067 
   24068 int
   24069 main ()
   24070 {
   24071 if ((DIR *) 0)
   24072 return 0;
   24073   ;
   24074   return 0;
   24075 }
   24076 _ACEOF
   24077 rm -f conftest.$ac_objext
   24078 if { (ac_try="$ac_compile"
   24079 case "(($ac_try" in
   24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24081   *) ac_try_echo=$ac_try;;
   24082 esac
   24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24084 $as_echo "$ac_try_echo") >&5
   24085   (eval "$ac_compile") 2>conftest.er1
   24086   ac_status=$?
   24087   grep -v '^ *+' conftest.er1 >conftest.err
   24088   rm -f conftest.er1
   24089   cat conftest.err >&5
   24090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24091   (exit $ac_status); } && {
   24092 	 test -z "$ac_c_werror_flag" ||
   24093 	 test ! -s conftest.err
   24094        } && test -s conftest.$ac_objext; then
   24095   eval "$as_ac_Header=yes"
   24096 else
   24097   $as_echo "$as_me: failed program was:" >&5
   24098 sed 's/^/| /' conftest.$ac_ext >&5
   24099 
   24100 	eval "$as_ac_Header=no"
   24101 fi
   24102 
   24103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24104 fi
   24105 ac_res=`eval 'as_val=${'$as_ac_Header'}
   24106 		 $as_echo "$as_val"'`
   24107 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   24108 $as_echo "$ac_res" >&6; }
   24109 as_val=`eval 'as_val=${'$as_ac_Header'}
   24110 		 $as_echo "$as_val"'`
   24111    if test "x$as_val" = x""yes; then
   24112   cat >>confdefs.h <<_ACEOF
   24113 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   24114 _ACEOF
   24115 
   24116 ac_header_dirent=$ac_hdr; break
   24117 fi
   24118 
   24119 done
   24120 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   24121 if test $ac_header_dirent = dirent.h; then
   24122   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
   24123 $as_echo_n "checking for library containing opendir... " >&6; }
   24124 if test "${ac_cv_search_opendir+set}" = set; then
   24125   $as_echo_n "(cached) " >&6
   24126 else
   24127   ac_func_search_save_LIBS=$LIBS
   24128 cat >conftest.$ac_ext <<_ACEOF
   24129 /* confdefs.h.  */
   24130 _ACEOF
   24131 cat confdefs.h >>conftest.$ac_ext
   24132 cat >>conftest.$ac_ext <<_ACEOF
   24133 /* end confdefs.h.  */
   24134 
   24135 /* Override any GCC internal prototype to avoid an error.
   24136    Use char because int might match the return type of a GCC
   24137    builtin and then its argument prototype would still apply.  */
   24138 #ifdef __cplusplus
   24139 extern "C"
   24140 #endif
   24141 char opendir ();
   24142 int
   24143 main ()
   24144 {
   24145 return opendir ();
   24146   ;
   24147   return 0;
   24148 }
   24149 _ACEOF
   24150 for ac_lib in '' dir; do
   24151   if test -z "$ac_lib"; then
   24152     ac_res="none required"
   24153   else
   24154     ac_res=-l$ac_lib
   24155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   24156   fi
   24157   rm -f conftest.$ac_objext conftest$ac_exeext
   24158 if { (ac_try="$ac_link"
   24159 case "(($ac_try" in
   24160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24161   *) ac_try_echo=$ac_try;;
   24162 esac
   24163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24164 $as_echo "$ac_try_echo") >&5
   24165   (eval "$ac_link") 2>conftest.er1
   24166   ac_status=$?
   24167   grep -v '^ *+' conftest.er1 >conftest.err
   24168   rm -f conftest.er1
   24169   cat conftest.err >&5
   24170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24171   (exit $ac_status); } && {
   24172 	 test -z "$ac_c_werror_flag" ||
   24173 	 test ! -s conftest.err
   24174        } && test -s conftest$ac_exeext && {
   24175 	 test "$cross_compiling" = yes ||
   24176 	 $as_test_x conftest$ac_exeext
   24177        }; then
   24178   ac_cv_search_opendir=$ac_res
   24179 else
   24180   $as_echo "$as_me: failed program was:" >&5
   24181 sed 's/^/| /' conftest.$ac_ext >&5
   24182 
   24183 
   24184 fi
   24185 
   24186 rm -rf conftest.dSYM
   24187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   24188       conftest$ac_exeext
   24189   if test "${ac_cv_search_opendir+set}" = set; then
   24190   break
   24191 fi
   24192 done
   24193 if test "${ac_cv_search_opendir+set}" = set; then
   24194   :
   24195 else
   24196   ac_cv_search_opendir=no
   24197 fi
   24198 rm conftest.$ac_ext
   24199 LIBS=$ac_func_search_save_LIBS
   24200 fi
   24201 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   24202 $as_echo "$ac_cv_search_opendir" >&6; }
   24203 ac_res=$ac_cv_search_opendir
   24204 if test "$ac_res" != no; then
   24205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   24206 
   24207 fi
   24208 
   24209 else
   24210   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
   24211 $as_echo_n "checking for library containing opendir... " >&6; }
   24212 if test "${ac_cv_search_opendir+set}" = set; then
   24213   $as_echo_n "(cached) " >&6
   24214 else
   24215   ac_func_search_save_LIBS=$LIBS
   24216 cat >conftest.$ac_ext <<_ACEOF
   24217 /* confdefs.h.  */
   24218 _ACEOF
   24219 cat confdefs.h >>conftest.$ac_ext
   24220 cat >>conftest.$ac_ext <<_ACEOF
   24221 /* end confdefs.h.  */
   24222 
   24223 /* Override any GCC internal prototype to avoid an error.
   24224    Use char because int might match the return type of a GCC
   24225    builtin and then its argument prototype would still apply.  */
   24226 #ifdef __cplusplus
   24227 extern "C"
   24228 #endif
   24229 char opendir ();
   24230 int
   24231 main ()
   24232 {
   24233 return opendir ();
   24234   ;
   24235   return 0;
   24236 }
   24237 _ACEOF
   24238 for ac_lib in '' x; do
   24239   if test -z "$ac_lib"; then
   24240     ac_res="none required"
   24241   else
   24242     ac_res=-l$ac_lib
   24243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   24244   fi
   24245   rm -f conftest.$ac_objext conftest$ac_exeext
   24246 if { (ac_try="$ac_link"
   24247 case "(($ac_try" in
   24248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24249   *) ac_try_echo=$ac_try;;
   24250 esac
   24251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24252 $as_echo "$ac_try_echo") >&5
   24253   (eval "$ac_link") 2>conftest.er1
   24254   ac_status=$?
   24255   grep -v '^ *+' conftest.er1 >conftest.err
   24256   rm -f conftest.er1
   24257   cat conftest.err >&5
   24258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24259   (exit $ac_status); } && {
   24260 	 test -z "$ac_c_werror_flag" ||
   24261 	 test ! -s conftest.err
   24262        } && test -s conftest$ac_exeext && {
   24263 	 test "$cross_compiling" = yes ||
   24264 	 $as_test_x conftest$ac_exeext
   24265        }; then
   24266   ac_cv_search_opendir=$ac_res
   24267 else
   24268   $as_echo "$as_me: failed program was:" >&5
   24269 sed 's/^/| /' conftest.$ac_ext >&5
   24270 
   24271 
   24272 fi
   24273 
   24274 rm -rf conftest.dSYM
   24275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   24276       conftest$ac_exeext
   24277   if test "${ac_cv_search_opendir+set}" = set; then
   24278   break
   24279 fi
   24280 done
   24281 if test "${ac_cv_search_opendir+set}" = set; then
   24282   :
   24283 else
   24284   ac_cv_search_opendir=no
   24285 fi
   24286 rm conftest.$ac_ext
   24287 LIBS=$ac_func_search_save_LIBS
   24288 fi
   24289 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   24290 $as_echo "$ac_cv_search_opendir" >&6; }
   24291 ac_res=$ac_cv_search_opendir
   24292 if test "$ac_res" != no; then
   24293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   24294 
   24295 fi
   24296 
   24297 fi
   24298 
   24299 
   24300 
   24301 
   24302 
   24303 
   24304 
   24305 
   24306 
   24307 
   24308 
   24309 
   24310 
   24311 
   24312 
   24313 
   24314 
   24315 
   24316 
   24317 
   24318 
   24319 
   24320 
   24321 
   24322 
   24323 
   24324 
   24325 
   24326 
   24327 
   24328 
   24329 
   24330 
   24331 
   24332 
   24333 
   24334 
   24335 
   24336 
   24337 
   24338 
   24339 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   24340 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   24341 if test "${ac_cv_c_const+set}" = set; then
   24342   $as_echo_n "(cached) " >&6
   24343 else
   24344   cat >conftest.$ac_ext <<_ACEOF
   24345 /* confdefs.h.  */
   24346 _ACEOF
   24347 cat confdefs.h >>conftest.$ac_ext
   24348 cat >>conftest.$ac_ext <<_ACEOF
   24349 /* end confdefs.h.  */
   24350 
   24351 int
   24352 main ()
   24353 {
   24354 /* FIXME: Include the comments suggested by Paul. */
   24355 #ifndef __cplusplus
   24356   /* Ultrix mips cc rejects this.  */
   24357   typedef int charset[2];
   24358   const charset cs;
   24359   /* SunOS 4.1.1 cc rejects this.  */
   24360   char const *const *pcpcc;
   24361   char **ppc;
   24362   /* NEC SVR4.0.2 mips cc rejects this.  */
   24363   struct point {int x, y;};
   24364   static struct point const zero = {0,0};
   24365   /* AIX XL C 1.02.0.0 rejects this.
   24366      It does not let you subtract one const X* pointer from another in
   24367      an arm of an if-expression whose if-part is not a constant
   24368      expression */
   24369   const char *g = "string";
   24370   pcpcc = &g + (g ? g-g : 0);
   24371   /* HPUX 7.0 cc rejects these. */
   24372   ++pcpcc;
   24373   ppc = (char**) pcpcc;
   24374   pcpcc = (char const *const *) ppc;
   24375   { /* SCO 3.2v4 cc rejects this.  */
   24376     char *t;
   24377     char const *s = 0 ? (char *) 0 : (char const *) 0;
   24378 
   24379     *t++ = 0;
   24380     if (s) return 0;
   24381   }
   24382   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   24383     int x[] = {25, 17};
   24384     const int *foo = &x[0];
   24385     ++foo;
   24386   }
   24387   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   24388     typedef const int *iptr;
   24389     iptr p = 0;
   24390     ++p;
   24391   }
   24392   { /* AIX XL C 1.02.0.0 rejects this saying
   24393        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   24394     struct s { int j; const int *ap[3]; };
   24395     struct s *b; b->j = 5;
   24396   }
   24397   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   24398     const int foo = 10;
   24399     if (!foo) return 0;
   24400   }
   24401   return !cs[0] && !zero.x;
   24402 #endif
   24403 
   24404   ;
   24405   return 0;
   24406 }
   24407 _ACEOF
   24408 rm -f conftest.$ac_objext
   24409 if { (ac_try="$ac_compile"
   24410 case "(($ac_try" in
   24411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24412   *) ac_try_echo=$ac_try;;
   24413 esac
   24414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24415 $as_echo "$ac_try_echo") >&5
   24416   (eval "$ac_compile") 2>conftest.er1
   24417   ac_status=$?
   24418   grep -v '^ *+' conftest.er1 >conftest.err
   24419   rm -f conftest.er1
   24420   cat conftest.err >&5
   24421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24422   (exit $ac_status); } && {
   24423 	 test -z "$ac_c_werror_flag" ||
   24424 	 test ! -s conftest.err
   24425        } && test -s conftest.$ac_objext; then
   24426   ac_cv_c_const=yes
   24427 else
   24428   $as_echo "$as_me: failed program was:" >&5
   24429 sed 's/^/| /' conftest.$ac_ext >&5
   24430 
   24431 	ac_cv_c_const=no
   24432 fi
   24433 
   24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24435 fi
   24436 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   24437 $as_echo "$ac_cv_c_const" >&6; }
   24438 if test $ac_cv_c_const = no; then
   24439 
   24440 cat >>confdefs.h <<\_ACEOF
   24441 #define const /**/
   24442 _ACEOF
   24443 
   24444 fi
   24445 
   24446 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
   24447 $as_echo_n "checking for size_t... " >&6; }
   24448 if test "${ac_cv_type_size_t+set}" = set; then
   24449   $as_echo_n "(cached) " >&6
   24450 else
   24451   ac_cv_type_size_t=no
   24452 cat >conftest.$ac_ext <<_ACEOF
   24453 /* confdefs.h.  */
   24454 _ACEOF
   24455 cat confdefs.h >>conftest.$ac_ext
   24456 cat >>conftest.$ac_ext <<_ACEOF
   24457 /* end confdefs.h.  */
   24458 $ac_includes_default
   24459 int
   24460 main ()
   24461 {
   24462 if (sizeof (size_t))
   24463        return 0;
   24464   ;
   24465   return 0;
   24466 }
   24467 _ACEOF
   24468 rm -f conftest.$ac_objext
   24469 if { (ac_try="$ac_compile"
   24470 case "(($ac_try" in
   24471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24472   *) ac_try_echo=$ac_try;;
   24473 esac
   24474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24475 $as_echo "$ac_try_echo") >&5
   24476   (eval "$ac_compile") 2>conftest.er1
   24477   ac_status=$?
   24478   grep -v '^ *+' conftest.er1 >conftest.err
   24479   rm -f conftest.er1
   24480   cat conftest.err >&5
   24481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24482   (exit $ac_status); } && {
   24483 	 test -z "$ac_c_werror_flag" ||
   24484 	 test ! -s conftest.err
   24485        } && test -s conftest.$ac_objext; then
   24486   cat >conftest.$ac_ext <<_ACEOF
   24487 /* confdefs.h.  */
   24488 _ACEOF
   24489 cat confdefs.h >>conftest.$ac_ext
   24490 cat >>conftest.$ac_ext <<_ACEOF
   24491 /* end confdefs.h.  */
   24492 $ac_includes_default
   24493 int
   24494 main ()
   24495 {
   24496 if (sizeof ((size_t)))
   24497 	  return 0;
   24498   ;
   24499   return 0;
   24500 }
   24501 _ACEOF
   24502 rm -f conftest.$ac_objext
   24503 if { (ac_try="$ac_compile"
   24504 case "(($ac_try" in
   24505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24506   *) ac_try_echo=$ac_try;;
   24507 esac
   24508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24509 $as_echo "$ac_try_echo") >&5
   24510   (eval "$ac_compile") 2>conftest.er1
   24511   ac_status=$?
   24512   grep -v '^ *+' conftest.er1 >conftest.err
   24513   rm -f conftest.er1
   24514   cat conftest.err >&5
   24515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24516   (exit $ac_status); } && {
   24517 	 test -z "$ac_c_werror_flag" ||
   24518 	 test ! -s conftest.err
   24519        } && test -s conftest.$ac_objext; then
   24520   :
   24521 else
   24522   $as_echo "$as_me: failed program was:" >&5
   24523 sed 's/^/| /' conftest.$ac_ext >&5
   24524 
   24525 	ac_cv_type_size_t=yes
   24526 fi
   24527 
   24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24529 else
   24530   $as_echo "$as_me: failed program was:" >&5
   24531 sed 's/^/| /' conftest.$ac_ext >&5
   24532 
   24533 
   24534 fi
   24535 
   24536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24537 fi
   24538 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
   24539 $as_echo "$ac_cv_type_size_t" >&6; }
   24540 if test "x$ac_cv_type_size_t" = x""yes; then
   24541   :
   24542 else
   24543 
   24544 cat >>confdefs.h <<_ACEOF
   24545 #define size_t unsigned int
   24546 _ACEOF
   24547 
   24548 fi
   24549 
   24550 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
   24551 $as_echo_n "checking for ssize_t... " >&6; }
   24552 if test "${ac_cv_type_ssize_t+set}" = set; then
   24553   $as_echo_n "(cached) " >&6
   24554 else
   24555   ac_cv_type_ssize_t=no
   24556 cat >conftest.$ac_ext <<_ACEOF
   24557 /* confdefs.h.  */
   24558 _ACEOF
   24559 cat confdefs.h >>conftest.$ac_ext
   24560 cat >>conftest.$ac_ext <<_ACEOF
   24561 /* end confdefs.h.  */
   24562 $ac_includes_default
   24563 int
   24564 main ()
   24565 {
   24566 if (sizeof (ssize_t))
   24567        return 0;
   24568   ;
   24569   return 0;
   24570 }
   24571 _ACEOF
   24572 rm -f conftest.$ac_objext
   24573 if { (ac_try="$ac_compile"
   24574 case "(($ac_try" in
   24575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24576   *) ac_try_echo=$ac_try;;
   24577 esac
   24578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24579 $as_echo "$ac_try_echo") >&5
   24580   (eval "$ac_compile") 2>conftest.er1
   24581   ac_status=$?
   24582   grep -v '^ *+' conftest.er1 >conftest.err
   24583   rm -f conftest.er1
   24584   cat conftest.err >&5
   24585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24586   (exit $ac_status); } && {
   24587 	 test -z "$ac_c_werror_flag" ||
   24588 	 test ! -s conftest.err
   24589        } && test -s conftest.$ac_objext; then
   24590   cat >conftest.$ac_ext <<_ACEOF
   24591 /* confdefs.h.  */
   24592 _ACEOF
   24593 cat confdefs.h >>conftest.$ac_ext
   24594 cat >>conftest.$ac_ext <<_ACEOF
   24595 /* end confdefs.h.  */
   24596 $ac_includes_default
   24597 int
   24598 main ()
   24599 {
   24600 if (sizeof ((ssize_t)))
   24601 	  return 0;
   24602   ;
   24603   return 0;
   24604 }
   24605 _ACEOF
   24606 rm -f conftest.$ac_objext
   24607 if { (ac_try="$ac_compile"
   24608 case "(($ac_try" in
   24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24610   *) ac_try_echo=$ac_try;;
   24611 esac
   24612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24613 $as_echo "$ac_try_echo") >&5
   24614   (eval "$ac_compile") 2>conftest.er1
   24615   ac_status=$?
   24616   grep -v '^ *+' conftest.er1 >conftest.err
   24617   rm -f conftest.er1
   24618   cat conftest.err >&5
   24619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24620   (exit $ac_status); } && {
   24621 	 test -z "$ac_c_werror_flag" ||
   24622 	 test ! -s conftest.err
   24623        } && test -s conftest.$ac_objext; then
   24624   :
   24625 else
   24626   $as_echo "$as_me: failed program was:" >&5
   24627 sed 's/^/| /' conftest.$ac_ext >&5
   24628 
   24629 	ac_cv_type_ssize_t=yes
   24630 fi
   24631 
   24632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24633 else
   24634   $as_echo "$as_me: failed program was:" >&5
   24635 sed 's/^/| /' conftest.$ac_ext >&5
   24636 
   24637 
   24638 fi
   24639 
   24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24641 fi
   24642 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
   24643 $as_echo "$ac_cv_type_ssize_t" >&6; }
   24644 if test "x$ac_cv_type_ssize_t" = x""yes; then
   24645   :
   24646 else
   24647 
   24648 cat >>confdefs.h <<_ACEOF
   24649 #define ssize_t int
   24650 _ACEOF
   24651 
   24652 fi
   24653 
   24654 
   24655 
   24656 for ac_func in vprintf
   24657 do
   24658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   24659 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
   24660 $as_echo_n "checking for $ac_func... " >&6; }
   24661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   24662   $as_echo_n "(cached) " >&6
   24663 else
   24664   cat >conftest.$ac_ext <<_ACEOF
   24665 /* confdefs.h.  */
   24666 _ACEOF
   24667 cat confdefs.h >>conftest.$ac_ext
   24668 cat >>conftest.$ac_ext <<_ACEOF
   24669 /* end confdefs.h.  */
   24670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   24671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   24672 #define $ac_func innocuous_$ac_func
   24673 
   24674 /* System header to define __stub macros and hopefully few prototypes,
   24675     which can conflict with char $ac_func (); below.
   24676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   24677     <limits.h> exists even on freestanding compilers.  */
   24678 
   24679 #ifdef __STDC__
   24680 # include <limits.h>
   24681 #else
   24682 # include <assert.h>
   24683 #endif
   24684 
   24685 #undef $ac_func
   24686 
   24687 /* Override any GCC internal prototype to avoid an error.
   24688    Use char because int might match the return type of a GCC
   24689    builtin and then its argument prototype would still apply.  */
   24690 #ifdef __cplusplus
   24691 extern "C"
   24692 #endif
   24693 char $ac_func ();
   24694 /* The GNU C library defines this for functions which it implements
   24695     to always fail with ENOSYS.  Some functions are actually named
   24696     something starting with __ and the normal name is an alias.  */
   24697 #if defined __stub_$ac_func || defined __stub___$ac_func
   24698 choke me
   24699 #endif
   24700 
   24701 int
   24702 main ()
   24703 {
   24704 return $ac_func ();
   24705   ;
   24706   return 0;
   24707 }
   24708 _ACEOF
   24709 rm -f conftest.$ac_objext conftest$ac_exeext
   24710 if { (ac_try="$ac_link"
   24711 case "(($ac_try" in
   24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24713   *) ac_try_echo=$ac_try;;
   24714 esac
   24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24716 $as_echo "$ac_try_echo") >&5
   24717   (eval "$ac_link") 2>conftest.er1
   24718   ac_status=$?
   24719   grep -v '^ *+' conftest.er1 >conftest.err
   24720   rm -f conftest.er1
   24721   cat conftest.err >&5
   24722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24723   (exit $ac_status); } && {
   24724 	 test -z "$ac_c_werror_flag" ||
   24725 	 test ! -s conftest.err
   24726        } && test -s conftest$ac_exeext && {
   24727 	 test "$cross_compiling" = yes ||
   24728 	 $as_test_x conftest$ac_exeext
   24729        }; then
   24730   eval "$as_ac_var=yes"
   24731 else
   24732   $as_echo "$as_me: failed program was:" >&5
   24733 sed 's/^/| /' conftest.$ac_ext >&5
   24734 
   24735 	eval "$as_ac_var=no"
   24736 fi
   24737 
   24738 rm -rf conftest.dSYM
   24739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   24740       conftest$ac_exeext conftest.$ac_ext
   24741 fi
   24742 ac_res=`eval 'as_val=${'$as_ac_var'}
   24743 		 $as_echo "$as_val"'`
   24744 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   24745 $as_echo "$ac_res" >&6; }
   24746 as_val=`eval 'as_val=${'$as_ac_var'}
   24747 		 $as_echo "$as_val"'`
   24748    if test "x$as_val" = x""yes; then
   24749   cat >>confdefs.h <<_ACEOF
   24750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   24751 _ACEOF
   24752 
   24753 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
   24754 $as_echo_n "checking for _doprnt... " >&6; }
   24755 if test "${ac_cv_func__doprnt+set}" = set; then
   24756   $as_echo_n "(cached) " >&6
   24757 else
   24758   cat >conftest.$ac_ext <<_ACEOF
   24759 /* confdefs.h.  */
   24760 _ACEOF
   24761 cat confdefs.h >>conftest.$ac_ext
   24762 cat >>conftest.$ac_ext <<_ACEOF
   24763 /* end confdefs.h.  */
   24764 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
   24765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   24766 #define _doprnt innocuous__doprnt
   24767 
   24768 /* System header to define __stub macros and hopefully few prototypes,
   24769     which can conflict with char _doprnt (); below.
   24770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   24771     <limits.h> exists even on freestanding compilers.  */
   24772 
   24773 #ifdef __STDC__
   24774 # include <limits.h>
   24775 #else
   24776 # include <assert.h>
   24777 #endif
   24778 
   24779 #undef _doprnt
   24780 
   24781 /* Override any GCC internal prototype to avoid an error.
   24782    Use char because int might match the return type of a GCC
   24783    builtin and then its argument prototype would still apply.  */
   24784 #ifdef __cplusplus
   24785 extern "C"
   24786 #endif
   24787 char _doprnt ();
   24788 /* The GNU C library defines this for functions which it implements
   24789     to always fail with ENOSYS.  Some functions are actually named
   24790     something starting with __ and the normal name is an alias.  */
   24791 #if defined __stub__doprnt || defined __stub____doprnt
   24792 choke me
   24793 #endif
   24794 
   24795 int
   24796 main ()
   24797 {
   24798 return _doprnt ();
   24799   ;
   24800   return 0;
   24801 }
   24802 _ACEOF
   24803 rm -f conftest.$ac_objext conftest$ac_exeext
   24804 if { (ac_try="$ac_link"
   24805 case "(($ac_try" in
   24806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24807   *) ac_try_echo=$ac_try;;
   24808 esac
   24809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   24810 $as_echo "$ac_try_echo") >&5
   24811   (eval "$ac_link") 2>conftest.er1
   24812   ac_status=$?
   24813   grep -v '^ *+' conftest.er1 >conftest.err
   24814   rm -f conftest.er1
   24815   cat conftest.err >&5
   24816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24817   (exit $ac_status); } && {
   24818 	 test -z "$ac_c_werror_flag" ||
   24819 	 test ! -s conftest.err
   24820        } && test -s conftest$ac_exeext && {
   24821 	 test "$cross_compiling" = yes ||
   24822 	 $as_test_x conftest$ac_exeext
   24823        }; then
   24824   ac_cv_func__doprnt=yes
   24825 else
   24826   $as_echo "$as_me: failed program was:" >&5
   24827 sed 's/^/| /' conftest.$ac_ext >&5
   24828 
   24829 	ac_cv_func__doprnt=no
   24830 fi
   24831 
   24832 rm -rf conftest.dSYM
   24833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   24834       conftest$ac_exeext conftest.$ac_ext
   24835 fi
   24836 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
   24837 $as_echo "$ac_cv_func__doprnt" >&6; }
   24838 if test "x$ac_cv_func__doprnt" = x""yes; then
   24839 
   24840 cat >>confdefs.h <<\_ACEOF
   24841 #define HAVE_DOPRNT 1
   24842 _ACEOF
   24843 
   24844 fi
   24845 
   24846 fi
   24847 done
   24848 
   24849 
   24850 
   24851 
   24852 
   24853 
   24854   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
   24855 $as_echo_n "checking whether NLS is requested... " >&6; }
   24856     # Check whether --enable-nls was given.
   24857 if test "${enable_nls+set}" = set; then
   24858   enableval=$enable_nls; USE_NLS=$enableval
   24859 else
   24860   USE_NLS=yes
   24861 fi
   24862 
   24863   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
   24864 $as_echo "$USE_NLS" >&6; }
   24865 
   24866 
   24867 
   24868 
   24869       GETTEXT_MACRO_VERSION=0.17
   24870 
   24871 
   24872 
   24873 
   24874 # Prepare PATH_SEPARATOR.
   24875 # The user is always right.
   24876 if test "${PATH_SEPARATOR+set}" != set; then
   24877   echo "#! /bin/sh" >conf$$.sh
   24878   echo  "exit 0"   >>conf$$.sh
   24879   chmod +x conf$$.sh
   24880   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   24881     PATH_SEPARATOR=';'
   24882   else
   24883     PATH_SEPARATOR=:
   24884   fi
   24885   rm -f conf$$.sh
   24886 fi
   24887 
   24888 # Find out how to test for executable files. Don't use a zero-byte file,
   24889 # as systems may use methods other than mode bits to determine executability.
   24890 cat >conf$$.file <<_ASEOF
   24891 #! /bin/sh
   24892 exit 0
   24893 _ASEOF
   24894 chmod +x conf$$.file
   24895 if test -x conf$$.file >/dev/null 2>&1; then
   24896   ac_executable_p="test -x"
   24897 else
   24898   ac_executable_p="test -f"
   24899 fi
   24900 rm -f conf$$.file
   24901 
   24902 # Extract the first word of "msgfmt", so it can be a program name with args.
   24903 set dummy msgfmt; ac_word=$2
   24904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   24905 $as_echo_n "checking for $ac_word... " >&6; }
   24906 if test "${ac_cv_path_MSGFMT+set}" = set; then
   24907   $as_echo_n "(cached) " >&6
   24908 else
   24909   case "$MSGFMT" in
   24910   [\\/]* | ?:[\\/]*)
   24911     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
   24912     ;;
   24913   *)
   24914     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   24915     for ac_dir in $PATH; do
   24916       IFS="$ac_save_IFS"
   24917       test -z "$ac_dir" && ac_dir=.
   24918       for ac_exec_ext in '' $ac_executable_extensions; do
   24919         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   24920           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   24921           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
   24922      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   24923             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
   24924             break 2
   24925           fi
   24926         fi
   24927       done
   24928     done
   24929     IFS="$ac_save_IFS"
   24930   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
   24931     ;;
   24932 esac
   24933 fi
   24934 MSGFMT="$ac_cv_path_MSGFMT"
   24935 if test "$MSGFMT" != ":"; then
   24936   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
   24937 $as_echo "$MSGFMT" >&6; }
   24938 else
   24939   { $as_echo "$as_me:$LINENO: result: no" >&5
   24940 $as_echo "no" >&6; }
   24941 fi
   24942 
   24943   # Extract the first word of "gmsgfmt", so it can be a program name with args.
   24944 set dummy gmsgfmt; ac_word=$2
   24945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   24946 $as_echo_n "checking for $ac_word... " >&6; }
   24947 if test "${ac_cv_path_GMSGFMT+set}" = set; then
   24948   $as_echo_n "(cached) " >&6
   24949 else
   24950   case $GMSGFMT in
   24951   [\\/]* | ?:[\\/]*)
   24952   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
   24953   ;;
   24954   *)
   24955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   24956 for as_dir in $PATH
   24957 do
   24958   IFS=$as_save_IFS
   24959   test -z "$as_dir" && as_dir=.
   24960   for ac_exec_ext in '' $ac_executable_extensions; do
   24961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   24962     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
   24963     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   24964     break 2
   24965   fi
   24966 done
   24967 done
   24968 IFS=$as_save_IFS
   24969 
   24970   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
   24971   ;;
   24972 esac
   24973 fi
   24974 GMSGFMT=$ac_cv_path_GMSGFMT
   24975 if test -n "$GMSGFMT"; then
   24976   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
   24977 $as_echo "$GMSGFMT" >&6; }
   24978 else
   24979   { $as_echo "$as_me:$LINENO: result: no" >&5
   24980 $as_echo "no" >&6; }
   24981 fi
   24982 
   24983 
   24984 
   24985     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   24986     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
   24987     *) MSGFMT_015=$MSGFMT ;;
   24988   esac
   24989 
   24990   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   24991     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
   24992     *) GMSGFMT_015=$GMSGFMT ;;
   24993   esac
   24994 
   24995 
   24996 
   24997 # Prepare PATH_SEPARATOR.
   24998 # The user is always right.
   24999 if test "${PATH_SEPARATOR+set}" != set; then
   25000   echo "#! /bin/sh" >conf$$.sh
   25001   echo  "exit 0"   >>conf$$.sh
   25002   chmod +x conf$$.sh
   25003   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   25004     PATH_SEPARATOR=';'
   25005   else
   25006     PATH_SEPARATOR=:
   25007   fi
   25008   rm -f conf$$.sh
   25009 fi
   25010 
   25011 # Find out how to test for executable files. Don't use a zero-byte file,
   25012 # as systems may use methods other than mode bits to determine executability.
   25013 cat >conf$$.file <<_ASEOF
   25014 #! /bin/sh
   25015 exit 0
   25016 _ASEOF
   25017 chmod +x conf$$.file
   25018 if test -x conf$$.file >/dev/null 2>&1; then
   25019   ac_executable_p="test -x"
   25020 else
   25021   ac_executable_p="test -f"
   25022 fi
   25023 rm -f conf$$.file
   25024 
   25025 # Extract the first word of "xgettext", so it can be a program name with args.
   25026 set dummy xgettext; ac_word=$2
   25027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   25028 $as_echo_n "checking for $ac_word... " >&6; }
   25029 if test "${ac_cv_path_XGETTEXT+set}" = set; then
   25030   $as_echo_n "(cached) " >&6
   25031 else
   25032   case "$XGETTEXT" in
   25033   [\\/]* | ?:[\\/]*)
   25034     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
   25035     ;;
   25036   *)
   25037     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   25038     for ac_dir in $PATH; do
   25039       IFS="$ac_save_IFS"
   25040       test -z "$ac_dir" && ac_dir=.
   25041       for ac_exec_ext in '' $ac_executable_extensions; do
   25042         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   25043           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   25044           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
   25045      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   25046             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
   25047             break 2
   25048           fi
   25049         fi
   25050       done
   25051     done
   25052     IFS="$ac_save_IFS"
   25053   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
   25054     ;;
   25055 esac
   25056 fi
   25057 XGETTEXT="$ac_cv_path_XGETTEXT"
   25058 if test "$XGETTEXT" != ":"; then
   25059   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
   25060 $as_echo "$XGETTEXT" >&6; }
   25061 else
   25062   { $as_echo "$as_me:$LINENO: result: no" >&5
   25063 $as_echo "no" >&6; }
   25064 fi
   25065 
   25066     rm -f messages.po
   25067 
   25068     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
   25069     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
   25070     *) XGETTEXT_015=$XGETTEXT ;;
   25071   esac
   25072 
   25073 
   25074 
   25075 # Prepare PATH_SEPARATOR.
   25076 # The user is always right.
   25077 if test "${PATH_SEPARATOR+set}" != set; then
   25078   echo "#! /bin/sh" >conf$$.sh
   25079   echo  "exit 0"   >>conf$$.sh
   25080   chmod +x conf$$.sh
   25081   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   25082     PATH_SEPARATOR=';'
   25083   else
   25084     PATH_SEPARATOR=:
   25085   fi
   25086   rm -f conf$$.sh
   25087 fi
   25088 
   25089 # Find out how to test for executable files. Don't use a zero-byte file,
   25090 # as systems may use methods other than mode bits to determine executability.
   25091 cat >conf$$.file <<_ASEOF
   25092 #! /bin/sh
   25093 exit 0
   25094 _ASEOF
   25095 chmod +x conf$$.file
   25096 if test -x conf$$.file >/dev/null 2>&1; then
   25097   ac_executable_p="test -x"
   25098 else
   25099   ac_executable_p="test -f"
   25100 fi
   25101 rm -f conf$$.file
   25102 
   25103 # Extract the first word of "msgmerge", so it can be a program name with args.
   25104 set dummy msgmerge; ac_word=$2
   25105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
   25106 $as_echo_n "checking for $ac_word... " >&6; }
   25107 if test "${ac_cv_path_MSGMERGE+set}" = set; then
   25108   $as_echo_n "(cached) " >&6
   25109 else
   25110   case "$MSGMERGE" in
   25111   [\\/]* | ?:[\\/]*)
   25112     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
   25113     ;;
   25114   *)
   25115     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   25116     for ac_dir in $PATH; do
   25117       IFS="$ac_save_IFS"
   25118       test -z "$ac_dir" && ac_dir=.
   25119       for ac_exec_ext in '' $ac_executable_extensions; do
   25120         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   25121           echo "$as_me: trying $ac_dir/$ac_word..." >&5
   25122           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
   25123             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
   25124             break 2
   25125           fi
   25126         fi
   25127       done
   25128     done
   25129     IFS="$ac_save_IFS"
   25130   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
   25131     ;;
   25132 esac
   25133 fi
   25134 MSGMERGE="$ac_cv_path_MSGMERGE"
   25135 if test "$MSGMERGE" != ":"; then
   25136   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
   25137 $as_echo "$MSGMERGE" >&6; }
   25138 else
   25139   { $as_echo "$as_me:$LINENO: result: no" >&5
   25140 $as_echo "no" >&6; }
   25141 fi
   25142 
   25143 
   25144         test -n "$localedir" || localedir='${datadir}/locale'
   25145 
   25146 
   25147     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
   25148 
   25149 
   25150   ac_config_commands="$ac_config_commands po-directories"
   25151 
   25152 
   25153 
   25154       if test "X$prefix" = "XNONE"; then
   25155     acl_final_prefix="$ac_default_prefix"
   25156   else
   25157     acl_final_prefix="$prefix"
   25158   fi
   25159   if test "X$exec_prefix" = "XNONE"; then
   25160     acl_final_exec_prefix='${prefix}'
   25161   else
   25162     acl_final_exec_prefix="$exec_prefix"
   25163   fi
   25164   acl_save_prefix="$prefix"
   25165   prefix="$acl_final_prefix"
   25166   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   25167   prefix="$acl_save_prefix"
   25168 
   25169 
   25170 # Check whether --with-gnu-ld was given.
   25171 if test "${with_gnu_ld+set}" = set; then
   25172   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   25173 else
   25174   with_gnu_ld=no
   25175 fi
   25176 
   25177 # Prepare PATH_SEPARATOR.
   25178 # The user is always right.
   25179 if test "${PATH_SEPARATOR+set}" != set; then
   25180   echo "#! /bin/sh" >conf$$.sh
   25181   echo  "exit 0"   >>conf$$.sh
   25182   chmod +x conf$$.sh
   25183   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   25184     PATH_SEPARATOR=';'
   25185   else
   25186     PATH_SEPARATOR=:
   25187   fi
   25188   rm -f conf$$.sh
   25189 fi
   25190 ac_prog=ld
   25191 if test "$GCC" = yes; then
   25192   # Check if gcc -print-prog-name=ld gives a path.
   25193   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
   25194 $as_echo_n "checking for ld used by GCC... " >&6; }
   25195   case $host in
   25196   *-*-mingw*)
   25197     # gcc leaves a trailing carriage return which upsets mingw
   25198     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   25199   *)
   25200     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   25201   esac
   25202   case $ac_prog in
   25203     # Accept absolute paths.
   25204     [\\/]* | [A-Za-z]:[\\/]*)
   25205       re_direlt='/[^/][^/]*/\.\./'
   25206       # Canonicalize the path of ld
   25207       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   25208       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   25209 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   25210       done
   25211       test -z "$LD" && LD="$ac_prog"
   25212       ;;
   25213   "")
   25214     # If it fails, then pretend we aren't using GCC.
   25215     ac_prog=ld
   25216     ;;
   25217   *)
   25218     # If it is relative, then search for the first ld in PATH.
   25219     with_gnu_ld=unknown
   25220     ;;
   25221   esac
   25222 elif test "$with_gnu_ld" = yes; then
   25223   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
   25224 $as_echo_n "checking for GNU ld... " >&6; }
   25225 else
   25226   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   25227 $as_echo_n "checking for non-GNU ld... " >&6; }
   25228 fi
   25229 if test "${acl_cv_path_LD+set}" = set; then
   25230   $as_echo_n "(cached) " >&6
   25231 else
   25232   if test -z "$LD"; then
   25233   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   25234   for ac_dir in $PATH; do
   25235     test -z "$ac_dir" && ac_dir=.
   25236     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   25237       acl_cv_path_LD="$ac_dir/$ac_prog"
   25238       # Check to see if the program is GNU ld.  I'd rather use --version,
   25239       # but apparently some GNU ld's only accept -v.
   25240       # Break only if it was the GNU/non-GNU ld that we prefer.
   25241       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
   25242       *GNU* | *'with BFD'*)
   25243 	test "$with_gnu_ld" != no && break ;;
   25244       *)
   25245 	test "$with_gnu_ld" != yes && break ;;
   25246       esac
   25247     fi
   25248   done
   25249   IFS="$ac_save_ifs"
   25250 else
   25251   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   25252 fi
   25253 fi
   25254 
   25255 LD="$acl_cv_path_LD"
   25256 if test -n "$LD"; then
   25257   { $as_echo "$as_me:$LINENO: result: $LD" >&5
   25258 $as_echo "$LD" >&6; }
   25259 else
   25260   { $as_echo "$as_me:$LINENO: result: no" >&5
   25261 $as_echo "no" >&6; }
   25262 fi
   25263 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   25264 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   25265    { (exit 1); exit 1; }; }
   25266 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   25267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   25268 if test "${acl_cv_prog_gnu_ld+set}" = set; then
   25269   $as_echo_n "(cached) " >&6
   25270 else
   25271   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   25272 case `$LD -v 2>&1 </dev/null` in
   25273 *GNU* | *'with BFD'*)
   25274   acl_cv_prog_gnu_ld=yes ;;
   25275 *)
   25276   acl_cv_prog_gnu_ld=no ;;
   25277 esac
   25278 fi
   25279 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
   25280 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   25281 with_gnu_ld=$acl_cv_prog_gnu_ld
   25282 
   25283 
   25284 
   25285 
   25286                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
   25287 $as_echo_n "checking for shared library run path origin... " >&6; }
   25288 if test "${acl_cv_rpath+set}" = set; then
   25289   $as_echo_n "(cached) " >&6
   25290 else
   25291 
   25292     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   25293     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   25294     . ./conftest.sh
   25295     rm -f ./conftest.sh
   25296     acl_cv_rpath=done
   25297 
   25298 fi
   25299 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
   25300 $as_echo "$acl_cv_rpath" >&6; }
   25301   wl="$acl_cv_wl"
   25302   acl_libext="$acl_cv_libext"
   25303   acl_shlibext="$acl_cv_shlibext"
   25304   acl_libname_spec="$acl_cv_libname_spec"
   25305   acl_library_names_spec="$acl_cv_library_names_spec"
   25306   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   25307   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   25308   acl_hardcode_direct="$acl_cv_hardcode_direct"
   25309   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
   25310     # Check whether --enable-rpath was given.
   25311 if test "${enable_rpath+set}" = set; then
   25312   enableval=$enable_rpath; :
   25313 else
   25314   enable_rpath=yes
   25315 fi
   25316 
   25317 
   25318 
   25319 
   25320   acl_libdirstem=lib
   25321   acl_libdirstem2=
   25322   case "$host_os" in
   25323     solaris*)
   25324                                     { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
   25325 $as_echo_n "checking for 64-bit host... " >&6; }
   25326 if test "${gl_cv_solaris_64bit+set}" = set; then
   25327   $as_echo_n "(cached) " >&6
   25328 else
   25329   cat >conftest.$ac_ext <<_ACEOF
   25330 /* confdefs.h.  */
   25331 _ACEOF
   25332 cat confdefs.h >>conftest.$ac_ext
   25333 cat >>conftest.$ac_ext <<_ACEOF
   25334 /* end confdefs.h.  */
   25335 
   25336 #ifdef _LP64
   25337 sixtyfour bits
   25338 #endif
   25339 
   25340 _ACEOF
   25341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   25342   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
   25343   gl_cv_solaris_64bit=yes
   25344 else
   25345   gl_cv_solaris_64bit=no
   25346 fi
   25347 rm -f conftest*
   25348 
   25349 
   25350 fi
   25351 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
   25352 $as_echo "$gl_cv_solaris_64bit" >&6; }
   25353       if test $gl_cv_solaris_64bit = yes; then
   25354         acl_libdirstem=lib/64
   25355         case "$host_cpu" in
   25356           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
   25357           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
   25358         esac
   25359       fi
   25360       ;;
   25361     *)
   25362       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
   25363       if test -n "$searchpath"; then
   25364         acl_save_IFS="${IFS= 	}"; IFS=":"
   25365         for searchdir in $searchpath; do
   25366           if test -d "$searchdir"; then
   25367             case "$searchdir" in
   25368               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
   25369               */../ | */.. )
   25370                 # Better ignore directories of this form. They are misleading.
   25371                 ;;
   25372               *) searchdir=`cd "$searchdir" && pwd`
   25373                  case "$searchdir" in
   25374                    */lib64 ) acl_libdirstem=lib64 ;;
   25375                  esac ;;
   25376             esac
   25377           fi
   25378         done
   25379         IFS="$acl_save_IFS"
   25380       fi
   25381       ;;
   25382   esac
   25383   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
   25384 
   25385 
   25386 
   25387 
   25388 
   25389 
   25390 
   25391 
   25392 
   25393 
   25394 
   25395 
   25396     use_additional=yes
   25397 
   25398   acl_save_prefix="$prefix"
   25399   prefix="$acl_final_prefix"
   25400   acl_save_exec_prefix="$exec_prefix"
   25401   exec_prefix="$acl_final_exec_prefix"
   25402 
   25403     eval additional_includedir=\"$includedir\"
   25404     eval additional_libdir=\"$libdir\"
   25405 
   25406   exec_prefix="$acl_save_exec_prefix"
   25407   prefix="$acl_save_prefix"
   25408 
   25409 
   25410 # Check whether --with-libiconv-prefix was given.
   25411 if test "${with_libiconv_prefix+set}" = set; then
   25412   withval=$with_libiconv_prefix;
   25413     if test "X$withval" = "Xno"; then
   25414       use_additional=no
   25415     else
   25416       if test "X$withval" = "X"; then
   25417 
   25418   acl_save_prefix="$prefix"
   25419   prefix="$acl_final_prefix"
   25420   acl_save_exec_prefix="$exec_prefix"
   25421   exec_prefix="$acl_final_exec_prefix"
   25422 
   25423           eval additional_includedir=\"$includedir\"
   25424           eval additional_libdir=\"$libdir\"
   25425 
   25426   exec_prefix="$acl_save_exec_prefix"
   25427   prefix="$acl_save_prefix"
   25428 
   25429       else
   25430         additional_includedir="$withval/include"
   25431         additional_libdir="$withval/$acl_libdirstem"
   25432         if test "$acl_libdirstem2" != "$acl_libdirstem" \
   25433            && ! test -d "$withval/$acl_libdirstem"; then
   25434           additional_libdir="$withval/$acl_libdirstem2"
   25435         fi
   25436       fi
   25437     fi
   25438 
   25439 fi
   25440 
   25441       LIBICONV=
   25442   LTLIBICONV=
   25443   INCICONV=
   25444   LIBICONV_PREFIX=
   25445       HAVE_LIBICONV=
   25446   rpathdirs=
   25447   ltrpathdirs=
   25448   names_already_handled=
   25449   names_next_round='iconv '
   25450   while test -n "$names_next_round"; do
   25451     names_this_round="$names_next_round"
   25452     names_next_round=
   25453     for name in $names_this_round; do
   25454       already_handled=
   25455       for n in $names_already_handled; do
   25456         if test "$n" = "$name"; then
   25457           already_handled=yes
   25458           break
   25459         fi
   25460       done
   25461       if test -z "$already_handled"; then
   25462         names_already_handled="$names_already_handled $name"
   25463                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   25464         eval value=\"\$HAVE_LIB$uppername\"
   25465         if test -n "$value"; then
   25466           if test "$value" = yes; then
   25467             eval value=\"\$LIB$uppername\"
   25468             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   25469             eval value=\"\$LTLIB$uppername\"
   25470             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   25471           else
   25472                                     :
   25473           fi
   25474         else
   25475                               found_dir=
   25476           found_la=
   25477           found_so=
   25478           found_a=
   25479           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
   25480           if test -n "$acl_shlibext"; then
   25481             shrext=".$acl_shlibext"             # typically: shrext=.so
   25482           else
   25483             shrext=
   25484           fi
   25485           if test $use_additional = yes; then
   25486             dir="$additional_libdir"
   25487                                     if test -n "$acl_shlibext"; then
   25488               if test -f "$dir/$libname$shrext"; then
   25489                 found_dir="$dir"
   25490                 found_so="$dir/$libname$shrext"
   25491               else
   25492                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   25493                   ver=`(cd "$dir" && \
   25494                         for f in "$libname$shrext".*; do echo "$f"; done \
   25495                         | sed -e "s,^$libname$shrext\\\\.,," \
   25496                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   25497                         | sed 1q ) 2>/dev/null`
   25498                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   25499                     found_dir="$dir"
   25500                     found_so="$dir/$libname$shrext.$ver"
   25501                   fi
   25502                 else
   25503                   eval library_names=\"$acl_library_names_spec\"
   25504                   for f in $library_names; do
   25505                     if test -f "$dir/$f"; then
   25506                       found_dir="$dir"
   25507                       found_so="$dir/$f"
   25508                       break
   25509                     fi
   25510                   done
   25511                 fi
   25512               fi
   25513             fi
   25514                         if test "X$found_dir" = "X"; then
   25515               if test -f "$dir/$libname.$acl_libext"; then
   25516                 found_dir="$dir"
   25517                 found_a="$dir/$libname.$acl_libext"
   25518               fi
   25519             fi
   25520             if test "X$found_dir" != "X"; then
   25521               if test -f "$dir/$libname.la"; then
   25522                 found_la="$dir/$libname.la"
   25523               fi
   25524             fi
   25525           fi
   25526           if test "X$found_dir" = "X"; then
   25527             for x in $LDFLAGS $LTLIBICONV; do
   25528 
   25529   acl_save_prefix="$prefix"
   25530   prefix="$acl_final_prefix"
   25531   acl_save_exec_prefix="$exec_prefix"
   25532   exec_prefix="$acl_final_exec_prefix"
   25533   eval x=\"$x\"
   25534   exec_prefix="$acl_save_exec_prefix"
   25535   prefix="$acl_save_prefix"
   25536 
   25537               case "$x" in
   25538                 -L*)
   25539                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   25540                                     if test -n "$acl_shlibext"; then
   25541                     if test -f "$dir/$libname$shrext"; then
   25542                       found_dir="$dir"
   25543                       found_so="$dir/$libname$shrext"
   25544                     else
   25545                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   25546                         ver=`(cd "$dir" && \
   25547                               for f in "$libname$shrext".*; do echo "$f"; done \
   25548                               | sed -e "s,^$libname$shrext\\\\.,," \
   25549                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   25550                               | sed 1q ) 2>/dev/null`
   25551                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   25552                           found_dir="$dir"
   25553                           found_so="$dir/$libname$shrext.$ver"
   25554                         fi
   25555                       else
   25556                         eval library_names=\"$acl_library_names_spec\"
   25557                         for f in $library_names; do
   25558                           if test -f "$dir/$f"; then
   25559                             found_dir="$dir"
   25560                             found_so="$dir/$f"
   25561                             break
   25562                           fi
   25563                         done
   25564                       fi
   25565                     fi
   25566                   fi
   25567                                     if test "X$found_dir" = "X"; then
   25568                     if test -f "$dir/$libname.$acl_libext"; then
   25569                       found_dir="$dir"
   25570                       found_a="$dir/$libname.$acl_libext"
   25571                     fi
   25572                   fi
   25573                   if test "X$found_dir" != "X"; then
   25574                     if test -f "$dir/$libname.la"; then
   25575                       found_la="$dir/$libname.la"
   25576                     fi
   25577                   fi
   25578                   ;;
   25579               esac
   25580               if test "X$found_dir" != "X"; then
   25581                 break
   25582               fi
   25583             done
   25584           fi
   25585           if test "X$found_dir" != "X"; then
   25586                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   25587             if test "X$found_so" != "X"; then
   25588                                                         if test "$enable_rpath" = no \
   25589                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
   25590                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
   25591                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   25592               else
   25593                                                                                 haveit=
   25594                 for x in $ltrpathdirs; do
   25595                   if test "X$x" = "X$found_dir"; then
   25596                     haveit=yes
   25597                     break
   25598                   fi
   25599                 done
   25600                 if test -z "$haveit"; then
   25601                   ltrpathdirs="$ltrpathdirs $found_dir"
   25602                 fi
   25603                                 if test "$acl_hardcode_direct" = yes; then
   25604                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   25605                 else
   25606                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
   25607                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   25608                                                             haveit=
   25609                     for x in $rpathdirs; do
   25610                       if test "X$x" = "X$found_dir"; then
   25611                         haveit=yes
   25612                         break
   25613                       fi
   25614                     done
   25615                     if test -z "$haveit"; then
   25616                       rpathdirs="$rpathdirs $found_dir"
   25617                     fi
   25618                   else
   25619                                                                                 haveit=
   25620                     for x in $LDFLAGS $LIBICONV; do
   25621 
   25622   acl_save_prefix="$prefix"
   25623   prefix="$acl_final_prefix"
   25624   acl_save_exec_prefix="$exec_prefix"
   25625   exec_prefix="$acl_final_exec_prefix"
   25626   eval x=\"$x\"
   25627   exec_prefix="$acl_save_exec_prefix"
   25628   prefix="$acl_save_prefix"
   25629 
   25630                       if test "X$x" = "X-L$found_dir"; then
   25631                         haveit=yes
   25632                         break
   25633                       fi
   25634                     done
   25635                     if test -z "$haveit"; then
   25636                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   25637                     fi
   25638                     if test "$acl_hardcode_minus_L" != no; then
   25639                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   25640                     else
   25641                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   25642                     fi
   25643                   fi
   25644                 fi
   25645               fi
   25646             else
   25647               if test "X$found_a" != "X"; then
   25648                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   25649               else
   25650                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   25651               fi
   25652             fi
   25653                         additional_includedir=
   25654             case "$found_dir" in
   25655               */$acl_libdirstem | */$acl_libdirstem/)
   25656                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
   25657                 if test "$name" = 'iconv'; then
   25658                   LIBICONV_PREFIX="$basedir"
   25659                 fi
   25660                 additional_includedir="$basedir/include"
   25661                 ;;
   25662               */$acl_libdirstem2 | */$acl_libdirstem2/)
   25663                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
   25664                 if test "$name" = 'iconv'; then
   25665                   LIBICONV_PREFIX="$basedir"
   25666                 fi
   25667                 additional_includedir="$basedir/include"
   25668                 ;;
   25669             esac
   25670             if test "X$additional_includedir" != "X"; then
   25671                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   25672                 haveit=
   25673                 if test "X$additional_includedir" = "X/usr/local/include"; then
   25674                   if test -n "$GCC"; then
   25675                     case $host_os in
   25676                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   25677                     esac
   25678                   fi
   25679                 fi
   25680                 if test -z "$haveit"; then
   25681                   for x in $CPPFLAGS $INCICONV; do
   25682 
   25683   acl_save_prefix="$prefix"
   25684   prefix="$acl_final_prefix"
   25685   acl_save_exec_prefix="$exec_prefix"
   25686   exec_prefix="$acl_final_exec_prefix"
   25687   eval x=\"$x\"
   25688   exec_prefix="$acl_save_exec_prefix"
   25689   prefix="$acl_save_prefix"
   25690 
   25691                     if test "X$x" = "X-I$additional_includedir"; then
   25692                       haveit=yes
   25693                       break
   25694                     fi
   25695                   done
   25696                   if test -z "$haveit"; then
   25697                     if test -d "$additional_includedir"; then
   25698                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   25699                     fi
   25700                   fi
   25701                 fi
   25702               fi
   25703             fi
   25704                         if test -n "$found_la"; then
   25705                                                         save_libdir="$libdir"
   25706               case "$found_la" in
   25707                 */* | *\\*) . "$found_la" ;;
   25708                 *) . "./$found_la" ;;
   25709               esac
   25710               libdir="$save_libdir"
   25711                             for dep in $dependency_libs; do
   25712                 case "$dep" in
   25713                   -L*)
   25714                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   25715                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
   25716                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
   25717                       haveit=
   25718                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
   25719                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
   25720                         if test -n "$GCC"; then
   25721                           case $host_os in
   25722                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   25723                           esac
   25724                         fi
   25725                       fi
   25726                       if test -z "$haveit"; then
   25727                         haveit=
   25728                         for x in $LDFLAGS $LIBICONV; do
   25729 
   25730   acl_save_prefix="$prefix"
   25731   prefix="$acl_final_prefix"
   25732   acl_save_exec_prefix="$exec_prefix"
   25733   exec_prefix="$acl_final_exec_prefix"
   25734   eval x=\"$x\"
   25735   exec_prefix="$acl_save_exec_prefix"
   25736   prefix="$acl_save_prefix"
   25737 
   25738                           if test "X$x" = "X-L$additional_libdir"; then
   25739                             haveit=yes
   25740                             break
   25741                           fi
   25742                         done
   25743                         if test -z "$haveit"; then
   25744                           if test -d "$additional_libdir"; then
   25745                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   25746                           fi
   25747                         fi
   25748                         haveit=
   25749                         for x in $LDFLAGS $LTLIBICONV; do
   25750 
   25751   acl_save_prefix="$prefix"
   25752   prefix="$acl_final_prefix"
   25753   acl_save_exec_prefix="$exec_prefix"
   25754   exec_prefix="$acl_final_exec_prefix"
   25755   eval x=\"$x\"
   25756   exec_prefix="$acl_save_exec_prefix"
   25757   prefix="$acl_save_prefix"
   25758 
   25759                           if test "X$x" = "X-L$additional_libdir"; then
   25760                             haveit=yes
   25761                             break
   25762                           fi
   25763                         done
   25764                         if test -z "$haveit"; then
   25765                           if test -d "$additional_libdir"; then
   25766                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   25767                           fi
   25768                         fi
   25769                       fi
   25770                     fi
   25771                     ;;
   25772                   -R*)
   25773                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   25774                     if test "$enable_rpath" != no; then
   25775                                                                   haveit=
   25776                       for x in $rpathdirs; do
   25777                         if test "X$x" = "X$dir"; then
   25778                           haveit=yes
   25779                           break
   25780                         fi
   25781                       done
   25782                       if test -z "$haveit"; then
   25783                         rpathdirs="$rpathdirs $dir"
   25784                       fi
   25785                                                                   haveit=
   25786                       for x in $ltrpathdirs; do
   25787                         if test "X$x" = "X$dir"; then
   25788                           haveit=yes
   25789                           break
   25790                         fi
   25791                       done
   25792                       if test -z "$haveit"; then
   25793                         ltrpathdirs="$ltrpathdirs $dir"
   25794                       fi
   25795                     fi
   25796                     ;;
   25797                   -l*)
   25798                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   25799                     ;;
   25800                   *.la)
   25801                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   25802                     ;;
   25803                   *)
   25804                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   25805                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   25806                     ;;
   25807                 esac
   25808               done
   25809             fi
   25810           else
   25811                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   25812             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   25813           fi
   25814         fi
   25815       fi
   25816     done
   25817   done
   25818   if test "X$rpathdirs" != "X"; then
   25819     if test -n "$acl_hardcode_libdir_separator"; then
   25820                         alldirs=
   25821       for found_dir in $rpathdirs; do
   25822         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
   25823       done
   25824             acl_save_libdir="$libdir"
   25825       libdir="$alldirs"
   25826       eval flag=\"$acl_hardcode_libdir_flag_spec\"
   25827       libdir="$acl_save_libdir"
   25828       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   25829     else
   25830             for found_dir in $rpathdirs; do
   25831         acl_save_libdir="$libdir"
   25832         libdir="$found_dir"
   25833         eval flag=\"$acl_hardcode_libdir_flag_spec\"
   25834         libdir="$acl_save_libdir"
   25835         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   25836       done
   25837     fi
   25838   fi
   25839   if test "X$ltrpathdirs" != "X"; then
   25840             for found_dir in $ltrpathdirs; do
   25841       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   25842     done
   25843   fi
   25844 
   25845 
   25846 
   25847 
   25848 
   25849 
   25850 
   25851 
   25852 
   25853 
   25854 
   25855 
   25856 
   25857 
   25858 
   25859 
   25860 
   25861 
   25862 
   25863 
   25864 
   25865 
   25866 
   25867 
   25868 
   25869 
   25870 
   25871 
   25872 
   25873 
   25874     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
   25875 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
   25876 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
   25877   $as_echo_n "(cached) " >&6
   25878 else
   25879   gt_save_LIBS="$LIBS"
   25880      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   25881      cat >conftest.$ac_ext <<_ACEOF
   25882 /* confdefs.h.  */
   25883 _ACEOF
   25884 cat confdefs.h >>conftest.$ac_ext
   25885 cat >>conftest.$ac_ext <<_ACEOF
   25886 /* end confdefs.h.  */
   25887 #include <CoreFoundation/CFPreferences.h>
   25888 int
   25889 main ()
   25890 {
   25891 CFPreferencesCopyAppValue(NULL, NULL)
   25892   ;
   25893   return 0;
   25894 }
   25895 _ACEOF
   25896 rm -f conftest.$ac_objext conftest$ac_exeext
   25897 if { (ac_try="$ac_link"
   25898 case "(($ac_try" in
   25899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25900   *) ac_try_echo=$ac_try;;
   25901 esac
   25902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   25903 $as_echo "$ac_try_echo") >&5
   25904   (eval "$ac_link") 2>conftest.er1
   25905   ac_status=$?
   25906   grep -v '^ *+' conftest.er1 >conftest.err
   25907   rm -f conftest.er1
   25908   cat conftest.err >&5
   25909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25910   (exit $ac_status); } && {
   25911 	 test -z "$ac_c_werror_flag" ||
   25912 	 test ! -s conftest.err
   25913        } && test -s conftest$ac_exeext && {
   25914 	 test "$cross_compiling" = yes ||
   25915 	 $as_test_x conftest$ac_exeext
   25916        }; then
   25917   gt_cv_func_CFPreferencesCopyAppValue=yes
   25918 else
   25919   $as_echo "$as_me: failed program was:" >&5
   25920 sed 's/^/| /' conftest.$ac_ext >&5
   25921 
   25922 	gt_cv_func_CFPreferencesCopyAppValue=no
   25923 fi
   25924 
   25925 rm -rf conftest.dSYM
   25926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   25927       conftest$ac_exeext conftest.$ac_ext
   25928      LIBS="$gt_save_LIBS"
   25929 fi
   25930 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
   25931 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
   25932   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
   25933 
   25934 cat >>confdefs.h <<\_ACEOF
   25935 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
   25936 _ACEOF
   25937 
   25938   fi
   25939     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
   25940 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
   25941 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
   25942   $as_echo_n "(cached) " >&6
   25943 else
   25944   gt_save_LIBS="$LIBS"
   25945      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   25946      cat >conftest.$ac_ext <<_ACEOF
   25947 /* confdefs.h.  */
   25948 _ACEOF
   25949 cat confdefs.h >>conftest.$ac_ext
   25950 cat >>conftest.$ac_ext <<_ACEOF
   25951 /* end confdefs.h.  */
   25952 #include <CoreFoundation/CFLocale.h>
   25953 int
   25954 main ()
   25955 {
   25956 CFLocaleCopyCurrent();
   25957   ;
   25958   return 0;
   25959 }
   25960 _ACEOF
   25961 rm -f conftest.$ac_objext conftest$ac_exeext
   25962 if { (ac_try="$ac_link"
   25963 case "(($ac_try" in
   25964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25965   *) ac_try_echo=$ac_try;;
   25966 esac
   25967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   25968 $as_echo "$ac_try_echo") >&5
   25969   (eval "$ac_link") 2>conftest.er1
   25970   ac_status=$?
   25971   grep -v '^ *+' conftest.er1 >conftest.err
   25972   rm -f conftest.er1
   25973   cat conftest.err >&5
   25974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25975   (exit $ac_status); } && {
   25976 	 test -z "$ac_c_werror_flag" ||
   25977 	 test ! -s conftest.err
   25978        } && test -s conftest$ac_exeext && {
   25979 	 test "$cross_compiling" = yes ||
   25980 	 $as_test_x conftest$ac_exeext
   25981        }; then
   25982   gt_cv_func_CFLocaleCopyCurrent=yes
   25983 else
   25984   $as_echo "$as_me: failed program was:" >&5
   25985 sed 's/^/| /' conftest.$ac_ext >&5
   25986 
   25987 	gt_cv_func_CFLocaleCopyCurrent=no
   25988 fi
   25989 
   25990 rm -rf conftest.dSYM
   25991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   25992       conftest$ac_exeext conftest.$ac_ext
   25993      LIBS="$gt_save_LIBS"
   25994 fi
   25995 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
   25996 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
   25997   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
   25998 
   25999 cat >>confdefs.h <<\_ACEOF
   26000 #define HAVE_CFLOCALECOPYCURRENT 1
   26001 _ACEOF
   26002 
   26003   fi
   26004   INTL_MACOSX_LIBS=
   26005   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
   26006     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
   26007   fi
   26008 
   26009 
   26010 
   26011 
   26012 
   26013 
   26014   LIBINTL=
   26015   LTLIBINTL=
   26016   POSUB=
   26017 
   26018     case " $gt_needs " in
   26019     *" need-formatstring-macros "*) gt_api_version=3 ;;
   26020     *" need-ngettext "*) gt_api_version=2 ;;
   26021     *) gt_api_version=1 ;;
   26022   esac
   26023   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
   26024   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
   26025 
   26026     if test "$USE_NLS" = "yes"; then
   26027     gt_use_preinstalled_gnugettext=no
   26028 
   26029 
   26030         if test $gt_api_version -ge 3; then
   26031           gt_revision_test_code='
   26032 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   26033 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
   26034 #endif
   26035 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
   26036 '
   26037         else
   26038           gt_revision_test_code=
   26039         fi
   26040         if test $gt_api_version -ge 2; then
   26041           gt_expression_test_code=' + * ngettext ("", "", 0)'
   26042         else
   26043           gt_expression_test_code=
   26044         fi
   26045 
   26046         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
   26047 $as_echo_n "checking for GNU gettext in libc... " >&6; }
   26048 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
   26049   $as_echo_n "(cached) " >&6
   26050 else
   26051   cat >conftest.$ac_ext <<_ACEOF
   26052 /* confdefs.h.  */
   26053 _ACEOF
   26054 cat confdefs.h >>conftest.$ac_ext
   26055 cat >>conftest.$ac_ext <<_ACEOF
   26056 /* end confdefs.h.  */
   26057 #include <libintl.h>
   26058 $gt_revision_test_code
   26059 extern int _nl_msg_cat_cntr;
   26060 extern int *_nl_domain_bindings;
   26061 int
   26062 main ()
   26063 {
   26064 bindtextdomain ("", "");
   26065 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
   26066   ;
   26067   return 0;
   26068 }
   26069 _ACEOF
   26070 rm -f conftest.$ac_objext conftest$ac_exeext
   26071 if { (ac_try="$ac_link"
   26072 case "(($ac_try" in
   26073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26074   *) ac_try_echo=$ac_try;;
   26075 esac
   26076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26077 $as_echo "$ac_try_echo") >&5
   26078   (eval "$ac_link") 2>conftest.er1
   26079   ac_status=$?
   26080   grep -v '^ *+' conftest.er1 >conftest.err
   26081   rm -f conftest.er1
   26082   cat conftest.err >&5
   26083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26084   (exit $ac_status); } && {
   26085 	 test -z "$ac_c_werror_flag" ||
   26086 	 test ! -s conftest.err
   26087        } && test -s conftest$ac_exeext && {
   26088 	 test "$cross_compiling" = yes ||
   26089 	 $as_test_x conftest$ac_exeext
   26090        }; then
   26091   eval "$gt_func_gnugettext_libc=yes"
   26092 else
   26093   $as_echo "$as_me: failed program was:" >&5
   26094 sed 's/^/| /' conftest.$ac_ext >&5
   26095 
   26096 	eval "$gt_func_gnugettext_libc=no"
   26097 fi
   26098 
   26099 rm -rf conftest.dSYM
   26100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26101       conftest$ac_exeext conftest.$ac_ext
   26102 fi
   26103 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
   26104 		 $as_echo "$as_val"'`
   26105 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   26106 $as_echo "$ac_res" >&6; }
   26107 
   26108         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
   26109 
   26110 
   26111 
   26112 
   26113 
   26114           am_save_CPPFLAGS="$CPPFLAGS"
   26115 
   26116   for element in $INCICONV; do
   26117     haveit=
   26118     for x in $CPPFLAGS; do
   26119 
   26120   acl_save_prefix="$prefix"
   26121   prefix="$acl_final_prefix"
   26122   acl_save_exec_prefix="$exec_prefix"
   26123   exec_prefix="$acl_final_exec_prefix"
   26124   eval x=\"$x\"
   26125   exec_prefix="$acl_save_exec_prefix"
   26126   prefix="$acl_save_prefix"
   26127 
   26128       if test "X$x" = "X$element"; then
   26129         haveit=yes
   26130         break
   26131       fi
   26132     done
   26133     if test -z "$haveit"; then
   26134       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   26135     fi
   26136   done
   26137 
   26138 
   26139   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
   26140 $as_echo_n "checking for iconv... " >&6; }
   26141 if test "${am_cv_func_iconv+set}" = set; then
   26142   $as_echo_n "(cached) " >&6
   26143 else
   26144 
   26145     am_cv_func_iconv="no, consider installing GNU libiconv"
   26146     am_cv_lib_iconv=no
   26147     cat >conftest.$ac_ext <<_ACEOF
   26148 /* confdefs.h.  */
   26149 _ACEOF
   26150 cat confdefs.h >>conftest.$ac_ext
   26151 cat >>conftest.$ac_ext <<_ACEOF
   26152 /* end confdefs.h.  */
   26153 #include <stdlib.h>
   26154 #include <iconv.h>
   26155 int
   26156 main ()
   26157 {
   26158 iconv_t cd = iconv_open("","");
   26159        iconv(cd,NULL,NULL,NULL,NULL);
   26160        iconv_close(cd);
   26161   ;
   26162   return 0;
   26163 }
   26164 _ACEOF
   26165 rm -f conftest.$ac_objext conftest$ac_exeext
   26166 if { (ac_try="$ac_link"
   26167 case "(($ac_try" in
   26168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26169   *) ac_try_echo=$ac_try;;
   26170 esac
   26171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26172 $as_echo "$ac_try_echo") >&5
   26173   (eval "$ac_link") 2>conftest.er1
   26174   ac_status=$?
   26175   grep -v '^ *+' conftest.er1 >conftest.err
   26176   rm -f conftest.er1
   26177   cat conftest.err >&5
   26178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26179   (exit $ac_status); } && {
   26180 	 test -z "$ac_c_werror_flag" ||
   26181 	 test ! -s conftest.err
   26182        } && test -s conftest$ac_exeext && {
   26183 	 test "$cross_compiling" = yes ||
   26184 	 $as_test_x conftest$ac_exeext
   26185        }; then
   26186   am_cv_func_iconv=yes
   26187 else
   26188   $as_echo "$as_me: failed program was:" >&5
   26189 sed 's/^/| /' conftest.$ac_ext >&5
   26190 
   26191 
   26192 fi
   26193 
   26194 rm -rf conftest.dSYM
   26195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26196       conftest$ac_exeext conftest.$ac_ext
   26197     if test "$am_cv_func_iconv" != yes; then
   26198       am_save_LIBS="$LIBS"
   26199       LIBS="$LIBS $LIBICONV"
   26200       cat >conftest.$ac_ext <<_ACEOF
   26201 /* confdefs.h.  */
   26202 _ACEOF
   26203 cat confdefs.h >>conftest.$ac_ext
   26204 cat >>conftest.$ac_ext <<_ACEOF
   26205 /* end confdefs.h.  */
   26206 #include <stdlib.h>
   26207 #include <iconv.h>
   26208 int
   26209 main ()
   26210 {
   26211 iconv_t cd = iconv_open("","");
   26212          iconv(cd,NULL,NULL,NULL,NULL);
   26213          iconv_close(cd);
   26214   ;
   26215   return 0;
   26216 }
   26217 _ACEOF
   26218 rm -f conftest.$ac_objext conftest$ac_exeext
   26219 if { (ac_try="$ac_link"
   26220 case "(($ac_try" in
   26221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26222   *) ac_try_echo=$ac_try;;
   26223 esac
   26224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26225 $as_echo "$ac_try_echo") >&5
   26226   (eval "$ac_link") 2>conftest.er1
   26227   ac_status=$?
   26228   grep -v '^ *+' conftest.er1 >conftest.err
   26229   rm -f conftest.er1
   26230   cat conftest.err >&5
   26231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26232   (exit $ac_status); } && {
   26233 	 test -z "$ac_c_werror_flag" ||
   26234 	 test ! -s conftest.err
   26235        } && test -s conftest$ac_exeext && {
   26236 	 test "$cross_compiling" = yes ||
   26237 	 $as_test_x conftest$ac_exeext
   26238        }; then
   26239   am_cv_lib_iconv=yes
   26240         am_cv_func_iconv=yes
   26241 else
   26242   $as_echo "$as_me: failed program was:" >&5
   26243 sed 's/^/| /' conftest.$ac_ext >&5
   26244 
   26245 
   26246 fi
   26247 
   26248 rm -rf conftest.dSYM
   26249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26250       conftest$ac_exeext conftest.$ac_ext
   26251       LIBS="$am_save_LIBS"
   26252     fi
   26253 
   26254 fi
   26255 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
   26256 $as_echo "$am_cv_func_iconv" >&6; }
   26257   if test "$am_cv_func_iconv" = yes; then
   26258     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
   26259 $as_echo_n "checking for working iconv... " >&6; }
   26260 if test "${am_cv_func_iconv_works+set}" = set; then
   26261   $as_echo_n "(cached) " >&6
   26262 else
   26263 
   26264             am_save_LIBS="$LIBS"
   26265       if test $am_cv_lib_iconv = yes; then
   26266         LIBS="$LIBS $LIBICONV"
   26267       fi
   26268       if test "$cross_compiling" = yes; then
   26269   case "$host_os" in
   26270            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
   26271            *)            am_cv_func_iconv_works="guessing yes" ;;
   26272          esac
   26273 else
   26274   cat >conftest.$ac_ext <<_ACEOF
   26275 /* confdefs.h.  */
   26276 _ACEOF
   26277 cat confdefs.h >>conftest.$ac_ext
   26278 cat >>conftest.$ac_ext <<_ACEOF
   26279 /* end confdefs.h.  */
   26280 
   26281 #include <iconv.h>
   26282 #include <string.h>
   26283 int main ()
   26284 {
   26285   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
   26286      returns.  */
   26287   {
   26288     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
   26289     if (cd_utf8_to_88591 != (iconv_t)(-1))
   26290       {
   26291         static const char input[] = "\342\202\254"; /* EURO SIGN */
   26292         char buf[10];
   26293         const char *inptr = input;
   26294         size_t inbytesleft = strlen (input);
   26295         char *outptr = buf;
   26296         size_t outbytesleft = sizeof (buf);
   26297         size_t res = iconv (cd_utf8_to_88591,
   26298                             (char **) &inptr, &inbytesleft,
   26299                             &outptr, &outbytesleft);
   26300         if (res == 0)
   26301           return 1;
   26302       }
   26303   }
   26304 #if 0 /* This bug could be worked around by the caller.  */
   26305   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
   26306   {
   26307     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
   26308     if (cd_88591_to_utf8 != (iconv_t)(-1))
   26309       {
   26310         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
   26311         char buf[50];
   26312         const char *inptr = input;
   26313         size_t inbytesleft = strlen (input);
   26314         char *outptr = buf;
   26315         size_t outbytesleft = sizeof (buf);
   26316         size_t res = iconv (cd_88591_to_utf8,
   26317                             (char **) &inptr, &inbytesleft,
   26318                             &outptr, &outbytesleft);
   26319         if ((int)res > 0)
   26320           return 1;
   26321       }
   26322   }
   26323 #endif
   26324   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
   26325      provided.  */
   26326   if (/* Try standardized names.  */
   26327       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
   26328       /* Try IRIX, OSF/1 names.  */
   26329       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
   26330       /* Try AIX names.  */
   26331       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
   26332       /* Try HP-UX names.  */
   26333       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
   26334     return 1;
   26335   return 0;
   26336 }
   26337 _ACEOF
   26338 rm -f conftest$ac_exeext
   26339 if { (ac_try="$ac_link"
   26340 case "(($ac_try" in
   26341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26342   *) ac_try_echo=$ac_try;;
   26343 esac
   26344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26345 $as_echo "$ac_try_echo") >&5
   26346   (eval "$ac_link") 2>&5
   26347   ac_status=$?
   26348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   26350   { (case "(($ac_try" in
   26351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26352   *) ac_try_echo=$ac_try;;
   26353 esac
   26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26355 $as_echo "$ac_try_echo") >&5
   26356   (eval "$ac_try") 2>&5
   26357   ac_status=$?
   26358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26359   (exit $ac_status); }; }; then
   26360   am_cv_func_iconv_works=yes
   26361 else
   26362   $as_echo "$as_me: program exited with status $ac_status" >&5
   26363 $as_echo "$as_me: failed program was:" >&5
   26364 sed 's/^/| /' conftest.$ac_ext >&5
   26365 
   26366 ( exit $ac_status )
   26367 am_cv_func_iconv_works=no
   26368 fi
   26369 rm -rf conftest.dSYM
   26370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   26371 fi
   26372 
   26373 
   26374       LIBS="$am_save_LIBS"
   26375 
   26376 fi
   26377 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
   26378 $as_echo "$am_cv_func_iconv_works" >&6; }
   26379     case "$am_cv_func_iconv_works" in
   26380       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
   26381       *)   am_func_iconv=yes ;;
   26382     esac
   26383   else
   26384     am_func_iconv=no am_cv_lib_iconv=no
   26385   fi
   26386   if test "$am_func_iconv" = yes; then
   26387 
   26388 cat >>confdefs.h <<\_ACEOF
   26389 #define HAVE_ICONV 1
   26390 _ACEOF
   26391 
   26392   fi
   26393   if test "$am_cv_lib_iconv" = yes; then
   26394     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
   26395 $as_echo_n "checking how to link with libiconv... " >&6; }
   26396     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
   26397 $as_echo "$LIBICONV" >&6; }
   26398   else
   26399             CPPFLAGS="$am_save_CPPFLAGS"
   26400     LIBICONV=
   26401     LTLIBICONV=
   26402   fi
   26403 
   26404 
   26405 
   26406 
   26407 
   26408 
   26409 
   26410 
   26411 
   26412 
   26413 
   26414     use_additional=yes
   26415 
   26416   acl_save_prefix="$prefix"
   26417   prefix="$acl_final_prefix"
   26418   acl_save_exec_prefix="$exec_prefix"
   26419   exec_prefix="$acl_final_exec_prefix"
   26420 
   26421     eval additional_includedir=\"$includedir\"
   26422     eval additional_libdir=\"$libdir\"
   26423 
   26424   exec_prefix="$acl_save_exec_prefix"
   26425   prefix="$acl_save_prefix"
   26426 
   26427 
   26428 # Check whether --with-libintl-prefix was given.
   26429 if test "${with_libintl_prefix+set}" = set; then
   26430   withval=$with_libintl_prefix;
   26431     if test "X$withval" = "Xno"; then
   26432       use_additional=no
   26433     else
   26434       if test "X$withval" = "X"; then
   26435 
   26436   acl_save_prefix="$prefix"
   26437   prefix="$acl_final_prefix"
   26438   acl_save_exec_prefix="$exec_prefix"
   26439   exec_prefix="$acl_final_exec_prefix"
   26440 
   26441           eval additional_includedir=\"$includedir\"
   26442           eval additional_libdir=\"$libdir\"
   26443 
   26444   exec_prefix="$acl_save_exec_prefix"
   26445   prefix="$acl_save_prefix"
   26446 
   26447       else
   26448         additional_includedir="$withval/include"
   26449         additional_libdir="$withval/$acl_libdirstem"
   26450         if test "$acl_libdirstem2" != "$acl_libdirstem" \
   26451            && ! test -d "$withval/$acl_libdirstem"; then
   26452           additional_libdir="$withval/$acl_libdirstem2"
   26453         fi
   26454       fi
   26455     fi
   26456 
   26457 fi
   26458 
   26459       LIBINTL=
   26460   LTLIBINTL=
   26461   INCINTL=
   26462   LIBINTL_PREFIX=
   26463       HAVE_LIBINTL=
   26464   rpathdirs=
   26465   ltrpathdirs=
   26466   names_already_handled=
   26467   names_next_round='intl '
   26468   while test -n "$names_next_round"; do
   26469     names_this_round="$names_next_round"
   26470     names_next_round=
   26471     for name in $names_this_round; do
   26472       already_handled=
   26473       for n in $names_already_handled; do
   26474         if test "$n" = "$name"; then
   26475           already_handled=yes
   26476           break
   26477         fi
   26478       done
   26479       if test -z "$already_handled"; then
   26480         names_already_handled="$names_already_handled $name"
   26481                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   26482         eval value=\"\$HAVE_LIB$uppername\"
   26483         if test -n "$value"; then
   26484           if test "$value" = yes; then
   26485             eval value=\"\$LIB$uppername\"
   26486             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
   26487             eval value=\"\$LTLIB$uppername\"
   26488             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
   26489           else
   26490                                     :
   26491           fi
   26492         else
   26493                               found_dir=
   26494           found_la=
   26495           found_so=
   26496           found_a=
   26497           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
   26498           if test -n "$acl_shlibext"; then
   26499             shrext=".$acl_shlibext"             # typically: shrext=.so
   26500           else
   26501             shrext=
   26502           fi
   26503           if test $use_additional = yes; then
   26504             dir="$additional_libdir"
   26505                                     if test -n "$acl_shlibext"; then
   26506               if test -f "$dir/$libname$shrext"; then
   26507                 found_dir="$dir"
   26508                 found_so="$dir/$libname$shrext"
   26509               else
   26510                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   26511                   ver=`(cd "$dir" && \
   26512                         for f in "$libname$shrext".*; do echo "$f"; done \
   26513                         | sed -e "s,^$libname$shrext\\\\.,," \
   26514                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   26515                         | sed 1q ) 2>/dev/null`
   26516                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   26517                     found_dir="$dir"
   26518                     found_so="$dir/$libname$shrext.$ver"
   26519                   fi
   26520                 else
   26521                   eval library_names=\"$acl_library_names_spec\"
   26522                   for f in $library_names; do
   26523                     if test -f "$dir/$f"; then
   26524                       found_dir="$dir"
   26525                       found_so="$dir/$f"
   26526                       break
   26527                     fi
   26528                   done
   26529                 fi
   26530               fi
   26531             fi
   26532                         if test "X$found_dir" = "X"; then
   26533               if test -f "$dir/$libname.$acl_libext"; then
   26534                 found_dir="$dir"
   26535                 found_a="$dir/$libname.$acl_libext"
   26536               fi
   26537             fi
   26538             if test "X$found_dir" != "X"; then
   26539               if test -f "$dir/$libname.la"; then
   26540                 found_la="$dir/$libname.la"
   26541               fi
   26542             fi
   26543           fi
   26544           if test "X$found_dir" = "X"; then
   26545             for x in $LDFLAGS $LTLIBINTL; do
   26546 
   26547   acl_save_prefix="$prefix"
   26548   prefix="$acl_final_prefix"
   26549   acl_save_exec_prefix="$exec_prefix"
   26550   exec_prefix="$acl_final_exec_prefix"
   26551   eval x=\"$x\"
   26552   exec_prefix="$acl_save_exec_prefix"
   26553   prefix="$acl_save_prefix"
   26554 
   26555               case "$x" in
   26556                 -L*)
   26557                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   26558                                     if test -n "$acl_shlibext"; then
   26559                     if test -f "$dir/$libname$shrext"; then
   26560                       found_dir="$dir"
   26561                       found_so="$dir/$libname$shrext"
   26562                     else
   26563                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
   26564                         ver=`(cd "$dir" && \
   26565                               for f in "$libname$shrext".*; do echo "$f"; done \
   26566                               | sed -e "s,^$libname$shrext\\\\.,," \
   26567                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
   26568                               | sed 1q ) 2>/dev/null`
   26569                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
   26570                           found_dir="$dir"
   26571                           found_so="$dir/$libname$shrext.$ver"
   26572                         fi
   26573                       else
   26574                         eval library_names=\"$acl_library_names_spec\"
   26575                         for f in $library_names; do
   26576                           if test -f "$dir/$f"; then
   26577                             found_dir="$dir"
   26578                             found_so="$dir/$f"
   26579                             break
   26580                           fi
   26581                         done
   26582                       fi
   26583                     fi
   26584                   fi
   26585                                     if test "X$found_dir" = "X"; then
   26586                     if test -f "$dir/$libname.$acl_libext"; then
   26587                       found_dir="$dir"
   26588                       found_a="$dir/$libname.$acl_libext"
   26589                     fi
   26590                   fi
   26591                   if test "X$found_dir" != "X"; then
   26592                     if test -f "$dir/$libname.la"; then
   26593                       found_la="$dir/$libname.la"
   26594                     fi
   26595                   fi
   26596                   ;;
   26597               esac
   26598               if test "X$found_dir" != "X"; then
   26599                 break
   26600               fi
   26601             done
   26602           fi
   26603           if test "X$found_dir" != "X"; then
   26604                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
   26605             if test "X$found_so" != "X"; then
   26606                                                         if test "$enable_rpath" = no \
   26607                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
   26608                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
   26609                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   26610               else
   26611                                                                                 haveit=
   26612                 for x in $ltrpathdirs; do
   26613                   if test "X$x" = "X$found_dir"; then
   26614                     haveit=yes
   26615                     break
   26616                   fi
   26617                 done
   26618                 if test -z "$haveit"; then
   26619                   ltrpathdirs="$ltrpathdirs $found_dir"
   26620                 fi
   26621                                 if test "$acl_hardcode_direct" = yes; then
   26622                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   26623                 else
   26624                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
   26625                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   26626                                                             haveit=
   26627                     for x in $rpathdirs; do
   26628                       if test "X$x" = "X$found_dir"; then
   26629                         haveit=yes
   26630                         break
   26631                       fi
   26632                     done
   26633                     if test -z "$haveit"; then
   26634                       rpathdirs="$rpathdirs $found_dir"
   26635                     fi
   26636                   else
   26637                                                                                 haveit=
   26638                     for x in $LDFLAGS $LIBINTL; do
   26639 
   26640   acl_save_prefix="$prefix"
   26641   prefix="$acl_final_prefix"
   26642   acl_save_exec_prefix="$exec_prefix"
   26643   exec_prefix="$acl_final_exec_prefix"
   26644   eval x=\"$x\"
   26645   exec_prefix="$acl_save_exec_prefix"
   26646   prefix="$acl_save_prefix"
   26647 
   26648                       if test "X$x" = "X-L$found_dir"; then
   26649                         haveit=yes
   26650                         break
   26651                       fi
   26652                     done
   26653                     if test -z "$haveit"; then
   26654                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
   26655                     fi
   26656                     if test "$acl_hardcode_minus_L" != no; then
   26657                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   26658                     else
   26659                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   26660                     fi
   26661                   fi
   26662                 fi
   26663               fi
   26664             else
   26665               if test "X$found_a" != "X"; then
   26666                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
   26667               else
   26668                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
   26669               fi
   26670             fi
   26671                         additional_includedir=
   26672             case "$found_dir" in
   26673               */$acl_libdirstem | */$acl_libdirstem/)
   26674                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
   26675                 if test "$name" = 'intl'; then
   26676                   LIBINTL_PREFIX="$basedir"
   26677                 fi
   26678                 additional_includedir="$basedir/include"
   26679                 ;;
   26680               */$acl_libdirstem2 | */$acl_libdirstem2/)
   26681                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
   26682                 if test "$name" = 'intl'; then
   26683                   LIBINTL_PREFIX="$basedir"
   26684                 fi
   26685                 additional_includedir="$basedir/include"
   26686                 ;;
   26687             esac
   26688             if test "X$additional_includedir" != "X"; then
   26689                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   26690                 haveit=
   26691                 if test "X$additional_includedir" = "X/usr/local/include"; then
   26692                   if test -n "$GCC"; then
   26693                     case $host_os in
   26694                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   26695                     esac
   26696                   fi
   26697                 fi
   26698                 if test -z "$haveit"; then
   26699                   for x in $CPPFLAGS $INCINTL; do
   26700 
   26701   acl_save_prefix="$prefix"
   26702   prefix="$acl_final_prefix"
   26703   acl_save_exec_prefix="$exec_prefix"
   26704   exec_prefix="$acl_final_exec_prefix"
   26705   eval x=\"$x\"
   26706   exec_prefix="$acl_save_exec_prefix"
   26707   prefix="$acl_save_prefix"
   26708 
   26709                     if test "X$x" = "X-I$additional_includedir"; then
   26710                       haveit=yes
   26711                       break
   26712                     fi
   26713                   done
   26714                   if test -z "$haveit"; then
   26715                     if test -d "$additional_includedir"; then
   26716                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
   26717                     fi
   26718                   fi
   26719                 fi
   26720               fi
   26721             fi
   26722                         if test -n "$found_la"; then
   26723                                                         save_libdir="$libdir"
   26724               case "$found_la" in
   26725                 */* | *\\*) . "$found_la" ;;
   26726                 *) . "./$found_la" ;;
   26727               esac
   26728               libdir="$save_libdir"
   26729                             for dep in $dependency_libs; do
   26730                 case "$dep" in
   26731                   -L*)
   26732                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   26733                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
   26734                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
   26735                       haveit=
   26736                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
   26737                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
   26738                         if test -n "$GCC"; then
   26739                           case $host_os in
   26740                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
   26741                           esac
   26742                         fi
   26743                       fi
   26744                       if test -z "$haveit"; then
   26745                         haveit=
   26746                         for x in $LDFLAGS $LIBINTL; do
   26747 
   26748   acl_save_prefix="$prefix"
   26749   prefix="$acl_final_prefix"
   26750   acl_save_exec_prefix="$exec_prefix"
   26751   exec_prefix="$acl_final_exec_prefix"
   26752   eval x=\"$x\"
   26753   exec_prefix="$acl_save_exec_prefix"
   26754   prefix="$acl_save_prefix"
   26755 
   26756                           if test "X$x" = "X-L$additional_libdir"; then
   26757                             haveit=yes
   26758                             break
   26759                           fi
   26760                         done
   26761                         if test -z "$haveit"; then
   26762                           if test -d "$additional_libdir"; then
   26763                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
   26764                           fi
   26765                         fi
   26766                         haveit=
   26767                         for x in $LDFLAGS $LTLIBINTL; do
   26768 
   26769   acl_save_prefix="$prefix"
   26770   prefix="$acl_final_prefix"
   26771   acl_save_exec_prefix="$exec_prefix"
   26772   exec_prefix="$acl_final_exec_prefix"
   26773   eval x=\"$x\"
   26774   exec_prefix="$acl_save_exec_prefix"
   26775   prefix="$acl_save_prefix"
   26776 
   26777                           if test "X$x" = "X-L$additional_libdir"; then
   26778                             haveit=yes
   26779                             break
   26780                           fi
   26781                         done
   26782                         if test -z "$haveit"; then
   26783                           if test -d "$additional_libdir"; then
   26784                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
   26785                           fi
   26786                         fi
   26787                       fi
   26788                     fi
   26789                     ;;
   26790                   -R*)
   26791                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   26792                     if test "$enable_rpath" != no; then
   26793                                                                   haveit=
   26794                       for x in $rpathdirs; do
   26795                         if test "X$x" = "X$dir"; then
   26796                           haveit=yes
   26797                           break
   26798                         fi
   26799                       done
   26800                       if test -z "$haveit"; then
   26801                         rpathdirs="$rpathdirs $dir"
   26802                       fi
   26803                                                                   haveit=
   26804                       for x in $ltrpathdirs; do
   26805                         if test "X$x" = "X$dir"; then
   26806                           haveit=yes
   26807                           break
   26808                         fi
   26809                       done
   26810                       if test -z "$haveit"; then
   26811                         ltrpathdirs="$ltrpathdirs $dir"
   26812                       fi
   26813                     fi
   26814                     ;;
   26815                   -l*)
   26816                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   26817                     ;;
   26818                   *.la)
   26819                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   26820                     ;;
   26821                   *)
   26822                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
   26823                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
   26824                     ;;
   26825                 esac
   26826               done
   26827             fi
   26828           else
   26829                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   26830             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
   26831           fi
   26832         fi
   26833       fi
   26834     done
   26835   done
   26836   if test "X$rpathdirs" != "X"; then
   26837     if test -n "$acl_hardcode_libdir_separator"; then
   26838                         alldirs=
   26839       for found_dir in $rpathdirs; do
   26840         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
   26841       done
   26842             acl_save_libdir="$libdir"
   26843       libdir="$alldirs"
   26844       eval flag=\"$acl_hardcode_libdir_flag_spec\"
   26845       libdir="$acl_save_libdir"
   26846       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   26847     else
   26848             for found_dir in $rpathdirs; do
   26849         acl_save_libdir="$libdir"
   26850         libdir="$found_dir"
   26851         eval flag=\"$acl_hardcode_libdir_flag_spec\"
   26852         libdir="$acl_save_libdir"
   26853         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   26854       done
   26855     fi
   26856   fi
   26857   if test "X$ltrpathdirs" != "X"; then
   26858             for found_dir in $ltrpathdirs; do
   26859       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
   26860     done
   26861   fi
   26862 
   26863 
   26864 
   26865 
   26866 
   26867 
   26868           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
   26869 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
   26870 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
   26871   $as_echo_n "(cached) " >&6
   26872 else
   26873   gt_save_CPPFLAGS="$CPPFLAGS"
   26874             CPPFLAGS="$CPPFLAGS $INCINTL"
   26875             gt_save_LIBS="$LIBS"
   26876             LIBS="$LIBS $LIBINTL"
   26877                         cat >conftest.$ac_ext <<_ACEOF
   26878 /* confdefs.h.  */
   26879 _ACEOF
   26880 cat confdefs.h >>conftest.$ac_ext
   26881 cat >>conftest.$ac_ext <<_ACEOF
   26882 /* end confdefs.h.  */
   26883 #include <libintl.h>
   26884 $gt_revision_test_code
   26885 extern int _nl_msg_cat_cntr;
   26886 extern
   26887 #ifdef __cplusplus
   26888 "C"
   26889 #endif
   26890 const char *_nl_expand_alias (const char *);
   26891 int
   26892 main ()
   26893 {
   26894 bindtextdomain ("", "");
   26895 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
   26896   ;
   26897   return 0;
   26898 }
   26899 _ACEOF
   26900 rm -f conftest.$ac_objext conftest$ac_exeext
   26901 if { (ac_try="$ac_link"
   26902 case "(($ac_try" in
   26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26904   *) ac_try_echo=$ac_try;;
   26905 esac
   26906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26907 $as_echo "$ac_try_echo") >&5
   26908   (eval "$ac_link") 2>conftest.er1
   26909   ac_status=$?
   26910   grep -v '^ *+' conftest.er1 >conftest.err
   26911   rm -f conftest.er1
   26912   cat conftest.err >&5
   26913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26914   (exit $ac_status); } && {
   26915 	 test -z "$ac_c_werror_flag" ||
   26916 	 test ! -s conftest.err
   26917        } && test -s conftest$ac_exeext && {
   26918 	 test "$cross_compiling" = yes ||
   26919 	 $as_test_x conftest$ac_exeext
   26920        }; then
   26921   eval "$gt_func_gnugettext_libintl=yes"
   26922 else
   26923   $as_echo "$as_me: failed program was:" >&5
   26924 sed 's/^/| /' conftest.$ac_ext >&5
   26925 
   26926 	eval "$gt_func_gnugettext_libintl=no"
   26927 fi
   26928 
   26929 rm -rf conftest.dSYM
   26930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26931       conftest$ac_exeext conftest.$ac_ext
   26932                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
   26933               LIBS="$LIBS $LIBICONV"
   26934               cat >conftest.$ac_ext <<_ACEOF
   26935 /* confdefs.h.  */
   26936 _ACEOF
   26937 cat confdefs.h >>conftest.$ac_ext
   26938 cat >>conftest.$ac_ext <<_ACEOF
   26939 /* end confdefs.h.  */
   26940 #include <libintl.h>
   26941 $gt_revision_test_code
   26942 extern int _nl_msg_cat_cntr;
   26943 extern
   26944 #ifdef __cplusplus
   26945 "C"
   26946 #endif
   26947 const char *_nl_expand_alias (const char *);
   26948 int
   26949 main ()
   26950 {
   26951 bindtextdomain ("", "");
   26952 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
   26953   ;
   26954   return 0;
   26955 }
   26956 _ACEOF
   26957 rm -f conftest.$ac_objext conftest$ac_exeext
   26958 if { (ac_try="$ac_link"
   26959 case "(($ac_try" in
   26960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26961   *) ac_try_echo=$ac_try;;
   26962 esac
   26963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   26964 $as_echo "$ac_try_echo") >&5
   26965   (eval "$ac_link") 2>conftest.er1
   26966   ac_status=$?
   26967   grep -v '^ *+' conftest.er1 >conftest.err
   26968   rm -f conftest.er1
   26969   cat conftest.err >&5
   26970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26971   (exit $ac_status); } && {
   26972 	 test -z "$ac_c_werror_flag" ||
   26973 	 test ! -s conftest.err
   26974        } && test -s conftest$ac_exeext && {
   26975 	 test "$cross_compiling" = yes ||
   26976 	 $as_test_x conftest$ac_exeext
   26977        }; then
   26978   LIBINTL="$LIBINTL $LIBICONV"
   26979                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
   26980                 eval "$gt_func_gnugettext_libintl=yes"
   26981 
   26982 else
   26983   $as_echo "$as_me: failed program was:" >&5
   26984 sed 's/^/| /' conftest.$ac_ext >&5
   26985 
   26986 
   26987 fi
   26988 
   26989 rm -rf conftest.dSYM
   26990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26991       conftest$ac_exeext conftest.$ac_ext
   26992             fi
   26993             CPPFLAGS="$gt_save_CPPFLAGS"
   26994             LIBS="$gt_save_LIBS"
   26995 fi
   26996 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
   26997 		 $as_echo "$as_val"'`
   26998 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
   26999 $as_echo "$ac_res" >&6; }
   27000         fi
   27001 
   27002                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
   27003            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
   27004                 && test "$PACKAGE" != gettext-runtime \
   27005                 && test "$PACKAGE" != gettext-tools; }; then
   27006           gt_use_preinstalled_gnugettext=yes
   27007         else
   27008                     LIBINTL=
   27009           LTLIBINTL=
   27010           INCINTL=
   27011         fi
   27012 
   27013 
   27014 
   27015     if test -n "$INTL_MACOSX_LIBS"; then
   27016       if test "$gt_use_preinstalled_gnugettext" = "yes" \
   27017          || test "$nls_cv_use_gnu_gettext" = "yes"; then
   27018                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
   27019         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
   27020       fi
   27021     fi
   27022 
   27023     if test "$gt_use_preinstalled_gnugettext" = "yes" \
   27024        || test "$nls_cv_use_gnu_gettext" = "yes"; then
   27025 
   27026 cat >>confdefs.h <<\_ACEOF
   27027 #define ENABLE_NLS 1
   27028 _ACEOF
   27029 
   27030     else
   27031       USE_NLS=no
   27032     fi
   27033   fi
   27034 
   27035   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
   27036 $as_echo_n "checking whether to use NLS... " >&6; }
   27037   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
   27038 $as_echo "$USE_NLS" >&6; }
   27039   if test "$USE_NLS" = "yes"; then
   27040     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
   27041 $as_echo_n "checking where the gettext function comes from... " >&6; }
   27042     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   27043       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   27044         gt_source="external libintl"
   27045       else
   27046         gt_source="libc"
   27047       fi
   27048     else
   27049       gt_source="included intl directory"
   27050     fi
   27051     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
   27052 $as_echo "$gt_source" >&6; }
   27053   fi
   27054 
   27055   if test "$USE_NLS" = "yes"; then
   27056 
   27057     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   27058       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   27059         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
   27060 $as_echo_n "checking how to link with libintl... " >&6; }
   27061         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
   27062 $as_echo "$LIBINTL" >&6; }
   27063 
   27064   for element in $INCINTL; do
   27065     haveit=
   27066     for x in $CPPFLAGS; do
   27067 
   27068   acl_save_prefix="$prefix"
   27069   prefix="$acl_final_prefix"
   27070   acl_save_exec_prefix="$exec_prefix"
   27071   exec_prefix="$acl_final_exec_prefix"
   27072   eval x=\"$x\"
   27073   exec_prefix="$acl_save_exec_prefix"
   27074   prefix="$acl_save_prefix"
   27075 
   27076       if test "X$x" = "X$element"; then
   27077         haveit=yes
   27078         break
   27079       fi
   27080     done
   27081     if test -z "$haveit"; then
   27082       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   27083     fi
   27084   done
   27085 
   27086       fi
   27087 
   27088 
   27089 cat >>confdefs.h <<\_ACEOF
   27090 #define HAVE_GETTEXT 1
   27091 _ACEOF
   27092 
   27093 
   27094 cat >>confdefs.h <<\_ACEOF
   27095 #define HAVE_DCGETTEXT 1
   27096 _ACEOF
   27097 
   27098     fi
   27099 
   27100         POSUB=po
   27101   fi
   27102 
   27103 
   27104 
   27105     INTLLIBS="$LIBINTL"
   27106 
   27107 
   27108 
   27109 
   27110 
   27111 
   27112 
   27113 
   27114 
   27115 
   27116 
   27117 
   27118 
   27119 
   27120 
   27121 
   27122 
   27123 
   27124 
   27125 
   27126 
   27127 
   27128 
   27129 
   27130 
   27131 
   27132 
   27133 
   27134 
   27135 
   27136 
   27137 
   27138 
   27139 
   27140 
   27141 
   27142 
   27143 
   27144 
   27145 
   27146 
   27147 
   27148 
   27149 
   27150 
   27151 
   27152 
   27153 
   27154 
   27155 
   27156 
   27157 
   27158 
   27159 
   27160 
   27161 
   27162 
   27163 
   27164 
   27165 
   27166 
   27167 
   27168 # Check whether --enable-i18n was given.
   27169 if test "${enable_i18n+set}" = set; then
   27170   enableval=$enable_i18n;
   27171 else
   27172   enable_i18n=yes
   27173 fi
   27174 
   27175 if test "x$enable_i18n" = xno; then
   27176   ac_cv_func_wcscoll=false
   27177 fi
   27178 
   27179 # Check whether --enable-regex-tests was given.
   27180 if test "${enable_regex_tests+set}" = set; then
   27181   enableval=$enable_regex_tests; if test "x$with_included_regex" = xno; then
   27182   enable_regex_tests=no
   27183 fi
   27184 else
   27185   enable_regex_tests=$with_included_regex
   27186 fi
   27187 
   27188 
   27189  if test "x$enable_regex_tests" = xyes; then
   27190   TEST_REGEX_TRUE=
   27191   TEST_REGEX_FALSE='#'
   27192 else
   27193   TEST_REGEX_TRUE='#'
   27194   TEST_REGEX_FALSE=
   27195 fi
   27196 
   27197 if test "x$enable_regex_tests" = xyes; then
   27198 
   27199 cat >>confdefs.h <<_ACEOF
   27200 #define _REGEX_RE_COMP 1
   27201 _ACEOF
   27202 
   27203 fi
   27204 
   27205 # Check whether we are able to follow symlinks
   27206 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
   27207 $as_echo_n "checking for lstat... " >&6; }
   27208 if test "${ac_cv_func_lstat+set}" = set; then
   27209   $as_echo_n "(cached) " >&6
   27210 else
   27211   cat >conftest.$ac_ext <<_ACEOF
   27212 /* confdefs.h.  */
   27213 _ACEOF
   27214 cat confdefs.h >>conftest.$ac_ext
   27215 cat >>conftest.$ac_ext <<_ACEOF
   27216 /* end confdefs.h.  */
   27217 /* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
   27218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27219 #define lstat innocuous_lstat
   27220 
   27221 /* System header to define __stub macros and hopefully few prototypes,
   27222     which can conflict with char lstat (); below.
   27223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27224     <limits.h> exists even on freestanding compilers.  */
   27225 
   27226 #ifdef __STDC__
   27227 # include <limits.h>
   27228 #else
   27229 # include <assert.h>
   27230 #endif
   27231 
   27232 #undef lstat
   27233 
   27234 /* Override any GCC internal prototype to avoid an error.
   27235    Use char because int might match the return type of a GCC
   27236    builtin and then its argument prototype would still apply.  */
   27237 #ifdef __cplusplus
   27238 extern "C"
   27239 #endif
   27240 char lstat ();
   27241 /* The GNU C library defines this for functions which it implements
   27242     to always fail with ENOSYS.  Some functions are actually named
   27243     something starting with __ and the normal name is an alias.  */
   27244 #if defined __stub_lstat || defined __stub___lstat
   27245 choke me
   27246 #endif
   27247 
   27248 int
   27249 main ()
   27250 {
   27251 return lstat ();
   27252   ;
   27253   return 0;
   27254 }
   27255 _ACEOF
   27256 rm -f conftest.$ac_objext conftest$ac_exeext
   27257 if { (ac_try="$ac_link"
   27258 case "(($ac_try" in
   27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27260   *) ac_try_echo=$ac_try;;
   27261 esac
   27262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   27263 $as_echo "$ac_try_echo") >&5
   27264   (eval "$ac_link") 2>conftest.er1
   27265   ac_status=$?
   27266   grep -v '^ *+' conftest.er1 >conftest.err
   27267   rm -f conftest.er1
   27268   cat conftest.err >&5
   27269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27270   (exit $ac_status); } && {
   27271 	 test -z "$ac_c_werror_flag" ||
   27272 	 test ! -s conftest.err
   27273        } && test -s conftest$ac_exeext && {
   27274 	 test "$cross_compiling" = yes ||
   27275 	 $as_test_x conftest$ac_exeext
   27276        }; then
   27277   ac_cv_func_lstat=yes
   27278 else
   27279   $as_echo "$as_me: failed program was:" >&5
   27280 sed 's/^/| /' conftest.$ac_ext >&5
   27281 
   27282 	ac_cv_func_lstat=no
   27283 fi
   27284 
   27285 rm -rf conftest.dSYM
   27286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27287       conftest$ac_exeext conftest.$ac_ext
   27288 fi
   27289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
   27290 $as_echo "$ac_cv_func_lstat" >&6; }
   27291 if test "x$ac_cv_func_lstat" = x""yes; then
   27292   have_lstat=yes
   27293 fi
   27294 
   27295 { $as_echo "$as_me:$LINENO: checking for readlink" >&5
   27296 $as_echo_n "checking for readlink... " >&6; }
   27297 if test "${ac_cv_func_readlink+set}" = set; then
   27298   $as_echo_n "(cached) " >&6
   27299 else
   27300   cat >conftest.$ac_ext <<_ACEOF
   27301 /* confdefs.h.  */
   27302 _ACEOF
   27303 cat confdefs.h >>conftest.$ac_ext
   27304 cat >>conftest.$ac_ext <<_ACEOF
   27305 /* end confdefs.h.  */
   27306 /* Define readlink to an innocuous variant, in case <limits.h> declares readlink.
   27307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27308 #define readlink innocuous_readlink
   27309 
   27310 /* System header to define __stub macros and hopefully few prototypes,
   27311     which can conflict with char readlink (); below.
   27312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27313     <limits.h> exists even on freestanding compilers.  */
   27314 
   27315 #ifdef __STDC__
   27316 # include <limits.h>
   27317 #else
   27318 # include <assert.h>
   27319 #endif
   27320 
   27321 #undef readlink
   27322 
   27323 /* Override any GCC internal prototype to avoid an error.
   27324    Use char because int might match the return type of a GCC
   27325    builtin and then its argument prototype would still apply.  */
   27326 #ifdef __cplusplus
   27327 extern "C"
   27328 #endif
   27329 char readlink ();
   27330 /* The GNU C library defines this for functions which it implements
   27331     to always fail with ENOSYS.  Some functions are actually named
   27332     something starting with __ and the normal name is an alias.  */
   27333 #if defined __stub_readlink || defined __stub___readlink
   27334 choke me
   27335 #endif
   27336 
   27337 int
   27338 main ()
   27339 {
   27340 return readlink ();
   27341   ;
   27342   return 0;
   27343 }
   27344 _ACEOF
   27345 rm -f conftest.$ac_objext conftest$ac_exeext
   27346 if { (ac_try="$ac_link"
   27347 case "(($ac_try" in
   27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27349   *) ac_try_echo=$ac_try;;
   27350 esac
   27351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   27352 $as_echo "$ac_try_echo") >&5
   27353   (eval "$ac_link") 2>conftest.er1
   27354   ac_status=$?
   27355   grep -v '^ *+' conftest.er1 >conftest.err
   27356   rm -f conftest.er1
   27357   cat conftest.err >&5
   27358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27359   (exit $ac_status); } && {
   27360 	 test -z "$ac_c_werror_flag" ||
   27361 	 test ! -s conftest.err
   27362        } && test -s conftest$ac_exeext && {
   27363 	 test "$cross_compiling" = yes ||
   27364 	 $as_test_x conftest$ac_exeext
   27365        }; then
   27366   ac_cv_func_readlink=yes
   27367 else
   27368   $as_echo "$as_me: failed program was:" >&5
   27369 sed 's/^/| /' conftest.$ac_ext >&5
   27370 
   27371 	ac_cv_func_readlink=no
   27372 fi
   27373 
   27374 rm -rf conftest.dSYM
   27375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27376       conftest$ac_exeext conftest.$ac_ext
   27377 fi
   27378 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_readlink" >&5
   27379 $as_echo "$ac_cv_func_readlink" >&6; }
   27380 if test "x$ac_cv_func_readlink" = x""yes; then
   27381   have_readlink=yes
   27382 fi
   27383 
   27384 if test "x$have_lstat" = xyes -a "x$have_readlink" = xyes; then
   27385 
   27386 cat >>confdefs.h <<\_ACEOF
   27387 #define ENABLE_FOLLOW_SYMLINKS /**/
   27388 _ACEOF
   27389 
   27390 fi
   27391 
   27392 # Determine whether we should run UTF-8 tests by checking if cyrillic
   27393 # letters are case-folded properly.  The test for UTF-8 locales (bot
   27394 # in general and specifically for a Russian one) is a bit weak, but it
   27395 # should match exactly what is done in the testsuite.  In fact, sed's
   27396 # logic is portable (though testing it requires care) so it is enough to
   27397 # have a couple of platforms where these tests pass.  Right now, only
   27398 # Windows and HP/UX do not support the tests.
   27399 { $as_echo "$as_me:$LINENO: checking whether UTF-8 case folding tests should pass" >&5
   27400 $as_echo_n "checking whether UTF-8 case folding tests should pass... " >&6; }
   27401 if test "$cross_compiling" = yes; then
   27402   { $as_echo "$as_me:$LINENO: result: don't care (cross compiling)" >&5
   27403 $as_echo "don't care (cross compiling)" >&6; }; XFAIL_TESTS=
   27404 else
   27405   cat >conftest.$ac_ext <<_ACEOF
   27406 /* confdefs.h.  */
   27407 _ACEOF
   27408 cat confdefs.h >>conftest.$ac_ext
   27409 cat >>conftest.$ac_ext <<_ACEOF
   27410 /* end confdefs.h.  */
   27411 
   27412 #include <locale.h>
   27413 #include <string.h>
   27414 #include <stdlib.h>
   27415 #include <wchar.h>
   27416 #ifdef HAVE_WCTYPE_H
   27417 #include <wctype.h>
   27418 #endif
   27419 
   27420 int test(void)
   27421 {
   27422   char in[] = "\xD0\xB4";
   27423   char good[] = "\xD0\x94";
   27424   char out[10];
   27425   wchar_t in_wc, good_wc;
   27426   if (mbtowc (&in_wc, in, 3) == -1)
   27427     return 0;
   27428   if (mbtowc (&good_wc, good, 3) == -1)
   27429     return 0;
   27430   if (towupper (in_wc) != good_wc)
   27431     return 0;
   27432   if (wctomb (out, good_wc) != 2)
   27433     return 0;
   27434   if (memcmp (out, good, 2))
   27435     return 0;
   27436   return 1;
   27437 }
   27438 
   27439 int main()
   27440 {
   27441   char *old;
   27442   int len;
   27443 
   27444   /* Try hardcoding a Russian UTF-8 locale.  If the name "ru_RU.UTF-8"
   27445      is invalid, use setlocale again just to get the current locale.  */
   27446   old = setlocale (LC_CTYPE, "ru_RU.UTF-8");
   27447   if (old)
   27448     {
   27449       if (test())
   27450         exit (0);
   27451     }
   27452   else
   27453     old = setlocale (LC_CTYPE, "C");
   27454 
   27455   /* Maybe cyrillic case folding is implemented for all UTF-8 locales.
   27456      If the current locale is not UTF-8, the test will be skipped.  */
   27457   len = strlen (old);
   27458   if ((len > 6 && !strcmp (old + len - 6, ".UTF-8"))
   27459       || (len > 6 && !strcmp (old + len - 6, ".utf-8"))
   27460       || (len > 5 && !strcmp (old + len - 5, ".UTF8"))
   27461       || (len > 5 && !strcmp (old + len - 5, ".utf8")))
   27462 
   27463     /* ok */
   27464     ;
   27465   else
   27466     exit (1);
   27467 
   27468   /* Run the test in the detected UTF-8 locale.  */
   27469   setlocale (LC_CTYPE, old);
   27470   exit (!test ());
   27471 }
   27472 
   27473 _ACEOF
   27474 rm -f conftest$ac_exeext
   27475 if { (ac_try="$ac_link"
   27476 case "(($ac_try" in
   27477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27478   *) ac_try_echo=$ac_try;;
   27479 esac
   27480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   27481 $as_echo "$ac_try_echo") >&5
   27482   (eval "$ac_link") 2>&5
   27483   ac_status=$?
   27484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   27486   { (case "(($ac_try" in
   27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27488   *) ac_try_echo=$ac_try;;
   27489 esac
   27490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   27491 $as_echo "$ac_try_echo") >&5
   27492   (eval "$ac_try") 2>&5
   27493   ac_status=$?
   27494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27495   (exit $ac_status); }; }; then
   27496   { $as_echo "$as_me:$LINENO: result: yes" >&5
   27497 $as_echo "yes" >&6; }; XFAIL_TESTS=
   27498 else
   27499   $as_echo "$as_me: program exited with status $ac_status" >&5
   27500 $as_echo "$as_me: failed program was:" >&5
   27501 sed 's/^/| /' conftest.$ac_ext >&5
   27502 
   27503 ( exit $ac_status )
   27504 { $as_echo "$as_me:$LINENO: result: no" >&5
   27505 $as_echo "no" >&6; }; XFAIL_TESTS='utf8-1 utf8-2 utf8-3 utf8-4'
   27506 fi
   27507 rm -rf conftest.dSYM
   27508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   27509 fi
   27510 
   27511 
   27512 
   27513 # Under MinGW, the bsd.sh test fails because of the EOF character (^Z).
   27514 case $host in
   27515   *mingw*) XFAIL_TESTS="$XFAIL_TESTS bsd" ;;
   27516   *) ;;
   27517 esac
   27518 
   27519 
   27520 ac_config_files="$ac_config_files bootstrap.sh"
   27521 
   27522 ac_config_files="$ac_config_files testsuite/version.good:testsuite/version.gin"
   27523 
   27524 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in"
   27525 
   27526 cat >confcache <<\_ACEOF
   27527 # This file is a shell script that caches the results of configure
   27528 # tests run on this system so they can be shared between configure
   27529 # scripts and configure runs, see configure's option --config-cache.
   27530 # It is not useful on other systems.  If it contains results you don't
   27531 # want to keep, you may remove or edit it.
   27532 #
   27533 # config.status only pays attention to the cache file if you give it
   27534 # the --recheck option to rerun configure.
   27535 #
   27536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   27537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   27538 # following values.
   27539 
   27540 _ACEOF
   27541 
   27542 # The following way of writing the cache mishandles newlines in values,
   27543 # but we know of no workaround that is simple, portable, and efficient.
   27544 # So, we kill variables containing newlines.
   27545 # Ultrix sh set writes to stderr and can't be redirected directly,
   27546 # and sets the high bit in the cache file unless we assign to the vars.
   27547 (
   27548   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   27549     eval ac_val=\$$ac_var
   27550     case $ac_val in #(
   27551     *${as_nl}*)
   27552       case $ac_var in #(
   27553       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
   27554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   27555       esac
   27556       case $ac_var in #(
   27557       _ | IFS | as_nl) ;; #(
   27558       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   27559       *) $as_unset $ac_var ;;
   27560       esac ;;
   27561     esac
   27562   done
   27563 
   27564   (set) 2>&1 |
   27565     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   27566     *${as_nl}ac_space=\ *)
   27567       # `set' does not quote correctly, so add quotes (double-quote
   27568       # substitution turns \\\\ into \\, and sed turns \\ into \).
   27569       sed -n \
   27570 	"s/'/'\\\\''/g;
   27571 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   27572       ;; #(
   27573     *)
   27574       # `set' quotes correctly as required by POSIX, so do not add quotes.
   27575       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   27576       ;;
   27577     esac |
   27578     sort
   27579 ) |
   27580   sed '
   27581      /^ac_cv_env_/b end
   27582      t clear
   27583      :clear
   27584      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   27585      t end
   27586      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   27587      :end' >>confcache
   27588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   27589   if test -w "$cache_file"; then
   27590     test "x$cache_file" != "x/dev/null" &&
   27591       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
   27592 $as_echo "$as_me: updating cache $cache_file" >&6;}
   27593     cat confcache >$cache_file
   27594   else
   27595     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   27596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   27597   fi
   27598 fi
   27599 rm -f confcache
   27600 
   27601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   27602 # Let make expand exec_prefix.
   27603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   27604 
   27605 DEFS=-DHAVE_CONFIG_H
   27606 
   27607 ac_libobjs=
   27608 ac_ltlibobjs=
   27609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   27610   # 1. Remove the extension, and $U if already installed.
   27611   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   27612   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   27613   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   27614   #    will be set to the directory where LIBOBJS objects are built.
   27615   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   27616   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   27617 done
   27618 LIBOBJS=$ac_libobjs
   27619 
   27620 LTLIBOBJS=$ac_ltlibobjs
   27621 
   27622 
   27623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   27624   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
   27625 Usually this means the macro was only invoked conditionally." >&5
   27626 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
   27627 Usually this means the macro was only invoked conditionally." >&2;}
   27628    { (exit 1); exit 1; }; }
   27629 fi
   27630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   27631   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
   27632 Usually this means the macro was only invoked conditionally." >&5
   27633 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
   27634 Usually this means the macro was only invoked conditionally." >&2;}
   27635    { (exit 1); exit 1; }; }
   27636 fi
   27637 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
   27638   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
   27639 Usually this means the macro was only invoked conditionally." >&5
   27640 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
   27641 Usually this means the macro was only invoked conditionally." >&2;}
   27642    { (exit 1); exit 1; }; }
   27643 fi
   27644 
   27645     gl_libobjs=
   27646     gl_ltlibobjs=
   27647     if test -n "$gl_LIBOBJS"; then
   27648       # Remove the extension.
   27649       sed_drop_objext='s/\.o$//;s/\.obj$//'
   27650       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
   27651         gl_libobjs="$gl_libobjs $i.$ac_objext"
   27652         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
   27653       done
   27654     fi
   27655     gl_LIBOBJS=$gl_libobjs
   27656 
   27657     gl_LTLIBOBJS=$gl_ltlibobjs
   27658 
   27659 
   27660 
   27661     gltests_libobjs=
   27662     gltests_ltlibobjs=
   27663     if test -n "$gltests_LIBOBJS"; then
   27664       # Remove the extension.
   27665       sed_drop_objext='s/\.o$//;s/\.obj$//'
   27666       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
   27667         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
   27668         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
   27669       done
   27670     fi
   27671     gltests_LIBOBJS=$gltests_libobjs
   27672 
   27673     gltests_LTLIBOBJS=$gltests_ltlibobjs
   27674 
   27675 
   27676 if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then
   27677   { { $as_echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined.
   27678 Usually this means the macro was only invoked conditionally." >&5
   27679 $as_echo "$as_me: error: conditional \"TEST_REGEX\" was never defined.
   27680 Usually this means the macro was only invoked conditionally." >&2;}
   27681    { (exit 1); exit 1; }; }
   27682 fi
   27683 
   27684 : ${CONFIG_STATUS=./config.status}
   27685 ac_write_fail=0
   27686 ac_clean_files_save=$ac_clean_files
   27687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   27688 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   27689 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   27690 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27691 #! $SHELL
   27692 # Generated by $as_me.
   27693 # Run this file to recreate the current configuration.
   27694 # Compiler output produced by configure, useful for debugging
   27695 # configure, is in config.log if it exists.
   27696 
   27697 debug=false
   27698 ac_cs_recheck=false
   27699 ac_cs_silent=false
   27700 SHELL=\${CONFIG_SHELL-$SHELL}
   27701 _ACEOF
   27702 
   27703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27704 ## --------------------- ##
   27705 ## M4sh Initialization.  ##
   27706 ## --------------------- ##
   27707 
   27708 # Be more Bourne compatible
   27709 DUALCASE=1; export DUALCASE # for MKS sh
   27710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   27711   emulate sh
   27712   NULLCMD=:
   27713   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   27714   # is contrary to our usage.  Disable this feature.
   27715   alias -g '${1+"$@"}'='"$@"'
   27716   setopt NO_GLOB_SUBST
   27717 else
   27718   case `(set -o) 2>/dev/null` in
   27719   *posix*) set -o posix ;;
   27720 esac
   27721 
   27722 fi
   27723 
   27724 
   27725 
   27726 
   27727 # PATH needs CR
   27728 # Avoid depending upon Character Ranges.
   27729 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   27730 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   27731 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   27732 as_cr_digits='0123456789'
   27733 as_cr_alnum=$as_cr_Letters$as_cr_digits
   27734 
   27735 as_nl='
   27736 '
   27737 export as_nl
   27738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   27739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   27740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   27741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   27742 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   27743   as_echo='printf %s\n'
   27744   as_echo_n='printf %s'
   27745 else
   27746   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   27747     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   27748     as_echo_n='/usr/ucb/echo -n'
   27749   else
   27750     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   27751     as_echo_n_body='eval
   27752       arg=$1;
   27753       case $arg in
   27754       *"$as_nl"*)
   27755 	expr "X$arg" : "X\\(.*\\)$as_nl";
   27756 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   27757       esac;
   27758       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   27759     '
   27760     export as_echo_n_body
   27761     as_echo_n='sh -c $as_echo_n_body as_echo'
   27762   fi
   27763   export as_echo_body
   27764   as_echo='sh -c $as_echo_body as_echo'
   27765 fi
   27766 
   27767 # The user is always right.
   27768 if test "${PATH_SEPARATOR+set}" != set; then
   27769   PATH_SEPARATOR=:
   27770   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   27771     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   27772       PATH_SEPARATOR=';'
   27773   }
   27774 fi
   27775 
   27776 # Support unset when possible.
   27777 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   27778   as_unset=unset
   27779 else
   27780   as_unset=false
   27781 fi
   27782 
   27783 
   27784 # IFS
   27785 # We need space, tab and new line, in precisely that order.  Quoting is
   27786 # there to prevent editors from complaining about space-tab.
   27787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   27788 # splitting by setting IFS to empty value.)
   27789 IFS=" ""	$as_nl"
   27790 
   27791 # Find who we are.  Look in the path if we contain no directory separator.
   27792 case $0 in
   27793   *[\\/]* ) as_myself=$0 ;;
   27794   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   27795 for as_dir in $PATH
   27796 do
   27797   IFS=$as_save_IFS
   27798   test -z "$as_dir" && as_dir=.
   27799   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   27800 done
   27801 IFS=$as_save_IFS
   27802 
   27803      ;;
   27804 esac
   27805 # We did not find ourselves, most probably we were run as `sh COMMAND'
   27806 # in which case we are not to be found in the path.
   27807 if test "x$as_myself" = x; then
   27808   as_myself=$0
   27809 fi
   27810 if test ! -f "$as_myself"; then
   27811   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   27812   { (exit 1); exit 1; }
   27813 fi
   27814 
   27815 # Work around bugs in pre-3.0 UWIN ksh.
   27816 for as_var in ENV MAIL MAILPATH
   27817 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   27818 done
   27819 PS1='$ '
   27820 PS2='> '
   27821 PS4='+ '
   27822 
   27823 # NLS nuisances.
   27824 LC_ALL=C
   27825 export LC_ALL
   27826 LANGUAGE=C
   27827 export LANGUAGE
   27828 
   27829 # Required to use basename.
   27830 if expr a : '\(a\)' >/dev/null 2>&1 &&
   27831    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   27832   as_expr=expr
   27833 else
   27834   as_expr=false
   27835 fi
   27836 
   27837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   27838   as_basename=basename
   27839 else
   27840   as_basename=false
   27841 fi
   27842 
   27843 
   27844 # Name of the executable.
   27845 as_me=`$as_basename -- "$0" ||
   27846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   27847 	 X"$0" : 'X\(//\)$' \| \
   27848 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   27849 $as_echo X/"$0" |
   27850     sed '/^.*\/\([^/][^/]*\)\/*$/{
   27851 	    s//\1/
   27852 	    q
   27853 	  }
   27854 	  /^X\/\(\/\/\)$/{
   27855 	    s//\1/
   27856 	    q
   27857 	  }
   27858 	  /^X\/\(\/\).*/{
   27859 	    s//\1/
   27860 	    q
   27861 	  }
   27862 	  s/.*/./; q'`
   27863 
   27864 # CDPATH.
   27865 $as_unset CDPATH
   27866 
   27867 
   27868 
   27869   as_lineno_1=$LINENO
   27870   as_lineno_2=$LINENO
   27871   test "x$as_lineno_1" != "x$as_lineno_2" &&
   27872   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   27873 
   27874   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   27875   # uniformly replaced by the line number.  The first 'sed' inserts a
   27876   # line-number line after each line using $LINENO; the second 'sed'
   27877   # does the real work.  The second script uses 'N' to pair each
   27878   # line-number line with the line containing $LINENO, and appends
   27879   # trailing '-' during substitution so that $LINENO is not a special
   27880   # case at line end.
   27881   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   27882   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   27883   # E. McMahon (1931-1989) for sed's syntax.  :-)
   27884   sed -n '
   27885     p
   27886     /[$]LINENO/=
   27887   ' <$as_myself |
   27888     sed '
   27889       s/[$]LINENO.*/&-/
   27890       t lineno
   27891       b
   27892       :lineno
   27893       N
   27894       :loop
   27895       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   27896       t loop
   27897       s/-\n.*//
   27898     ' >$as_me.lineno &&
   27899   chmod +x "$as_me.lineno" ||
   27900     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   27901    { (exit 1); exit 1; }; }
   27902 
   27903   # Don't try to exec as it changes $[0], causing all sort of problems
   27904   # (the dirname of $[0] is not the place where we might find the
   27905   # original and so on.  Autoconf is especially sensitive to this).
   27906   . "./$as_me.lineno"
   27907   # Exit status is that of the last command.
   27908   exit
   27909 }
   27910 
   27911 
   27912 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   27913   as_dirname=dirname
   27914 else
   27915   as_dirname=false
   27916 fi
   27917 
   27918 ECHO_C= ECHO_N= ECHO_T=
   27919 case `echo -n x` in
   27920 -n*)
   27921   case `echo 'x\c'` in
   27922   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   27923   *)   ECHO_C='\c';;
   27924   esac;;
   27925 *)
   27926   ECHO_N='-n';;
   27927 esac
   27928 if expr a : '\(a\)' >/dev/null 2>&1 &&
   27929    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   27930   as_expr=expr
   27931 else
   27932   as_expr=false
   27933 fi
   27934 
   27935 rm -f conf$$ conf$$.exe conf$$.file
   27936 if test -d conf$$.dir; then
   27937   rm -f conf$$.dir/conf$$.file
   27938 else
   27939   rm -f conf$$.dir
   27940   mkdir conf$$.dir 2>/dev/null
   27941 fi
   27942 if (echo >conf$$.file) 2>/dev/null; then
   27943   if ln -s conf$$.file conf$$ 2>/dev/null; then
   27944     as_ln_s='ln -s'
   27945     # ... but there are two gotchas:
   27946     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   27947     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   27948     # In both cases, we have to default to `cp -p'.
   27949     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   27950       as_ln_s='cp -p'
   27951   elif ln conf$$.file conf$$ 2>/dev/null; then
   27952     as_ln_s=ln
   27953   else
   27954     as_ln_s='cp -p'
   27955   fi
   27956 else
   27957   as_ln_s='cp -p'
   27958 fi
   27959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   27960 rmdir conf$$.dir 2>/dev/null
   27961 
   27962 if mkdir -p . 2>/dev/null; then
   27963   as_mkdir_p=:
   27964 else
   27965   test -d ./-p && rmdir ./-p
   27966   as_mkdir_p=false
   27967 fi
   27968 
   27969 if test -x / >/dev/null 2>&1; then
   27970   as_test_x='test -x'
   27971 else
   27972   if ls -dL / >/dev/null 2>&1; then
   27973     as_ls_L_option=L
   27974   else
   27975     as_ls_L_option=
   27976   fi
   27977   as_test_x='
   27978     eval sh -c '\''
   27979       if test -d "$1"; then
   27980 	test -d "$1/.";
   27981       else
   27982 	case $1 in
   27983 	-*)set "./$1";;
   27984 	esac;
   27985 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   27986 	???[sx]*):;;*)false;;esac;fi
   27987     '\'' sh
   27988   '
   27989 fi
   27990 as_executable_p=$as_test_x
   27991 
   27992 # Sed expression to map a string onto a valid CPP name.
   27993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   27994 
   27995 # Sed expression to map a string onto a valid variable name.
   27996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   27997 
   27998 
   27999 exec 6>&1
   28000 
   28001 # Save the log message, to keep $[0] and so on meaningful, and to
   28002 # report actual input values of CONFIG_FILES etc. instead of their
   28003 # values after options handling.
   28004 ac_log="
   28005 This file was extended by sed $as_me 4.2.1, which was
   28006 generated by GNU Autoconf 2.63.  Invocation command line was
   28007 
   28008   CONFIG_FILES    = $CONFIG_FILES
   28009   CONFIG_HEADERS  = $CONFIG_HEADERS
   28010   CONFIG_LINKS    = $CONFIG_LINKS
   28011   CONFIG_COMMANDS = $CONFIG_COMMANDS
   28012   $ $0 $@
   28013 
   28014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   28015 "
   28016 
   28017 _ACEOF
   28018 
   28019 case $ac_config_files in *"
   28020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   28021 esac
   28022 
   28023 case $ac_config_headers in *"
   28024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   28025 esac
   28026 
   28027 
   28028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28029 # Files that config.status was made for.
   28030 config_files="$ac_config_files"
   28031 config_headers="$ac_config_headers"
   28032 config_commands="$ac_config_commands"
   28033 
   28034 _ACEOF
   28035 
   28036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28037 ac_cs_usage="\
   28038 \`$as_me' instantiates files from templates according to the
   28039 current configuration.
   28040 
   28041 Usage: $0 [OPTION]... [FILE]...
   28042 
   28043   -h, --help       print this help, then exit
   28044   -V, --version    print version number and configuration settings, then exit
   28045   -q, --quiet, --silent
   28046                    do not print progress messages
   28047   -d, --debug      don't remove temporary files
   28048       --recheck    update $as_me by reconfiguring in the same conditions
   28049       --file=FILE[:TEMPLATE]
   28050                    instantiate the configuration file FILE
   28051       --header=FILE[:TEMPLATE]
   28052                    instantiate the configuration header FILE
   28053 
   28054 Configuration files:
   28055 $config_files
   28056 
   28057 Configuration headers:
   28058 $config_headers
   28059 
   28060 Configuration commands:
   28061 $config_commands
   28062 
   28063 Report bugs to <bug-autoconf (at] gnu.org>."
   28064 
   28065 _ACEOF
   28066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28067 ac_cs_version="\\
   28068 sed config.status 4.2.1
   28069 configured by $0, generated by GNU Autoconf 2.63,
   28070   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   28071 
   28072 Copyright (C) 2008 Free Software Foundation, Inc.
   28073 This config.status script is free software; the Free Software Foundation
   28074 gives unlimited permission to copy, distribute and modify it."
   28075 
   28076 ac_pwd='$ac_pwd'
   28077 srcdir='$srcdir'
   28078 INSTALL='$INSTALL'
   28079 MKDIR_P='$MKDIR_P'
   28080 AWK='$AWK'
   28081 test -n "\$AWK" || AWK=awk
   28082 _ACEOF
   28083 
   28084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28085 # The default lists apply if the user does not specify any file.
   28086 ac_need_defaults=:
   28087 while test $# != 0
   28088 do
   28089   case $1 in
   28090   --*=*)
   28091     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   28092     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   28093     ac_shift=:
   28094     ;;
   28095   *)
   28096     ac_option=$1
   28097     ac_optarg=$2
   28098     ac_shift=shift
   28099     ;;
   28100   esac
   28101 
   28102   case $ac_option in
   28103   # Handling of the options.
   28104   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   28105     ac_cs_recheck=: ;;
   28106   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   28107     $as_echo "$ac_cs_version"; exit ;;
   28108   --debug | --debu | --deb | --de | --d | -d )
   28109     debug=: ;;
   28110   --file | --fil | --fi | --f )
   28111     $ac_shift
   28112     case $ac_optarg in
   28113     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   28114     esac
   28115     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
   28116     ac_need_defaults=false;;
   28117   --header | --heade | --head | --hea )
   28118     $ac_shift
   28119     case $ac_optarg in
   28120     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   28121     esac
   28122     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
   28123     ac_need_defaults=false;;
   28124   --he | --h)
   28125     # Conflict between --help and --header
   28126     { $as_echo "$as_me: error: ambiguous option: $1
   28127 Try \`$0 --help' for more information." >&2
   28128    { (exit 1); exit 1; }; };;
   28129   --help | --hel | -h )
   28130     $as_echo "$ac_cs_usage"; exit ;;
   28131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   28132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   28133     ac_cs_silent=: ;;
   28134 
   28135   # This is an error.
   28136   -*) { $as_echo "$as_me: error: unrecognized option: $1
   28137 Try \`$0 --help' for more information." >&2
   28138    { (exit 1); exit 1; }; } ;;
   28139 
   28140   *) ac_config_targets="$ac_config_targets $1"
   28141      ac_need_defaults=false ;;
   28142 
   28143   esac
   28144   shift
   28145 done
   28146 
   28147 ac_configure_extra_args=
   28148 
   28149 if $ac_cs_silent; then
   28150   exec 6>/dev/null
   28151   ac_configure_extra_args="$ac_configure_extra_args --silent"
   28152 fi
   28153 
   28154 _ACEOF
   28155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28156 if \$ac_cs_recheck; then
   28157   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   28158   shift
   28159   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   28160   CONFIG_SHELL='$SHELL'
   28161   export CONFIG_SHELL
   28162   exec "\$@"
   28163 fi
   28164 
   28165 _ACEOF
   28166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28167 exec 5>>config.log
   28168 {
   28169   echo
   28170   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   28171 ## Running $as_me. ##
   28172 _ASBOX
   28173   $as_echo "$ac_log"
   28174 } >&5
   28175 
   28176 _ACEOF
   28177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28178 #
   28179 # INIT-COMMANDS
   28180 #
   28181 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   28182 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
   28183     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
   28184     # from automake < 1.5.
   28185     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
   28186     # Capture the value of LINGUAS because we need it to compute CATALOGS.
   28187     LINGUAS="${LINGUAS-%UNSET%}"
   28188 
   28189 
   28190 _ACEOF
   28191 
   28192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28193 
   28194 # Handling of arguments.
   28195 for ac_config_target in $ac_config_targets
   28196 do
   28197   case $ac_config_target in
   28198     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
   28199     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   28200     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
   28201     "bootstrap.sh") CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;;
   28202     "testsuite/version.good") CONFIG_FILES="$CONFIG_FILES testsuite/version.good:testsuite/version.gin" ;;
   28203     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   28204     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   28205     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   28206     "sed/Makefile") CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;;
   28207     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
   28208     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
   28209 
   28210   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   28211 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   28212    { (exit 1); exit 1; }; };;
   28213   esac
   28214 done
   28215 
   28216 
   28217 # If the user did not use the arguments to specify the items to instantiate,
   28218 # then the envvar interface is used.  Set only those that are not.
   28219 # We use the long form for the default assignment because of an extremely
   28220 # bizarre bug on SunOS 4.1.3.
   28221 if $ac_need_defaults; then
   28222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   28223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   28224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   28225 fi
   28226 
   28227 # Have a temporary directory for convenience.  Make it in the build tree
   28228 # simply because there is no reason against having it here, and in addition,
   28229 # creating and moving files from /tmp can sometimes cause problems.
   28230 # Hook for its removal unless debugging.
   28231 # Note that there is a small window in which the directory will not be cleaned:
   28232 # after its creation but before its name has been assigned to `$tmp'.
   28233 $debug ||
   28234 {
   28235   tmp=
   28236   trap 'exit_status=$?
   28237   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   28238 ' 0
   28239   trap '{ (exit 1); exit 1; }' 1 2 13 15
   28240 }
   28241 # Create a (secure) tmp directory for tmp files.
   28242 
   28243 {
   28244   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   28245   test -n "$tmp" && test -d "$tmp"
   28246 }  ||
   28247 {
   28248   tmp=./conf$$-$RANDOM
   28249   (umask 077 && mkdir "$tmp")
   28250 } ||
   28251 {
   28252    $as_echo "$as_me: cannot create a temporary directory in ." >&2
   28253    { (exit 1); exit 1; }
   28254 }
   28255 
   28256 # Set up the scripts for CONFIG_FILES section.
   28257 # No need to generate them if there are no CONFIG_FILES.
   28258 # This happens for instance with `./config.status config.h'.
   28259 if test -n "$CONFIG_FILES"; then
   28260 
   28261 
   28262 ac_cr='
'
   28264 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   28265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   28266   ac_cs_awk_cr='\\r'
   28267 else
   28268   ac_cs_awk_cr=$ac_cr
   28269 fi
   28270 
   28271 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   28272 _ACEOF
   28273 
   28274 
   28275 {
   28276   echo "cat >conf$$subs.awk <<_ACEOF" &&
   28277   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   28278   echo "_ACEOF"
   28279 } >conf$$subs.sh ||
   28280   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   28281 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   28282    { (exit 1); exit 1; }; }
   28283 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   28284 ac_delim='%!_!# '
   28285 for ac_last_try in false false false false false :; do
   28286   . ./conf$$subs.sh ||
   28287     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   28288 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   28289    { (exit 1); exit 1; }; }
   28290 
   28291   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   28292   if test $ac_delim_n = $ac_delim_num; then
   28293     break
   28294   elif $ac_last_try; then
   28295     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   28296 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   28297    { (exit 1); exit 1; }; }
   28298   else
   28299     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   28300   fi
   28301 done
   28302 rm -f conf$$subs.sh
   28303 
   28304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28305 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   28306 _ACEOF
   28307 sed -n '
   28308 h
   28309 s/^/S["/; s/!.*/"]=/
   28310 p
   28311 g
   28312 s/^[^!]*!//
   28313 :repl
   28314 t repl
   28315 s/'"$ac_delim"'$//
   28316 t delim
   28317 :nl
   28318 h
   28319 s/\(.\{148\}\).*/\1/
   28320 t more1
   28321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   28322 p
   28323 n
   28324 b repl
   28325 :more1
   28326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28327 p
   28328 g
   28329 s/.\{148\}//
   28330 t nl
   28331 :delim
   28332 h
   28333 s/\(.\{148\}\).*/\1/
   28334 t more2
   28335 s/["\\]/\\&/g; s/^/"/; s/$/"/
   28336 p
   28337 b
   28338 :more2
   28339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28340 p
   28341 g
   28342 s/.\{148\}//
   28343 t delim
   28344 ' <conf$$subs.awk | sed '
   28345 /^[^""]/{
   28346   N
   28347   s/\n//
   28348 }
   28349 ' >>$CONFIG_STATUS || ac_write_fail=1
   28350 rm -f conf$$subs.awk
   28351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28352 _ACAWK
   28353 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   28354   for (key in S) S_is_set[key] = 1
   28355   FS = ""
   28356 
   28357 }
   28358 {
   28359   line = $ 0
   28360   nfields = split(line, field, "@")
   28361   substed = 0
   28362   len = length(field[1])
   28363   for (i = 2; i < nfields; i++) {
   28364     key = field[i]
   28365     keylen = length(key)
   28366     if (S_is_set[key]) {
   28367       value = S[key]
   28368       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   28369       len += length(value) + length(field[++i])
   28370       substed = 1
   28371     } else
   28372       len += 1 + keylen
   28373   }
   28374 
   28375   print line
   28376 }
   28377 
   28378 _ACAWK
   28379 _ACEOF
   28380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   28382   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   28383 else
   28384   cat
   28385 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   28386   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
   28387 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
   28388    { (exit 1); exit 1; }; }
   28389 _ACEOF
   28390 
   28391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   28392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   28393 # trailing colons and then remove the whole line if VPATH becomes empty
   28394 # (actually we leave an empty line to preserve line numbers).
   28395 if test "x$srcdir" = x.; then
   28396   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   28397 s/:*\$(srcdir):*/:/
   28398 s/:*\${srcdir}:*/:/
   28399 s/:*@srcdir@:*/:/
   28400 s/^\([^=]*=[	 ]*\):*/\1/
   28401 s/:*$//
   28402 s/^[^=]*=[	 ]*$//
   28403 }'
   28404 fi
   28405 
   28406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28407 fi # test -n "$CONFIG_FILES"
   28408 
   28409 # Set up the scripts for CONFIG_HEADERS section.
   28410 # No need to generate them if there are no CONFIG_HEADERS.
   28411 # This happens for instance with `./config.status Makefile'.
   28412 if test -n "$CONFIG_HEADERS"; then
   28413 cat >"$tmp/defines.awk" <<\_ACAWK ||
   28414 BEGIN {
   28415 _ACEOF
   28416 
   28417 # Transform confdefs.h into an awk script `defines.awk', embedded as
   28418 # here-document in config.status, that substitutes the proper values into
   28419 # config.h.in to produce config.h.
   28420 
   28421 # Create a delimiter string that does not exist in confdefs.h, to ease
   28422 # handling of long lines.
   28423 ac_delim='%!_!# '
   28424 for ac_last_try in false false :; do
   28425   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   28426   if test -z "$ac_t"; then
   28427     break
   28428   elif $ac_last_try; then
   28429     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
   28430 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
   28431    { (exit 1); exit 1; }; }
   28432   else
   28433     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   28434   fi
   28435 done
   28436 
   28437 # For the awk script, D is an array of macro values keyed by name,
   28438 # likewise P contains macro parameters if any.  Preserve backslash
   28439 # newline sequences.
   28440 
   28441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   28442 sed -n '
   28443 s/.\{148\}/&'"$ac_delim"'/g
   28444 t rset
   28445 :rset
   28446 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   28447 t def
   28448 d
   28449 :def
   28450 s/\\$//
   28451 t bsnl
   28452 s/["\\]/\\&/g
   28453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28454 D["\1"]=" \3"/p
   28455 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   28456 d
   28457 :bsnl
   28458 s/["\\]/\\&/g
   28459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28460 D["\1"]=" \3\\\\\\n"\\/p
   28461 t cont
   28462 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   28463 t cont
   28464 d
   28465 :cont
   28466 n
   28467 s/.\{148\}/&'"$ac_delim"'/g
   28468 t clear
   28469 :clear
   28470 s/\\$//
   28471 t bsnlc
   28472 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   28473 d
   28474 :bsnlc
   28475 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   28476 b cont
   28477 ' <confdefs.h | sed '
   28478 s/'"$ac_delim"'/"\\\
   28479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   28480 
   28481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28482   for (key in D) D_is_set[key] = 1
   28483   FS = ""
   28484 }
   28485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   28486   line = \$ 0
   28487   split(line, arg, " ")
   28488   if (arg[1] == "#") {
   28489     defundef = arg[2]
   28490     mac1 = arg[3]
   28491   } else {
   28492     defundef = substr(arg[1], 2)
   28493     mac1 = arg[2]
   28494   }
   28495   split(mac1, mac2, "(") #)
   28496   macro = mac2[1]
   28497   prefix = substr(line, 1, index(line, defundef) - 1)
   28498   if (D_is_set[macro]) {
   28499     # Preserve the white space surrounding the "#".
   28500     print prefix "define", macro P[macro] D[macro]
   28501     next
   28502   } else {
   28503     # Replace #undef with comments.  This is necessary, for example,
   28504     # in the case of _POSIX_SOURCE, which is predefined and required
   28505     # on some systems where configure will not decide to define it.
   28506     if (defundef == "undef") {
   28507       print "/*", prefix defundef, macro, "*/"
   28508       next
   28509     }
   28510   }
   28511 }
   28512 { print }
   28513 _ACAWK
   28514 _ACEOF
   28515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28516   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
   28517 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
   28518    { (exit 1); exit 1; }; }
   28519 fi # test -n "$CONFIG_HEADERS"
   28520 
   28521 
   28522 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   28523 shift
   28524 for ac_tag
   28525 do
   28526   case $ac_tag in
   28527   :[FHLC]) ac_mode=$ac_tag; continue;;
   28528   esac
   28529   case $ac_mode$ac_tag in
   28530   :[FHL]*:*);;
   28531   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
   28532 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
   28533    { (exit 1); exit 1; }; };;
   28534   :[FH]-) ac_tag=-:-;;
   28535   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   28536   esac
   28537   ac_save_IFS=$IFS
   28538   IFS=:
   28539   set x $ac_tag
   28540   IFS=$ac_save_IFS
   28541   shift
   28542   ac_file=$1
   28543   shift
   28544 
   28545   case $ac_mode in
   28546   :L) ac_source=$1;;
   28547   :[FH])
   28548     ac_file_inputs=
   28549     for ac_f
   28550     do
   28551       case $ac_f in
   28552       -) ac_f="$tmp/stdin";;
   28553       *) # Look for the file first in the build tree, then in the source tree
   28554 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   28555 	 # because $ac_f cannot contain `:'.
   28556 	 test -f "$ac_f" ||
   28557 	   case $ac_f in
   28558 	   [\\/$]*) false;;
   28559 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   28560 	   esac ||
   28561 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   28562 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   28563    { (exit 1); exit 1; }; };;
   28564       esac
   28565       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   28566       ac_file_inputs="$ac_file_inputs '$ac_f'"
   28567     done
   28568 
   28569     # Let's still pretend it is `configure' which instantiates (i.e., don't
   28570     # use $as_me), people would be surprised to read:
   28571     #    /* config.h.  Generated by config.status.  */
   28572     configure_input='Generated from '`
   28573 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   28574 	`' by configure.'
   28575     if test x"$ac_file" != x-; then
   28576       configure_input="$ac_file.  $configure_input"
   28577       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
   28578 $as_echo "$as_me: creating $ac_file" >&6;}
   28579     fi
   28580     # Neutralize special characters interpreted by sed in replacement strings.
   28581     case $configure_input in #(
   28582     *\&* | *\|* | *\\* )
   28583        ac_sed_conf_input=`$as_echo "$configure_input" |
   28584        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   28585     *) ac_sed_conf_input=$configure_input;;
   28586     esac
   28587 
   28588     case $ac_tag in
   28589     *:-:* | *:-) cat >"$tmp/stdin" \
   28590       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
   28591 $as_echo "$as_me: error: could not create $ac_file" >&2;}
   28592    { (exit 1); exit 1; }; } ;;
   28593     esac
   28594     ;;
   28595   esac
   28596 
   28597   ac_dir=`$as_dirname -- "$ac_file" ||
   28598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28599 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   28600 	 X"$ac_file" : 'X\(//\)$' \| \
   28601 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   28602 $as_echo X"$ac_file" |
   28603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28604 	    s//\1/
   28605 	    q
   28606 	  }
   28607 	  /^X\(\/\/\)[^/].*/{
   28608 	    s//\1/
   28609 	    q
   28610 	  }
   28611 	  /^X\(\/\/\)$/{
   28612 	    s//\1/
   28613 	    q
   28614 	  }
   28615 	  /^X\(\/\).*/{
   28616 	    s//\1/
   28617 	    q
   28618 	  }
   28619 	  s/.*/./; q'`
   28620   { as_dir="$ac_dir"
   28621   case $as_dir in #(
   28622   -*) as_dir=./$as_dir;;
   28623   esac
   28624   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   28625     as_dirs=
   28626     while :; do
   28627       case $as_dir in #(
   28628       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   28629       *) as_qdir=$as_dir;;
   28630       esac
   28631       as_dirs="'$as_qdir' $as_dirs"
   28632       as_dir=`$as_dirname -- "$as_dir" ||
   28633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28634 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   28635 	 X"$as_dir" : 'X\(//\)$' \| \
   28636 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   28637 $as_echo X"$as_dir" |
   28638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28639 	    s//\1/
   28640 	    q
   28641 	  }
   28642 	  /^X\(\/\/\)[^/].*/{
   28643 	    s//\1/
   28644 	    q
   28645 	  }
   28646 	  /^X\(\/\/\)$/{
   28647 	    s//\1/
   28648 	    q
   28649 	  }
   28650 	  /^X\(\/\).*/{
   28651 	    s//\1/
   28652 	    q
   28653 	  }
   28654 	  s/.*/./; q'`
   28655       test -d "$as_dir" && break
   28656     done
   28657     test -z "$as_dirs" || eval "mkdir $as_dirs"
   28658   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   28659 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
   28660    { (exit 1); exit 1; }; }; }
   28661   ac_builddir=.
   28662 
   28663 case "$ac_dir" in
   28664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28665 *)
   28666   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   28667   # A ".." for each directory in $ac_dir_suffix.
   28668   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   28669   case $ac_top_builddir_sub in
   28670   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28671   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   28672   esac ;;
   28673 esac
   28674 ac_abs_top_builddir=$ac_pwd
   28675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   28676 # for backward compatibility:
   28677 ac_top_builddir=$ac_top_build_prefix
   28678 
   28679 case $srcdir in
   28680   .)  # We are building in place.
   28681     ac_srcdir=.
   28682     ac_top_srcdir=$ac_top_builddir_sub
   28683     ac_abs_top_srcdir=$ac_pwd ;;
   28684   [\\/]* | ?:[\\/]* )  # Absolute name.
   28685     ac_srcdir=$srcdir$ac_dir_suffix;
   28686     ac_top_srcdir=$srcdir
   28687     ac_abs_top_srcdir=$srcdir ;;
   28688   *) # Relative name.
   28689     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   28690     ac_top_srcdir=$ac_top_build_prefix$srcdir
   28691     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   28692 esac
   28693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   28694 
   28695 
   28696   case $ac_mode in
   28697   :F)
   28698   #
   28699   # CONFIG_FILE
   28700   #
   28701 
   28702   case $INSTALL in
   28703   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   28704   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   28705   esac
   28706   ac_MKDIR_P=$MKDIR_P
   28707   case $MKDIR_P in
   28708   [\\/$]* | ?:[\\/]* ) ;;
   28709   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   28710   esac
   28711 _ACEOF
   28712 
   28713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28714 # If the template does not know about datarootdir, expand it.
   28715 # FIXME: This hack should be removed a few years after 2.60.
   28716 ac_datarootdir_hack=; ac_datarootdir_seen=
   28717 
   28718 ac_sed_dataroot='
   28719 /datarootdir/ {
   28720   p
   28721   q
   28722 }
   28723 /@datadir@/p
   28724 /@docdir@/p
   28725 /@infodir@/p
   28726 /@localedir@/p
   28727 /@mandir@/p
   28728 '
   28729 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   28730 *datarootdir*) ac_datarootdir_seen=yes;;
   28731 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   28732   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   28733 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   28734 _ACEOF
   28735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28736   ac_datarootdir_hack='
   28737   s&@datadir@&$datadir&g
   28738   s&@docdir@&$docdir&g
   28739   s&@infodir@&$infodir&g
   28740   s&@localedir@&$localedir&g
   28741   s&@mandir@&$mandir&g
   28742     s&\\\${datarootdir}&$datarootdir&g' ;;
   28743 esac
   28744 _ACEOF
   28745 
   28746 # Neutralize VPATH when `$srcdir' = `.'.
   28747 # Shell code in configure.ac might set extrasub.
   28748 # FIXME: do we really want to maintain this feature?
   28749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28750 ac_sed_extra="$ac_vpsub
   28751 $extrasub
   28752 _ACEOF
   28753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28754 :t
   28755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   28756 s|@configure_input@|$ac_sed_conf_input|;t t
   28757 s&@top_builddir@&$ac_top_builddir_sub&;t t
   28758 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   28759 s&@srcdir@&$ac_srcdir&;t t
   28760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   28761 s&@top_srcdir@&$ac_top_srcdir&;t t
   28762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   28763 s&@builddir@&$ac_builddir&;t t
   28764 s&@abs_builddir@&$ac_abs_builddir&;t t
   28765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   28766 s&@INSTALL@&$ac_INSTALL&;t t
   28767 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   28768 $ac_datarootdir_hack
   28769 "
   28770 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
   28771   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
   28772 $as_echo "$as_me: error: could not create $ac_file" >&2;}
   28773    { (exit 1); exit 1; }; }
   28774 
   28775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   28776   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   28777   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   28778   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28779 which seems to be undefined.  Please make sure it is defined." >&5
   28780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28781 which seems to be undefined.  Please make sure it is defined." >&2;}
   28782 
   28783   rm -f "$tmp/stdin"
   28784   case $ac_file in
   28785   -) cat "$tmp/out" && rm -f "$tmp/out";;
   28786   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   28787   esac \
   28788   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
   28789 $as_echo "$as_me: error: could not create $ac_file" >&2;}
   28790    { (exit 1); exit 1; }; }
   28791  ;;
   28792   :H)
   28793   #
   28794   # CONFIG_HEADER
   28795   #
   28796   if test x"$ac_file" != x-; then
   28797     {
   28798       $as_echo "/* $configure_input  */" \
   28799       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   28800     } >"$tmp/config.h" \
   28801       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
   28802 $as_echo "$as_me: error: could not create $ac_file" >&2;}
   28803    { (exit 1); exit 1; }; }
   28804     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   28805       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   28806 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   28807     else
   28808       rm -f "$ac_file"
   28809       mv "$tmp/config.h" "$ac_file" \
   28810 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
   28811 $as_echo "$as_me: error: could not create $ac_file" >&2;}
   28812    { (exit 1); exit 1; }; }
   28813     fi
   28814   else
   28815     $as_echo "/* $configure_input  */" \
   28816       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   28817       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
   28818 $as_echo "$as_me: error: could not create -" >&2;}
   28819    { (exit 1); exit 1; }; }
   28820   fi
   28821 # Compute "$ac_file"'s index in $config_headers.
   28822 _am_arg="$ac_file"
   28823 _am_stamp_count=1
   28824 for _am_header in $config_headers :; do
   28825   case $_am_header in
   28826     $_am_arg | $_am_arg:* )
   28827       break ;;
   28828     * )
   28829       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   28830   esac
   28831 done
   28832 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   28833 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28834 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   28835 	 X"$_am_arg" : 'X\(//\)$' \| \
   28836 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   28837 $as_echo X"$_am_arg" |
   28838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28839 	    s//\1/
   28840 	    q
   28841 	  }
   28842 	  /^X\(\/\/\)[^/].*/{
   28843 	    s//\1/
   28844 	    q
   28845 	  }
   28846 	  /^X\(\/\/\)$/{
   28847 	    s//\1/
   28848 	    q
   28849 	  }
   28850 	  /^X\(\/\).*/{
   28851 	    s//\1/
   28852 	    q
   28853 	  }
   28854 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   28855  ;;
   28856 
   28857   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
   28858 $as_echo "$as_me: executing $ac_file commands" >&6;}
   28859  ;;
   28860   esac
   28861 
   28862 
   28863   case $ac_file$ac_mode in
   28864     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
   28865   # Strip MF so we end up with the name of the file.
   28866   mf=`echo "$mf" | sed -e 's/:.*$//'`
   28867   # Check whether this is an Automake generated Makefile or not.
   28868   # We used to match only the files named `Makefile.in', but
   28869   # some people rename them; so instead we look at the file content.
   28870   # Grep'ing the first line is not enough: some people post-process
   28871   # each Makefile.in and add a new line on top of each file to say so.
   28872   # Grep'ing the whole file is not good either: AIX grep has a line
   28873   # limit of 2048, but all sed's we know have understand at least 4000.
   28874   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   28875     dirpart=`$as_dirname -- "$mf" ||
   28876 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28877 	 X"$mf" : 'X\(//\)[^/]' \| \
   28878 	 X"$mf" : 'X\(//\)$' \| \
   28879 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   28880 $as_echo X"$mf" |
   28881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28882 	    s//\1/
   28883 	    q
   28884 	  }
   28885 	  /^X\(\/\/\)[^/].*/{
   28886 	    s//\1/
   28887 	    q
   28888 	  }
   28889 	  /^X\(\/\/\)$/{
   28890 	    s//\1/
   28891 	    q
   28892 	  }
   28893 	  /^X\(\/\).*/{
   28894 	    s//\1/
   28895 	    q
   28896 	  }
   28897 	  s/.*/./; q'`
   28898   else
   28899     continue
   28900   fi
   28901   # Extract the definition of DEPDIR, am__include, and am__quote
   28902   # from the Makefile without running `make'.
   28903   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   28904   test -z "$DEPDIR" && continue
   28905   am__include=`sed -n 's/^am__include = //p' < "$mf"`
   28906   test -z "am__include" && continue
   28907   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   28908   # When using ansi2knr, U may be empty or an underscore; expand it
   28909   U=`sed -n 's/^U = //p' < "$mf"`
   28910   # Find all dependency output files, they are included files with
   28911   # $(DEPDIR) in their names.  We invoke sed twice because it is the
   28912   # simplest approach to changing $(DEPDIR) to its actual value in the
   28913   # expansion.
   28914   for file in `sed -n "
   28915     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   28916        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   28917     # Make sure the directory exists.
   28918     test -f "$dirpart/$file" && continue
   28919     fdir=`$as_dirname -- "$file" ||
   28920 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28921 	 X"$file" : 'X\(//\)[^/]' \| \
   28922 	 X"$file" : 'X\(//\)$' \| \
   28923 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   28924 $as_echo X"$file" |
   28925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28926 	    s//\1/
   28927 	    q
   28928 	  }
   28929 	  /^X\(\/\/\)[^/].*/{
   28930 	    s//\1/
   28931 	    q
   28932 	  }
   28933 	  /^X\(\/\/\)$/{
   28934 	    s//\1/
   28935 	    q
   28936 	  }
   28937 	  /^X\(\/\).*/{
   28938 	    s//\1/
   28939 	    q
   28940 	  }
   28941 	  s/.*/./; q'`
   28942     { as_dir=$dirpart/$fdir
   28943   case $as_dir in #(
   28944   -*) as_dir=./$as_dir;;
   28945   esac
   28946   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   28947     as_dirs=
   28948     while :; do
   28949       case $as_dir in #(
   28950       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   28951       *) as_qdir=$as_dir;;
   28952       esac
   28953       as_dirs="'$as_qdir' $as_dirs"
   28954       as_dir=`$as_dirname -- "$as_dir" ||
   28955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28956 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   28957 	 X"$as_dir" : 'X\(//\)$' \| \
   28958 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   28959 $as_echo X"$as_dir" |
   28960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28961 	    s//\1/
   28962 	    q
   28963 	  }
   28964 	  /^X\(\/\/\)[^/].*/{
   28965 	    s//\1/
   28966 	    q
   28967 	  }
   28968 	  /^X\(\/\/\)$/{
   28969 	    s//\1/
   28970 	    q
   28971 	  }
   28972 	  /^X\(\/\).*/{
   28973 	    s//\1/
   28974 	    q
   28975 	  }
   28976 	  s/.*/./; q'`
   28977       test -d "$as_dir" && break
   28978     done
   28979     test -z "$as_dirs" || eval "mkdir $as_dirs"
   28980   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   28981 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
   28982    { (exit 1); exit 1; }; }; }
   28983     # echo "creating $dirpart/$file"
   28984     echo '# dummy' > "$dirpart/$file"
   28985   done
   28986 done
   28987  ;;
   28988     "po-directories":C)
   28989     for ac_file in $CONFIG_FILES; do
   28990       # Support "outfile[:infile[:infile...]]"
   28991       case "$ac_file" in
   28992         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
   28993       esac
   28994       # PO directories have a Makefile.in generated from Makefile.in.in.
   28995       case "$ac_file" in */Makefile.in)
   28996         # Adjust a relative srcdir.
   28997         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
   28998         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
   28999         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
   29000         # In autoconf-2.13 it is called $ac_given_srcdir.
   29001         # In autoconf-2.50 it is called $srcdir.
   29002         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
   29003         case "$ac_given_srcdir" in
   29004           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
   29005           /*) top_srcdir="$ac_given_srcdir" ;;
   29006           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
   29007         esac
   29008         # Treat a directory as a PO directory if and only if it has a
   29009         # POTFILES.in file. This allows packages to have multiple PO
   29010         # directories under different names or in different locations.
   29011         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
   29012           rm -f "$ac_dir/POTFILES"
   29013           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
   29014           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
   29015           POMAKEFILEDEPS="POTFILES.in"
   29016           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
   29017           # on $ac_dir but don't depend on user-specified configuration
   29018           # parameters.
   29019           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
   29020             # The LINGUAS file contains the set of available languages.
   29021             if test -n "$OBSOLETE_ALL_LINGUAS"; then
   29022               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
   29023             fi
   29024             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
   29025             # Hide the ALL_LINGUAS assigment from automake < 1.5.
   29026             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
   29027             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
   29028           else
   29029             # The set of available languages was given in configure.in.
   29030             # Hide the ALL_LINGUAS assigment from automake < 1.5.
   29031             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
   29032           fi
   29033           # Compute POFILES
   29034           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
   29035           # Compute UPDATEPOFILES
   29036           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
   29037           # Compute DUMMYPOFILES
   29038           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
   29039           # Compute GMOFILES
   29040           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
   29041           case "$ac_given_srcdir" in
   29042             .) srcdirpre= ;;
   29043             *) srcdirpre='$(srcdir)/' ;;
   29044           esac
   29045           POFILES=
   29046           UPDATEPOFILES=
   29047           DUMMYPOFILES=
   29048           GMOFILES=
   29049           for lang in $ALL_LINGUAS; do
   29050             POFILES="$POFILES $srcdirpre$lang.po"
   29051             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
   29052             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
   29053             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
   29054           done
   29055           # CATALOGS depends on both $ac_dir and the user's LINGUAS
   29056           # environment variable.
   29057           INST_LINGUAS=
   29058           if test -n "$ALL_LINGUAS"; then
   29059             for presentlang in $ALL_LINGUAS; do
   29060               useit=no
   29061               if test "%UNSET%" != "$LINGUAS"; then
   29062                 desiredlanguages="$LINGUAS"
   29063               else
   29064                 desiredlanguages="$ALL_LINGUAS"
   29065               fi
   29066               for desiredlang in $desiredlanguages; do
   29067                 # Use the presentlang catalog if desiredlang is
   29068                 #   a. equal to presentlang, or
   29069                 #   b. a variant of presentlang (because in this case,
   29070                 #      presentlang can be used as a fallback for messages
   29071                 #      which are not translated in the desiredlang catalog).
   29072                 case "$desiredlang" in
   29073                   "$presentlang"*) useit=yes;;
   29074                 esac
   29075               done
   29076               if test $useit = yes; then
   29077                 INST_LINGUAS="$INST_LINGUAS $presentlang"
   29078               fi
   29079             done
   29080           fi
   29081           CATALOGS=
   29082           if test -n "$INST_LINGUAS"; then
   29083             for lang in $INST_LINGUAS; do
   29084               CATALOGS="$CATALOGS $lang.gmo"
   29085             done
   29086           fi
   29087           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
   29088           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
   29089           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
   29090             if test -f "$f"; then
   29091               case "$f" in
   29092                 *.orig | *.bak | *~) ;;
   29093                 *) cat "$f" >> "$ac_dir/Makefile" ;;
   29094               esac
   29095             fi
   29096           done
   29097         fi
   29098         ;;
   29099       esac
   29100     done ;;
   29101     "bootstrap.sh":F) chmod +x bootstrap.sh ;;
   29102 
   29103   esac
   29104 done # for ac_tag
   29105 
   29106 
   29107 { (exit 0); exit 0; }
   29108 _ACEOF
   29109 chmod +x $CONFIG_STATUS
   29110 ac_clean_files=$ac_clean_files_save
   29111 
   29112 test $ac_write_fail = 0 ||
   29113   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
   29114 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
   29115    { (exit 1); exit 1; }; }
   29116 
   29117 
   29118 # configure is writing to config.log, and then calls config.status.
   29119 # config.status does its own redirection, appending to config.log.
   29120 # Unfortunately, on DOS this fails, as config.log is still kept open
   29121 # by configure, so config.status won't be able to write to it; its
   29122 # output is simply discarded.  So we exec the FD to /dev/null,
   29123 # effectively closing config.log, so it can be properly (re)opened and
   29124 # appended to by config.status.  When coming back to configure, we
   29125 # need to make the FD available again.
   29126 if test "$no_create" != yes; then
   29127   ac_cs_success=:
   29128   ac_config_status_args=
   29129   test "$silent" = yes &&
   29130     ac_config_status_args="$ac_config_status_args --quiet"
   29131   exec 5>/dev/null
   29132   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   29133   exec 5>>config.log
   29134   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   29135   # would make configure fail if this is the last instruction.
   29136   $ac_cs_success || { (exit 1); exit 1; }
   29137 fi
   29138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   29139   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   29140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   29141 fi
   29142 
   29143