Home | History | Annotate | Line # | Download | only in gnulib
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      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*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME='libgnu'
    579 PACKAGE_TARNAME='libgnu'
    580 PACKAGE_VERSION='UNUSED-VERSION'
    581 PACKAGE_STRING='libgnu UNUSED-VERSION'
    582 PACKAGE_BUGREPORT=''
    583 PACKAGE_URL=''
    584 
    585 ac_unique_file="import/memmem.c"
    586 ac_header_list=
    587 # Factoring default headers for most tests.
    588 ac_includes_default="\
    589 #include <stdio.h>
    590 #ifdef HAVE_SYS_TYPES_H
    591 # include <sys/types.h>
    592 #endif
    593 #ifdef HAVE_SYS_STAT_H
    594 # include <sys/stat.h>
    595 #endif
    596 #ifdef STDC_HEADERS
    597 # include <stdlib.h>
    598 # include <stddef.h>
    599 #else
    600 # ifdef HAVE_STDLIB_H
    601 #  include <stdlib.h>
    602 # endif
    603 #endif
    604 #ifdef HAVE_STRING_H
    605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    606 #  include <memory.h>
    607 # endif
    608 # include <string.h>
    609 #endif
    610 #ifdef HAVE_STRINGS_H
    611 # include <strings.h>
    612 #endif
    613 #ifdef HAVE_INTTYPES_H
    614 # include <inttypes.h>
    615 #endif
    616 #ifdef HAVE_STDINT_H
    617 # include <stdint.h>
    618 #endif
    619 #ifdef HAVE_UNISTD_H
    620 # include <unistd.h>
    621 #endif"
    622 
    623 gl_use_threads_default=
    624 gl_use_winpthreads_default=
    625 ac_config_libobj_dir=import
    626 ac_func_list=
    627 gl_fnmatch_required=POSIX
    628 ac_subst_vars='am__EXEEXT_FALSE
    629 am__EXEEXT_TRUE
    630 gltests_LIBOBJDEPS
    631 gltests_LTLIBOBJS
    632 gltests_LIBOBJS
    633 gl_LIBOBJDEPS
    634 gl_LTLIBOBJS
    635 gl_LIBOBJS
    636 LTLIBOBJS
    637 LIBOBJS
    638 LN_S
    639 AM_BACKSLASH
    640 AM_DEFAULT_VERBOSITY
    641 AM_DEFAULT_V
    642 AM_V
    643 am__fastdepCC_FALSE
    644 am__fastdepCC_TRUE
    645 CCDEPMODE
    646 am__nodep
    647 AMDEPBACKSLASH
    648 AMDEP_FALSE
    649 AMDEP_TRUE
    650 am__quote
    651 am__include
    652 DEPDIR
    653 am__untar
    654 am__tar
    655 AMTAR
    656 am__leading_dot
    657 SET_MAKE
    658 AWK
    659 mkdir_p
    660 INSTALL_STRIP_PROGRAM
    661 STRIP
    662 install_sh
    663 MAKEINFO
    664 AUTOHEADER
    665 AUTOMAKE
    666 AUTOCONF
    667 ACLOCAL
    668 VERSION
    669 PACKAGE
    670 CYGPATH_W
    671 am__isrc
    672 INSTALL_DATA
    673 INSTALL_SCRIPT
    674 INSTALL_PROGRAM
    675 LIBGNU_LTLIBDEPS
    676 LIBGNU_LIBDEPS
    677 GL_CFLAG_GNULIB_WARNINGS
    678 GL_CFLAG_ALLOW_WARNINGS
    679 gltests_WITNESS
    680 GL_COND_OBJ_WMEMPCPY_FALSE
    681 GL_COND_OBJ_WMEMPCPY_TRUE
    682 GL_COND_OBJ_WMEMCHR_FALSE
    683 GL_COND_OBJ_WMEMCHR_TRUE
    684 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE
    685 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE
    686 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE
    687 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE
    688 GL_COND_OBJ_WINDOWS_ONCE_FALSE
    689 GL_COND_OBJ_WINDOWS_ONCE_TRUE
    690 GL_COND_OBJ_WINDOWS_MUTEX_FALSE
    691 GL_COND_OBJ_WINDOWS_MUTEX_TRUE
    692 GL_GNULIB_TOWCTRANS
    693 GL_GNULIB_WCTRANS
    694 GL_GNULIB_ISWCTYPE
    695 GL_GNULIB_WCTYPE
    696 GL_GNULIB_ISWXDIGIT
    697 GL_GNULIB_ISWDIGIT
    698 GL_GNULIB_ISWBLANK
    699 REPLACE_TOWLOWER
    700 REPLACE_ISWCNTRL
    701 HAVE_WCTYPE_H
    702 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
    703 NEXT_WCTYPE_H
    704 HAVE_ISWCNTRL
    705 REPLACE_ISWXDIGIT
    706 REPLACE_ISWDIGIT
    707 REPLACE_ISWBLANK
    708 HAVE_WCTRANS_T
    709 HAVE_WCTYPE_T
    710 HAVE_ISWBLANK
    711 HAVE_CRTDEFS_H
    712 HAVE_WINT_T
    713 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
    714 NEXT_WCHAR_H
    715 GL_COND_OBJ_UNSETENV_FALSE
    716 GL_COND_OBJ_UNSETENV_TRUE
    717 HAVE_UNISTD_H
    718 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
    719 NEXT_UNISTD_H
    720 GL_COND_OBJ_TIME_R_FALSE
    721 GL_COND_OBJ_TIME_R_TRUE
    722 GL_GNULIB_MDA_TZSET
    723 GL_GNULIB_TZSET
    724 GL_GNULIB_TIME_RZ
    725 GL_GNULIB_TIME_R
    726 GL_GNULIB_TIMESPEC_GETRES
    727 GL_GNULIB_TIMESPEC_GET
    728 GL_GNULIB_TIMEGM
    729 GL_GNULIB_STRPTIME
    730 GL_GNULIB_STRFTIME
    731 GL_GNULIB_NANOSLEEP
    732 GL_GNULIB_LOCALTIME
    733 GL_GNULIB_MKTIME
    734 GL_GNULIB_CTIME
    735 TIME_H_DEFINES_TIME_UTC
    736 UNISTD_H_DEFINES_STRUCT_TIMESPEC
    737 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
    738 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
    739 TIME_H_DEFINES_STRUCT_TIMESPEC
    740 NEXT_AS_FIRST_DIRECTIVE_TIME_H
    741 NEXT_TIME_H
    742 REPLACE_LOCALTIME
    743 REPLACE_GMTIME
    744 GNULIB_GETTIMEOFDAY
    745 REPLACE_TZSET
    746 REPLACE_TIMEGM
    747 REPLACE_STRFTIME
    748 REPLACE_NANOSLEEP
    749 REPLACE_MKTIME
    750 REPLACE_LOCALTIME_R
    751 REPLACE_CTIME
    752 HAVE_TIMEZONE_T
    753 HAVE_TIMESPEC_GETRES
    754 HAVE_TIMESPEC_GET
    755 HAVE_TIMEGM
    756 HAVE_STRPTIME
    757 HAVE_NANOSLEEP
    758 HAVE_DECL_LOCALTIME_R
    759 GL_GNULIB_WAITPID
    760 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
    761 NEXT_SYS_WAIT_H
    762 HAVE_SYS_UIO_H
    763 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
    764 NEXT_SYS_UIO_H
    765 WINDOWS_STAT_INODES
    766 WINDOWS_64_BIT_OFF_T
    767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
    768 NEXT_SYS_TYPES_H
    769 HAVE_SYS_RANDOM_H
    770 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
    771 NEXT_SYS_RANDOM_H
    772 GL_COND_OBJ_STRTOK_R_FALSE
    773 GL_COND_OBJ_STRTOK_R_TRUE
    774 GL_COND_OBJ_STRNLEN_FALSE
    775 GL_COND_OBJ_STRNLEN_TRUE
    776 HAVE_STRINGS_H
    777 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
    778 NEXT_STRINGS_H
    779 NEXT_AS_FIRST_DIRECTIVE_STRING_H
    780 NEXT_STRING_H
    781 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
    782 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
    783 GL_COND_OBJ_STRERROR_FALSE
    784 GL_COND_OBJ_STRERROR_TRUE
    785 GL_COND_OBJ_STRDUP_FALSE
    786 GL_COND_OBJ_STRDUP_TRUE
    787 GL_COND_OBJ_STRCHRNUL_FALSE
    788 GL_COND_OBJ_STRCHRNUL_TRUE
    789 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
    790 NEXT_STDLIB_H
    791 GL_COND_OBJ_STDIO_WRITE_FALSE
    792 GL_COND_OBJ_STDIO_WRITE_TRUE
    793 GL_COND_OBJ_STDIO_READ_FALSE
    794 GL_COND_OBJ_STDIO_READ_TRUE
    795 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
    796 NEXT_STDIO_H
    797 GL_GENERATE_STDINT_H_FALSE
    798 GL_GENERATE_STDINT_H_TRUE
    799 STDINT_H
    800 GL_GENERATE_STDDEF_H_FALSE
    801 GL_GENERATE_STDDEF_H_TRUE
    802 STDDEF_H
    803 GL_GENERATE_STDBOOL_H_FALSE
    804 GL_GENERATE_STDBOOL_H_TRUE
    805 STDBOOL_H
    806 HAVE__BOOL
    807 GL_GENERATE_STDALIGN_H_FALSE
    808 GL_GENERATE_STDALIGN_H_TRUE
    809 STDALIGN_H
    810 GL_COND_OBJ_STAT_FALSE
    811 GL_COND_OBJ_STAT_TRUE
    812 GL_COND_OBJ_SOCKET_FALSE
    813 GL_COND_OBJ_SOCKET_TRUE
    814 GL_GNULIB_SIGACTION
    815 GL_GNULIB_SIGPROCMASK
    816 GL_GNULIB_SIGNAL_H_SIGPIPE
    817 GL_GNULIB_RAISE
    818 GL_GNULIB_PTHREAD_SIGMASK
    819 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
    820 NEXT_SIGNAL_H
    821 REPLACE_RAISE
    822 REPLACE_PTHREAD_SIGMASK
    823 HAVE_SIGHANDLER_T
    824 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
    825 HAVE_STRUCT_SIGACTION_SA_SIGACTION
    826 HAVE_SIGACTION
    827 HAVE_SIGINFO_T
    828 HAVE_SIGSET_T
    829 HAVE_RAISE
    830 HAVE_PTHREAD_SIGMASK
    831 HAVE_POSIX_SIGNALBLOCKING
    832 GL_COND_OBJ_SETSOCKOPT_FALSE
    833 GL_COND_OBJ_SETSOCKOPT_TRUE
    834 GL_COND_OBJ_SETLOCALE_LOCK_FALSE
    835 GL_COND_OBJ_SETLOCALE_LOCK_TRUE
    836 GL_COND_OBJ_SETENV_FALSE
    837 GL_COND_OBJ_SETENV_TRUE
    838 GL_GNULIB_SELECT
    839 GL_GNULIB_PSELECT
    840 GL_COND_OBJ_SELECT_FALSE
    841 GL_COND_OBJ_SELECT_TRUE
    842 LIB_SELECT
    843 LIBSOCKET
    844 HAVE_SYS_SELECT_H
    845 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
    846 NEXT_SYS_SELECT_H
    847 REPLACE_SELECT
    848 REPLACE_PSELECT
    849 HAVE_PSELECT
    850 GL_COND_OBJ_RMDIR_FALSE
    851 GL_COND_OBJ_RMDIR_TRUE
    852 GL_COND_OBJ_REWINDDIR_FALSE
    853 GL_COND_OBJ_REWINDDIR_TRUE
    854 GL_COND_OBJ_RENAME_FALSE
    855 GL_COND_OBJ_RENAME_TRUE
    856 GL_COND_OBJ_READLINK_FALSE
    857 GL_COND_OBJ_READLINK_TRUE
    858 GL_COND_OBJ_READDIR_FALSE
    859 GL_COND_OBJ_READDIR_TRUE
    860 GL_COND_OBJ_RAWMEMCHR_FALSE
    861 GL_COND_OBJ_RAWMEMCHR_TRUE
    862 GL_COND_OBJ_PIPE_FALSE
    863 GL_COND_OBJ_PIPE_TRUE
    864 GL_COND_OBJ_OPENDIR_FALSE
    865 GL_COND_OBJ_OPENDIR_TRUE
    866 GL_COND_OBJ_OPENAT_FALSE
    867 GL_COND_OBJ_OPENAT_TRUE
    868 GL_COND_OBJ_OPEN_FALSE
    869 GL_COND_OBJ_OPEN_TRUE
    870 GL_GENERATE_NETINET_IN_H_FALSE
    871 GL_GENERATE_NETINET_IN_H_TRUE
    872 NETINET_IN_H
    873 HAVE_NETINET_IN_H
    874 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
    875 NEXT_NETINET_IN_H
    876 GL_GNULIB_GETADDRINFO
    877 HAVE_NETDB_H
    878 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
    879 NEXT_NETDB_H
    880 REPLACE_GETADDRINFO
    881 REPLACE_GAI_STRERROR
    882 HAVE_DECL_GETNAMEINFO
    883 HAVE_DECL_GETADDRINFO
    884 HAVE_DECL_GAI_STRERROR
    885 HAVE_DECL_FREEADDRINFO
    886 HAVE_STRUCT_ADDRINFO
    887 GL_COND_OBJ_MSVC_NOTHROW_FALSE
    888 GL_COND_OBJ_MSVC_NOTHROW_TRUE
    889 GL_COND_OBJ_MSVC_INVAL_FALSE
    890 GL_COND_OBJ_MSVC_INVAL_TRUE
    891 GL_COND_OBJ_MKOSTEMP_FALSE
    892 GL_COND_OBJ_MKOSTEMP_TRUE
    893 GL_COND_OBJ_MKDTEMP_FALSE
    894 GL_COND_OBJ_MKDTEMP_TRUE
    895 GL_COND_OBJ_MKDIR_FALSE
    896 GL_COND_OBJ_MKDIR_TRUE
    897 GL_COND_OBJ_MEMRCHR_FALSE
    898 GL_COND_OBJ_MEMRCHR_TRUE
    899 GL_COND_OBJ_MEMPCPY_FALSE
    900 GL_COND_OBJ_MEMPCPY_TRUE
    901 GL_GNULIB_MDA_STRDUP
    902 GL_GNULIB_MDA_MEMCCPY
    903 GL_GNULIB_STRVERSCMP
    904 GL_GNULIB_STRSIGNAL
    905 GL_GNULIB_SIGDESCR_NP
    906 GL_GNULIB_SIGABBREV_NP
    907 GL_GNULIB_STRERRORNAME_NP
    908 GL_GNULIB_STRERROR_R
    909 GL_GNULIB_STRERROR
    910 GL_GNULIB_MBSTOK_R
    911 GL_GNULIB_MBSSEP
    912 GL_GNULIB_MBSSPN
    913 GL_GNULIB_MBSPBRK
    914 GL_GNULIB_MBSCSPN
    915 GL_GNULIB_MBSCASESTR
    916 GL_GNULIB_MBSPCASECMP
    917 GL_GNULIB_MBSNCASECMP
    918 GL_GNULIB_MBSCASECMP
    919 GL_GNULIB_MBSSTR
    920 GL_GNULIB_MBSRCHR
    921 GL_GNULIB_MBSCHR
    922 GL_GNULIB_MBSNLEN
    923 GL_GNULIB_MBSLEN
    924 GL_GNULIB_STRTOK_R
    925 GL_GNULIB_STRCASESTR
    926 GL_GNULIB_STRSTR
    927 GL_GNULIB_STRSEP
    928 GL_GNULIB_STRPBRK
    929 GL_GNULIB_STRNLEN
    930 GL_GNULIB_STRNDUP
    931 GL_GNULIB_STRNCAT
    932 GL_GNULIB_STRDUP
    933 GL_GNULIB_STRCHRNUL
    934 GL_GNULIB_STPNCPY
    935 GL_GNULIB_STPCPY
    936 GL_GNULIB_RAWMEMCHR
    937 GL_GNULIB_MEMRCHR
    938 GL_GNULIB_MEMPCPY
    939 GL_GNULIB_MEMMEM
    940 GL_GNULIB_MEMCHR
    941 GL_GNULIB_FFSLL
    942 GL_GNULIB_FFSL
    943 GL_GNULIB_EXPLICIT_BZERO
    944 GL_COND_OBJ_MEMCHR_FALSE
    945 GL_COND_OBJ_MEMCHR_TRUE
    946 UNDEFINE_STRTOK_R
    947 REPLACE_STRSIGNAL
    948 REPLACE_STRERRORNAME_NP
    949 REPLACE_STRERROR_R
    950 REPLACE_STRERROR
    951 REPLACE_STRTOK_R
    952 REPLACE_STRCASESTR
    953 REPLACE_STRSTR
    954 REPLACE_STRNLEN
    955 REPLACE_STRNDUP
    956 REPLACE_STRNCAT
    957 REPLACE_STRDUP
    958 REPLACE_STRCHRNUL
    959 REPLACE_STPNCPY
    960 REPLACE_MEMMEM
    961 REPLACE_MEMCHR
    962 REPLACE_FFSLL
    963 HAVE_STRVERSCMP
    964 HAVE_DECL_STRSIGNAL
    965 HAVE_SIGDESCR_NP
    966 HAVE_SIGABBREV_NP
    967 HAVE_STRERRORNAME_NP
    968 HAVE_DECL_STRERROR_R
    969 HAVE_DECL_STRTOK_R
    970 HAVE_STRCASESTR
    971 HAVE_STRSEP
    972 HAVE_STRPBRK
    973 HAVE_DECL_STRNLEN
    974 HAVE_DECL_STRNDUP
    975 HAVE_DECL_STRDUP
    976 HAVE_STRCHRNUL
    977 HAVE_STPNCPY
    978 HAVE_STPCPY
    979 HAVE_RAWMEMCHR
    980 HAVE_DECL_MEMRCHR
    981 HAVE_MEMPCPY
    982 HAVE_DECL_MEMMEM
    983 HAVE_FFSLL
    984 HAVE_FFSL
    985 HAVE_EXPLICIT_BZERO
    986 HAVE_MBSLEN
    987 GL_COND_OBJ_MBTOWC_FALSE
    988 GL_COND_OBJ_MBTOWC_TRUE
    989 GL_COND_OBJ_MBSRTOWCS_FALSE
    990 GL_COND_OBJ_MBSRTOWCS_TRUE
    991 GL_COND_OBJ_MBSINIT_FALSE
    992 GL_COND_OBJ_MBSINIT_TRUE
    993 HAVE_VISIBILITY
    994 CFLAG_VISIBILITY
    995 GL_COND_OBJ_MBRTOWC_FALSE
    996 GL_COND_OBJ_MBRTOWC_TRUE
    997 LIB_MBRTOWC
    998 LOCALE_ZH_CN
    999 LOCALE_FR_UTF8
   1000 LOCALE_JA
   1001 NEXT_AS_FIRST_DIRECTIVE_MATH_H
   1002 NEXT_MATH_H
   1003 GL_COND_OBJ_LSTAT_FALSE
   1004 GL_COND_OBJ_LSTAT_TRUE
   1005 LTLIBMULTITHREAD
   1006 LIBMULTITHREAD
   1007 LTLIBTHREAD
   1008 LIBTHREAD
   1009 LIBSTDTHREAD
   1010 GL_GNULIB_LOCALENAME
   1011 GL_GNULIB_DUPLOCALE
   1012 GL_GNULIB_SETLOCALE_NULL
   1013 GL_GNULIB_SETLOCALE
   1014 GL_GNULIB_LOCALECONV
   1015 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
   1016 NEXT_LOCALE_H
   1017 HAVE_XLOCALE_H
   1018 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
   1019 NEXT_STDDEF_H
   1020 HAVE_WCHAR_T
   1021 HAVE_MAX_ALIGN_T
   1022 REPLACE_NULL
   1023 LOCALENAME_ENHANCE_LOCALE_FUNCS
   1024 REPLACE_STRUCT_LCONV
   1025 REPLACE_FREELOCALE
   1026 REPLACE_DUPLOCALE
   1027 REPLACE_NEWLOCALE
   1028 REPLACE_SETLOCALE
   1029 REPLACE_LOCALECONV
   1030 HAVE_FREELOCALE
   1031 HAVE_DUPLOCALE
   1032 HAVE_NEWLOCALE
   1033 LOCALCHARSET_TESTS_ENVIRONMENT
   1034 GL_COND_OBJ_LISTEN_FALSE
   1035 GL_COND_OBJ_LISTEN_TRUE
   1036 GL_GENERATE_LIMITS_H_FALSE
   1037 GL_GENERATE_LIMITS_H_TRUE
   1038 LIMITS_H
   1039 GL_COND_OBJ_ISBLANK_FALSE
   1040 GL_COND_OBJ_ISBLANK_TRUE
   1041 GL_GNULIB_STRTOUMAX
   1042 GL_GNULIB_STRTOIMAX
   1043 GL_GNULIB_IMAXDIV
   1044 GL_GNULIB_IMAXABS
   1045 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
   1046 NEXT_INTTYPES_H
   1047 UINT64_MAX_EQ_ULONG_MAX
   1048 UINT32_MAX_LT_UINTMAX_MAX
   1049 PRIPTR_PREFIX
   1050 INT64_MAX_EQ_LONG_MAX
   1051 INT32_MAX_LT_INTMAX_MAX
   1052 REPLACE_STRTOUMAX
   1053 REPLACE_STRTOIMAX
   1054 HAVE_IMAXDIV_T
   1055 HAVE_DECL_STRTOUMAX
   1056 HAVE_DECL_STRTOIMAX
   1057 HAVE_DECL_IMAXDIV
   1058 HAVE_DECL_IMAXABS
   1059 HAVE_SYS_INTTYPES_H
   1060 HAVE_SYS_BITYPES_H
   1061 HAVE_C99_STDINT_H
   1062 WINT_T_SUFFIX
   1063 WCHAR_T_SUFFIX
   1064 SIG_ATOMIC_T_SUFFIX
   1065 SIZE_T_SUFFIX
   1066 PTRDIFF_T_SUFFIX
   1067 HAVE_SIGNED_WINT_T
   1068 HAVE_SIGNED_WCHAR_T
   1069 HAVE_SIGNED_SIG_ATOMIC_T
   1070 BITSIZEOF_WINT_T
   1071 BITSIZEOF_WCHAR_T
   1072 BITSIZEOF_SIG_ATOMIC_T
   1073 BITSIZEOF_SIZE_T
   1074 BITSIZEOF_PTRDIFF_T
   1075 APPLE_UNIVERSAL_BUILD
   1076 HAVE_STDINT_H
   1077 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
   1078 NEXT_STDINT_H
   1079 HAVE_SYS_TYPES_H
   1080 HAVE_INTTYPES_H
   1081 HAVE_WCHAR_H
   1082 GNULIBHEADERS_OVERRIDE_WINT_T
   1083 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
   1084 NEXT_LIMITS_H
   1085 GL_COND_OBJ_INET_NTOP_FALSE
   1086 GL_COND_OBJ_INET_NTOP_TRUE
   1087 INET_NTOP_LIB
   1088 LIB_HARD_LOCALE
   1089 LIB_SETLOCALE_NULL
   1090 LIB_SCHED_YIELD
   1091 LIBPMULTITHREAD
   1092 LIBPTHREAD
   1093 GL_COND_OBJ_GLOB_PATTERN_P_FALSE
   1094 GL_COND_OBJ_GLOB_PATTERN_P_TRUE
   1095 GL_COND_OBJ_GLOB_FALSE
   1096 GL_COND_OBJ_GLOB_TRUE
   1097 GL_GENERATE_GLOB_H_FALSE
   1098 GL_GENERATE_GLOB_H_TRUE
   1099 GLOB_H
   1100 GL_GNULIB_GLOB
   1101 HAVE_GLOB_H
   1102 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
   1103 NEXT_GLOB_H
   1104 REPLACE_GLOB_PATTERN_P
   1105 REPLACE_GLOB
   1106 HAVE_GLOB_PATTERN_P
   1107 HAVE_GLOB
   1108 GL_GNULIB_GETTIMEOFDAY
   1109 GL_COND_OBJ_GETTIMEOFDAY_FALSE
   1110 GL_COND_OBJ_GETTIMEOFDAY_TRUE
   1111 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
   1112 NEXT_SYS_TIME_H
   1113 REPLACE_STRUCT_TIMEVAL
   1114 REPLACE_GETTIMEOFDAY
   1115 HAVE_SYS_TIME_H
   1116 HAVE_STRUCT_TIMEVAL
   1117 HAVE_GETTIMEOFDAY
   1118 LTLIBINTL
   1119 LIBINTL
   1120 GL_GNULIB_GETRANDOM
   1121 GL_COND_OBJ_GETRANDOM_FALSE
   1122 GL_COND_OBJ_GETRANDOM_TRUE
   1123 LIB_GETRANDOM
   1124 REPLACE_GETRANDOM
   1125 HAVE_GETRANDOM
   1126 LIB_GETLOGIN
   1127 GL_COND_OBJ_GETLOGIN_R_FALSE
   1128 GL_COND_OBJ_GETLOGIN_R_TRUE
   1129 GL_COND_OBJ_GETLINE_FALSE
   1130 GL_COND_OBJ_GETLINE_TRUE
   1131 GL_COND_OBJ_GETDTABLESIZE_FALSE
   1132 GL_COND_OBJ_GETDTABLESIZE_TRUE
   1133 GL_GNULIB_MDA_TEMPNAM
   1134 GL_GNULIB_MDA_PUTW
   1135 GL_GNULIB_MDA_GETW
   1136 GL_GNULIB_MDA_FILENO
   1137 GL_GNULIB_MDA_FDOPEN
   1138 GL_GNULIB_MDA_FCLOSEALL
   1139 GL_GNULIB_VSPRINTF_POSIX
   1140 GL_GNULIB_VSNPRINTF
   1141 GL_GNULIB_VPRINTF_POSIX
   1142 GL_GNULIB_VPRINTF
   1143 GL_GNULIB_VFPRINTF_POSIX
   1144 GL_GNULIB_VFPRINTF
   1145 GL_GNULIB_VDPRINTF
   1146 GL_GNULIB_VSCANF
   1147 GL_GNULIB_VFSCANF
   1148 GL_GNULIB_VASPRINTF
   1149 GL_GNULIB_TMPFILE
   1150 GL_GNULIB_STDIO_H_SIGPIPE
   1151 GL_GNULIB_STDIO_H_NONBLOCKING
   1152 GL_GNULIB_SPRINTF_POSIX
   1153 GL_GNULIB_SNPRINTF
   1154 GL_GNULIB_SCANF
   1155 GL_GNULIB_RENAMEAT
   1156 GL_GNULIB_RENAME
   1157 GL_GNULIB_REMOVE
   1158 GL_GNULIB_PUTS
   1159 GL_GNULIB_PUTCHAR
   1160 GL_GNULIB_PUTC
   1161 GL_GNULIB_PRINTF_POSIX
   1162 GL_GNULIB_PRINTF
   1163 GL_GNULIB_POPEN
   1164 GL_GNULIB_PERROR
   1165 GL_GNULIB_PCLOSE
   1166 GL_GNULIB_OBSTACK_PRINTF_POSIX
   1167 GL_GNULIB_OBSTACK_PRINTF
   1168 GL_GNULIB_GETLINE
   1169 GL_GNULIB_GETDELIM
   1170 GL_GNULIB_GETCHAR
   1171 GL_GNULIB_GETC
   1172 GL_GNULIB_FWRITE
   1173 GL_GNULIB_FTELLO
   1174 GL_GNULIB_FTELL
   1175 GL_GNULIB_FSEEKO
   1176 GL_GNULIB_FSEEK
   1177 GL_GNULIB_FSCANF
   1178 GL_GNULIB_FREOPEN
   1179 GL_GNULIB_FREAD
   1180 GL_GNULIB_FPUTS
   1181 GL_GNULIB_FPUTC
   1182 GL_GNULIB_FPURGE
   1183 GL_GNULIB_FPRINTF_POSIX
   1184 GL_GNULIB_FPRINTF
   1185 GL_GNULIB_FOPEN_GNU
   1186 GL_GNULIB_FOPEN
   1187 GL_GNULIB_FGETS
   1188 GL_GNULIB_FGETC
   1189 GL_GNULIB_FFLUSH
   1190 GL_GNULIB_FDOPEN
   1191 GL_GNULIB_FCLOSE
   1192 GL_GNULIB_DPRINTF
   1193 GL_COND_OBJ_GETDELIM_FALSE
   1194 GL_COND_OBJ_GETDELIM_TRUE
   1195 REPLACE_VSPRINTF
   1196 REPLACE_VSNPRINTF
   1197 REPLACE_VPRINTF
   1198 REPLACE_VFPRINTF
   1199 REPLACE_VDPRINTF
   1200 REPLACE_VASPRINTF
   1201 REPLACE_TMPFILE
   1202 REPLACE_STDIO_WRITE_FUNCS
   1203 REPLACE_STDIO_READ_FUNCS
   1204 REPLACE_SPRINTF
   1205 REPLACE_SNPRINTF
   1206 REPLACE_RENAMEAT
   1207 REPLACE_RENAME
   1208 REPLACE_REMOVE
   1209 REPLACE_PRINTF
   1210 REPLACE_POPEN
   1211 REPLACE_PERROR
   1212 REPLACE_OBSTACK_PRINTF
   1213 REPLACE_GETLINE
   1214 REPLACE_GETDELIM
   1215 REPLACE_FTELLO
   1216 REPLACE_FTELL
   1217 REPLACE_FSEEKO
   1218 REPLACE_FSEEK
   1219 REPLACE_FREOPEN
   1220 REPLACE_FPURGE
   1221 REPLACE_FPRINTF
   1222 REPLACE_FOPEN_FOR_FOPEN_GNU
   1223 REPLACE_FOPEN
   1224 REPLACE_FFLUSH
   1225 REPLACE_FDOPEN
   1226 REPLACE_FCLOSE
   1227 REPLACE_DPRINTF
   1228 HAVE_VDPRINTF
   1229 HAVE_VASPRINTF
   1230 HAVE_RENAMEAT
   1231 HAVE_POPEN
   1232 HAVE_PCLOSE
   1233 HAVE_FTELLO
   1234 HAVE_FSEEKO
   1235 HAVE_DPRINTF
   1236 HAVE_DECL_VSNPRINTF
   1237 HAVE_DECL_SNPRINTF
   1238 HAVE_DECL_OBSTACK_PRINTF
   1239 HAVE_DECL_GETLINE
   1240 HAVE_DECL_GETDELIM
   1241 HAVE_DECL_FTELLO
   1242 HAVE_DECL_FSEEKO
   1243 HAVE_DECL_FPURGE
   1244 HAVE_DECL_FCLOSEALL
   1245 GL_COND_OBJ_GETCWD_LGPL_FALSE
   1246 GL_COND_OBJ_GETCWD_LGPL_TRUE
   1247 GL_COND_OBJ_GETCWD_FALSE
   1248 GL_COND_OBJ_GETCWD_TRUE
   1249 GL_COND_OBJ_FSTATAT_FALSE
   1250 GL_COND_OBJ_FSTATAT_TRUE
   1251 GL_GNULIB_MDA_UMASK
   1252 GL_GNULIB_MDA_MKDIR
   1253 GL_GNULIB_MDA_CHMOD
   1254 GL_GNULIB_OVERRIDES_STRUCT_STAT
   1255 GL_GNULIB_UTIMENSAT
   1256 GL_GNULIB_STAT
   1257 GL_GNULIB_MKNODAT
   1258 GL_GNULIB_MKNOD
   1259 GL_GNULIB_MKFIFOAT
   1260 GL_GNULIB_MKFIFO
   1261 GL_GNULIB_MKDIRAT
   1262 GL_GNULIB_MKDIR
   1263 GL_GNULIB_LSTAT
   1264 GL_GNULIB_LCHMOD
   1265 GL_GNULIB_GETUMASK
   1266 GL_GNULIB_FUTIMENS
   1267 GL_GNULIB_FSTATAT
   1268 GL_GNULIB_FSTAT
   1269 GL_GNULIB_FCHMODAT
   1270 WINDOWS_64_BIT_ST_SIZE
   1271 WINDOWS_STAT_TIMESPEC
   1272 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
   1273 NEXT_SYS_STAT_H
   1274 GL_COND_OBJ_FSTAT_FALSE
   1275 GL_COND_OBJ_FSTAT_TRUE
   1276 REPLACE_UTIMENSAT
   1277 REPLACE_STAT
   1278 REPLACE_MKNODAT
   1279 REPLACE_MKNOD
   1280 REPLACE_MKFIFOAT
   1281 REPLACE_MKFIFO
   1282 REPLACE_MKDIR
   1283 REPLACE_LSTAT
   1284 REPLACE_FUTIMENS
   1285 REPLACE_FSTATAT
   1286 REPLACE_FSTAT
   1287 REPLACE_FCHMODAT
   1288 HAVE_UTIMENSAT
   1289 HAVE_MKNODAT
   1290 HAVE_MKNOD
   1291 HAVE_MKFIFOAT
   1292 HAVE_MKFIFO
   1293 HAVE_MKDIRAT
   1294 HAVE_LSTAT
   1295 HAVE_LCHMOD
   1296 HAVE_GETUMASK
   1297 HAVE_FUTIMENS
   1298 HAVE_FSTATAT
   1299 HAVE_FCHMODAT
   1300 FREXPL_LIBM
   1301 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   1302 GL_GNULIB_MDA_YN
   1303 GL_GNULIB_MDA_Y1
   1304 GL_GNULIB_MDA_Y0
   1305 GL_GNULIB_MDA_JN
   1306 GL_GNULIB_MDA_J1
   1307 GL_GNULIB_MDA_J0
   1308 GL_GNULIB_TRUNCL
   1309 GL_GNULIB_TRUNCF
   1310 GL_GNULIB_TRUNC
   1311 GL_GNULIB_TANHF
   1312 GL_GNULIB_TANL
   1313 GL_GNULIB_TANF
   1314 GL_GNULIB_SQRTL
   1315 GL_GNULIB_SQRTF
   1316 GL_GNULIB_SINHF
   1317 GL_GNULIB_SINL
   1318 GL_GNULIB_SINF
   1319 GL_GNULIB_SIGNBIT
   1320 GL_GNULIB_ROUNDL
   1321 GL_GNULIB_ROUNDF
   1322 GL_GNULIB_ROUND
   1323 GL_GNULIB_RINTL
   1324 GL_GNULIB_RINTF
   1325 GL_GNULIB_RINT
   1326 GL_GNULIB_REMAINDERL
   1327 GL_GNULIB_REMAINDERF
   1328 GL_GNULIB_REMAINDER
   1329 GL_GNULIB_POWF
   1330 GL_GNULIB_MODFL
   1331 GL_GNULIB_MODFF
   1332 GL_GNULIB_MODF
   1333 GL_GNULIB_LOGBL
   1334 GL_GNULIB_LOGBF
   1335 GL_GNULIB_LOGB
   1336 GL_GNULIB_LOG2L
   1337 GL_GNULIB_LOG2F
   1338 GL_GNULIB_LOG2
   1339 GL_GNULIB_LOG1PL
   1340 GL_GNULIB_LOG1PF
   1341 GL_GNULIB_LOG1P
   1342 GL_GNULIB_LOG10L
   1343 GL_GNULIB_LOG10F
   1344 GL_GNULIB_LOG10
   1345 GL_GNULIB_LOGL
   1346 GL_GNULIB_LOGF
   1347 GL_GNULIB_LOG
   1348 GL_GNULIB_LDEXPL
   1349 GL_GNULIB_LDEXPF
   1350 GL_GNULIB_ISNANL
   1351 GL_GNULIB_ISNAND
   1352 GL_GNULIB_ISNANF
   1353 GL_GNULIB_ISNAN
   1354 GL_GNULIB_ISINF
   1355 GL_GNULIB_ISFINITE
   1356 GL_GNULIB_ILOGBL
   1357 GL_GNULIB_ILOGBF
   1358 GL_GNULIB_ILOGB
   1359 GL_GNULIB_HYPOTL
   1360 GL_GNULIB_HYPOTF
   1361 GL_GNULIB_HYPOT
   1362 GL_GNULIB_FREXPL
   1363 GL_GNULIB_FREXP
   1364 GL_GNULIB_FREXPF
   1365 GL_GNULIB_FMODL
   1366 GL_GNULIB_FMODF
   1367 GL_GNULIB_FMOD
   1368 GL_GNULIB_FMAL
   1369 GL_GNULIB_FMAF
   1370 GL_GNULIB_FMA
   1371 GL_GNULIB_FLOORL
   1372 GL_GNULIB_FLOORF
   1373 GL_GNULIB_FLOOR
   1374 GL_GNULIB_FABSL
   1375 GL_GNULIB_FABSF
   1376 GL_GNULIB_EXPM1L
   1377 GL_GNULIB_EXPM1F
   1378 GL_GNULIB_EXPM1
   1379 GL_GNULIB_EXP2L
   1380 GL_GNULIB_EXP2F
   1381 GL_GNULIB_EXP2
   1382 GL_GNULIB_EXPL
   1383 GL_GNULIB_EXPF
   1384 GL_GNULIB_COSHF
   1385 GL_GNULIB_COSL
   1386 GL_GNULIB_COSF
   1387 GL_GNULIB_COPYSIGNL
   1388 GL_GNULIB_COPYSIGNF
   1389 GL_GNULIB_COPYSIGN
   1390 GL_GNULIB_CEILL
   1391 GL_GNULIB_CEILF
   1392 GL_GNULIB_CEIL
   1393 GL_GNULIB_CBRTL
   1394 GL_GNULIB_CBRTF
   1395 GL_GNULIB_CBRT
   1396 GL_GNULIB_ATAN2F
   1397 GL_GNULIB_ATANL
   1398 GL_GNULIB_ATANF
   1399 GL_GNULIB_ASINL
   1400 GL_GNULIB_ASINF
   1401 GL_GNULIB_ACOSL
   1402 GL_GNULIB_ACOSF
   1403 FREXP_LIBM
   1404 REPLACE_TRUNCL
   1405 REPLACE_TRUNCF
   1406 REPLACE_TRUNC
   1407 REPLACE_TANHF
   1408 REPLACE_TANF
   1409 REPLACE_SQRTL
   1410 REPLACE_SQRTF
   1411 REPLACE_SINHF
   1412 REPLACE_SINF
   1413 REPLACE_SIGNBIT_USING_BUILTINS
   1414 REPLACE_SIGNBIT
   1415 REPLACE_ROUNDL
   1416 REPLACE_ROUNDF
   1417 REPLACE_ROUND
   1418 REPLACE_RINTL
   1419 REPLACE_REMAINDERL
   1420 REPLACE_REMAINDERF
   1421 REPLACE_REMAINDER
   1422 REPLACE_NAN
   1423 REPLACE_MODFL
   1424 REPLACE_MODFF
   1425 REPLACE_MODF
   1426 REPLACE_LOGBL
   1427 REPLACE_LOGBF
   1428 REPLACE_LOGB
   1429 REPLACE_LOG2L
   1430 REPLACE_LOG2F
   1431 REPLACE_LOG2
   1432 REPLACE_LOG1PL
   1433 REPLACE_LOG1PF
   1434 REPLACE_LOG1P
   1435 REPLACE_LOG10L
   1436 REPLACE_LOG10F
   1437 REPLACE_LOG10
   1438 REPLACE_LOGL
   1439 REPLACE_LOGF
   1440 REPLACE_LOG
   1441 REPLACE_LDEXPL
   1442 REPLACE_ISNAN
   1443 REPLACE_ISINF
   1444 REPLACE_ISFINITE
   1445 REPLACE_ILOGBL
   1446 REPLACE_ILOGBF
   1447 REPLACE_ILOGB
   1448 REPLACE_HYPOTL
   1449 REPLACE_HYPOTF
   1450 REPLACE_HYPOT
   1451 REPLACE_HUGE_VAL
   1452 REPLACE_FREXPL
   1453 REPLACE_FREXP
   1454 REPLACE_FREXPF
   1455 REPLACE_FMODL
   1456 REPLACE_FMODF
   1457 REPLACE_FMOD
   1458 REPLACE_FMAL
   1459 REPLACE_FMAF
   1460 REPLACE_FMA
   1461 REPLACE_FLOORL
   1462 REPLACE_FLOORF
   1463 REPLACE_FLOOR
   1464 REPLACE_FABSL
   1465 REPLACE_EXP2L
   1466 REPLACE_EXP2
   1467 REPLACE_EXPM1L
   1468 REPLACE_EXPM1F
   1469 REPLACE_EXPM1
   1470 REPLACE_EXPL
   1471 REPLACE_EXPF
   1472 REPLACE_COSHF
   1473 REPLACE_COSF
   1474 REPLACE_CEILL
   1475 REPLACE_CEILF
   1476 REPLACE_CEIL
   1477 REPLACE_CBRTL
   1478 REPLACE_CBRTF
   1479 REPLACE_ATAN2F
   1480 REPLACE_ATANF
   1481 REPLACE_ASINF
   1482 REPLACE_ACOSF
   1483 HAVE_DECL_TRUNCL
   1484 HAVE_DECL_TRUNCF
   1485 HAVE_DECL_TRUNC
   1486 HAVE_DECL_TANL
   1487 HAVE_DECL_SQRTL
   1488 HAVE_DECL_SINL
   1489 HAVE_DECL_ROUNDL
   1490 HAVE_DECL_ROUNDF
   1491 HAVE_DECL_ROUND
   1492 HAVE_DECL_RINTF
   1493 HAVE_DECL_REMAINDERL
   1494 HAVE_DECL_REMAINDER
   1495 HAVE_DECL_LOGB
   1496 HAVE_DECL_LOG2L
   1497 HAVE_DECL_LOG2F
   1498 HAVE_DECL_LOG2
   1499 HAVE_DECL_LOG10L
   1500 HAVE_DECL_LOGL
   1501 HAVE_DECL_LDEXPL
   1502 HAVE_DECL_FREXPL
   1503 HAVE_DECL_FLOORL
   1504 HAVE_DECL_FLOORF
   1505 HAVE_DECL_EXPM1L
   1506 HAVE_DECL_EXP2L
   1507 HAVE_DECL_EXP2F
   1508 HAVE_DECL_EXP2
   1509 HAVE_DECL_EXPL
   1510 HAVE_DECL_COSL
   1511 HAVE_DECL_COPYSIGNF
   1512 HAVE_DECL_CEILL
   1513 HAVE_DECL_CEILF
   1514 HAVE_DECL_CBRTL
   1515 HAVE_DECL_CBRTF
   1516 HAVE_DECL_ATANL
   1517 HAVE_DECL_ASINL
   1518 HAVE_DECL_ACOSL
   1519 HAVE_TANHF
   1520 HAVE_TANL
   1521 HAVE_TANF
   1522 HAVE_SQRTL
   1523 HAVE_SQRTF
   1524 HAVE_SINHF
   1525 HAVE_SINL
   1526 HAVE_SINF
   1527 HAVE_RINTL
   1528 HAVE_RINT
   1529 HAVE_REMAINDERF
   1530 HAVE_REMAINDER
   1531 HAVE_POWF
   1532 HAVE_MODFL
   1533 HAVE_MODFF
   1534 HAVE_LOGBL
   1535 HAVE_LOGBF
   1536 HAVE_LOG1PL
   1537 HAVE_LOG1PF
   1538 HAVE_LOG1P
   1539 HAVE_LOG10L
   1540 HAVE_LOG10F
   1541 HAVE_LOGL
   1542 HAVE_LOGF
   1543 HAVE_LDEXPF
   1544 HAVE_ISNANL
   1545 HAVE_ISNAND
   1546 HAVE_ISNANF
   1547 HAVE_ILOGBL
   1548 HAVE_ILOGBF
   1549 HAVE_ILOGB
   1550 HAVE_HYPOTL
   1551 HAVE_HYPOTF
   1552 HAVE_FREXPF
   1553 HAVE_FMODL
   1554 HAVE_FMODF
   1555 HAVE_FMAL
   1556 HAVE_FMAF
   1557 HAVE_FMA
   1558 HAVE_FABSL
   1559 HAVE_FABSF
   1560 HAVE_EXPM1F
   1561 HAVE_EXPM1
   1562 HAVE_EXPL
   1563 HAVE_EXPF
   1564 HAVE_COSHF
   1565 HAVE_COSL
   1566 HAVE_COSF
   1567 HAVE_COPYSIGNL
   1568 HAVE_COPYSIGN
   1569 HAVE_CBRTL
   1570 HAVE_CBRTF
   1571 HAVE_CBRT
   1572 HAVE_ATAN2F
   1573 HAVE_ATANL
   1574 HAVE_ATANF
   1575 HAVE_ASINL
   1576 HAVE_ASINF
   1577 HAVE_ACOSL
   1578 HAVE_ACOSF
   1579 GL_COND_OBJ_FREE_FALSE
   1580 GL_COND_OBJ_FREE_TRUE
   1581 GL_GENERATE_FNMATCH_H_FALSE
   1582 GL_GENERATE_FNMATCH_H_TRUE
   1583 FNMATCH_H
   1584 GL_GNULIB_FNMATCH
   1585 HAVE_FNMATCH_H
   1586 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
   1587 NEXT_FNMATCH_H
   1588 REPLACE_FNMATCH
   1589 HAVE_FNMATCH
   1590 GL_COND_OBJ_ITOLD_FALSE
   1591 GL_COND_OBJ_ITOLD_TRUE
   1592 GL_COND_OBJ_FLOAT_FALSE
   1593 GL_COND_OBJ_FLOAT_TRUE
   1594 GL_GENERATE_FLOAT_H_FALSE
   1595 GL_GENERATE_FLOAT_H_TRUE
   1596 FLOAT_H
   1597 REPLACE_ITOLD
   1598 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
   1599 NEXT_FLOAT_H
   1600 GL_GNULIB_FFS
   1601 GL_COND_OBJ_FFS_FALSE
   1602 GL_COND_OBJ_FFS_TRUE
   1603 HAVE_DECL_STRNCASECMP
   1604 HAVE_STRCASECMP
   1605 HAVE_FFS
   1606 GL_COND_OBJ_FDOPENDIR_FALSE
   1607 GL_COND_OBJ_FDOPENDIR_TRUE
   1608 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
   1609 NEXT_FCNTL_H
   1610 GL_GNULIB_MDA_OPEN
   1611 GL_GNULIB_MDA_CREAT
   1612 GL_GNULIB_OPENAT
   1613 GL_GNULIB_OPEN
   1614 GL_GNULIB_NONBLOCKING
   1615 GL_GNULIB_FCNTL
   1616 GL_GNULIB_CREAT
   1617 GL_COND_OBJ_FCNTL_FALSE
   1618 GL_COND_OBJ_FCNTL_TRUE
   1619 REPLACE_OPENAT
   1620 REPLACE_OPEN
   1621 REPLACE_FCNTL
   1622 REPLACE_CREAT
   1623 HAVE_OPENAT
   1624 HAVE_FCNTL
   1625 GL_COND_OBJ_FCHDIR_FALSE
   1626 GL_COND_OBJ_FCHDIR_TRUE
   1627 GL_COND_OBJ_ERROR_FALSE
   1628 GL_COND_OBJ_ERROR_TRUE
   1629 GL_GENERATE_ERRNO_H_FALSE
   1630 GL_GENERATE_ERRNO_H_TRUE
   1631 ERRNO_H
   1632 EOVERFLOW_VALUE
   1633 EOVERFLOW_HIDDEN
   1634 ENOLINK_VALUE
   1635 ENOLINK_HIDDEN
   1636 EMULTIHOP_VALUE
   1637 EMULTIHOP_HIDDEN
   1638 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
   1639 NEXT_ERRNO_H
   1640 GL_COND_OBJ_DUP2_FALSE
   1641 GL_COND_OBJ_DUP2_TRUE
   1642 GL_COND_OBJ_DUP_FALSE
   1643 GL_COND_OBJ_DUP_TRUE
   1644 GL_COND_OBJ_DIRFD_FALSE
   1645 GL_COND_OBJ_DIRFD_TRUE
   1646 HAVE_DIRENT_H
   1647 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
   1648 NEXT_DIRENT_H
   1649 GL_GNULIB_ISBLANK
   1650 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
   1651 NEXT_CTYPE_H
   1652 HAVE_ISBLANK
   1653 GL_COND_OBJ_CONNECT_FALSE
   1654 GL_COND_OBJ_CONNECT_TRUE
   1655 GL_GNULIB_ALPHASORT
   1656 GL_GNULIB_SCANDIR
   1657 GL_GNULIB_FDOPENDIR
   1658 GL_GNULIB_DIRFD
   1659 GL_GNULIB_CLOSEDIR
   1660 GL_GNULIB_REWINDDIR
   1661 GL_GNULIB_READDIR
   1662 GL_GNULIB_OPENDIR
   1663 GL_COND_OBJ_CLOSEDIR_FALSE
   1664 GL_COND_OBJ_CLOSEDIR_TRUE
   1665 REPLACE_FDOPENDIR
   1666 REPLACE_DIRFD
   1667 REPLACE_CLOSEDIR
   1668 REPLACE_OPENDIR
   1669 HAVE_ALPHASORT
   1670 HAVE_SCANDIR
   1671 HAVE_FDOPENDIR
   1672 HAVE_DECL_FDOPENDIR
   1673 HAVE_DECL_DIRFD
   1674 HAVE_CLOSEDIR
   1675 HAVE_REWINDDIR
   1676 HAVE_READDIR
   1677 HAVE_OPENDIR
   1678 GL_COND_OBJ_CLOSE_FALSE
   1679 GL_COND_OBJ_CLOSE_TRUE
   1680 HAVE_MSVC_INVALID_PARAMETER_HANDLER
   1681 LIB_CLOCK_GETTIME
   1682 GL_COND_OBJ_FCHOWN_STUB_FALSE
   1683 GL_COND_OBJ_FCHOWN_STUB_TRUE
   1684 GL_COND_OBJ_CHOWN_FALSE
   1685 GL_COND_OBJ_CHOWN_TRUE
   1686 GL_COND_OBJ_CHDIR_LONG_FALSE
   1687 GL_COND_OBJ_CHDIR_LONG_TRUE
   1688 GL_GNULIB_MDA_WRITE
   1689 GL_GNULIB_MDA_UNLINK
   1690 GL_GNULIB_MDA_SWAB
   1691 GL_GNULIB_MDA_RMDIR
   1692 GL_GNULIB_MDA_READ
   1693 GL_GNULIB_MDA_LSEEK
   1694 GL_GNULIB_MDA_ISATTY
   1695 GL_GNULIB_MDA_GETPID
   1696 GL_GNULIB_MDA_GETCWD
   1697 GL_GNULIB_MDA_EXECVPE
   1698 GL_GNULIB_MDA_EXECVP
   1699 GL_GNULIB_MDA_EXECVE
   1700 GL_GNULIB_MDA_EXECV
   1701 GL_GNULIB_MDA_EXECLP
   1702 GL_GNULIB_MDA_EXECLE
   1703 GL_GNULIB_MDA_EXECL
   1704 GL_GNULIB_MDA_DUP2
   1705 GL_GNULIB_MDA_DUP
   1706 GL_GNULIB_MDA_CLOSE
   1707 GL_GNULIB_MDA_CHDIR
   1708 GL_GNULIB_MDA_ACCESS
   1709 GL_GNULIB_WRITE
   1710 GL_GNULIB_USLEEP
   1711 GL_GNULIB_UNLINKAT
   1712 GL_GNULIB_UNLINK
   1713 GL_GNULIB_UNISTD_H_SIGPIPE
   1714 GL_GNULIB_UNISTD_H_NONBLOCKING
   1715 GL_GNULIB_UNISTD_H_GETOPT
   1716 GL_GNULIB_TTYNAME_R
   1717 GL_GNULIB_TRUNCATE
   1718 GL_GNULIB_SYMLINKAT
   1719 GL_GNULIB_SYMLINK
   1720 GL_GNULIB_SLEEP
   1721 GL_GNULIB_SETHOSTNAME
   1722 GL_GNULIB_RMDIR
   1723 GL_GNULIB_READLINKAT
   1724 GL_GNULIB_READLINK
   1725 GL_GNULIB_READ
   1726 GL_GNULIB_PWRITE
   1727 GL_GNULIB_PREAD
   1728 GL_GNULIB_PIPE2
   1729 GL_GNULIB_PIPE
   1730 GL_GNULIB_LSEEK
   1731 GL_GNULIB_LINKAT
   1732 GL_GNULIB_LINK
   1733 GL_GNULIB_LCHOWN
   1734 GL_GNULIB_ISATTY
   1735 GL_GNULIB_GROUP_MEMBER
   1736 GL_GNULIB_GETUSERSHELL
   1737 GL_GNULIB_GETPASS_GNU
   1738 GL_GNULIB_GETPASS
   1739 GL_GNULIB_GETPAGESIZE
   1740 GL_GNULIB_GETOPT_POSIX
   1741 GL_GNULIB_GETLOGIN_R
   1742 GL_GNULIB_GETLOGIN
   1743 GL_GNULIB_GETHOSTNAME
   1744 GL_GNULIB_GETGROUPS
   1745 GL_GNULIB_GETENTROPY
   1746 GL_GNULIB_GETDTABLESIZE
   1747 GL_GNULIB_GETDOMAINNAME
   1748 GL_GNULIB_GETCWD
   1749 GL_GNULIB_FTRUNCATE
   1750 GL_GNULIB_FSYNC
   1751 GL_GNULIB_FDATASYNC
   1752 GL_GNULIB_FCHOWNAT
   1753 GL_GNULIB_FCHDIR
   1754 GL_GNULIB_FACCESSAT
   1755 GL_GNULIB_EXECVPE
   1756 GL_GNULIB_EXECVP
   1757 GL_GNULIB_EXECVE
   1758 GL_GNULIB_EXECV
   1759 GL_GNULIB_EXECLP
   1760 GL_GNULIB_EXECLE
   1761 GL_GNULIB_EXECL
   1762 GL_GNULIB_EUIDACCESS
   1763 GL_GNULIB_ENVIRON
   1764 GL_GNULIB_DUP3
   1765 GL_GNULIB_DUP2
   1766 GL_GNULIB_DUP
   1767 GL_GNULIB_COPY_FILE_RANGE
   1768 GL_GNULIB_CLOSE
   1769 GL_GNULIB_CHOWN
   1770 GL_GNULIB_CHDIR
   1771 GL_GNULIB_ACCESS
   1772 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE
   1773 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE
   1774 REPLACE_WCTOMB
   1775 REPLACE_UNSETENV
   1776 REPLACE_STRTOULL
   1777 REPLACE_STRTOUL
   1778 REPLACE_STRTOLL
   1779 REPLACE_STRTOLD
   1780 REPLACE_STRTOL
   1781 REPLACE_STRTOD
   1782 REPLACE_SETSTATE
   1783 REPLACE_SETENV
   1784 REPLACE_REALPATH
   1785 REPLACE_REALLOCARRAY
   1786 REPLACE_REALLOC_FOR_REALLOC_POSIX
   1787 REPLACE_REALLOC_FOR_REALLOC_GNU
   1788 REPLACE_RANDOM_R
   1789 REPLACE_RANDOM
   1790 REPLACE_QSORT_R
   1791 REPLACE_PUTENV
   1792 REPLACE_PTSNAME_R
   1793 REPLACE_PTSNAME
   1794 REPLACE_POSIX_MEMALIGN
   1795 REPLACE_MKSTEMP
   1796 REPLACE_MBTOWC
   1797 REPLACE_MALLOC_FOR_MALLOC_POSIX
   1798 REPLACE_MALLOC_FOR_MALLOC_GNU
   1799 REPLACE_INITSTATE
   1800 REPLACE_FREE
   1801 REPLACE_CANONICALIZE_FILE_NAME
   1802 REPLACE_CALLOC_FOR_CALLOC_POSIX
   1803 REPLACE_CALLOC_FOR_CALLOC_GNU
   1804 REPLACE_ALIGNED_ALLOC
   1805 HAVE_DECL_UNSETENV
   1806 HAVE_UNLOCKPT
   1807 HAVE_SYS_LOADAVG_H
   1808 HAVE_STRUCT_RANDOM_DATA
   1809 HAVE_STRTOULL
   1810 HAVE_STRTOUL
   1811 HAVE_STRTOLL
   1812 HAVE_STRTOLD
   1813 HAVE_STRTOL
   1814 HAVE_STRTOD
   1815 HAVE_DECL_SETSTATE
   1816 HAVE_SETSTATE
   1817 HAVE_DECL_SETENV
   1818 HAVE_SETENV
   1819 HAVE_SECURE_GETENV
   1820 HAVE_RPMATCH
   1821 HAVE_REALPATH
   1822 HAVE_REALLOCARRAY
   1823 HAVE_RANDOM_R
   1824 HAVE_RANDOM_H
   1825 HAVE_RANDOM
   1826 HAVE_QSORT_R
   1827 HAVE_PTSNAME_R
   1828 HAVE_PTSNAME
   1829 HAVE_POSIX_OPENPT
   1830 HAVE_POSIX_MEMALIGN
   1831 HAVE_MKSTEMPS
   1832 HAVE_MKSTEMP
   1833 HAVE_MKOSTEMPS
   1834 HAVE_MKOSTEMP
   1835 HAVE_MKDTEMP
   1836 HAVE_MBTOWC
   1837 HAVE_DECL_INITSTATE
   1838 HAVE_INITSTATE
   1839 HAVE_GRANTPT
   1840 HAVE_GETSUBOPT
   1841 HAVE_DECL_GETLOADAVG
   1842 HAVE_DECL_GCVT
   1843 HAVE_DECL_FCVT
   1844 HAVE_DECL_ECVT
   1845 HAVE_CANONICALIZE_FILE_NAME
   1846 HAVE_ATOLL
   1847 HAVE_ALIGNED_ALLOC
   1848 HAVE__EXIT
   1849 GL_GNULIB_MDA_PUTENV
   1850 GL_GNULIB_MDA_MKTEMP
   1851 GL_GNULIB_MDA_GCVT
   1852 GL_GNULIB_MDA_FCVT
   1853 GL_GNULIB_MDA_ECVT
   1854 GL_GNULIB_WCTOMB
   1855 GL_GNULIB_UNSETENV
   1856 GL_GNULIB_UNLOCKPT
   1857 GL_GNULIB_SYSTEM_POSIX
   1858 GL_GNULIB_STRTOULL
   1859 GL_GNULIB_STRTOUL
   1860 GL_GNULIB_STRTOLL
   1861 GL_GNULIB_STRTOLD
   1862 GL_GNULIB_STRTOL
   1863 GL_GNULIB_STRTOD
   1864 GL_GNULIB_SETENV
   1865 GL_GNULIB_SECURE_GETENV
   1866 GL_GNULIB_RPMATCH
   1867 GL_GNULIB_REALPATH
   1868 GL_GNULIB_REALLOC_POSIX
   1869 GL_GNULIB_REALLOC_GNU
   1870 GL_GNULIB_REALLOCARRAY
   1871 GL_GNULIB_RANDOM_R
   1872 GL_GNULIB_RANDOM
   1873 GL_GNULIB_QSORT_R
   1874 GL_GNULIB_PUTENV
   1875 GL_GNULIB_PTSNAME_R
   1876 GL_GNULIB_PTSNAME
   1877 GL_GNULIB_POSIX_OPENPT
   1878 GL_GNULIB_POSIX_MEMALIGN
   1879 GL_GNULIB_MKSTEMPS
   1880 GL_GNULIB_MKSTEMP
   1881 GL_GNULIB_MKOSTEMPS
   1882 GL_GNULIB_MKOSTEMP
   1883 GL_GNULIB_MKDTEMP
   1884 GL_GNULIB_MBTOWC
   1885 GL_GNULIB_MALLOC_POSIX
   1886 GL_GNULIB_MALLOC_GNU
   1887 GL_GNULIB_GRANTPT
   1888 GL_GNULIB_GETSUBOPT
   1889 GL_GNULIB_GETLOADAVG
   1890 GL_GNULIB_FREE_POSIX
   1891 GL_GNULIB_CANONICALIZE_FILE_NAME
   1892 GL_GNULIB_CALLOC_POSIX
   1893 GL_GNULIB_CALLOC_GNU
   1894 GL_GNULIB_ATOLL
   1895 GL_GNULIB_ALIGNED_ALLOC
   1896 GL_GNULIB__EXIT
   1897 GL_GNULIB_MDA_WCSDUP
   1898 GL_GNULIB_WCSFTIME
   1899 GL_GNULIB_WCSWIDTH
   1900 GL_GNULIB_WCSTOK
   1901 GL_GNULIB_WCSSTR
   1902 GL_GNULIB_WCSPBRK
   1903 GL_GNULIB_WCSSPN
   1904 GL_GNULIB_WCSCSPN
   1905 GL_GNULIB_WCSRCHR
   1906 GL_GNULIB_WCSCHR
   1907 GL_GNULIB_WCSDUP
   1908 GL_GNULIB_WCSXFRM
   1909 GL_GNULIB_WCSCOLL
   1910 GL_GNULIB_WCSNCASECMP
   1911 GL_GNULIB_WCSCASECMP
   1912 GL_GNULIB_WCSNCMP
   1913 GL_GNULIB_WCSCMP
   1914 GL_GNULIB_WCSNCAT
   1915 GL_GNULIB_WCSCAT
   1916 GL_GNULIB_WCPNCPY
   1917 GL_GNULIB_WCSNCPY
   1918 GL_GNULIB_WCPCPY
   1919 GL_GNULIB_WCSCPY
   1920 GL_GNULIB_WCSNLEN
   1921 GL_GNULIB_WCSLEN
   1922 GL_GNULIB_WMEMSET
   1923 GL_GNULIB_WMEMPCPY
   1924 GL_GNULIB_WMEMMOVE
   1925 GL_GNULIB_WMEMCPY
   1926 GL_GNULIB_WMEMCMP
   1927 GL_GNULIB_WMEMCHR
   1928 GL_GNULIB_WCWIDTH
   1929 GL_GNULIB_WCSNRTOMBS
   1930 GL_GNULIB_WCSRTOMBS
   1931 GL_GNULIB_WCRTOMB
   1932 GL_GNULIB_MBSNRTOWCS
   1933 GL_GNULIB_MBSRTOWCS
   1934 GL_GNULIB_MBRLEN
   1935 GL_GNULIB_MBRTOWC
   1936 GL_GNULIB_MBSINIT
   1937 GL_GNULIB_WCTOB
   1938 GL_GNULIB_BTOWC
   1939 GL_COND_OBJ_BTOWC_FALSE
   1940 GL_COND_OBJ_BTOWC_TRUE
   1941 LOCALE_FR
   1942 REPLACE_WCSTOK
   1943 REPLACE_WCSFTIME
   1944 REPLACE_WCSWIDTH
   1945 REPLACE_WCWIDTH
   1946 REPLACE_WCSNRTOMBS
   1947 REPLACE_WCSRTOMBS
   1948 REPLACE_WCRTOMB
   1949 REPLACE_MBSNRTOWCS
   1950 REPLACE_MBSRTOWCS
   1951 REPLACE_MBRLEN
   1952 REPLACE_MBRTOWC
   1953 REPLACE_MBSINIT
   1954 REPLACE_WCTOB
   1955 REPLACE_BTOWC
   1956 REPLACE_MBSTATE_T
   1957 HAVE_DECL_WCWIDTH
   1958 HAVE_DECL_WCSDUP
   1959 HAVE_DECL_WCTOB
   1960 HAVE_WCSFTIME
   1961 HAVE_WCSWIDTH
   1962 HAVE_WCSTOK
   1963 HAVE_WCSSTR
   1964 HAVE_WCSPBRK
   1965 HAVE_WCSSPN
   1966 HAVE_WCSCSPN
   1967 HAVE_WCSRCHR
   1968 HAVE_WCSCHR
   1969 HAVE_WCSDUP
   1970 HAVE_WCSXFRM
   1971 HAVE_WCSCOLL
   1972 HAVE_WCSNCASECMP
   1973 HAVE_WCSCASECMP
   1974 HAVE_WCSNCMP
   1975 HAVE_WCSCMP
   1976 HAVE_WCSNCAT
   1977 HAVE_WCSCAT
   1978 HAVE_WCPNCPY
   1979 HAVE_WCSNCPY
   1980 HAVE_WCPCPY
   1981 HAVE_WCSCPY
   1982 HAVE_WCSNLEN
   1983 HAVE_WCSLEN
   1984 HAVE_WMEMSET
   1985 HAVE_WMEMPCPY
   1986 HAVE_WMEMMOVE
   1987 HAVE_WMEMCPY
   1988 HAVE_WMEMCMP
   1989 HAVE_WMEMCHR
   1990 HAVE_WCSNRTOMBS
   1991 HAVE_WCSRTOMBS
   1992 HAVE_WCRTOMB
   1993 HAVE_MBSNRTOWCS
   1994 HAVE_MBSRTOWCS
   1995 HAVE_MBRLEN
   1996 HAVE_MBRTOWC
   1997 HAVE_MBSINIT
   1998 HAVE_BTOWC
   1999 GL_COND_OBJ_BIND_FALSE
   2000 GL_COND_OBJ_BIND_TRUE
   2001 GL_GNULIB_INET_PTON
   2002 GL_GNULIB_INET_NTOP
   2003 HAVE_FEATURES_H
   2004 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
   2005 NEXT_ARPA_INET_H
   2006 HAVE_ARPA_INET_H
   2007 REPLACE_INET_PTON
   2008 REPLACE_INET_NTOP
   2009 HAVE_DECL_INET_PTON
   2010 HAVE_DECL_INET_NTOP
   2011 MKDIR_P
   2012 GL_GENERATE_ALLOCA_H_FALSE
   2013 GL_GENERATE_ALLOCA_H_TRUE
   2014 ALLOCA_H
   2015 HAVE_ALLOCA_H
   2016 ALLOCA
   2017 GL_GNULIB_ACCEPT4
   2018 GL_GNULIB_SHUTDOWN
   2019 GL_GNULIB_SETSOCKOPT
   2020 GL_GNULIB_SENDTO
   2021 GL_GNULIB_RECVFROM
   2022 GL_GNULIB_SEND
   2023 GL_GNULIB_RECV
   2024 GL_GNULIB_LISTEN
   2025 GL_GNULIB_GETSOCKOPT
   2026 GL_GNULIB_GETSOCKNAME
   2027 GL_GNULIB_GETPEERNAME
   2028 GL_GNULIB_BIND
   2029 GL_GNULIB_ACCEPT
   2030 GL_GNULIB_CONNECT
   2031 GL_GNULIB_SOCKET
   2032 GL_COND_OBJ_ACCEPT_FALSE
   2033 GL_COND_OBJ_ACCEPT_TRUE
   2034 HAVE_WINSOCK2_H
   2035 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
   2036 UNISTD_H_HAVE_WINSOCK2_H
   2037 UNISTD_H_HAVE_SYS_RANDOM_H
   2038 REPLACE_WRITE
   2039 REPLACE_USLEEP
   2040 REPLACE_UNLINKAT
   2041 REPLACE_UNLINK
   2042 REPLACE_TTYNAME_R
   2043 REPLACE_TRUNCATE
   2044 REPLACE_SYMLINKAT
   2045 REPLACE_SYMLINK
   2046 REPLACE_SLEEP
   2047 REPLACE_RMDIR
   2048 REPLACE_READLINKAT
   2049 REPLACE_READLINK
   2050 REPLACE_READ
   2051 REPLACE_PWRITE
   2052 REPLACE_PREAD
   2053 REPLACE_LSEEK
   2054 REPLACE_LINKAT
   2055 REPLACE_LINK
   2056 REPLACE_LCHOWN
   2057 REPLACE_ISATTY
   2058 REPLACE_GETPASS_FOR_GETPASS_GNU
   2059 REPLACE_GETPASS
   2060 REPLACE_GETPAGESIZE
   2061 REPLACE_GETGROUPS
   2062 REPLACE_GETLOGIN_R
   2063 REPLACE_GETDTABLESIZE
   2064 REPLACE_GETDOMAINNAME
   2065 REPLACE_GETCWD
   2066 REPLACE_FTRUNCATE
   2067 REPLACE_FCHOWNAT
   2068 REPLACE_FACCESSAT
   2069 REPLACE_EXECVPE
   2070 REPLACE_EXECVP
   2071 REPLACE_EXECVE
   2072 REPLACE_EXECV
   2073 REPLACE_EXECLP
   2074 REPLACE_EXECLE
   2075 REPLACE_EXECL
   2076 REPLACE_DUP2
   2077 REPLACE_DUP
   2078 REPLACE_COPY_FILE_RANGE
   2079 REPLACE_CLOSE
   2080 REPLACE_CHOWN
   2081 REPLACE_ACCESS
   2082 HAVE_SYS_PARAM_H
   2083 HAVE_OS_H
   2084 HAVE_DECL_TTYNAME_R
   2085 HAVE_DECL_TRUNCATE
   2086 HAVE_DECL_SETHOSTNAME
   2087 HAVE_DECL_GETUSERSHELL
   2088 HAVE_DECL_GETPAGESIZE
   2089 HAVE_DECL_GETLOGIN_R
   2090 HAVE_DECL_GETLOGIN
   2091 HAVE_DECL_GETDOMAINNAME
   2092 HAVE_DECL_FDATASYNC
   2093 HAVE_DECL_FCHDIR
   2094 HAVE_DECL_EXECVPE
   2095 HAVE_DECL_ENVIRON
   2096 HAVE_USLEEP
   2097 HAVE_UNLINKAT
   2098 HAVE_SYMLINKAT
   2099 HAVE_SYMLINK
   2100 HAVE_SLEEP
   2101 HAVE_SETHOSTNAME
   2102 HAVE_READLINKAT
   2103 HAVE_READLINK
   2104 HAVE_PWRITE
   2105 HAVE_PREAD
   2106 HAVE_PIPE2
   2107 HAVE_PIPE
   2108 HAVE_LINKAT
   2109 HAVE_LINK
   2110 HAVE_LCHOWN
   2111 HAVE_GROUP_MEMBER
   2112 HAVE_GETPASS
   2113 HAVE_GETPAGESIZE
   2114 HAVE_GETLOGIN
   2115 HAVE_GETHOSTNAME
   2116 HAVE_GETGROUPS
   2117 HAVE_GETENTROPY
   2118 HAVE_GETDTABLESIZE
   2119 HAVE_FTRUNCATE
   2120 HAVE_FSYNC
   2121 HAVE_FDATASYNC
   2122 HAVE_FCHOWNAT
   2123 HAVE_FCHDIR
   2124 HAVE_FACCESSAT
   2125 HAVE_EXECVPE
   2126 HAVE_EUIDACCESS
   2127 HAVE_DUP3
   2128 HAVE_COPY_FILE_RANGE
   2129 HAVE_CHOWN
   2130 HAVE_WS2TCPIP_H
   2131 HAVE_SYS_SOCKET_H
   2132 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
   2133 NEXT_SYS_SOCKET_H
   2134 PRAGMA_COLUMNS
   2135 PRAGMA_SYSTEM_HEADER
   2136 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
   2137 INCLUDE_NEXT
   2138 HAVE_ACCEPT4
   2139 HAVE_SA_FAMILY_T
   2140 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
   2141 HAVE_STRUCT_SOCKADDR_STORAGE
   2142 GL_COND_LIBTOOL_FALSE
   2143 GL_COND_LIBTOOL_TRUE
   2144 RANLIB
   2145 ARFLAGS
   2146 AR
   2147 LARGEFILE_CPPFLAGS
   2148 target_os
   2149 target_vendor
   2150 target_cpu
   2151 target
   2152 host_os
   2153 host_vendor
   2154 host_cpu
   2155 host
   2156 build_os
   2157 build_vendor
   2158 build_cpu
   2159 build
   2160 EGREP
   2161 GREP
   2162 CPP
   2163 OBJEXT
   2164 EXEEXT
   2165 ac_ct_CC
   2166 CPPFLAGS
   2167 LDFLAGS
   2168 CFLAGS
   2169 CC
   2170 MAINT
   2171 MAINTAINER_MODE_FALSE
   2172 MAINTAINER_MODE_TRUE
   2173 target_alias
   2174 host_alias
   2175 build_alias
   2176 LIBS
   2177 ECHO_T
   2178 ECHO_N
   2179 ECHO_C
   2180 DEFS
   2181 mandir
   2182 localedir
   2183 libdir
   2184 psdir
   2185 pdfdir
   2186 dvidir
   2187 htmldir
   2188 infodir
   2189 docdir
   2190 oldincludedir
   2191 includedir
   2192 localstatedir
   2193 sharedstatedir
   2194 sysconfdir
   2195 datadir
   2196 datarootdir
   2197 libexecdir
   2198 sbindir
   2199 bindir
   2200 program_transform_name
   2201 prefix
   2202 exec_prefix
   2203 PACKAGE_URL
   2204 PACKAGE_BUGREPORT
   2205 PACKAGE_STRING
   2206 PACKAGE_VERSION
   2207 PACKAGE_TARNAME
   2208 PACKAGE_NAME
   2209 PATH_SEPARATOR
   2210 SHELL'
   2211 ac_subst_files=''
   2212 ac_user_opts='
   2213 enable_option_checking
   2214 enable_maintainer_mode
   2215 enable_plugins
   2216 enable_largefile
   2217 enable_year2038
   2218 enable_threads
   2219 enable_cross_guesses
   2220 enable_dependency_tracking
   2221 enable_silent_rules
   2222 '
   2223       ac_precious_vars='build_alias
   2224 host_alias
   2225 target_alias
   2226 CC
   2227 CFLAGS
   2228 LDFLAGS
   2229 LIBS
   2230 CPPFLAGS
   2231 CPP'
   2232 
   2233 
   2234 # Initialize some variables set by options.
   2235 ac_init_help=
   2236 ac_init_version=false
   2237 ac_unrecognized_opts=
   2238 ac_unrecognized_sep=
   2239 # The variables have the same names as the options, with
   2240 # dashes changed to underlines.
   2241 cache_file=/dev/null
   2242 exec_prefix=NONE
   2243 no_create=
   2244 no_recursion=
   2245 prefix=NONE
   2246 program_prefix=NONE
   2247 program_suffix=NONE
   2248 program_transform_name=s,x,x,
   2249 silent=
   2250 site=
   2251 srcdir=
   2252 verbose=
   2253 x_includes=NONE
   2254 x_libraries=NONE
   2255 
   2256 # Installation directory options.
   2257 # These are left unexpanded so users can "make install exec_prefix=/foo"
   2258 # and all the variables that are supposed to be based on exec_prefix
   2259 # by default will actually change.
   2260 # Use braces instead of parens because sh, perl, etc. also accept them.
   2261 # (The list follows the same order as the GNU Coding Standards.)
   2262 bindir='${exec_prefix}/bin'
   2263 sbindir='${exec_prefix}/sbin'
   2264 libexecdir='${exec_prefix}/libexec'
   2265 datarootdir='${prefix}/share'
   2266 datadir='${datarootdir}'
   2267 sysconfdir='${prefix}/etc'
   2268 sharedstatedir='${prefix}/com'
   2269 localstatedir='${prefix}/var'
   2270 includedir='${prefix}/include'
   2271 oldincludedir='/usr/include'
   2272 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   2273 infodir='${datarootdir}/info'
   2274 htmldir='${docdir}'
   2275 dvidir='${docdir}'
   2276 pdfdir='${docdir}'
   2277 psdir='${docdir}'
   2278 libdir='${exec_prefix}/lib'
   2279 localedir='${datarootdir}/locale'
   2280 mandir='${datarootdir}/man'
   2281 
   2282 ac_prev=
   2283 ac_dashdash=
   2284 for ac_option
   2285 do
   2286   # If the previous option needs an argument, assign it.
   2287   if test -n "$ac_prev"; then
   2288     eval $ac_prev=\$ac_option
   2289     ac_prev=
   2290     continue
   2291   fi
   2292 
   2293   case $ac_option in
   2294   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   2295   *=)   ac_optarg= ;;
   2296   *)    ac_optarg=yes ;;
   2297   esac
   2298 
   2299   # Accept the important Cygnus configure options, so we can diagnose typos.
   2300 
   2301   case $ac_dashdash$ac_option in
   2302   --)
   2303     ac_dashdash=yes ;;
   2304 
   2305   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   2306     ac_prev=bindir ;;
   2307   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   2308     bindir=$ac_optarg ;;
   2309 
   2310   -build | --build | --buil | --bui | --bu)
   2311     ac_prev=build_alias ;;
   2312   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   2313     build_alias=$ac_optarg ;;
   2314 
   2315   -cache-file | --cache-file | --cache-fil | --cache-fi \
   2316   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   2317     ac_prev=cache_file ;;
   2318   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   2319   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   2320     cache_file=$ac_optarg ;;
   2321 
   2322   --config-cache | -C)
   2323     cache_file=config.cache ;;
   2324 
   2325   -datadir | --datadir | --datadi | --datad)
   2326     ac_prev=datadir ;;
   2327   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   2328     datadir=$ac_optarg ;;
   2329 
   2330   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   2331   | --dataroo | --dataro | --datar)
   2332     ac_prev=datarootdir ;;
   2333   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   2334   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   2335     datarootdir=$ac_optarg ;;
   2336 
   2337   -disable-* | --disable-*)
   2338     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   2339     # Reject names that are not valid shell variable names.
   2340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2341       as_fn_error $? "invalid feature name: $ac_useropt"
   2342     ac_useropt_orig=$ac_useropt
   2343     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2344     case $ac_user_opts in
   2345       *"
   2346 "enable_$ac_useropt"
   2347 "*) ;;
   2348       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   2349 	 ac_unrecognized_sep=', ';;
   2350     esac
   2351     eval enable_$ac_useropt=no ;;
   2352 
   2353   -docdir | --docdir | --docdi | --doc | --do)
   2354     ac_prev=docdir ;;
   2355   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   2356     docdir=$ac_optarg ;;
   2357 
   2358   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   2359     ac_prev=dvidir ;;
   2360   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   2361     dvidir=$ac_optarg ;;
   2362 
   2363   -enable-* | --enable-*)
   2364     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   2365     # Reject names that are not valid shell variable names.
   2366     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2367       as_fn_error $? "invalid feature name: $ac_useropt"
   2368     ac_useropt_orig=$ac_useropt
   2369     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2370     case $ac_user_opts in
   2371       *"
   2372 "enable_$ac_useropt"
   2373 "*) ;;
   2374       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   2375 	 ac_unrecognized_sep=', ';;
   2376     esac
   2377     eval enable_$ac_useropt=\$ac_optarg ;;
   2378 
   2379   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   2380   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   2381   | --exec | --exe | --ex)
   2382     ac_prev=exec_prefix ;;
   2383   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   2384   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   2385   | --exec=* | --exe=* | --ex=*)
   2386     exec_prefix=$ac_optarg ;;
   2387 
   2388   -gas | --gas | --ga | --g)
   2389     # Obsolete; use --with-gas.
   2390     with_gas=yes ;;
   2391 
   2392   -help | --help | --hel | --he | -h)
   2393     ac_init_help=long ;;
   2394   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   2395     ac_init_help=recursive ;;
   2396   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   2397     ac_init_help=short ;;
   2398 
   2399   -host | --host | --hos | --ho)
   2400     ac_prev=host_alias ;;
   2401   -host=* | --host=* | --hos=* | --ho=*)
   2402     host_alias=$ac_optarg ;;
   2403 
   2404   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   2405     ac_prev=htmldir ;;
   2406   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   2407   | --ht=*)
   2408     htmldir=$ac_optarg ;;
   2409 
   2410   -includedir | --includedir | --includedi | --included | --include \
   2411   | --includ | --inclu | --incl | --inc)
   2412     ac_prev=includedir ;;
   2413   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   2414   | --includ=* | --inclu=* | --incl=* | --inc=*)
   2415     includedir=$ac_optarg ;;
   2416 
   2417   -infodir | --infodir | --infodi | --infod | --info | --inf)
   2418     ac_prev=infodir ;;
   2419   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   2420     infodir=$ac_optarg ;;
   2421 
   2422   -libdir | --libdir | --libdi | --libd)
   2423     ac_prev=libdir ;;
   2424   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   2425     libdir=$ac_optarg ;;
   2426 
   2427   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   2428   | --libexe | --libex | --libe)
   2429     ac_prev=libexecdir ;;
   2430   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   2431   | --libexe=* | --libex=* | --libe=*)
   2432     libexecdir=$ac_optarg ;;
   2433 
   2434   -localedir | --localedir | --localedi | --localed | --locale)
   2435     ac_prev=localedir ;;
   2436   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   2437     localedir=$ac_optarg ;;
   2438 
   2439   -localstatedir | --localstatedir | --localstatedi | --localstated \
   2440   | --localstate | --localstat | --localsta | --localst | --locals)
   2441     ac_prev=localstatedir ;;
   2442   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   2443   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   2444     localstatedir=$ac_optarg ;;
   2445 
   2446   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   2447     ac_prev=mandir ;;
   2448   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   2449     mandir=$ac_optarg ;;
   2450 
   2451   -nfp | --nfp | --nf)
   2452     # Obsolete; use --without-fp.
   2453     with_fp=no ;;
   2454 
   2455   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   2456   | --no-cr | --no-c | -n)
   2457     no_create=yes ;;
   2458 
   2459   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   2460   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   2461     no_recursion=yes ;;
   2462 
   2463   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   2464   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   2465   | --oldin | --oldi | --old | --ol | --o)
   2466     ac_prev=oldincludedir ;;
   2467   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   2468   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   2469   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   2470     oldincludedir=$ac_optarg ;;
   2471 
   2472   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   2473     ac_prev=prefix ;;
   2474   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   2475     prefix=$ac_optarg ;;
   2476 
   2477   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   2478   | --program-pre | --program-pr | --program-p)
   2479     ac_prev=program_prefix ;;
   2480   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   2481   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   2482     program_prefix=$ac_optarg ;;
   2483 
   2484   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   2485   | --program-suf | --program-su | --program-s)
   2486     ac_prev=program_suffix ;;
   2487   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   2488   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   2489     program_suffix=$ac_optarg ;;
   2490 
   2491   -program-transform-name | --program-transform-name \
   2492   | --program-transform-nam | --program-transform-na \
   2493   | --program-transform-n | --program-transform- \
   2494   | --program-transform | --program-transfor \
   2495   | --program-transfo | --program-transf \
   2496   | --program-trans | --program-tran \
   2497   | --progr-tra | --program-tr | --program-t)
   2498     ac_prev=program_transform_name ;;
   2499   -program-transform-name=* | --program-transform-name=* \
   2500   | --program-transform-nam=* | --program-transform-na=* \
   2501   | --program-transform-n=* | --program-transform-=* \
   2502   | --program-transform=* | --program-transfor=* \
   2503   | --program-transfo=* | --program-transf=* \
   2504   | --program-trans=* | --program-tran=* \
   2505   | --progr-tra=* | --program-tr=* | --program-t=*)
   2506     program_transform_name=$ac_optarg ;;
   2507 
   2508   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   2509     ac_prev=pdfdir ;;
   2510   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   2511     pdfdir=$ac_optarg ;;
   2512 
   2513   -psdir | --psdir | --psdi | --psd | --ps)
   2514     ac_prev=psdir ;;
   2515   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   2516     psdir=$ac_optarg ;;
   2517 
   2518   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2519   | -silent | --silent | --silen | --sile | --sil)
   2520     silent=yes ;;
   2521 
   2522   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   2523     ac_prev=sbindir ;;
   2524   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   2525   | --sbi=* | --sb=*)
   2526     sbindir=$ac_optarg ;;
   2527 
   2528   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   2529   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   2530   | --sharedst | --shareds | --shared | --share | --shar \
   2531   | --sha | --sh)
   2532     ac_prev=sharedstatedir ;;
   2533   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   2534   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   2535   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   2536   | --sha=* | --sh=*)
   2537     sharedstatedir=$ac_optarg ;;
   2538 
   2539   -site | --site | --sit)
   2540     ac_prev=site ;;
   2541   -site=* | --site=* | --sit=*)
   2542     site=$ac_optarg ;;
   2543 
   2544   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   2545     ac_prev=srcdir ;;
   2546   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   2547     srcdir=$ac_optarg ;;
   2548 
   2549   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   2550   | --syscon | --sysco | --sysc | --sys | --sy)
   2551     ac_prev=sysconfdir ;;
   2552   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   2553   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   2554     sysconfdir=$ac_optarg ;;
   2555 
   2556   -target | --target | --targe | --targ | --tar | --ta | --t)
   2557     ac_prev=target_alias ;;
   2558   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   2559     target_alias=$ac_optarg ;;
   2560 
   2561   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   2562     verbose=yes ;;
   2563 
   2564   -version | --version | --versio | --versi | --vers | -V)
   2565     ac_init_version=: ;;
   2566 
   2567   -with-* | --with-*)
   2568     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   2569     # Reject names that are not valid shell variable names.
   2570     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2571       as_fn_error $? "invalid package name: $ac_useropt"
   2572     ac_useropt_orig=$ac_useropt
   2573     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2574     case $ac_user_opts in
   2575       *"
   2576 "with_$ac_useropt"
   2577 "*) ;;
   2578       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   2579 	 ac_unrecognized_sep=', ';;
   2580     esac
   2581     eval with_$ac_useropt=\$ac_optarg ;;
   2582 
   2583   -without-* | --without-*)
   2584     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   2585     # Reject names that are not valid shell variable names.
   2586     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   2587       as_fn_error $? "invalid package name: $ac_useropt"
   2588     ac_useropt_orig=$ac_useropt
   2589     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   2590     case $ac_user_opts in
   2591       *"
   2592 "with_$ac_useropt"
   2593 "*) ;;
   2594       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   2595 	 ac_unrecognized_sep=', ';;
   2596     esac
   2597     eval with_$ac_useropt=no ;;
   2598 
   2599   --x)
   2600     # Obsolete; use --with-x.
   2601     with_x=yes ;;
   2602 
   2603   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   2604   | --x-incl | --x-inc | --x-in | --x-i)
   2605     ac_prev=x_includes ;;
   2606   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   2607   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   2608     x_includes=$ac_optarg ;;
   2609 
   2610   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   2611   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   2612     ac_prev=x_libraries ;;
   2613   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   2614   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   2615     x_libraries=$ac_optarg ;;
   2616 
   2617   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   2618 Try \`$0 --help' for more information"
   2619     ;;
   2620 
   2621   *=*)
   2622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   2623     # Reject names that are not valid shell variable names.
   2624     case $ac_envvar in #(
   2625       '' | [0-9]* | *[!_$as_cr_alnum]* )
   2626       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   2627     esac
   2628     eval $ac_envvar=\$ac_optarg
   2629     export $ac_envvar ;;
   2630 
   2631   *)
   2632     # FIXME: should be removed in autoconf 3.0.
   2633     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   2634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   2635       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   2636     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   2637     ;;
   2638 
   2639   esac
   2640 done
   2641 
   2642 if test -n "$ac_prev"; then
   2643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   2644   as_fn_error $? "missing argument to $ac_option"
   2645 fi
   2646 
   2647 if test -n "$ac_unrecognized_opts"; then
   2648   case $enable_option_checking in
   2649     no) ;;
   2650     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   2651     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   2652   esac
   2653 fi
   2654 
   2655 # Check all directory arguments for consistency.
   2656 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   2657 		datadir sysconfdir sharedstatedir localstatedir includedir \
   2658 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   2659 		libdir localedir mandir
   2660 do
   2661   eval ac_val=\$$ac_var
   2662   # Remove trailing slashes.
   2663   case $ac_val in
   2664     */ )
   2665       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   2666       eval $ac_var=\$ac_val;;
   2667   esac
   2668   # Be sure to have absolute directory names.
   2669   case $ac_val in
   2670     [\\/$]* | ?:[\\/]* )  continue;;
   2671     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   2672   esac
   2673   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   2674 done
   2675 
   2676 # There might be people who depend on the old broken behavior: `$host'
   2677 # used to hold the argument of --host etc.
   2678 # FIXME: To remove some day.
   2679 build=$build_alias
   2680 host=$host_alias
   2681 target=$target_alias
   2682 
   2683 # FIXME: To remove some day.
   2684 if test "x$host_alias" != x; then
   2685   if test "x$build_alias" = x; then
   2686     cross_compiling=maybe
   2687   elif test "x$build_alias" != "x$host_alias"; then
   2688     cross_compiling=yes
   2689   fi
   2690 fi
   2691 
   2692 ac_tool_prefix=
   2693 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   2694 
   2695 test "$silent" = yes && exec 6>/dev/null
   2696 
   2697 
   2698 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   2699 ac_ls_di=`ls -di .` &&
   2700 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   2701   as_fn_error $? "working directory cannot be determined"
   2702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   2703   as_fn_error $? "pwd does not report name of working directory"
   2704 
   2705 
   2706 # Find the source files, if location was not specified.
   2707 if test -z "$srcdir"; then
   2708   ac_srcdir_defaulted=yes
   2709   # Try the directory containing this script, then the parent directory.
   2710   ac_confdir=`$as_dirname -- "$as_myself" ||
   2711 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   2712 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   2713 	 X"$as_myself" : 'X\(//\)$' \| \
   2714 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   2715 $as_echo X"$as_myself" |
   2716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   2717 	    s//\1/
   2718 	    q
   2719 	  }
   2720 	  /^X\(\/\/\)[^/].*/{
   2721 	    s//\1/
   2722 	    q
   2723 	  }
   2724 	  /^X\(\/\/\)$/{
   2725 	    s//\1/
   2726 	    q
   2727 	  }
   2728 	  /^X\(\/\).*/{
   2729 	    s//\1/
   2730 	    q
   2731 	  }
   2732 	  s/.*/./; q'`
   2733   srcdir=$ac_confdir
   2734   if test ! -r "$srcdir/$ac_unique_file"; then
   2735     srcdir=..
   2736   fi
   2737 else
   2738   ac_srcdir_defaulted=no
   2739 fi
   2740 if test ! -r "$srcdir/$ac_unique_file"; then
   2741   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   2742   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   2743 fi
   2744 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   2745 ac_abs_confdir=`(
   2746 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   2747 	pwd)`
   2748 # When building in place, set srcdir=.
   2749 if test "$ac_abs_confdir" = "$ac_pwd"; then
   2750   srcdir=.
   2751 fi
   2752 # Remove unnecessary trailing slashes from srcdir.
   2753 # Double slashes in file names in object file debugging info
   2754 # mess up M-x gdb in Emacs.
   2755 case $srcdir in
   2756 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   2757 esac
   2758 for ac_var in $ac_precious_vars; do
   2759   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   2760   eval ac_env_${ac_var}_value=\$${ac_var}
   2761   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   2762   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   2763 done
   2764 
   2765 #
   2766 # Report the --help message.
   2767 #
   2768 if test "$ac_init_help" = "long"; then
   2769   # Omit some internal or obsolete options to make the list less imposing.
   2770   # This message is too long to be a string in the A/UX 3.1 sh.
   2771   cat <<_ACEOF
   2772 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
   2773 
   2774 Usage: $0 [OPTION]... [VAR=VALUE]...
   2775 
   2776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   2777 VAR=VALUE.  See below for descriptions of some of the useful variables.
   2778 
   2779 Defaults for the options are specified in brackets.
   2780 
   2781 Configuration:
   2782   -h, --help              display this help and exit
   2783       --help=short        display options specific to this package
   2784       --help=recursive    display the short help of all the included packages
   2785   -V, --version           display version information and exit
   2786   -q, --quiet, --silent   do not print \`checking ...' messages
   2787       --cache-file=FILE   cache test results in FILE [disabled]
   2788   -C, --config-cache      alias for \`--cache-file=config.cache'
   2789   -n, --no-create         do not create output files
   2790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   2791 
   2792 Installation directories:
   2793   --prefix=PREFIX         install architecture-independent files in PREFIX
   2794                           [$ac_default_prefix]
   2795   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   2796                           [PREFIX]
   2797 
   2798 By default, \`make install' will install all the files in
   2799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   2800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   2801 for instance \`--prefix=\$HOME'.
   2802 
   2803 For better control, use the options below.
   2804 
   2805 Fine tuning of the installation directories:
   2806   --bindir=DIR            user executables [EPREFIX/bin]
   2807   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   2808   --libexecdir=DIR        program executables [EPREFIX/libexec]
   2809   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   2810   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   2811   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   2812   --libdir=DIR            object code libraries [EPREFIX/lib]
   2813   --includedir=DIR        C header files [PREFIX/include]
   2814   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   2815   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   2816   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   2817   --infodir=DIR           info documentation [DATAROOTDIR/info]
   2818   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   2819   --mandir=DIR            man documentation [DATAROOTDIR/man]
   2820   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgnu]
   2821   --htmldir=DIR           html documentation [DOCDIR]
   2822   --dvidir=DIR            dvi documentation [DOCDIR]
   2823   --pdfdir=DIR            pdf documentation [DOCDIR]
   2824   --psdir=DIR             ps documentation [DOCDIR]
   2825 _ACEOF
   2826 
   2827   cat <<\_ACEOF
   2828 
   2829 Program names:
   2830   --program-prefix=PREFIX            prepend PREFIX to installed program names
   2831   --program-suffix=SUFFIX            append SUFFIX to installed program names
   2832   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   2833 
   2834 System types:
   2835   --build=BUILD     configure for building on BUILD [guessed]
   2836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   2837   --target=TARGET   configure for building compilers for TARGET [HOST]
   2838 _ACEOF
   2839 fi
   2840 
   2841 if test -n "$ac_init_help"; then
   2842   case $ac_init_help in
   2843      short | recursive ) echo "Configuration of libgnu UNUSED-VERSION:";;
   2844    esac
   2845   cat <<\_ACEOF
   2846 
   2847 Optional Features:
   2848   --disable-option-checking  ignore unrecognized --enable/--with options
   2849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   2850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   2851   --enable-maintainer-mode
   2852                           enable make rules and dependencies not useful (and
   2853                           sometimes confusing) to the casual installer
   2854   --enable-plugins        Enable support for plugins
   2855   --disable-largefile     omit support for large files
   2856   --disable-year2038      omit support for timestamps past the year 2038
   2857   --enable-threads={isoc|posix|isoc+posix|windows}
   2858                           specify multithreading API
   2859   --disable-threads       build without multithread safety
   2860   --enable-cross-guesses={conservative|risky}
   2861                           specify policy for cross-compilation guesses
   2862   --enable-dependency-tracking
   2863                           do not reject slow dependency extractors
   2864   --disable-dependency-tracking
   2865                           speeds up one-time build
   2866   --enable-silent-rules   less verbose build output (undo: "make V=1")
   2867   --disable-silent-rules  verbose build output (undo: "make V=0")
   2868 
   2869 Some influential environment variables:
   2870   CC          C compiler command
   2871   CFLAGS      C compiler flags
   2872   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   2873               nonstandard directory <lib dir>
   2874   LIBS        libraries to pass to the linker, e.g. -l<library>
   2875   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   2876               you have headers in a nonstandard directory <include dir>
   2877   CPP         C preprocessor
   2878 
   2879 Use these variables to override the choices made by `configure' or to help
   2880 it to find libraries and programs with nonstandard names/locations.
   2881 
   2882 Report bugs to the package provider.
   2883 _ACEOF
   2884 ac_status=$?
   2885 fi
   2886 
   2887 if test "$ac_init_help" = "recursive"; then
   2888   # If there are subdirs, report their specific --help.
   2889   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   2890     test -d "$ac_dir" ||
   2891       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   2892       continue
   2893     ac_builddir=.
   2894 
   2895 case "$ac_dir" in
   2896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   2897 *)
   2898   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   2899   # A ".." for each directory in $ac_dir_suffix.
   2900   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   2901   case $ac_top_builddir_sub in
   2902   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   2903   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   2904   esac ;;
   2905 esac
   2906 ac_abs_top_builddir=$ac_pwd
   2907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   2908 # for backward compatibility:
   2909 ac_top_builddir=$ac_top_build_prefix
   2910 
   2911 case $srcdir in
   2912   .)  # We are building in place.
   2913     ac_srcdir=.
   2914     ac_top_srcdir=$ac_top_builddir_sub
   2915     ac_abs_top_srcdir=$ac_pwd ;;
   2916   [\\/]* | ?:[\\/]* )  # Absolute name.
   2917     ac_srcdir=$srcdir$ac_dir_suffix;
   2918     ac_top_srcdir=$srcdir
   2919     ac_abs_top_srcdir=$srcdir ;;
   2920   *) # Relative name.
   2921     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   2922     ac_top_srcdir=$ac_top_build_prefix$srcdir
   2923     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   2924 esac
   2925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   2926 
   2927     cd "$ac_dir" || { ac_status=$?; continue; }
   2928     # Check for guested configure.
   2929     if test -f "$ac_srcdir/configure.gnu"; then
   2930       echo &&
   2931       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   2932     elif test -f "$ac_srcdir/configure"; then
   2933       echo &&
   2934       $SHELL "$ac_srcdir/configure" --help=recursive
   2935     else
   2936       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   2937     fi || ac_status=$?
   2938     cd "$ac_pwd" || { ac_status=$?; break; }
   2939   done
   2940 fi
   2941 
   2942 test -n "$ac_init_help" && exit $ac_status
   2943 if $ac_init_version; then
   2944   cat <<\_ACEOF
   2945 libgnu configure UNUSED-VERSION
   2946 generated by GNU Autoconf 2.69
   2947 
   2948 Copyright (C) 2012 Free Software Foundation, Inc.
   2949 This configure script is free software; the Free Software Foundation
   2950 gives unlimited permission to copy, distribute and modify it.
   2951 _ACEOF
   2952   exit
   2953 fi
   2954 
   2955 ## ------------------------ ##
   2956 ## Autoconf initialization. ##
   2957 ## ------------------------ ##
   2958 
   2959 # ac_fn_c_try_compile LINENO
   2960 # --------------------------
   2961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   2962 ac_fn_c_try_compile ()
   2963 {
   2964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2965   rm -f conftest.$ac_objext
   2966   if { { ac_try="$ac_compile"
   2967 case "(($ac_try" in
   2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2969   *) ac_try_echo=$ac_try;;
   2970 esac
   2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2972 $as_echo "$ac_try_echo"; } >&5
   2973   (eval "$ac_compile") 2>conftest.err
   2974   ac_status=$?
   2975   if test -s conftest.err; then
   2976     grep -v '^ *+' conftest.err >conftest.er1
   2977     cat conftest.er1 >&5
   2978     mv -f conftest.er1 conftest.err
   2979   fi
   2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2981   test $ac_status = 0; } && {
   2982 	 test -z "$ac_c_werror_flag" ||
   2983 	 test ! -s conftest.err
   2984        } && test -s conftest.$ac_objext; then :
   2985   ac_retval=0
   2986 else
   2987   $as_echo "$as_me: failed program was:" >&5
   2988 sed 's/^/| /' conftest.$ac_ext >&5
   2989 
   2990 	ac_retval=1
   2991 fi
   2992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2993   as_fn_set_status $ac_retval
   2994 
   2995 } # ac_fn_c_try_compile
   2996 
   2997 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2998 # -------------------------------------------------------
   2999 # Tests whether HEADER exists and can be compiled using the include files in
   3000 # INCLUDES, setting the cache variable VAR accordingly.
   3001 ac_fn_c_check_header_compile ()
   3002 {
   3003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3005 $as_echo_n "checking for $2... " >&6; }
   3006 if eval \${$3+:} false; then :
   3007   $as_echo_n "(cached) " >&6
   3008 else
   3009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3010 /* end confdefs.h.  */
   3011 $4
   3012 #include <$2>
   3013 _ACEOF
   3014 if ac_fn_c_try_compile "$LINENO"; then :
   3015   eval "$3=yes"
   3016 else
   3017   eval "$3=no"
   3018 fi
   3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3020 fi
   3021 eval ac_res=\$$3
   3022 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3023 $as_echo "$ac_res" >&6; }
   3024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3025 
   3026 } # ac_fn_c_check_header_compile
   3027 
   3028 # ac_fn_c_try_cpp LINENO
   3029 # ----------------------
   3030 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   3031 ac_fn_c_try_cpp ()
   3032 {
   3033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3034   if { { ac_try="$ac_cpp conftest.$ac_ext"
   3035 case "(($ac_try" in
   3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3037   *) ac_try_echo=$ac_try;;
   3038 esac
   3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3040 $as_echo "$ac_try_echo"; } >&5
   3041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   3042   ac_status=$?
   3043   if test -s conftest.err; then
   3044     grep -v '^ *+' conftest.err >conftest.er1
   3045     cat conftest.er1 >&5
   3046     mv -f conftest.er1 conftest.err
   3047   fi
   3048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3049   test $ac_status = 0; } > conftest.i && {
   3050 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3051 	 test ! -s conftest.err
   3052        }; then :
   3053   ac_retval=0
   3054 else
   3055   $as_echo "$as_me: failed program was:" >&5
   3056 sed 's/^/| /' conftest.$ac_ext >&5
   3057 
   3058     ac_retval=1
   3059 fi
   3060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3061   as_fn_set_status $ac_retval
   3062 
   3063 } # ac_fn_c_try_cpp
   3064 
   3065 # ac_fn_c_try_run LINENO
   3066 # ----------------------
   3067 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   3068 # that executables *can* be run.
   3069 ac_fn_c_try_run ()
   3070 {
   3071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3072   if { { ac_try="$ac_link"
   3073 case "(($ac_try" in
   3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3075   *) ac_try_echo=$ac_try;;
   3076 esac
   3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3078 $as_echo "$ac_try_echo"; } >&5
   3079   (eval "$ac_link") 2>&5
   3080   ac_status=$?
   3081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3082   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   3083   { { case "(($ac_try" in
   3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3085   *) ac_try_echo=$ac_try;;
   3086 esac
   3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3088 $as_echo "$ac_try_echo"; } >&5
   3089   (eval "$ac_try") 2>&5
   3090   ac_status=$?
   3091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3092   test $ac_status = 0; }; }; then :
   3093   ac_retval=0
   3094 else
   3095   $as_echo "$as_me: program exited with status $ac_status" >&5
   3096        $as_echo "$as_me: failed program was:" >&5
   3097 sed 's/^/| /' conftest.$ac_ext >&5
   3098 
   3099        ac_retval=$ac_status
   3100 fi
   3101   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   3102   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3103   as_fn_set_status $ac_retval
   3104 
   3105 } # ac_fn_c_try_run
   3106 
   3107 # ac_fn_c_try_link LINENO
   3108 # -----------------------
   3109 # Try to link conftest.$ac_ext, and return whether this succeeded.
   3110 ac_fn_c_try_link ()
   3111 {
   3112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3113   rm -f conftest.$ac_objext conftest$ac_exeext
   3114   if { { ac_try="$ac_link"
   3115 case "(($ac_try" in
   3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3117   *) ac_try_echo=$ac_try;;
   3118 esac
   3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3120 $as_echo "$ac_try_echo"; } >&5
   3121   (eval "$ac_link") 2>conftest.err
   3122   ac_status=$?
   3123   if test -s conftest.err; then
   3124     grep -v '^ *+' conftest.err >conftest.er1
   3125     cat conftest.er1 >&5
   3126     mv -f conftest.er1 conftest.err
   3127   fi
   3128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3129   test $ac_status = 0; } && {
   3130 	 test -z "$ac_c_werror_flag" ||
   3131 	 test ! -s conftest.err
   3132        } && test -s conftest$ac_exeext && {
   3133 	 test "$cross_compiling" = yes ||
   3134 	 test -x conftest$ac_exeext
   3135        }; then :
   3136   ac_retval=0
   3137 else
   3138   $as_echo "$as_me: failed program was:" >&5
   3139 sed 's/^/| /' conftest.$ac_ext >&5
   3140 
   3141 	ac_retval=1
   3142 fi
   3143   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   3144   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   3145   # interfere with the next link command; also delete a directory that is
   3146   # left behind by Apple's compiler.  We do this before executing the actions.
   3147   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   3148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3149   as_fn_set_status $ac_retval
   3150 
   3151 } # ac_fn_c_try_link
   3152 
   3153 # ac_fn_c_check_func LINENO FUNC VAR
   3154 # ----------------------------------
   3155 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   3156 ac_fn_c_check_func ()
   3157 {
   3158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3160 $as_echo_n "checking for $2... " >&6; }
   3161 if eval \${$3+:} false; then :
   3162   $as_echo_n "(cached) " >&6
   3163 else
   3164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3165 /* end confdefs.h.  */
   3166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   3167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   3168 #define $2 innocuous_$2
   3169 
   3170 /* System header to define __stub macros and hopefully few prototypes,
   3171     which can conflict with char $2 (); below.
   3172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3173     <limits.h> exists even on freestanding compilers.  */
   3174 
   3175 #ifdef __STDC__
   3176 # include <limits.h>
   3177 #else
   3178 # include <assert.h>
   3179 #endif
   3180 
   3181 #undef $2
   3182 
   3183 /* Override any GCC internal prototype to avoid an error.
   3184    Use char because int might match the return type of a GCC
   3185    builtin and then its argument prototype would still apply.  */
   3186 #ifdef __cplusplus
   3187 extern "C"
   3188 #endif
   3189 char $2 ();
   3190 /* The GNU C library defines this for functions which it implements
   3191     to always fail with ENOSYS.  Some functions are actually named
   3192     something starting with __ and the normal name is an alias.  */
   3193 #if defined __stub_$2 || defined __stub___$2
   3194 choke me
   3195 #endif
   3196 
   3197 int
   3198 main ()
   3199 {
   3200 return $2 ();
   3201   ;
   3202   return 0;
   3203 }
   3204 _ACEOF
   3205 if ac_fn_c_try_link "$LINENO"; then :
   3206   eval "$3=yes"
   3207 else
   3208   eval "$3=no"
   3209 fi
   3210 rm -f core conftest.err conftest.$ac_objext \
   3211     conftest$ac_exeext conftest.$ac_ext
   3212 fi
   3213 eval ac_res=\$$3
   3214 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3215 $as_echo "$ac_res" >&6; }
   3216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3217 
   3218 } # ac_fn_c_check_func
   3219 
   3220 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   3221 # -------------------------------------------------------
   3222 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   3223 # the include files in INCLUDES and setting the cache variable VAR
   3224 # accordingly.
   3225 ac_fn_c_check_header_mongrel ()
   3226 {
   3227   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3228   if eval \${$3+:} false; then :
   3229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3230 $as_echo_n "checking for $2... " >&6; }
   3231 if eval \${$3+:} false; then :
   3232   $as_echo_n "(cached) " >&6
   3233 fi
   3234 eval ac_res=\$$3
   3235 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3236 $as_echo "$ac_res" >&6; }
   3237 else
   3238   # Is the header compilable?
   3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   3240 $as_echo_n "checking $2 usability... " >&6; }
   3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3242 /* end confdefs.h.  */
   3243 $4
   3244 #include <$2>
   3245 _ACEOF
   3246 if ac_fn_c_try_compile "$LINENO"; then :
   3247   ac_header_compiler=yes
   3248 else
   3249   ac_header_compiler=no
   3250 fi
   3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   3253 $as_echo "$ac_header_compiler" >&6; }
   3254 
   3255 # Is the header present?
   3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   3257 $as_echo_n "checking $2 presence... " >&6; }
   3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3259 /* end confdefs.h.  */
   3260 #include <$2>
   3261 _ACEOF
   3262 if ac_fn_c_try_cpp "$LINENO"; then :
   3263   ac_header_preproc=yes
   3264 else
   3265   ac_header_preproc=no
   3266 fi
   3267 rm -f conftest.err conftest.i conftest.$ac_ext
   3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   3269 $as_echo "$ac_header_preproc" >&6; }
   3270 
   3271 # So?  What about this header?
   3272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   3273   yes:no: )
   3274     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   3275 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   3276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   3277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   3278     ;;
   3279   no:yes:* )
   3280     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   3281 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   3282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   3283 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   3284     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   3285 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   3286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   3287 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   3288     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   3289 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   3290     ;;
   3291 esac
   3292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3293 $as_echo_n "checking for $2... " >&6; }
   3294 if eval \${$3+:} false; then :
   3295   $as_echo_n "(cached) " >&6
   3296 else
   3297   eval "$3=\$ac_header_compiler"
   3298 fi
   3299 eval ac_res=\$$3
   3300 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3301 $as_echo "$ac_res" >&6; }
   3302 fi
   3303   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3304 
   3305 } # ac_fn_c_check_header_mongrel
   3306 
   3307 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   3308 # -------------------------------------------
   3309 # Tests whether TYPE exists after having included INCLUDES, setting cache
   3310 # variable VAR accordingly.
   3311 ac_fn_c_check_type ()
   3312 {
   3313   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   3315 $as_echo_n "checking for $2... " >&6; }
   3316 if eval \${$3+:} false; then :
   3317   $as_echo_n "(cached) " >&6
   3318 else
   3319   eval "$3=no"
   3320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3321 /* end confdefs.h.  */
   3322 $4
   3323 int
   3324 main ()
   3325 {
   3326 if (sizeof ($2))
   3327 	 return 0;
   3328   ;
   3329   return 0;
   3330 }
   3331 _ACEOF
   3332 if ac_fn_c_try_compile "$LINENO"; then :
   3333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3334 /* end confdefs.h.  */
   3335 $4
   3336 int
   3337 main ()
   3338 {
   3339 if (sizeof (($2)))
   3340 	    return 0;
   3341   ;
   3342   return 0;
   3343 }
   3344 _ACEOF
   3345 if ac_fn_c_try_compile "$LINENO"; then :
   3346 
   3347 else
   3348   eval "$3=yes"
   3349 fi
   3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3351 fi
   3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3353 fi
   3354 eval ac_res=\$$3
   3355 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3356 $as_echo "$ac_res" >&6; }
   3357   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3358 
   3359 } # ac_fn_c_check_type
   3360 
   3361 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   3362 # ----------------------------------------------------
   3363 # Tries to find if the field MEMBER exists in type AGGR, after including
   3364 # INCLUDES, setting cache variable VAR accordingly.
   3365 ac_fn_c_check_member ()
   3366 {
   3367   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   3369 $as_echo_n "checking for $2.$3... " >&6; }
   3370 if eval \${$4+:} false; then :
   3371   $as_echo_n "(cached) " >&6
   3372 else
   3373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3374 /* end confdefs.h.  */
   3375 $5
   3376 int
   3377 main ()
   3378 {
   3379 static $2 ac_aggr;
   3380 if (ac_aggr.$3)
   3381 return 0;
   3382   ;
   3383   return 0;
   3384 }
   3385 _ACEOF
   3386 if ac_fn_c_try_compile "$LINENO"; then :
   3387   eval "$4=yes"
   3388 else
   3389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3390 /* end confdefs.h.  */
   3391 $5
   3392 int
   3393 main ()
   3394 {
   3395 static $2 ac_aggr;
   3396 if (sizeof ac_aggr.$3)
   3397 return 0;
   3398   ;
   3399   return 0;
   3400 }
   3401 _ACEOF
   3402 if ac_fn_c_try_compile "$LINENO"; then :
   3403   eval "$4=yes"
   3404 else
   3405   eval "$4=no"
   3406 fi
   3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3408 fi
   3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3410 fi
   3411 eval ac_res=\$$4
   3412 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3413 $as_echo "$ac_res" >&6; }
   3414   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3415 
   3416 } # ac_fn_c_check_member
   3417 
   3418 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   3419 # ---------------------------------------------
   3420 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   3421 # accordingly.
   3422 ac_fn_c_check_decl ()
   3423 {
   3424   ac_save_ac_compile="$ac_compile"
   3425   if test -n "$ac_compile_for_check_decl"; then
   3426     ac_compile="$ac_compile_for_check_decl"
   3427   fi
   3428   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3429   as_decl_name=`echo $2|sed 's/ *(.*//'`
   3430   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   3431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   3432 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   3433 if eval \${$3+:} false; then :
   3434   $as_echo_n "(cached) " >&6
   3435 else
   3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3437 /* end confdefs.h.  */
   3438 $4
   3439 int
   3440 main ()
   3441 {
   3442 #ifndef $as_decl_name
   3443 #ifdef __cplusplus
   3444   (void) $as_decl_use;
   3445 #else
   3446   (void) $as_decl_name;
   3447 #endif
   3448 #endif
   3449 
   3450   ;
   3451   return 0;
   3452 }
   3453 _ACEOF
   3454 if ac_fn_c_try_compile "$LINENO"; then :
   3455   eval "$3=yes"
   3456 else
   3457   eval "$3=no"
   3458 fi
   3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3460 fi
   3461 eval ac_res=\$$3
   3462 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   3463 $as_echo "$ac_res" >&6; }
   3464   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3465   ac_compile="$ac_save_ac_compile"
   3466 
   3467 } # ac_fn_c_check_decl
   3468 
   3469 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   3470 # --------------------------------------------
   3471 # Tries to find the compile-time value of EXPR in a program that includes
   3472 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   3473 # computed
   3474 ac_fn_c_compute_int ()
   3475 {
   3476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   3477   if test "$cross_compiling" = yes; then
   3478     # Depending upon the size, compute the lo and hi bounds.
   3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3480 /* end confdefs.h.  */
   3481 $4
   3482 int
   3483 main ()
   3484 {
   3485 static int test_array [1 - 2 * !(($2) >= 0)];
   3486 test_array [0] = 0;
   3487 return test_array [0];
   3488 
   3489   ;
   3490   return 0;
   3491 }
   3492 _ACEOF
   3493 if ac_fn_c_try_compile "$LINENO"; then :
   3494   ac_lo=0 ac_mid=0
   3495   while :; do
   3496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3497 /* end confdefs.h.  */
   3498 $4
   3499 int
   3500 main ()
   3501 {
   3502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   3503 test_array [0] = 0;
   3504 return test_array [0];
   3505 
   3506   ;
   3507   return 0;
   3508 }
   3509 _ACEOF
   3510 if ac_fn_c_try_compile "$LINENO"; then :
   3511   ac_hi=$ac_mid; break
   3512 else
   3513   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   3514 			if test $ac_lo -le $ac_mid; then
   3515 			  ac_lo= ac_hi=
   3516 			  break
   3517 			fi
   3518 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   3519 fi
   3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3521   done
   3522 else
   3523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3524 /* end confdefs.h.  */
   3525 $4
   3526 int
   3527 main ()
   3528 {
   3529 static int test_array [1 - 2 * !(($2) < 0)];
   3530 test_array [0] = 0;
   3531 return test_array [0];
   3532 
   3533   ;
   3534   return 0;
   3535 }
   3536 _ACEOF
   3537 if ac_fn_c_try_compile "$LINENO"; then :
   3538   ac_hi=-1 ac_mid=-1
   3539   while :; do
   3540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3541 /* end confdefs.h.  */
   3542 $4
   3543 int
   3544 main ()
   3545 {
   3546 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   3547 test_array [0] = 0;
   3548 return test_array [0];
   3549 
   3550   ;
   3551   return 0;
   3552 }
   3553 _ACEOF
   3554 if ac_fn_c_try_compile "$LINENO"; then :
   3555   ac_lo=$ac_mid; break
   3556 else
   3557   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   3558 			if test $ac_mid -le $ac_hi; then
   3559 			  ac_lo= ac_hi=
   3560 			  break
   3561 			fi
   3562 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   3563 fi
   3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3565   done
   3566 else
   3567   ac_lo= ac_hi=
   3568 fi
   3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3570 fi
   3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3572 # Binary search between lo and hi bounds.
   3573 while test "x$ac_lo" != "x$ac_hi"; do
   3574   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3576 /* end confdefs.h.  */
   3577 $4
   3578 int
   3579 main ()
   3580 {
   3581 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   3582 test_array [0] = 0;
   3583 return test_array [0];
   3584 
   3585   ;
   3586   return 0;
   3587 }
   3588 _ACEOF
   3589 if ac_fn_c_try_compile "$LINENO"; then :
   3590   ac_hi=$ac_mid
   3591 else
   3592   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   3593 fi
   3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3595 done
   3596 case $ac_lo in #((
   3597 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   3598 '') ac_retval=1 ;;
   3599 esac
   3600   else
   3601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3602 /* end confdefs.h.  */
   3603 $4
   3604 static long int longval () { return $2; }
   3605 static unsigned long int ulongval () { return $2; }
   3606 #include <stdio.h>
   3607 #include <stdlib.h>
   3608 int
   3609 main ()
   3610 {
   3611 
   3612   FILE *f = fopen ("conftest.val", "w");
   3613   if (! f)
   3614     return 1;
   3615   if (($2) < 0)
   3616     {
   3617       long int i = longval ();
   3618       if (i != ($2))
   3619 	return 1;
   3620       fprintf (f, "%ld", i);
   3621     }
   3622   else
   3623     {
   3624       unsigned long int i = ulongval ();
   3625       if (i != ($2))
   3626 	return 1;
   3627       fprintf (f, "%lu", i);
   3628     }
   3629   /* Do not output a trailing newline, as this causes \r\n confusion
   3630      on some platforms.  */
   3631   return ferror (f) || fclose (f) != 0;
   3632 
   3633   ;
   3634   return 0;
   3635 }
   3636 _ACEOF
   3637 if ac_fn_c_try_run "$LINENO"; then :
   3638   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   3639 else
   3640   ac_retval=1
   3641 fi
   3642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3643   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3644 rm -f conftest.val
   3645 
   3646   fi
   3647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   3648   as_fn_set_status $ac_retval
   3649 
   3650 } # ac_fn_c_compute_int
   3651 cat >config.log <<_ACEOF
   3652 This file contains any messages produced by compilers while
   3653 running configure, to aid debugging if configure makes a mistake.
   3654 
   3655 It was created by libgnu $as_me UNUSED-VERSION, which was
   3656 generated by GNU Autoconf 2.69.  Invocation command line was
   3657 
   3658   $ $0 $@
   3659 
   3660 _ACEOF
   3661 exec 5>>config.log
   3662 {
   3663 cat <<_ASUNAME
   3664 ## --------- ##
   3665 ## Platform. ##
   3666 ## --------- ##
   3667 
   3668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   3669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   3670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   3671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   3672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   3673 
   3674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   3675 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   3676 
   3677 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   3678 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   3679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   3680 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   3681 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   3682 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   3683 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   3684 
   3685 _ASUNAME
   3686 
   3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3688 for as_dir in $PATH
   3689 do
   3690   IFS=$as_save_IFS
   3691   test -z "$as_dir" && as_dir=.
   3692     $as_echo "PATH: $as_dir"
   3693   done
   3694 IFS=$as_save_IFS
   3695 
   3696 } >&5
   3697 
   3698 cat >&5 <<_ACEOF
   3699 
   3700 
   3701 ## ----------- ##
   3702 ## Core tests. ##
   3703 ## ----------- ##
   3704 
   3705 _ACEOF
   3706 
   3707 
   3708 # Keep a trace of the command line.
   3709 # Strip out --no-create and --no-recursion so they do not pile up.
   3710 # Strip out --silent because we don't want to record it for future runs.
   3711 # Also quote any args containing shell meta-characters.
   3712 # Make two passes to allow for proper duplicate-argument suppression.
   3713 ac_configure_args=
   3714 ac_configure_args0=
   3715 ac_configure_args1=
   3716 ac_must_keep_next=false
   3717 for ac_pass in 1 2
   3718 do
   3719   for ac_arg
   3720   do
   3721     case $ac_arg in
   3722     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   3723     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   3724     | -silent | --silent | --silen | --sile | --sil)
   3725       continue ;;
   3726     *\'*)
   3727       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   3728     esac
   3729     case $ac_pass in
   3730     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   3731     2)
   3732       as_fn_append ac_configure_args1 " '$ac_arg'"
   3733       if test $ac_must_keep_next = true; then
   3734 	ac_must_keep_next=false # Got value, back to normal.
   3735       else
   3736 	case $ac_arg in
   3737 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   3738 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   3739 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   3740 	  | -with-* | --with-* | -without-* | --without-* | --x)
   3741 	    case "$ac_configure_args0 " in
   3742 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   3743 	    esac
   3744 	    ;;
   3745 	  -* ) ac_must_keep_next=true ;;
   3746 	esac
   3747       fi
   3748       as_fn_append ac_configure_args " '$ac_arg'"
   3749       ;;
   3750     esac
   3751   done
   3752 done
   3753 { ac_configure_args0=; unset ac_configure_args0;}
   3754 { ac_configure_args1=; unset ac_configure_args1;}
   3755 
   3756 # When interrupted or exit'd, cleanup temporary files, and complete
   3757 # config.log.  We remove comments because anyway the quotes in there
   3758 # would cause problems or look ugly.
   3759 # WARNING: Use '\'' to represent an apostrophe within the trap.
   3760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   3761 trap 'exit_status=$?
   3762   # Save into config.log some information that might help in debugging.
   3763   {
   3764     echo
   3765 
   3766     $as_echo "## ---------------- ##
   3767 ## Cache variables. ##
   3768 ## ---------------- ##"
   3769     echo
   3770     # The following way of writing the cache mishandles newlines in values,
   3771 (
   3772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   3773     eval ac_val=\$$ac_var
   3774     case $ac_val in #(
   3775     *${as_nl}*)
   3776       case $ac_var in #(
   3777       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   3778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   3779       esac
   3780       case $ac_var in #(
   3781       _ | IFS | as_nl) ;; #(
   3782       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   3783       *) { eval $ac_var=; unset $ac_var;} ;;
   3784       esac ;;
   3785     esac
   3786   done
   3787   (set) 2>&1 |
   3788     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   3789     *${as_nl}ac_space=\ *)
   3790       sed -n \
   3791 	"s/'\''/'\''\\\\'\'''\''/g;
   3792 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   3793       ;; #(
   3794     *)
   3795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   3796       ;;
   3797     esac |
   3798     sort
   3799 )
   3800     echo
   3801 
   3802     $as_echo "## ----------------- ##
   3803 ## Output variables. ##
   3804 ## ----------------- ##"
   3805     echo
   3806     for ac_var in $ac_subst_vars
   3807     do
   3808       eval ac_val=\$$ac_var
   3809       case $ac_val in
   3810       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3811       esac
   3812       $as_echo "$ac_var='\''$ac_val'\''"
   3813     done | sort
   3814     echo
   3815 
   3816     if test -n "$ac_subst_files"; then
   3817       $as_echo "## ------------------- ##
   3818 ## File substitutions. ##
   3819 ## ------------------- ##"
   3820       echo
   3821       for ac_var in $ac_subst_files
   3822       do
   3823 	eval ac_val=\$$ac_var
   3824 	case $ac_val in
   3825 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   3826 	esac
   3827 	$as_echo "$ac_var='\''$ac_val'\''"
   3828       done | sort
   3829       echo
   3830     fi
   3831 
   3832     if test -s confdefs.h; then
   3833       $as_echo "## ----------- ##
   3834 ## confdefs.h. ##
   3835 ## ----------- ##"
   3836       echo
   3837       cat confdefs.h
   3838       echo
   3839     fi
   3840     test "$ac_signal" != 0 &&
   3841       $as_echo "$as_me: caught signal $ac_signal"
   3842     $as_echo "$as_me: exit $exit_status"
   3843   } >&5
   3844   rm -f core *.core core.conftest.* &&
   3845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   3846     exit $exit_status
   3847 ' 0
   3848 for ac_signal in 1 2 13 15; do
   3849   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   3850 done
   3851 ac_signal=0
   3852 
   3853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   3854 rm -f -r conftest* confdefs.h
   3855 
   3856 $as_echo "/* confdefs.h */" > confdefs.h
   3857 
   3858 # Predefined preprocessor variables.
   3859 
   3860 cat >>confdefs.h <<_ACEOF
   3861 #define PACKAGE_NAME "$PACKAGE_NAME"
   3862 _ACEOF
   3863 
   3864 cat >>confdefs.h <<_ACEOF
   3865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   3866 _ACEOF
   3867 
   3868 cat >>confdefs.h <<_ACEOF
   3869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   3870 _ACEOF
   3871 
   3872 cat >>confdefs.h <<_ACEOF
   3873 #define PACKAGE_STRING "$PACKAGE_STRING"
   3874 _ACEOF
   3875 
   3876 cat >>confdefs.h <<_ACEOF
   3877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   3878 _ACEOF
   3879 
   3880 cat >>confdefs.h <<_ACEOF
   3881 #define PACKAGE_URL "$PACKAGE_URL"
   3882 _ACEOF
   3883 
   3884 
   3885 # Let the site file select an alternate cache file if it wants to.
   3886 # Prefer an explicitly selected file to automatically selected ones.
   3887 ac_site_file1=NONE
   3888 ac_site_file2=NONE
   3889 if test -n "$CONFIG_SITE"; then
   3890   # We do not want a PATH search for config.site.
   3891   case $CONFIG_SITE in #((
   3892     -*)  ac_site_file1=./$CONFIG_SITE;;
   3893     */*) ac_site_file1=$CONFIG_SITE;;
   3894     *)   ac_site_file1=./$CONFIG_SITE;;
   3895   esac
   3896 elif test "x$prefix" != xNONE; then
   3897   ac_site_file1=$prefix/share/config.site
   3898   ac_site_file2=$prefix/etc/config.site
   3899 else
   3900   ac_site_file1=$ac_default_prefix/share/config.site
   3901   ac_site_file2=$ac_default_prefix/etc/config.site
   3902 fi
   3903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   3904 do
   3905   test "x$ac_site_file" = xNONE && continue
   3906   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   3907     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   3908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   3909     sed 's/^/| /' "$ac_site_file" >&5
   3910     . "$ac_site_file" \
   3911       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3913 as_fn_error $? "failed to load site script $ac_site_file
   3914 See \`config.log' for more details" "$LINENO" 5; }
   3915   fi
   3916 done
   3917 
   3918 if test -r "$cache_file"; then
   3919   # Some versions of bash will fail to source /dev/null (special files
   3920   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   3921   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   3922     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   3923 $as_echo "$as_me: loading cache $cache_file" >&6;}
   3924     case $cache_file in
   3925       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   3926       *)                      . "./$cache_file";;
   3927     esac
   3928   fi
   3929 else
   3930   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   3931 $as_echo "$as_me: creating cache $cache_file" >&6;}
   3932   >$cache_file
   3933 fi
   3934 
   3935 as_fn_append ac_header_list " wchar.h"
   3936 as_fn_append ac_header_list " minix/config.h"
   3937 as_fn_append ac_header_list " sys/socket.h"
   3938 as_fn_append ac_header_list " arpa/inet.h"
   3939 as_fn_append ac_header_list " features.h"
   3940 as_fn_append ac_func_list " btowc"
   3941 as_fn_append ac_func_list " canonicalize_file_name"
   3942 as_fn_append ac_func_list " faccessat"
   3943 as_fn_append ac_func_list " realpath"
   3944 as_fn_append ac_func_list " lstat"
   3945 as_fn_append ac_header_list " sys/param.h"
   3946 as_fn_append ac_header_list " unistd.h"
   3947 as_fn_append ac_func_list " chown"
   3948 as_fn_append ac_func_list " fchown"
   3949 as_fn_append ac_func_list " _set_invalid_parameter_handler"
   3950 as_fn_append ac_func_list " fchdir"
   3951 as_fn_append ac_header_list " dirent.h"
   3952 as_fn_append ac_func_list " fcntl"
   3953 as_fn_append ac_func_list " symlink"
   3954 as_fn_append ac_func_list " fdopendir"
   3955 as_fn_append ac_func_list " mempcpy"
   3956 as_fn_append ac_header_list " fnmatch.h"
   3957 as_fn_append ac_func_list " fnmatch"
   3958 as_fn_append ac_func_list " mbsrtowcs"
   3959 gl_fnmatch_required=GNU
   3960 as_fn_append ac_header_list " sys/stat.h"
   3961 as_fn_append ac_func_list " fstatat"
   3962 as_fn_append ac_func_list " getdelim"
   3963 as_fn_append ac_func_list " getdtablesize"
   3964 as_fn_append ac_func_list " getlogin_r"
   3965 as_fn_append ac_func_list " getprogname"
   3966 as_fn_append ac_func_list " getexecname"
   3967 as_fn_append ac_func_list " getrandom"
   3968 as_fn_append ac_header_list " sys/time.h"
   3969 as_fn_append ac_func_list " gettimeofday"
   3970 as_fn_append ac_header_list " glob.h"
   3971 as_fn_append ac_func_list " glob"
   3972 as_fn_append ac_func_list " glob_pattern_p"
   3973 as_fn_append ac_func_list " getpwnam_r"
   3974 as_fn_append ac_header_list " threads.h"
   3975 as_fn_append ac_header_list " netdb.h"
   3976 as_fn_append ac_header_list " netinet/in.h"
   3977 as_fn_append ac_header_list " limits.h"
   3978 as_fn_append ac_header_list " inttypes.h"
   3979 as_fn_append ac_header_list " sys/types.h"
   3980 as_fn_append ac_header_list " stdint.h"
   3981 as_fn_append ac_func_list " isblank"
   3982 as_fn_append ac_header_list " xlocale.h"
   3983 as_fn_append ac_header_list " math.h"
   3984 as_fn_append ac_func_list " mbsinit"
   3985 as_fn_append ac_func_list " mbrtowc"
   3986 as_fn_append ac_header_list " sys/mman.h"
   3987 as_fn_append ac_func_list " mprotect"
   3988 as_fn_append ac_func_list " mkostemp"
   3989 as_fn_append ac_func_list " openat"
   3990 as_fn_append ac_func_list " pipe"
   3991 as_fn_append ac_func_list " readlink"
   3992 as_fn_append ac_func_list " link"
   3993 as_fn_append ac_header_list " sys/select.h"
   3994 as_fn_append ac_func_list " setenv"
   3995 as_fn_append ac_func_list " strerror_r"
   3996 as_fn_append ac_func_list " __xpg_strerror_r"
   3997 as_fn_append ac_func_list " catgets"
   3998 as_fn_append ac_func_list " snprintf"
   3999 as_fn_append ac_header_list " strings.h"
   4000 as_fn_append ac_header_list " sys/random.h"
   4001 as_fn_append ac_header_list " sys/uio.h"
   4002 as_fn_append ac_header_list " sys/wait.h"
   4003 as_fn_append ac_func_list " localtime_r"
   4004 as_fn_append ac_header_list " crtdefs.h"
   4005 as_fn_append ac_func_list " iswcntrl"
   4006 as_fn_append ac_header_list " wctype.h"
   4007 as_fn_append ac_func_list " wmempcpy"
   4008 # Check that the precious variables saved in the cache have kept the same
   4009 # value.
   4010 ac_cache_corrupted=false
   4011 for ac_var in $ac_precious_vars; do
   4012   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   4013   eval ac_new_set=\$ac_env_${ac_var}_set
   4014   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   4015   eval ac_new_val=\$ac_env_${ac_var}_value
   4016   case $ac_old_set,$ac_new_set in
   4017     set,)
   4018       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   4019 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   4020       ac_cache_corrupted=: ;;
   4021     ,set)
   4022       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   4023 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   4024       ac_cache_corrupted=: ;;
   4025     ,);;
   4026     *)
   4027       if test "x$ac_old_val" != "x$ac_new_val"; then
   4028 	# differences in whitespace do not lead to failure.
   4029 	ac_old_val_w=`echo x $ac_old_val`
   4030 	ac_new_val_w=`echo x $ac_new_val`
   4031 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   4032 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   4033 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   4034 	  ac_cache_corrupted=:
   4035 	else
   4036 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   4037 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   4038 	  eval $ac_var=\$ac_old_val
   4039 	fi
   4040 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   4041 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   4042 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   4043 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   4044       fi;;
   4045   esac
   4046   # Pass precious variables to config.status.
   4047   if test "$ac_new_set" = set; then
   4048     case $ac_new_val in
   4049     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   4050     *) ac_arg=$ac_var=$ac_new_val ;;
   4051     esac
   4052     case " $ac_configure_args " in
   4053       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   4054       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   4055     esac
   4056   fi
   4057 done
   4058 if $ac_cache_corrupted; then
   4059   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4061   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   4062 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   4063   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   4064 fi
   4065 ## -------------------- ##
   4066 ## Main body of script. ##
   4067 ## -------------------- ##
   4068 
   4069 ac_ext=c
   4070 ac_cpp='$CPP $CPPFLAGS'
   4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4074 
   4075 
   4076 
   4077 
   4078 
   4079 
   4080 ac_config_headers="$ac_config_headers config.h:config.in"
   4081 
   4082 
   4083 
   4084 
   4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   4086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   4087     # Check whether --enable-maintainer-mode was given.
   4088 if test "${enable_maintainer_mode+set}" = set; then :
   4089   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   4090 else
   4091   USE_MAINTAINER_MODE=no
   4092 fi
   4093 
   4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   4095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   4096    if test $USE_MAINTAINER_MODE = yes; then
   4097   MAINTAINER_MODE_TRUE=
   4098   MAINTAINER_MODE_FALSE='#'
   4099 else
   4100   MAINTAINER_MODE_TRUE='#'
   4101   MAINTAINER_MODE_FALSE=
   4102 fi
   4103 
   4104   MAINT=$MAINTAINER_MODE_TRUE
   4105 
   4106 
   4107 
   4108 ac_ext=c
   4109 ac_cpp='$CPP $CPPFLAGS'
   4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4113 if test -n "$ac_tool_prefix"; then
   4114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4117 $as_echo_n "checking for $ac_word... " >&6; }
   4118 if ${ac_cv_prog_CC+:} false; then :
   4119   $as_echo_n "(cached) " >&6
   4120 else
   4121   if test -n "$CC"; then
   4122   ac_cv_prog_CC="$CC" # Let the user override the test.
   4123 else
   4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4125 for as_dir in $PATH
   4126 do
   4127   IFS=$as_save_IFS
   4128   test -z "$as_dir" && as_dir=.
   4129     for ac_exec_ext in '' $ac_executable_extensions; do
   4130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4133     break 2
   4134   fi
   4135 done
   4136   done
   4137 IFS=$as_save_IFS
   4138 
   4139 fi
   4140 fi
   4141 CC=$ac_cv_prog_CC
   4142 if test -n "$CC"; then
   4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4144 $as_echo "$CC" >&6; }
   4145 else
   4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4147 $as_echo "no" >&6; }
   4148 fi
   4149 
   4150 
   4151 fi
   4152 if test -z "$ac_cv_prog_CC"; then
   4153   ac_ct_CC=$CC
   4154   # Extract the first word of "gcc", so it can be a program name with args.
   4155 set dummy gcc; ac_word=$2
   4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4157 $as_echo_n "checking for $ac_word... " >&6; }
   4158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4159   $as_echo_n "(cached) " >&6
   4160 else
   4161   if test -n "$ac_ct_CC"; then
   4162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4163 else
   4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4165 for as_dir in $PATH
   4166 do
   4167   IFS=$as_save_IFS
   4168   test -z "$as_dir" && as_dir=.
   4169     for ac_exec_ext in '' $ac_executable_extensions; do
   4170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4171     ac_cv_prog_ac_ct_CC="gcc"
   4172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4173     break 2
   4174   fi
   4175 done
   4176   done
   4177 IFS=$as_save_IFS
   4178 
   4179 fi
   4180 fi
   4181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4182 if test -n "$ac_ct_CC"; then
   4183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4184 $as_echo "$ac_ct_CC" >&6; }
   4185 else
   4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4187 $as_echo "no" >&6; }
   4188 fi
   4189 
   4190   if test "x$ac_ct_CC" = x; then
   4191     CC=""
   4192   else
   4193     case $cross_compiling:$ac_tool_warned in
   4194 yes:)
   4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4197 ac_tool_warned=yes ;;
   4198 esac
   4199     CC=$ac_ct_CC
   4200   fi
   4201 else
   4202   CC="$ac_cv_prog_CC"
   4203 fi
   4204 
   4205 if test -z "$CC"; then
   4206           if test -n "$ac_tool_prefix"; then
   4207     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4208 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4210 $as_echo_n "checking for $ac_word... " >&6; }
   4211 if ${ac_cv_prog_CC+:} false; then :
   4212   $as_echo_n "(cached) " >&6
   4213 else
   4214   if test -n "$CC"; then
   4215   ac_cv_prog_CC="$CC" # Let the user override the test.
   4216 else
   4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4218 for as_dir in $PATH
   4219 do
   4220   IFS=$as_save_IFS
   4221   test -z "$as_dir" && as_dir=.
   4222     for ac_exec_ext in '' $ac_executable_extensions; do
   4223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4224     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4226     break 2
   4227   fi
   4228 done
   4229   done
   4230 IFS=$as_save_IFS
   4231 
   4232 fi
   4233 fi
   4234 CC=$ac_cv_prog_CC
   4235 if test -n "$CC"; then
   4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4237 $as_echo "$CC" >&6; }
   4238 else
   4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4240 $as_echo "no" >&6; }
   4241 fi
   4242 
   4243 
   4244   fi
   4245 fi
   4246 if test -z "$CC"; then
   4247   # Extract the first word of "cc", so it can be a program name with args.
   4248 set dummy cc; ac_word=$2
   4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4250 $as_echo_n "checking for $ac_word... " >&6; }
   4251 if ${ac_cv_prog_CC+:} false; then :
   4252   $as_echo_n "(cached) " >&6
   4253 else
   4254   if test -n "$CC"; then
   4255   ac_cv_prog_CC="$CC" # Let the user override the test.
   4256 else
   4257   ac_prog_rejected=no
   4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4259 for as_dir in $PATH
   4260 do
   4261   IFS=$as_save_IFS
   4262   test -z "$as_dir" && as_dir=.
   4263     for ac_exec_ext in '' $ac_executable_extensions; do
   4264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4265     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4266        ac_prog_rejected=yes
   4267        continue
   4268      fi
   4269     ac_cv_prog_CC="cc"
   4270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4271     break 2
   4272   fi
   4273 done
   4274   done
   4275 IFS=$as_save_IFS
   4276 
   4277 if test $ac_prog_rejected = yes; then
   4278   # We found a bogon in the path, so make sure we never use it.
   4279   set dummy $ac_cv_prog_CC
   4280   shift
   4281   if test $# != 0; then
   4282     # We chose a different compiler from the bogus one.
   4283     # However, it has the same basename, so the bogon will be chosen
   4284     # first if we set CC to just the basename; use the full file name.
   4285     shift
   4286     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4287   fi
   4288 fi
   4289 fi
   4290 fi
   4291 CC=$ac_cv_prog_CC
   4292 if test -n "$CC"; then
   4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4294 $as_echo "$CC" >&6; }
   4295 else
   4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4297 $as_echo "no" >&6; }
   4298 fi
   4299 
   4300 
   4301 fi
   4302 if test -z "$CC"; then
   4303   if test -n "$ac_tool_prefix"; then
   4304   for ac_prog in cl.exe
   4305   do
   4306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4309 $as_echo_n "checking for $ac_word... " >&6; }
   4310 if ${ac_cv_prog_CC+:} false; then :
   4311   $as_echo_n "(cached) " >&6
   4312 else
   4313   if test -n "$CC"; then
   4314   ac_cv_prog_CC="$CC" # Let the user override the test.
   4315 else
   4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4317 for as_dir in $PATH
   4318 do
   4319   IFS=$as_save_IFS
   4320   test -z "$as_dir" && as_dir=.
   4321     for ac_exec_ext in '' $ac_executable_extensions; do
   4322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4323     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4325     break 2
   4326   fi
   4327 done
   4328   done
   4329 IFS=$as_save_IFS
   4330 
   4331 fi
   4332 fi
   4333 CC=$ac_cv_prog_CC
   4334 if test -n "$CC"; then
   4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4336 $as_echo "$CC" >&6; }
   4337 else
   4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4339 $as_echo "no" >&6; }
   4340 fi
   4341 
   4342 
   4343     test -n "$CC" && break
   4344   done
   4345 fi
   4346 if test -z "$CC"; then
   4347   ac_ct_CC=$CC
   4348   for ac_prog in cl.exe
   4349 do
   4350   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4351 set dummy $ac_prog; ac_word=$2
   4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4353 $as_echo_n "checking for $ac_word... " >&6; }
   4354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4355   $as_echo_n "(cached) " >&6
   4356 else
   4357   if test -n "$ac_ct_CC"; then
   4358   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4359 else
   4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4361 for as_dir in $PATH
   4362 do
   4363   IFS=$as_save_IFS
   4364   test -z "$as_dir" && as_dir=.
   4365     for ac_exec_ext in '' $ac_executable_extensions; do
   4366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4367     ac_cv_prog_ac_ct_CC="$ac_prog"
   4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4369     break 2
   4370   fi
   4371 done
   4372   done
   4373 IFS=$as_save_IFS
   4374 
   4375 fi
   4376 fi
   4377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4378 if test -n "$ac_ct_CC"; then
   4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4380 $as_echo "$ac_ct_CC" >&6; }
   4381 else
   4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4383 $as_echo "no" >&6; }
   4384 fi
   4385 
   4386 
   4387   test -n "$ac_ct_CC" && break
   4388 done
   4389 
   4390   if test "x$ac_ct_CC" = x; then
   4391     CC=""
   4392   else
   4393     case $cross_compiling:$ac_tool_warned in
   4394 yes:)
   4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4397 ac_tool_warned=yes ;;
   4398 esac
   4399     CC=$ac_ct_CC
   4400   fi
   4401 fi
   4402 
   4403 fi
   4404 if test -z "$CC"; then
   4405   if test -n "$ac_tool_prefix"; then
   4406   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   4407 set dummy ${ac_tool_prefix}clang; ac_word=$2
   4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4409 $as_echo_n "checking for $ac_word... " >&6; }
   4410 if ${ac_cv_prog_CC+:} false; then :
   4411   $as_echo_n "(cached) " >&6
   4412 else
   4413   if test -n "$CC"; then
   4414   ac_cv_prog_CC="$CC" # Let the user override the test.
   4415 else
   4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4417 for as_dir in $PATH
   4418 do
   4419   IFS=$as_save_IFS
   4420   test -z "$as_dir" && as_dir=.
   4421     for ac_exec_ext in '' $ac_executable_extensions; do
   4422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4423     ac_cv_prog_CC="${ac_tool_prefix}clang"
   4424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4425     break 2
   4426   fi
   4427 done
   4428   done
   4429 IFS=$as_save_IFS
   4430 
   4431 fi
   4432 fi
   4433 CC=$ac_cv_prog_CC
   4434 if test -n "$CC"; then
   4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4436 $as_echo "$CC" >&6; }
   4437 else
   4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4439 $as_echo "no" >&6; }
   4440 fi
   4441 
   4442 
   4443 fi
   4444 if test -z "$ac_cv_prog_CC"; then
   4445   ac_ct_CC=$CC
   4446   # Extract the first word of "clang", so it can be a program name with args.
   4447 set dummy clang; ac_word=$2
   4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4449 $as_echo_n "checking for $ac_word... " >&6; }
   4450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4451   $as_echo_n "(cached) " >&6
   4452 else
   4453   if test -n "$ac_ct_CC"; then
   4454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4455 else
   4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4457 for as_dir in $PATH
   4458 do
   4459   IFS=$as_save_IFS
   4460   test -z "$as_dir" && as_dir=.
   4461     for ac_exec_ext in '' $ac_executable_extensions; do
   4462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4463     ac_cv_prog_ac_ct_CC="clang"
   4464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4465     break 2
   4466   fi
   4467 done
   4468   done
   4469 IFS=$as_save_IFS
   4470 
   4471 fi
   4472 fi
   4473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4474 if test -n "$ac_ct_CC"; then
   4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4476 $as_echo "$ac_ct_CC" >&6; }
   4477 else
   4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4479 $as_echo "no" >&6; }
   4480 fi
   4481 
   4482   if test "x$ac_ct_CC" = x; then
   4483     CC=""
   4484   else
   4485     case $cross_compiling:$ac_tool_warned in
   4486 yes:)
   4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4489 ac_tool_warned=yes ;;
   4490 esac
   4491     CC=$ac_ct_CC
   4492   fi
   4493 else
   4494   CC="$ac_cv_prog_CC"
   4495 fi
   4496 
   4497 fi
   4498 
   4499 
   4500 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4502 as_fn_error $? "no acceptable C compiler found in \$PATH
   4503 See \`config.log' for more details" "$LINENO" 5; }
   4504 
   4505 # Provide some information about the compiler.
   4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4507 set X $ac_compile
   4508 ac_compiler=$2
   4509 for ac_option in --version -v -V -qversion -version; do
   4510   { { ac_try="$ac_compiler $ac_option >&5"
   4511 case "(($ac_try" in
   4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4513   *) ac_try_echo=$ac_try;;
   4514 esac
   4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4516 $as_echo "$ac_try_echo"; } >&5
   4517   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4518   ac_status=$?
   4519   if test -s conftest.err; then
   4520     sed '10a\
   4521 ... rest of stderr output deleted ...
   4522          10q' conftest.err >conftest.er1
   4523     cat conftest.er1 >&5
   4524   fi
   4525   rm -f conftest.er1 conftest.err
   4526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4527   test $ac_status = 0; }
   4528 done
   4529 
   4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4531 /* end confdefs.h.  */
   4532 
   4533 int
   4534 main ()
   4535 {
   4536 
   4537   ;
   4538   return 0;
   4539 }
   4540 _ACEOF
   4541 ac_clean_files_save=$ac_clean_files
   4542 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   4543 # Try to create an executable without -o first, disregard a.out.
   4544 # It will help us diagnose broken compilers, and finding out an intuition
   4545 # of exeext.
   4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   4547 $as_echo_n "checking whether the C compiler works... " >&6; }
   4548 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   4549 
   4550 # The possible output files:
   4551 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   4552 
   4553 ac_rmfiles=
   4554 for ac_file in $ac_files
   4555 do
   4556   case $ac_file in
   4557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4558     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   4559   esac
   4560 done
   4561 rm -f $ac_rmfiles
   4562 
   4563 if { { ac_try="$ac_link_default"
   4564 case "(($ac_try" in
   4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4566   *) ac_try_echo=$ac_try;;
   4567 esac
   4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4569 $as_echo "$ac_try_echo"; } >&5
   4570   (eval "$ac_link_default") 2>&5
   4571   ac_status=$?
   4572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4573   test $ac_status = 0; }; then :
   4574   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4575 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4576 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4577 # so that the user can short-circuit this test for compilers unknown to
   4578 # Autoconf.
   4579 for ac_file in $ac_files ''
   4580 do
   4581   test -f "$ac_file" || continue
   4582   case $ac_file in
   4583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4584 	;;
   4585     [ab].out )
   4586 	# We found the default executable, but exeext='' is most
   4587 	# certainly right.
   4588 	break;;
   4589     *.* )
   4590 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4591 	then :; else
   4592 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4593 	fi
   4594 	# We set ac_cv_exeext here because the later test for it is not
   4595 	# safe: cross compilers may not add the suffix if given an `-o'
   4596 	# argument, so we may need to know it at that point already.
   4597 	# Even if this section looks crufty: it has the advantage of
   4598 	# actually working.
   4599 	break;;
   4600     * )
   4601 	break;;
   4602   esac
   4603 done
   4604 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4605 
   4606 else
   4607   ac_file=''
   4608 fi
   4609 if test -z "$ac_file"; then :
   4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4611 $as_echo "no" >&6; }
   4612 $as_echo "$as_me: failed program was:" >&5
   4613 sed 's/^/| /' conftest.$ac_ext >&5
   4614 
   4615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4617 as_fn_error 77 "C compiler cannot create executables
   4618 See \`config.log' for more details" "$LINENO" 5; }
   4619 else
   4620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4621 $as_echo "yes" >&6; }
   4622 fi
   4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4624 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4626 $as_echo "$ac_file" >&6; }
   4627 ac_exeext=$ac_cv_exeext
   4628 
   4629 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4630 ac_clean_files=$ac_clean_files_save
   4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4632 $as_echo_n "checking for suffix of executables... " >&6; }
   4633 if { { ac_try="$ac_link"
   4634 case "(($ac_try" in
   4635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4636   *) ac_try_echo=$ac_try;;
   4637 esac
   4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4639 $as_echo "$ac_try_echo"; } >&5
   4640   (eval "$ac_link") 2>&5
   4641   ac_status=$?
   4642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4643   test $ac_status = 0; }; then :
   4644   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4645 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4646 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4647 # `rm'.
   4648 for ac_file in conftest.exe conftest conftest.*; do
   4649   test -f "$ac_file" || continue
   4650   case $ac_file in
   4651     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4652     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4653 	  break;;
   4654     * ) break;;
   4655   esac
   4656 done
   4657 else
   4658   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4660 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4661 See \`config.log' for more details" "$LINENO" 5; }
   4662 fi
   4663 rm -f conftest conftest$ac_cv_exeext
   4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4665 $as_echo "$ac_cv_exeext" >&6; }
   4666 
   4667 rm -f conftest.$ac_ext
   4668 EXEEXT=$ac_cv_exeext
   4669 ac_exeext=$EXEEXT
   4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4671 /* end confdefs.h.  */
   4672 #include <stdio.h>
   4673 int
   4674 main ()
   4675 {
   4676 FILE *f = fopen ("conftest.out", "w");
   4677  return ferror (f) || fclose (f) != 0;
   4678 
   4679   ;
   4680   return 0;
   4681 }
   4682 _ACEOF
   4683 ac_clean_files="$ac_clean_files conftest.out"
   4684 # Check that the compiler produces executables we can run.  If not, either
   4685 # the compiler is broken, or we cross compile.
   4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4687 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4688 if test "$cross_compiling" != yes; then
   4689   { { ac_try="$ac_link"
   4690 case "(($ac_try" in
   4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4692   *) ac_try_echo=$ac_try;;
   4693 esac
   4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4695 $as_echo "$ac_try_echo"; } >&5
   4696   (eval "$ac_link") 2>&5
   4697   ac_status=$?
   4698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4699   test $ac_status = 0; }
   4700   if { ac_try='./conftest$ac_cv_exeext'
   4701   { { case "(($ac_try" in
   4702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4703   *) ac_try_echo=$ac_try;;
   4704 esac
   4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4706 $as_echo "$ac_try_echo"; } >&5
   4707   (eval "$ac_try") 2>&5
   4708   ac_status=$?
   4709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4710   test $ac_status = 0; }; }; then
   4711     cross_compiling=no
   4712   else
   4713     if test "$cross_compiling" = maybe; then
   4714 	cross_compiling=yes
   4715     else
   4716 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4718 as_fn_error $? "cannot run C compiled programs.
   4719 If you meant to cross compile, use \`--host'.
   4720 See \`config.log' for more details" "$LINENO" 5; }
   4721     fi
   4722   fi
   4723 fi
   4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4725 $as_echo "$cross_compiling" >&6; }
   4726 
   4727 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4728 ac_clean_files=$ac_clean_files_save
   4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4730 $as_echo_n "checking for suffix of object files... " >&6; }
   4731 if ${ac_cv_objext+:} false; then :
   4732   $as_echo_n "(cached) " >&6
   4733 else
   4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4735 /* end confdefs.h.  */
   4736 
   4737 int
   4738 main ()
   4739 {
   4740 
   4741   ;
   4742   return 0;
   4743 }
   4744 _ACEOF
   4745 rm -f conftest.o conftest.obj
   4746 if { { ac_try="$ac_compile"
   4747 case "(($ac_try" in
   4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4749   *) ac_try_echo=$ac_try;;
   4750 esac
   4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4752 $as_echo "$ac_try_echo"; } >&5
   4753   (eval "$ac_compile") 2>&5
   4754   ac_status=$?
   4755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4756   test $ac_status = 0; }; then :
   4757   for ac_file in conftest.o conftest.obj conftest.*; do
   4758   test -f "$ac_file" || continue;
   4759   case $ac_file in
   4760     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4761     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4762        break;;
   4763   esac
   4764 done
   4765 else
   4766   $as_echo "$as_me: failed program was:" >&5
   4767 sed 's/^/| /' conftest.$ac_ext >&5
   4768 
   4769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4771 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4772 See \`config.log' for more details" "$LINENO" 5; }
   4773 fi
   4774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4775 fi
   4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4777 $as_echo "$ac_cv_objext" >&6; }
   4778 OBJEXT=$ac_cv_objext
   4779 ac_objext=$OBJEXT
   4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4781 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4782 if ${ac_cv_c_compiler_gnu+:} false; then :
   4783   $as_echo_n "(cached) " >&6
   4784 else
   4785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4786 /* end confdefs.h.  */
   4787 
   4788 int
   4789 main ()
   4790 {
   4791 #ifndef __GNUC__
   4792        choke me
   4793 #endif
   4794 
   4795   ;
   4796   return 0;
   4797 }
   4798 _ACEOF
   4799 if ac_fn_c_try_compile "$LINENO"; then :
   4800   ac_compiler_gnu=yes
   4801 else
   4802   ac_compiler_gnu=no
   4803 fi
   4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4806 
   4807 fi
   4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4809 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4810 if test $ac_compiler_gnu = yes; then
   4811   GCC=yes
   4812 else
   4813   GCC=
   4814 fi
   4815 ac_test_CFLAGS=${CFLAGS+set}
   4816 ac_save_CFLAGS=$CFLAGS
   4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4818 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4819 if ${ac_cv_prog_cc_g+:} false; then :
   4820   $as_echo_n "(cached) " >&6
   4821 else
   4822   ac_save_c_werror_flag=$ac_c_werror_flag
   4823    ac_c_werror_flag=yes
   4824    ac_cv_prog_cc_g=no
   4825    CFLAGS="-g"
   4826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4827 /* end confdefs.h.  */
   4828 
   4829 int
   4830 main ()
   4831 {
   4832 
   4833   ;
   4834   return 0;
   4835 }
   4836 _ACEOF
   4837 if ac_fn_c_try_compile "$LINENO"; then :
   4838   ac_cv_prog_cc_g=yes
   4839 else
   4840   CFLAGS=""
   4841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4842 /* end confdefs.h.  */
   4843 
   4844 int
   4845 main ()
   4846 {
   4847 
   4848   ;
   4849   return 0;
   4850 }
   4851 _ACEOF
   4852 if ac_fn_c_try_compile "$LINENO"; then :
   4853 
   4854 else
   4855   ac_c_werror_flag=$ac_save_c_werror_flag
   4856 	 CFLAGS="-g"
   4857 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4858 /* end confdefs.h.  */
   4859 
   4860 int
   4861 main ()
   4862 {
   4863 
   4864   ;
   4865   return 0;
   4866 }
   4867 _ACEOF
   4868 if ac_fn_c_try_compile "$LINENO"; then :
   4869   ac_cv_prog_cc_g=yes
   4870 fi
   4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4872 fi
   4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4874 fi
   4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4876    ac_c_werror_flag=$ac_save_c_werror_flag
   4877 fi
   4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4879 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4880 if test "$ac_test_CFLAGS" = set; then
   4881   CFLAGS=$ac_save_CFLAGS
   4882 elif test $ac_cv_prog_cc_g = yes; then
   4883   if test "$GCC" = yes; then
   4884     CFLAGS="-g -O2"
   4885   else
   4886     CFLAGS="-g"
   4887   fi
   4888 else
   4889   if test "$GCC" = yes; then
   4890     CFLAGS="-O2"
   4891   else
   4892     CFLAGS=
   4893   fi
   4894 fi
   4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   4896 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
   4897 if ${ac_cv_prog_cc_c11+:} false; then :
   4898   $as_echo_n "(cached) " >&6
   4899 else
   4900   ac_cv_prog_cc_c11=no
   4901 ac_save_CC=$CC
   4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4903 /* end confdefs.h.  */
   4904 #include <stdarg.h>
   4905 #include <stdbool.h>
   4906 #include <stddef.h>
   4907 #include <stdlib.h>
   4908 #include <wchar.h>
   4909 #include <stdio.h>
   4910 
   4911 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   4912 #define debug(...) fprintf (stderr, __VA_ARGS__)
   4913 #define showlist(...) puts (#__VA_ARGS__)
   4914 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   4915 static void
   4916 test_varargs_macros (void)
   4917 {
   4918   int x = 1234;
   4919   int y = 5678;
   4920   debug ("Flag");
   4921   debug ("X = %d\n", x);
   4922   showlist (The first, second, and third items.);
   4923   report (x>y, "x is %d but y is %d", x, y);
   4924 }
   4925 
   4926 // Check long long types.
   4927 #define BIG64 18446744073709551615ull
   4928 #define BIG32 4294967295ul
   4929 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   4930 #if !BIG_OK
   4931   your preprocessor is broken;
   4932 #endif
   4933 #if BIG_OK
   4934 #else
   4935   your preprocessor is broken;
   4936 #endif
   4937 static long long int bignum = -9223372036854775807LL;
   4938 static unsigned long long int ubignum = BIG64;
   4939 
   4940 struct incomplete_array
   4941 {
   4942   int datasize;
   4943   double data[];
   4944 };
   4945 
   4946 struct named_init {
   4947   int number;
   4948   const wchar_t *name;
   4949   double average;
   4950 };
   4951 
   4952 typedef const char *ccp;
   4953 
   4954 static inline int
   4955 test_restrict (ccp restrict text)
   4956 {
   4957   // See if C++-style comments work.
   4958   // Iterate through items via the restricted pointer.
   4959   // Also check for declarations in for loops.
   4960   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   4961     continue;
   4962   return 0;
   4963 }
   4964 
   4965 // Check varargs and va_copy.
   4966 static bool
   4967 test_varargs (const char *format, ...)
   4968 {
   4969   va_list args;
   4970   va_start (args, format);
   4971   va_list args_copy;
   4972   va_copy (args_copy, args);
   4973 
   4974   const char *str = "";
   4975   int number = 0;
   4976   float fnumber = 0;
   4977 
   4978   while (*format)
   4979     {
   4980       switch (*format++)
   4981 	{
   4982 	case 's': // string
   4983 	  str = va_arg (args_copy, const char *);
   4984 	  break;
   4985 	case 'd': // int
   4986 	  number = va_arg (args_copy, int);
   4987 	  break;
   4988 	case 'f': // float
   4989 	  fnumber = va_arg (args_copy, double);
   4990 	  break;
   4991 	default:
   4992 	  break;
   4993 	}
   4994     }
   4995   va_end (args_copy);
   4996   va_end (args);
   4997 
   4998   return *str && number && fnumber;
   4999 }
   5000 // Check _Alignas.
   5001 char _Alignas (double) aligned_as_double;
   5002 char _Alignas (0) no_special_alignment;
   5003 extern char aligned_as_int;
   5004 char _Alignas (0) _Alignas (int) aligned_as_int;
   5005 
   5006 // Check _Alignof.
   5007 enum
   5008 {
   5009   int_alignment = _Alignof (int),
   5010   int_array_alignment = _Alignof (int[100]),
   5011   char_alignment = _Alignof (char)
   5012 };
   5013 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   5014 
   5015 // Check _Noreturn.
   5016 int _Noreturn does_not_return (void) { for (;;) continue; }
   5017 
   5018 // Check _Static_assert.
   5019 struct test_static_assert
   5020 {
   5021   int x;
   5022   _Static_assert (sizeof (int) <= sizeof (long int),
   5023                   "_Static_assert does not work in struct");
   5024   long int y;
   5025 };
   5026 
   5027 // Check UTF-8 literals.
   5028 #define u8 syntax error!
   5029 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   5030 
   5031 // Check duplicate typedefs.
   5032 typedef long *long_ptr;
   5033 typedef long int *long_ptr;
   5034 typedef long_ptr long_ptr;
   5035 
   5036 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   5037 struct anonymous
   5038 {
   5039   union {
   5040     struct { int i; int j; };
   5041     struct { int k; long int l; } w;
   5042   };
   5043   int m;
   5044 } v1;
   5045 
   5046 int
   5047 main ()
   5048 {
   5049 
   5050   // Check bool.
   5051   _Bool success = false;
   5052 
   5053   // Check restrict.
   5054   if (test_restrict ("String literal") == 0)
   5055     success = true;
   5056   char *restrict newvar = "Another string";
   5057 
   5058   // Check varargs.
   5059   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
   5060   test_varargs_macros ();
   5061 
   5062   // Check flexible array members.
   5063   struct incomplete_array *ia =
   5064     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   5065   ia->datasize = 10;
   5066   for (int i = 0; i < ia->datasize; ++i)
   5067     ia->data[i] = i * 1.234;
   5068 
   5069   // Check named initializers.
   5070   struct named_init ni = {
   5071     .number = 34,
   5072     .name = L"Test wide string",
   5073     .average = 543.34343,
   5074   };
   5075 
   5076   ni.number = 58;
   5077 
   5078   int dynamic_array[ni.number];
   5079   dynamic_array[ni.number - 1] = 543;
   5080 
   5081   // work around unused variable warnings
   5082   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   5083 	  || dynamic_array[ni.number - 1] != 543);
   5084 
   5085   v1.i = 2;
   5086   v1.w.k = 5;
   5087   _Static_assert ((offsetof (struct anonymous, i)
   5088 		   == offsetof (struct anonymous, w.k)),
   5089 		  "Anonymous union alignment botch");
   5090 
   5091   ;
   5092   return 0;
   5093 }
   5094 _ACEOF
   5095 for ac_arg in '' -std=gnu11
   5096 do
   5097   CC="$ac_save_CC $ac_arg"
   5098   if ac_fn_c_try_compile "$LINENO"; then :
   5099   ac_cv_prog_cc_c11=$ac_arg
   5100 fi
   5101 rm -f core conftest.err conftest.$ac_objext
   5102   test "x$ac_cv_prog_cc_c11" != "xno" && break
   5103 done
   5104 rm -f conftest.$ac_ext
   5105 CC=$ac_save_CC
   5106 
   5107 fi
   5108 # AC_CACHE_VAL
   5109 ac_prog_cc_stdc_options=
   5110 case "x$ac_cv_prog_cc_c11" in
   5111   x)
   5112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5113 $as_echo "none needed" >&6; } ;;
   5114   xno)
   5115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5116 $as_echo "unsupported" >&6; } ;;
   5117   *)
   5118     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
   5119     CC=$CC$ac_prog_cc_stdc_options
   5120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   5121 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
   5122 esac
   5123 if test "x$ac_cv_prog_cc_c11" != xno; then :
   5124   ac_prog_cc_stdc=c11
   5125 		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   5126 else
   5127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   5128 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
   5129 if ${ac_cv_prog_cc_c99+:} false; then :
   5130   $as_echo_n "(cached) " >&6
   5131 else
   5132   ac_cv_prog_cc_c99=no
   5133 ac_save_CC=$CC
   5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5135 /* end confdefs.h.  */
   5136 #include <stdarg.h>
   5137 #include <stdbool.h>
   5138 #include <stddef.h>
   5139 #include <stdlib.h>
   5140 #include <wchar.h>
   5141 #include <stdio.h>
   5142 
   5143 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   5144 #define debug(...) fprintf (stderr, __VA_ARGS__)
   5145 #define showlist(...) puts (#__VA_ARGS__)
   5146 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   5147 static void
   5148 test_varargs_macros (void)
   5149 {
   5150   int x = 1234;
   5151   int y = 5678;
   5152   debug ("Flag");
   5153   debug ("X = %d\n", x);
   5154   showlist (The first, second, and third items.);
   5155   report (x>y, "x is %d but y is %d", x, y);
   5156 }
   5157 
   5158 // Check long long types.
   5159 #define BIG64 18446744073709551615ull
   5160 #define BIG32 4294967295ul
   5161 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   5162 #if !BIG_OK
   5163   your preprocessor is broken;
   5164 #endif
   5165 #if BIG_OK
   5166 #else
   5167   your preprocessor is broken;
   5168 #endif
   5169 static long long int bignum = -9223372036854775807LL;
   5170 static unsigned long long int ubignum = BIG64;
   5171 
   5172 struct incomplete_array
   5173 {
   5174   int datasize;
   5175   double data[];
   5176 };
   5177 
   5178 struct named_init {
   5179   int number;
   5180   const wchar_t *name;
   5181   double average;
   5182 };
   5183 
   5184 typedef const char *ccp;
   5185 
   5186 static inline int
   5187 test_restrict (ccp restrict text)
   5188 {
   5189   // See if C++-style comments work.
   5190   // Iterate through items via the restricted pointer.
   5191   // Also check for declarations in for loops.
   5192   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   5193     continue;
   5194   return 0;
   5195 }
   5196 
   5197 // Check varargs and va_copy.
   5198 static bool
   5199 test_varargs (const char *format, ...)
   5200 {
   5201   va_list args;
   5202   va_start (args, format);
   5203   va_list args_copy;
   5204   va_copy (args_copy, args);
   5205 
   5206   const char *str = "";
   5207   int number = 0;
   5208   float fnumber = 0;
   5209 
   5210   while (*format)
   5211     {
   5212       switch (*format++)
   5213 	{
   5214 	case 's': // string
   5215 	  str = va_arg (args_copy, const char *);
   5216 	  break;
   5217 	case 'd': // int
   5218 	  number = va_arg (args_copy, int);
   5219 	  break;
   5220 	case 'f': // float
   5221 	  fnumber = va_arg (args_copy, double);
   5222 	  break;
   5223 	default:
   5224 	  break;
   5225 	}
   5226     }
   5227   va_end (args_copy);
   5228   va_end (args);
   5229 
   5230   return *str && number && fnumber;
   5231 }
   5232 int
   5233 main ()
   5234 {
   5235 
   5236   // Check bool.
   5237   _Bool success = false;
   5238 
   5239   // Check restrict.
   5240   if (test_restrict ("String literal") == 0)
   5241     success = true;
   5242   char *restrict newvar = "Another string";
   5243 
   5244   // Check varargs.
   5245   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
   5246   test_varargs_macros ();
   5247 
   5248   // Check flexible array members.
   5249   struct incomplete_array *ia =
   5250     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   5251   ia->datasize = 10;
   5252   for (int i = 0; i < ia->datasize; ++i)
   5253     ia->data[i] = i * 1.234;
   5254 
   5255   // Check named initializers.
   5256   struct named_init ni = {
   5257     .number = 34,
   5258     .name = L"Test wide string",
   5259     .average = 543.34343,
   5260   };
   5261 
   5262   ni.number = 58;
   5263 
   5264   int dynamic_array[ni.number];
   5265   dynamic_array[ni.number - 1] = 543;
   5266 
   5267   // work around unused variable warnings
   5268   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   5269 	  || dynamic_array[ni.number - 1] != 543);
   5270 
   5271   ;
   5272   return 0;
   5273 }
   5274 _ACEOF
   5275 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
   5276 do
   5277   CC="$ac_save_CC $ac_arg"
   5278   if ac_fn_c_try_compile "$LINENO"; then :
   5279   ac_cv_prog_cc_c99=$ac_arg
   5280 fi
   5281 rm -f core conftest.err conftest.$ac_objext
   5282   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5283 done
   5284 rm -f conftest.$ac_ext
   5285 CC=$ac_save_CC
   5286 
   5287 fi
   5288 # AC_CACHE_VAL
   5289 ac_prog_cc_stdc_options=
   5290 case "x$ac_cv_prog_cc_c99" in
   5291   x)
   5292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5293 $as_echo "none needed" >&6; } ;;
   5294   xno)
   5295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5296 $as_echo "unsupported" >&6; } ;;
   5297   *)
   5298     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
   5299     CC=$CC$ac_prog_cc_stdc_options
   5300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5301 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   5302 esac
   5303 if test "x$ac_cv_prog_cc_c99" != xno; then :
   5304   ac_prog_cc_stdc=c99
   5305 		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   5306 else
   5307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   5308 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
   5309 if ${ac_cv_prog_cc_c89+:} false; then :
   5310   $as_echo_n "(cached) " >&6
   5311 else
   5312   ac_cv_prog_cc_c89=no
   5313 ac_save_CC=$CC
   5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5315 /* end confdefs.h.  */
   5316 #include <stdarg.h>
   5317 #include <stdio.h>
   5318 struct stat;
   5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5320 struct buf { int x; };
   5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5322 static char *e (p, i)
   5323      char **p;
   5324      int i;
   5325 {
   5326   return p[i];
   5327 }
   5328 static char *f (char * (*g) (char **, int), char **p, ...)
   5329 {
   5330   char *s;
   5331   va_list v;
   5332   va_start (v,p);
   5333   s = g (p, va_arg (v,int));
   5334   va_end (v);
   5335   return s;
   5336 }
   5337 
   5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   5339    function prototypes and stuff, but not '\xHH' hex character constants.
   5340    These don't provoke an error unfortunately, instead are silently treated
   5341    as 'x'.  The following induces an error, until -std is added to get
   5342    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   5343    array size at least.  It's necessary to write '\x00'==0 to get something
   5344    that's true only with -std.  */
   5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   5346 
   5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   5348    inside strings and character constants.  */
   5349 #define FOO(x) 'x'
   5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   5351 
   5352 int test (int i, double x);
   5353 struct s1 {int (*f) (int a);};
   5354 struct s2 {int (*f) (double a);};
   5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5356 int argc;
   5357 char **argv;
   5358 int
   5359 main ()
   5360 {
   5361 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5362   ;
   5363   return 0;
   5364 }
   5365 _ACEOF
   5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   5367 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5368 do
   5369   CC="$ac_save_CC $ac_arg"
   5370   if ac_fn_c_try_compile "$LINENO"; then :
   5371   ac_cv_prog_cc_c89=$ac_arg
   5372 fi
   5373 rm -f core conftest.err conftest.$ac_objext
   5374   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5375 done
   5376 rm -f conftest.$ac_ext
   5377 CC=$ac_save_CC
   5378 
   5379 fi
   5380 # AC_CACHE_VAL
   5381 ac_prog_cc_stdc_options=
   5382 case "x$ac_cv_prog_cc_c89" in
   5383   x)
   5384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5385 $as_echo "none needed" >&6; } ;;
   5386   xno)
   5387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5388 $as_echo "unsupported" >&6; } ;;
   5389   *)
   5390     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
   5391     CC=$CC$ac_prog_cc_stdc_options
   5392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5394 esac
   5395 if test "x$ac_cv_prog_cc_c89" != xno; then :
   5396   ac_prog_cc_stdc=c89
   5397 		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   5398 else
   5399   ac_prog_cc_stdc=no
   5400 		       ac_cv_prog_cc_stdc=no
   5401 fi
   5402 
   5403 fi
   5404 
   5405 fi
   5406 
   5407 ac_ext=c
   5408 ac_cpp='$CPP $CPPFLAGS'
   5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5412 
   5413 
   5414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
   5415 $as_echo_n "checking whether the compiler is clang... " >&6; }
   5416 if ${gl_cv_compiler_clang+:} false; then :
   5417   $as_echo_n "(cached) " >&6
   5418 else
   5419                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5420 /* end confdefs.h.  */
   5421 
   5422            #ifdef __clang__
   5423            barfbarf
   5424            #endif
   5425 
   5426 int
   5427 main ()
   5428 {
   5429 
   5430   ;
   5431   return 0;
   5432 }
   5433 
   5434 _ACEOF
   5435 if ac_fn_c_try_compile "$LINENO"; then :
   5436   gl_cv_compiler_clang=no
   5437 else
   5438   gl_cv_compiler_clang=yes
   5439 fi
   5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5441 
   5442 fi
   5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
   5444 $as_echo "$gl_cv_compiler_clang" >&6; }
   5445 
   5446 
   5447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
   5448 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
   5449 if ${gl_cv_compiler_check_decl_option+:} false; then :
   5450   $as_echo_n "(cached) " >&6
   5451 else
   5452   if test $gl_cv_compiler_clang = yes; then
   5453                      save_ac_compile="$ac_compile"
   5454        ac_compile="$ac_compile -Werror=implicit-function-declaration"
   5455                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5456 /* end confdefs.h.  */
   5457 
   5458 int
   5459 main ()
   5460 {
   5461 
   5462   ;
   5463   return 0;
   5464 }
   5465 _ACEOF
   5466 if ac_fn_c_try_compile "$LINENO"; then :
   5467   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
   5468 else
   5469   gl_cv_compiler_check_decl_option=none
   5470 fi
   5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5472        ac_compile="$save_ac_compile"
   5473      else
   5474        gl_cv_compiler_check_decl_option=none
   5475      fi
   5476 
   5477 fi
   5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
   5479 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
   5480   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
   5481     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
   5482   else
   5483     ac_compile_for_check_decl="$ac_compile"
   5484   fi
   5485 
   5486 
   5487 
   5488 
   5489 ac_ext=c
   5490 ac_cpp='$CPP $CPPFLAGS'
   5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5495 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   5496 # On Suns, sometimes $CPP names a directory.
   5497 if test -n "$CPP" && test -d "$CPP"; then
   5498   CPP=
   5499 fi
   5500 if test -z "$CPP"; then
   5501   if ${ac_cv_prog_CPP+:} false; then :
   5502   $as_echo_n "(cached) " >&6
   5503 else
   5504       # Double quotes because CPP needs to be expanded
   5505     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   5506     do
   5507       ac_preproc_ok=false
   5508 for ac_c_preproc_warn_flag in '' yes
   5509 do
   5510   # Use a header file that comes with gcc, so configuring glibc
   5511   # with a fresh cross-compiler works.
   5512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5513   # <limits.h> exists even on freestanding compilers.
   5514   # On the NeXT, cc -E runs the code through the compiler's parser,
   5515   # not just through cpp. "Syntax error" is here to catch this case.
   5516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5517 /* end confdefs.h.  */
   5518 #ifdef __STDC__
   5519 # include <limits.h>
   5520 #else
   5521 # include <assert.h>
   5522 #endif
   5523 		     Syntax error
   5524 _ACEOF
   5525 if ac_fn_c_try_cpp "$LINENO"; then :
   5526 
   5527 else
   5528   # Broken: fails on valid input.
   5529 continue
   5530 fi
   5531 rm -f conftest.err conftest.i conftest.$ac_ext
   5532 
   5533   # OK, works on sane cases.  Now check whether nonexistent headers
   5534   # can be detected and how.
   5535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5536 /* end confdefs.h.  */
   5537 #include <ac_nonexistent.h>
   5538 _ACEOF
   5539 if ac_fn_c_try_cpp "$LINENO"; then :
   5540   # Broken: success on invalid input.
   5541 continue
   5542 else
   5543   # Passes both tests.
   5544 ac_preproc_ok=:
   5545 break
   5546 fi
   5547 rm -f conftest.err conftest.i conftest.$ac_ext
   5548 
   5549 done
   5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5551 rm -f conftest.i conftest.err conftest.$ac_ext
   5552 if $ac_preproc_ok; then :
   5553   break
   5554 fi
   5555 
   5556     done
   5557     ac_cv_prog_CPP=$CPP
   5558 
   5559 fi
   5560   CPP=$ac_cv_prog_CPP
   5561 else
   5562   ac_cv_prog_CPP=$CPP
   5563 fi
   5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5565 $as_echo "$CPP" >&6; }
   5566 ac_preproc_ok=false
   5567 for ac_c_preproc_warn_flag in '' yes
   5568 do
   5569   # Use a header file that comes with gcc, so configuring glibc
   5570   # with a fresh cross-compiler works.
   5571   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5572   # <limits.h> exists even on freestanding compilers.
   5573   # On the NeXT, cc -E runs the code through the compiler's parser,
   5574   # not just through cpp. "Syntax error" is here to catch this case.
   5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5576 /* end confdefs.h.  */
   5577 #ifdef __STDC__
   5578 # include <limits.h>
   5579 #else
   5580 # include <assert.h>
   5581 #endif
   5582 		     Syntax error
   5583 _ACEOF
   5584 if ac_fn_c_try_cpp "$LINENO"; then :
   5585 
   5586 else
   5587   # Broken: fails on valid input.
   5588 continue
   5589 fi
   5590 rm -f conftest.err conftest.i conftest.$ac_ext
   5591 
   5592   # OK, works on sane cases.  Now check whether nonexistent headers
   5593   # can be detected and how.
   5594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5595 /* end confdefs.h.  */
   5596 #include <ac_nonexistent.h>
   5597 _ACEOF
   5598 if ac_fn_c_try_cpp "$LINENO"; then :
   5599   # Broken: success on invalid input.
   5600 continue
   5601 else
   5602   # Passes both tests.
   5603 ac_preproc_ok=:
   5604 break
   5605 fi
   5606 rm -f conftest.err conftest.i conftest.$ac_ext
   5607 
   5608 done
   5609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5610 rm -f conftest.i conftest.err conftest.$ac_ext
   5611 if $ac_preproc_ok; then :
   5612 
   5613 else
   5614   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5616 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   5617 See \`config.log' for more details" "$LINENO" 5; }
   5618 fi
   5619 
   5620 ac_ext=c
   5621 ac_cpp='$CPP $CPPFLAGS'
   5622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5625 
   5626 
   5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5628 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   5629 if ${ac_cv_path_GREP+:} false; then :
   5630   $as_echo_n "(cached) " >&6
   5631 else
   5632   if test -z "$GREP"; then
   5633   ac_path_GREP_found=false
   5634   # Loop through the user's path and test for each of PROGNAME-LIST
   5635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5637 do
   5638   IFS=$as_save_IFS
   5639   test -z "$as_dir" && as_dir=.
   5640     for ac_prog in grep ggrep; do
   5641     for ac_exec_ext in '' $ac_executable_extensions; do
   5642       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5643       as_fn_executable_p "$ac_path_GREP" || continue
   5644 # Check for GNU ac_path_GREP and select it if it is found.
   5645   # Check for GNU $ac_path_GREP
   5646 case `"$ac_path_GREP" --version 2>&1` in
   5647 *GNU*)
   5648   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5649 *)
   5650   ac_count=0
   5651   $as_echo_n 0123456789 >"conftest.in"
   5652   while :
   5653   do
   5654     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5655     mv "conftest.tmp" "conftest.in"
   5656     cp "conftest.in" "conftest.nl"
   5657     $as_echo 'GREP' >> "conftest.nl"
   5658     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5660     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5661     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5662       # Best one so far, save it but keep looking for a better one
   5663       ac_cv_path_GREP="$ac_path_GREP"
   5664       ac_path_GREP_max=$ac_count
   5665     fi
   5666     # 10*(2^10) chars as input seems more than enough
   5667     test $ac_count -gt 10 && break
   5668   done
   5669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5670 esac
   5671 
   5672       $ac_path_GREP_found && break 3
   5673     done
   5674   done
   5675   done
   5676 IFS=$as_save_IFS
   5677   if test -z "$ac_cv_path_GREP"; then
   5678     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5679   fi
   5680 else
   5681   ac_cv_path_GREP=$GREP
   5682 fi
   5683 
   5684 fi
   5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5686 $as_echo "$ac_cv_path_GREP" >&6; }
   5687  GREP="$ac_cv_path_GREP"
   5688 
   5689 
   5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5691 $as_echo_n "checking for egrep... " >&6; }
   5692 if ${ac_cv_path_EGREP+:} false; then :
   5693   $as_echo_n "(cached) " >&6
   5694 else
   5695   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5696    then ac_cv_path_EGREP="$GREP -E"
   5697    else
   5698      if test -z "$EGREP"; then
   5699   ac_path_EGREP_found=false
   5700   # Loop through the user's path and test for each of PROGNAME-LIST
   5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5703 do
   5704   IFS=$as_save_IFS
   5705   test -z "$as_dir" && as_dir=.
   5706     for ac_prog in egrep; do
   5707     for ac_exec_ext in '' $ac_executable_extensions; do
   5708       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5709       as_fn_executable_p "$ac_path_EGREP" || continue
   5710 # Check for GNU ac_path_EGREP and select it if it is found.
   5711   # Check for GNU $ac_path_EGREP
   5712 case `"$ac_path_EGREP" --version 2>&1` in
   5713 *GNU*)
   5714   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5715 *)
   5716   ac_count=0
   5717   $as_echo_n 0123456789 >"conftest.in"
   5718   while :
   5719   do
   5720     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5721     mv "conftest.tmp" "conftest.in"
   5722     cp "conftest.in" "conftest.nl"
   5723     $as_echo 'EGREP' >> "conftest.nl"
   5724     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5726     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5727     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5728       # Best one so far, save it but keep looking for a better one
   5729       ac_cv_path_EGREP="$ac_path_EGREP"
   5730       ac_path_EGREP_max=$ac_count
   5731     fi
   5732     # 10*(2^10) chars as input seems more than enough
   5733     test $ac_count -gt 10 && break
   5734   done
   5735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5736 esac
   5737 
   5738       $ac_path_EGREP_found && break 3
   5739     done
   5740   done
   5741   done
   5742 IFS=$as_save_IFS
   5743   if test -z "$ac_cv_path_EGREP"; then
   5744     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5745   fi
   5746 else
   5747   ac_cv_path_EGREP=$EGREP
   5748 fi
   5749 
   5750    fi
   5751 fi
   5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5753 $as_echo "$ac_cv_path_EGREP" >&6; }
   5754  EGREP="$ac_cv_path_EGREP"
   5755 
   5756 
   5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5758 $as_echo_n "checking for ANSI C header files... " >&6; }
   5759 if ${ac_cv_header_stdc+:} false; then :
   5760   $as_echo_n "(cached) " >&6
   5761 else
   5762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5763 /* end confdefs.h.  */
   5764 #include <stdlib.h>
   5765 #include <stdarg.h>
   5766 #include <string.h>
   5767 #include <float.h>
   5768 
   5769 int
   5770 main ()
   5771 {
   5772 
   5773   ;
   5774   return 0;
   5775 }
   5776 _ACEOF
   5777 if ac_fn_c_try_compile "$LINENO"; then :
   5778   ac_cv_header_stdc=yes
   5779 else
   5780   ac_cv_header_stdc=no
   5781 fi
   5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5783 
   5784 if test $ac_cv_header_stdc = yes; then
   5785   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5787 /* end confdefs.h.  */
   5788 #include <string.h>
   5789 
   5790 _ACEOF
   5791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5792   $EGREP "memchr" >/dev/null 2>&1; then :
   5793 
   5794 else
   5795   ac_cv_header_stdc=no
   5796 fi
   5797 rm -f conftest*
   5798 
   5799 fi
   5800 
   5801 if test $ac_cv_header_stdc = yes; then
   5802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5804 /* end confdefs.h.  */
   5805 #include <stdlib.h>
   5806 
   5807 _ACEOF
   5808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5809   $EGREP "free" >/dev/null 2>&1; then :
   5810 
   5811 else
   5812   ac_cv_header_stdc=no
   5813 fi
   5814 rm -f conftest*
   5815 
   5816 fi
   5817 
   5818 if test $ac_cv_header_stdc = yes; then
   5819   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5820   if test "$cross_compiling" = yes; then :
   5821   :
   5822 else
   5823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5824 /* end confdefs.h.  */
   5825 #include <ctype.h>
   5826 #include <stdlib.h>
   5827 #if ((' ' & 0x0FF) == 0x020)
   5828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5830 #else
   5831 # define ISLOWER(c) \
   5832 		   (('a' <= (c) && (c) <= 'i') \
   5833 		     || ('j' <= (c) && (c) <= 'r') \
   5834 		     || ('s' <= (c) && (c) <= 'z'))
   5835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5836 #endif
   5837 
   5838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5839 int
   5840 main ()
   5841 {
   5842   int i;
   5843   for (i = 0; i < 256; i++)
   5844     if (XOR (islower (i), ISLOWER (i))
   5845 	|| toupper (i) != TOUPPER (i))
   5846       return 2;
   5847   return 0;
   5848 }
   5849 _ACEOF
   5850 if ac_fn_c_try_run "$LINENO"; then :
   5851 
   5852 else
   5853   ac_cv_header_stdc=no
   5854 fi
   5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5856   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5857 fi
   5858 
   5859 fi
   5860 fi
   5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5862 $as_echo "$ac_cv_header_stdc" >&6; }
   5863 if test $ac_cv_header_stdc = yes; then
   5864 
   5865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5866 
   5867 fi
   5868 
   5869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5871 		  inttypes.h stdint.h unistd.h
   5872 do :
   5873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5875 "
   5876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5877   cat >>confdefs.h <<_ACEOF
   5878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5879 _ACEOF
   5880 
   5881 fi
   5882 
   5883 done
   5884 
   5885 
   5886 
   5887 
   5888 
   5889   for ac_header in $ac_header_list
   5890 do :
   5891   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5893 "
   5894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5895   cat >>confdefs.h <<_ACEOF
   5896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5897 _ACEOF
   5898 
   5899 fi
   5900 
   5901 done
   5902 
   5903 
   5904 
   5905 
   5906 
   5907 
   5908 
   5909 
   5910 
   5911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5913 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   5914   $as_echo_n "(cached) " >&6
   5915 else
   5916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5917 /* end confdefs.h.  */
   5918 
   5919 #         define __EXTENSIONS__ 1
   5920           $ac_includes_default
   5921 int
   5922 main ()
   5923 {
   5924 
   5925   ;
   5926   return 0;
   5927 }
   5928 _ACEOF
   5929 if ac_fn_c_try_compile "$LINENO"; then :
   5930   ac_cv_safe_to_define___extensions__=yes
   5931 else
   5932   ac_cv_safe_to_define___extensions__=no
   5933 fi
   5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5935 fi
   5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5938 
   5939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   5940 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   5941 if ${ac_cv_should_define__xopen_source+:} false; then :
   5942   $as_echo_n "(cached) " >&6
   5943 else
   5944   ac_cv_should_define__xopen_source=no
   5945     if test $ac_cv_header_wchar_h = yes; then :
   5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5947 /* end confdefs.h.  */
   5948 
   5949           #include <wchar.h>
   5950           mbstate_t x;
   5951 int
   5952 main ()
   5953 {
   5954 
   5955   ;
   5956   return 0;
   5957 }
   5958 _ACEOF
   5959 if ac_fn_c_try_compile "$LINENO"; then :
   5960 
   5961 else
   5962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5963 /* end confdefs.h.  */
   5964 
   5965             #define _XOPEN_SOURCE 500
   5966             #include <wchar.h>
   5967             mbstate_t x;
   5968 int
   5969 main ()
   5970 {
   5971 
   5972   ;
   5973   return 0;
   5974 }
   5975 _ACEOF
   5976 if ac_fn_c_try_compile "$LINENO"; then :
   5977   ac_cv_should_define__xopen_source=yes
   5978 fi
   5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5980 fi
   5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5982 fi
   5983 fi
   5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   5985 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
   5986 
   5987   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5988 
   5989   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   5990 
   5991   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5992 
   5993   $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   5994 
   5995   $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
   5996 
   5997   $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
   5998 
   5999   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   6000 
   6001   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   6002 
   6003   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   6004 
   6005   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   6006 
   6007   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   6008 
   6009   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   6010 
   6011   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   6012 
   6013   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   6014 
   6015   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   6016 
   6017   if test $ac_cv_header_minix_config_h = yes; then :
   6018   MINIX=yes
   6019     $as_echo "#define _MINIX 1" >>confdefs.h
   6020 
   6021     $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   6022 
   6023     $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   6024 
   6025 else
   6026   MINIX=
   6027 fi
   6028   if test $ac_cv_safe_to_define___extensions__ = yes; then :
   6029   $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   6030 
   6031 fi
   6032   if test $ac_cv_should_define__xopen_source = yes; then :
   6033   $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
   6034 
   6035 fi
   6036 
   6037 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
   6038 # there.
   6039 ac_aux_dir=
   6040 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   6041   if test -f "$ac_dir/install-sh"; then
   6042     ac_aux_dir=$ac_dir
   6043     ac_install_sh="$ac_aux_dir/install-sh -c"
   6044     break
   6045   elif test -f "$ac_dir/install.sh"; then
   6046     ac_aux_dir=$ac_dir
   6047     ac_install_sh="$ac_aux_dir/install.sh -c"
   6048     break
   6049   elif test -f "$ac_dir/shtool"; then
   6050     ac_aux_dir=$ac_dir
   6051     ac_install_sh="$ac_aux_dir/shtool install -c"
   6052     break
   6053   fi
   6054 done
   6055 if test -z "$ac_aux_dir"; then
   6056   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   6057 fi
   6058 
   6059 # These three variables are undocumented and unsupported,
   6060 # and are intended to be withdrawn in a future Autoconf release.
   6061 # They can cause serious problems if a builder's source tree is in a directory
   6062 # whose full name contains unusual characters.
   6063 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   6064 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   6065 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   6066 
   6067 
   6068 # Make sure we can run config.sub.
   6069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   6070   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   6071 
   6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   6073 $as_echo_n "checking build system type... " >&6; }
   6074 if ${ac_cv_build+:} false; then :
   6075   $as_echo_n "(cached) " >&6
   6076 else
   6077   ac_build_alias=$build_alias
   6078 test "x$ac_build_alias" = x &&
   6079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   6080 test "x$ac_build_alias" = x &&
   6081   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   6082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   6083   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   6084 
   6085 fi
   6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   6087 $as_echo "$ac_cv_build" >&6; }
   6088 case $ac_cv_build in
   6089 *-*-*) ;;
   6090 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   6091 esac
   6092 build=$ac_cv_build
   6093 ac_save_IFS=$IFS; IFS='-'
   6094 set x $ac_cv_build
   6095 shift
   6096 build_cpu=$1
   6097 build_vendor=$2
   6098 shift; shift
   6099 # Remember, the first character of IFS is used to create $*,
   6100 # except with old shells:
   6101 build_os=$*
   6102 IFS=$ac_save_IFS
   6103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   6104 
   6105 
   6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   6107 $as_echo_n "checking host system type... " >&6; }
   6108 if ${ac_cv_host+:} false; then :
   6109   $as_echo_n "(cached) " >&6
   6110 else
   6111   if test "x$host_alias" = x; then
   6112   ac_cv_host=$ac_cv_build
   6113 else
   6114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   6115     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   6116 fi
   6117 
   6118 fi
   6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   6120 $as_echo "$ac_cv_host" >&6; }
   6121 case $ac_cv_host in
   6122 *-*-*) ;;
   6123 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   6124 esac
   6125 host=$ac_cv_host
   6126 ac_save_IFS=$IFS; IFS='-'
   6127 set x $ac_cv_host
   6128 shift
   6129 host_cpu=$1
   6130 host_vendor=$2
   6131 shift; shift
   6132 # Remember, the first character of IFS is used to create $*,
   6133 # except with old shells:
   6134 host_os=$*
   6135 IFS=$ac_save_IFS
   6136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   6137 
   6138 
   6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   6140 $as_echo_n "checking target system type... " >&6; }
   6141 if ${ac_cv_target+:} false; then :
   6142   $as_echo_n "(cached) " >&6
   6143 else
   6144   if test "x$target_alias" = x; then
   6145   ac_cv_target=$ac_cv_host
   6146 else
   6147   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   6148     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   6149 fi
   6150 
   6151 fi
   6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   6153 $as_echo "$ac_cv_target" >&6; }
   6154 case $ac_cv_target in
   6155 *-*-*) ;;
   6156 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   6157 esac
   6158 target=$ac_cv_target
   6159 ac_save_IFS=$IFS; IFS='-'
   6160 set x $ac_cv_target
   6161 shift
   6162 target_cpu=$1
   6163 target_vendor=$2
   6164 shift; shift
   6165 # Remember, the first character of IFS is used to create $*,
   6166 # except with old shells:
   6167 target_os=$*
   6168 IFS=$ac_save_IFS
   6169 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   6170 
   6171 
   6172 # The aliases save the names the user supplied, while $host etc.
   6173 # will get canonicalized.
   6174 test -n "$target_alias" &&
   6175   test "$program_prefix$program_suffix$program_transform_name" = \
   6176     NONENONEs,x,x, &&
   6177   program_prefix=${target_alias}-
   6178 
   6179 # The tests for host and target for $enable_largefile require
   6180 # canonical names.
   6181 
   6182 
   6183 
   6184 # As the $enable_largefile decision depends on --enable-plugins we must set it
   6185 # even in directories otherwise not depending on the $plugins option.
   6186 
   6187 
   6188   maybe_plugins=no
   6189   for ac_header in dlfcn.h
   6190 do :
   6191   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   6192 "
   6193 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   6194   cat >>confdefs.h <<_ACEOF
   6195 #define HAVE_DLFCN_H 1
   6196 _ACEOF
   6197  maybe_plugins=yes
   6198 fi
   6199 
   6200 done
   6201 
   6202   for ac_header in windows.h
   6203 do :
   6204   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   6205 "
   6206 if test "x$ac_cv_header_windows_h" = xyes; then :
   6207   cat >>confdefs.h <<_ACEOF
   6208 #define HAVE_WINDOWS_H 1
   6209 _ACEOF
   6210  maybe_plugins=yes
   6211 fi
   6212 
   6213 done
   6214 
   6215 
   6216   # Check whether --enable-plugins was given.
   6217 if test "${enable_plugins+set}" = set; then :
   6218   enableval=$enable_plugins; case "${enableval}" in
   6219       no) plugins=no ;;
   6220       *) plugins=yes
   6221          if test "$maybe_plugins" != "yes" ; then
   6222 	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   6223 	 fi ;;
   6224      esac
   6225 else
   6226   plugins=$maybe_plugins
   6227 
   6228 fi
   6229 
   6230   if test "$plugins" = "yes"; then
   6231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   6232 $as_echo_n "checking for library containing dlsym... " >&6; }
   6233 if ${ac_cv_search_dlsym+:} false; then :
   6234   $as_echo_n "(cached) " >&6
   6235 else
   6236   ac_func_search_save_LIBS=$LIBS
   6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6238 /* end confdefs.h.  */
   6239 
   6240 /* Override any GCC internal prototype to avoid an error.
   6241    Use char because int might match the return type of a GCC
   6242    builtin and then its argument prototype would still apply.  */
   6243 #ifdef __cplusplus
   6244 extern "C"
   6245 #endif
   6246 char dlsym ();
   6247 int
   6248 main ()
   6249 {
   6250 return dlsym ();
   6251   ;
   6252   return 0;
   6253 }
   6254 _ACEOF
   6255 for ac_lib in '' dl; do
   6256   if test -z "$ac_lib"; then
   6257     ac_res="none required"
   6258   else
   6259     ac_res=-l$ac_lib
   6260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6261   fi
   6262   if ac_fn_c_try_link "$LINENO"; then :
   6263   ac_cv_search_dlsym=$ac_res
   6264 fi
   6265 rm -f core conftest.err conftest.$ac_objext \
   6266     conftest$ac_exeext
   6267   if ${ac_cv_search_dlsym+:} false; then :
   6268   break
   6269 fi
   6270 done
   6271 if ${ac_cv_search_dlsym+:} false; then :
   6272 
   6273 else
   6274   ac_cv_search_dlsym=no
   6275 fi
   6276 rm conftest.$ac_ext
   6277 LIBS=$ac_func_search_save_LIBS
   6278 fi
   6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   6280 $as_echo "$ac_cv_search_dlsym" >&6; }
   6281 ac_res=$ac_cv_search_dlsym
   6282 if test "$ac_res" != no; then :
   6283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6284 
   6285 fi
   6286 
   6287   fi
   6288 
   6289 
   6290 case "${host}" in
   6291   sparc-*-solaris*|i?86-*-solaris*)
   6292     # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
   6293     # were mutually exclusive until Solaris 11.3.  Without procfs support,
   6294     # the bfd/ elf module cannot provide certain routines such as
   6295     # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
   6296     # explicitly requested large-file support through the
   6297     # --enable-largefile switch, disable large-file support in favor of
   6298     # procfs support.
   6299     #
   6300     # Check if <sys/procfs.h> is incompatible with large-file support.
   6301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6302 /* end confdefs.h.  */
   6303 #define _FILE_OFFSET_BITS 64
   6304 #define _STRUCTURED_PROC 1
   6305 #include <sys/procfs.h>
   6306 int
   6307 main ()
   6308 {
   6309 
   6310   ;
   6311   return 0;
   6312 }
   6313 _ACEOF
   6314 if ac_fn_c_try_compile "$LINENO"; then :
   6315   acx_cv_procfs_lfs=yes
   6316 else
   6317   acx_cv_procfs_lfs=no
   6318 fi
   6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6320     #
   6321     # Forcefully disable large-file support only if necessary, gdb is in
   6322     # tree and enabled.
   6323     if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
   6324          -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
   6325       : ${enable_largefile="no"}
   6326       if test "$plugins" = yes; then
   6327 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   6328 plugin support disabled; require large-file support which is incompatible with GDB." >&5
   6329 $as_echo "$as_me: WARNING:
   6330 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
   6331 	plugins=no
   6332       fi
   6333     fi
   6334     #
   6335     # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
   6336     # benefit of g++ 9+ which predefines it on Solaris.
   6337     if test "$enable_largefile" = no; then
   6338       LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
   6339 
   6340     fi
   6341     ;;
   6342 esac
   6343 
   6344 # Check whether --enable-largefile was given.
   6345 if test "${enable_largefile+set}" = set; then :
   6346   enableval=$enable_largefile;
   6347 fi
   6348 
   6349 if test "$enable_largefile" != no; then :
   6350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   6351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   6352 if ${ac_cv_sys_largefile_CC+:} false; then :
   6353   $as_echo_n "(cached) " >&6
   6354 else
   6355   ac_cv_sys_largefile_CC=no
   6356      if test "$GCC" != yes; then
   6357        ac_save_CC=$CC
   6358        while :; do
   6359          # IRIX 6.2 and later do not support large files by default,
   6360          # so use the C compiler's -n32 option if that helps.
   6361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6362 /* end confdefs.h.  */
   6363 #include <sys/types.h>
   6364  /* Check that off_t can represent 2**63 - 1 correctly.
   6365     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6366     since some C++ compilers masquerading as C compilers
   6367     incorrectly reject 9223372036854775807.  */
   6368 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   6369   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6370                        && LARGE_OFF_T % 2147483647 == 1)
   6371                       ? 1 : -1];
   6372 int
   6373 main ()
   6374 {
   6375 
   6376   ;
   6377   return 0;
   6378 }
   6379 _ACEOF
   6380          if ac_fn_c_try_compile "$LINENO"; then :
   6381   break
   6382 fi
   6383 rm -f core conftest.err conftest.$ac_objext
   6384          CC="$CC -n32"
   6385          if ac_fn_c_try_compile "$LINENO"; then :
   6386   ac_cv_sys_largefile_CC=' -n32'; break
   6387 fi
   6388 rm -f core conftest.err conftest.$ac_objext
   6389          break
   6390        done
   6391        CC=$ac_save_CC
   6392        rm -f conftest.$ac_ext
   6393     fi
   6394 fi
   6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   6396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   6397   if test "$ac_cv_sys_largefile_CC" != no; then
   6398     CC=$CC$ac_cv_sys_largefile_CC
   6399   fi
   6400 
   6401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   6402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   6403 if ${ac_cv_sys_file_offset_bits+:} false; then :
   6404   $as_echo_n "(cached) " >&6
   6405 else
   6406   while :; do
   6407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6408 /* end confdefs.h.  */
   6409 #include <sys/types.h>
   6410  /* Check that off_t can represent 2**63 - 1 correctly.
   6411     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6412     since some C++ compilers masquerading as C compilers
   6413     incorrectly reject 9223372036854775807.  */
   6414 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   6415   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6416                        && LARGE_OFF_T % 2147483647 == 1)
   6417                       ? 1 : -1];
   6418 int
   6419 main ()
   6420 {
   6421 
   6422   ;
   6423   return 0;
   6424 }
   6425 _ACEOF
   6426 if ac_fn_c_try_compile "$LINENO"; then :
   6427   ac_cv_sys_file_offset_bits=no; break
   6428 fi
   6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6431 /* end confdefs.h.  */
   6432 #undef _FILE_OFFSET_BITS
   6433 #define _FILE_OFFSET_BITS 64
   6434 #include <sys/types.h>
   6435  /* Check that off_t can represent 2**63 - 1 correctly.
   6436     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6437     since some C++ compilers masquerading as C compilers
   6438     incorrectly reject 9223372036854775807.  */
   6439 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   6440   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6441                        && LARGE_OFF_T % 2147483647 == 1)
   6442                       ? 1 : -1];
   6443 int
   6444 main ()
   6445 {
   6446 
   6447   ;
   6448   return 0;
   6449 }
   6450 _ACEOF
   6451 if ac_fn_c_try_compile "$LINENO"; then :
   6452   ac_cv_sys_file_offset_bits=64; break
   6453 fi
   6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6455   ac_cv_sys_file_offset_bits=unknown
   6456   break
   6457 done
   6458 fi
   6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   6460 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   6461 case $ac_cv_sys_file_offset_bits in #(
   6462   no | unknown) ;;
   6463   *)
   6464 cat >>confdefs.h <<_ACEOF
   6465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   6466 _ACEOF
   6467 ;;
   6468 esac
   6469 rm -rf conftest*
   6470   case $ac_cv_sys_file_offset_bits in #(
   6471   unknown) :
   6472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   6473 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   6474 if ${ac_cv_sys_large_files+:} false; then :
   6475   $as_echo_n "(cached) " >&6
   6476 else
   6477   while :; do
   6478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6479 /* end confdefs.h.  */
   6480 #include <sys/types.h>
   6481  /* Check that off_t can represent 2**63 - 1 correctly.
   6482     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6483     since some C++ compilers masquerading as C compilers
   6484     incorrectly reject 9223372036854775807.  */
   6485 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   6486   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6487                        && LARGE_OFF_T % 2147483647 == 1)
   6488                       ? 1 : -1];
   6489 int
   6490 main ()
   6491 {
   6492 
   6493   ;
   6494   return 0;
   6495 }
   6496 _ACEOF
   6497 if ac_fn_c_try_compile "$LINENO"; then :
   6498   ac_cv_sys_large_files=no; break
   6499 fi
   6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6502 /* end confdefs.h.  */
   6503 #undef _LARGE_FILES
   6504 #define _LARGE_FILES 1
   6505 #include <sys/types.h>
   6506  /* Check that off_t can represent 2**63 - 1 correctly.
   6507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   6508     since some C++ compilers masquerading as C compilers
   6509     incorrectly reject 9223372036854775807.  */
   6510 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   6511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   6512                        && LARGE_OFF_T % 2147483647 == 1)
   6513                       ? 1 : -1];
   6514 int
   6515 main ()
   6516 {
   6517 
   6518   ;
   6519   return 0;
   6520 }
   6521 _ACEOF
   6522 if ac_fn_c_try_compile "$LINENO"; then :
   6523   ac_cv_sys_large_files=1; break
   6524 fi
   6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6526   ac_cv_sys_large_files=unknown
   6527   break
   6528 done
   6529 fi
   6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   6531 $as_echo "$ac_cv_sys_large_files" >&6; }
   6532 case $ac_cv_sys_large_files in #(
   6533   no | unknown) ;;
   6534   *)
   6535 cat >>confdefs.h <<_ACEOF
   6536 #define _LARGE_FILES $ac_cv_sys_large_files
   6537 _ACEOF
   6538 ;;
   6539 esac
   6540 rm -rf conftest* ;; #(
   6541   64) :
   6542 
   6543  # Check whether --enable-year2038 was given.
   6544 if test "${enable_year2038+set}" = set; then :
   6545   enableval=$enable_year2038;
   6546 fi
   6547 
   6548  if test "$enable_year2038" != no; then :
   6549 
   6550                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
   6551 $as_echo_n "checking for time_t past the year 2038... " >&6; }
   6552 if ${gl_cv_type_time_t_y2038+:} false; then :
   6553   $as_echo_n "(cached) " >&6
   6554 else
   6555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6556 /* end confdefs.h.  */
   6557 
   6558   #include <time.h>
   6559   /* Check that time_t can represent 2**32 - 1 correctly.  */
   6560   #define LARGE_TIME_T \\
   6561     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
   6562   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
   6563                            && LARGE_TIME_T % 65537 == 0)
   6564                           ? 1 : -1];
   6565 
   6566 _ACEOF
   6567 if ac_fn_c_try_compile "$LINENO"; then :
   6568   gl_cv_type_time_t_y2038=yes
   6569 else
   6570   gl_cv_type_time_t_y2038=no
   6571 fi
   6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6573 
   6574 fi
   6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
   6576 $as_echo "$gl_cv_type_time_t_y2038" >&6; }
   6577   if test "$gl_cv_type_time_t_y2038" = no; then
   6578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
   6579 $as_echo_n "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
   6580 if ${gl_cv_type_time_t_bits_macro+:} false; then :
   6581   $as_echo_n "(cached) " >&6
   6582 else
   6583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6584 /* end confdefs.h.  */
   6585 #define _TIME_BITS 64
   6586                            #define _FILE_OFFSET_BITS 64
   6587 
   6588   #include <time.h>
   6589   /* Check that time_t can represent 2**32 - 1 correctly.  */
   6590   #define LARGE_TIME_T \\
   6591     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
   6592   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
   6593                            && LARGE_TIME_T % 65537 == 0)
   6594                           ? 1 : -1];
   6595 
   6596 _ACEOF
   6597 if ac_fn_c_try_compile "$LINENO"; then :
   6598   gl_cv_type_time_t_bits_macro=yes
   6599 else
   6600   gl_cv_type_time_t_bits_macro=no
   6601 fi
   6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6603 
   6604 fi
   6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
   6606 $as_echo "$gl_cv_type_time_t_bits_macro" >&6; }
   6607     if test "$gl_cv_type_time_t_bits_macro" = yes; then
   6608 
   6609 $as_echo "#define _TIME_BITS 64" >>confdefs.h
   6610 
   6611 
   6612 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
   6613 
   6614       gl_cv_type_time_t_y2038=yes
   6615     fi
   6616   fi
   6617   if test $gl_cv_type_time_t_y2038 = no; then
   6618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6619 /* end confdefs.h.  */
   6620 #ifdef _USE_32BIT_TIME_T
   6621              int ok;
   6622            #else
   6623              error fail
   6624            #endif
   6625 
   6626 _ACEOF
   6627 if ac_fn_c_try_compile "$LINENO"; then :
   6628   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6630 as_fn_error $? "The 'time_t' type stops working after January 2038.
   6631           Remove _USE_32BIT_TIME_T from the compiler flags.
   6632 See \`config.log' for more details" "$LINENO" 5; }
   6633 else
   6634   # If not cross-compiling and  says we should check,
   6635        # and 'touch' works with a large timestamp, then evidently wider time_t
   6636        # is desired and supported, so fail and ask the builder to fix the
   6637        # problem.  Otherwise, just warn the builder.
   6638 
   6639        if test "$gl_warned_about_y2038" != yes; then
   6640          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
   6641             and this package needs a wider 'time_t' type
   6642             if there is any way to access timestamps after that.
   6643             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
   6644 $as_echo "$as_me: WARNING: The 'time_t' type stops working after January 2038,
   6645             and this package needs a wider 'time_t' type
   6646             if there is any way to access timestamps after that.
   6647             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
   6648          gl_warned_about_y2038=yes
   6649        fi
   6650 
   6651 fi
   6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6653   fi
   6654 fi
   6655  ;; #(
   6656   *) :
   6657      ;;
   6658 esac
   6659 fi
   6660 
   6661 
   6662 
   6663 
   6664 
   6665 
   6666   case "$host_os" in
   6667     openbsd*)
   6668 
   6669 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
   6670 
   6671       ;;
   6672   esac
   6673 
   6674 
   6675 
   6676 
   6677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
   6678 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
   6679 if ${gl_cv_c_amsterdam_compiler+:} false; then :
   6680   $as_echo_n "(cached) " >&6
   6681 else
   6682 
   6683       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6684 /* end confdefs.h.  */
   6685 
   6686 #ifdef __ACK__
   6687 Amsterdam
   6688 #endif
   6689 
   6690 _ACEOF
   6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6692   $EGREP "Amsterdam" >/dev/null 2>&1; then :
   6693   gl_cv_c_amsterdam_compiler=yes
   6694 else
   6695   gl_cv_c_amsterdam_compiler=no
   6696 fi
   6697 rm -f conftest*
   6698 
   6699 
   6700 fi
   6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
   6702 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
   6703 
   6704       if test $gl_cv_c_amsterdam_compiler = yes; then
   6705     if test -z "$AR"; then
   6706       AR='cc -c.a'
   6707     fi
   6708     if test -z "$ARFLAGS"; then
   6709       ARFLAGS='-o'
   6710     fi
   6711   else
   6712                                                 :
   6713   fi
   6714 
   6715         if test -n "$ac_tool_prefix"; then
   6716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6717 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6719 $as_echo_n "checking for $ac_word... " >&6; }
   6720 if ${ac_cv_prog_AR+:} false; then :
   6721   $as_echo_n "(cached) " >&6
   6722 else
   6723   if test -n "$AR"; then
   6724   ac_cv_prog_AR="$AR" # Let the user override the test.
   6725 else
   6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6727 for as_dir in $PATH
   6728 do
   6729   IFS=$as_save_IFS
   6730   test -z "$as_dir" && as_dir=.
   6731     for ac_exec_ext in '' $ac_executable_extensions; do
   6732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6733     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6735     break 2
   6736   fi
   6737 done
   6738   done
   6739 IFS=$as_save_IFS
   6740 
   6741 fi
   6742 fi
   6743 AR=$ac_cv_prog_AR
   6744 if test -n "$AR"; then
   6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6746 $as_echo "$AR" >&6; }
   6747 else
   6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6749 $as_echo "no" >&6; }
   6750 fi
   6751 
   6752 
   6753 fi
   6754 if test -z "$ac_cv_prog_AR"; then
   6755   ac_ct_AR=$AR
   6756   # Extract the first word of "ar", so it can be a program name with args.
   6757 set dummy ar; ac_word=$2
   6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6759 $as_echo_n "checking for $ac_word... " >&6; }
   6760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   6761   $as_echo_n "(cached) " >&6
   6762 else
   6763   if test -n "$ac_ct_AR"; then
   6764   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6765 else
   6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6767 for as_dir in $PATH
   6768 do
   6769   IFS=$as_save_IFS
   6770   test -z "$as_dir" && as_dir=.
   6771     for ac_exec_ext in '' $ac_executable_extensions; do
   6772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6773     ac_cv_prog_ac_ct_AR="ar"
   6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6775     break 2
   6776   fi
   6777 done
   6778   done
   6779 IFS=$as_save_IFS
   6780 
   6781 fi
   6782 fi
   6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6784 if test -n "$ac_ct_AR"; then
   6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6786 $as_echo "$ac_ct_AR" >&6; }
   6787 else
   6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6789 $as_echo "no" >&6; }
   6790 fi
   6791 
   6792   if test "x$ac_ct_AR" = x; then
   6793     AR="ar"
   6794   else
   6795     case $cross_compiling:$ac_tool_warned in
   6796 yes:)
   6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6799 ac_tool_warned=yes ;;
   6800 esac
   6801     AR=$ac_ct_AR
   6802   fi
   6803 else
   6804   AR="$ac_cv_prog_AR"
   6805 fi
   6806 
   6807   if test -z "$ARFLAGS"; then
   6808     ARFLAGS='cr'
   6809   fi
   6810 
   6811 
   6812 
   6813   if test -z "$RANLIB"; then
   6814     if test $gl_cv_c_amsterdam_compiler = yes; then
   6815       RANLIB=':'
   6816     else
   6817             if test -n "$ac_tool_prefix"; then
   6818   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6819 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6821 $as_echo_n "checking for $ac_word... " >&6; }
   6822 if ${ac_cv_prog_RANLIB+:} false; then :
   6823   $as_echo_n "(cached) " >&6
   6824 else
   6825   if test -n "$RANLIB"; then
   6826   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6827 else
   6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6829 for as_dir in $PATH
   6830 do
   6831   IFS=$as_save_IFS
   6832   test -z "$as_dir" && as_dir=.
   6833     for ac_exec_ext in '' $ac_executable_extensions; do
   6834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6835     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6837     break 2
   6838   fi
   6839 done
   6840   done
   6841 IFS=$as_save_IFS
   6842 
   6843 fi
   6844 fi
   6845 RANLIB=$ac_cv_prog_RANLIB
   6846 if test -n "$RANLIB"; then
   6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6848 $as_echo "$RANLIB" >&6; }
   6849 else
   6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6851 $as_echo "no" >&6; }
   6852 fi
   6853 
   6854 
   6855 fi
   6856 if test -z "$ac_cv_prog_RANLIB"; then
   6857   ac_ct_RANLIB=$RANLIB
   6858   # Extract the first word of "ranlib", so it can be a program name with args.
   6859 set dummy ranlib; ac_word=$2
   6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6861 $as_echo_n "checking for $ac_word... " >&6; }
   6862 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   6863   $as_echo_n "(cached) " >&6
   6864 else
   6865   if test -n "$ac_ct_RANLIB"; then
   6866   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6867 else
   6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6869 for as_dir in $PATH
   6870 do
   6871   IFS=$as_save_IFS
   6872   test -z "$as_dir" && as_dir=.
   6873     for ac_exec_ext in '' $ac_executable_extensions; do
   6874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6875     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6877     break 2
   6878   fi
   6879 done
   6880   done
   6881 IFS=$as_save_IFS
   6882 
   6883 fi
   6884 fi
   6885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6886 if test -n "$ac_ct_RANLIB"; then
   6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6888 $as_echo "$ac_ct_RANLIB" >&6; }
   6889 else
   6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6891 $as_echo "no" >&6; }
   6892 fi
   6893 
   6894   if test "x$ac_ct_RANLIB" = x; then
   6895     RANLIB=":"
   6896   else
   6897     case $cross_compiling:$ac_tool_warned in
   6898 yes:)
   6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6901 ac_tool_warned=yes ;;
   6902 esac
   6903     RANLIB=$ac_ct_RANLIB
   6904   fi
   6905 else
   6906   RANLIB="$ac_cv_prog_RANLIB"
   6907 fi
   6908 
   6909     fi
   6910   fi
   6911 
   6912 
   6913 
   6914 
   6915 
   6916   # IEEE behaviour is the default on all CPUs except Alpha and SH
   6917   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
   6918   # and the GCC 4.1.2 manual).
   6919   case "$host_cpu" in
   6920     alpha*)
   6921       # On Alpha systems, a compiler option provides the behaviour.
   6922       # See the ieee(3) manual page, also available at
   6923       # <https://backdrift.org/man/tru64/man3/ieee.3.html>
   6924       if test -n "$GCC"; then
   6925         # GCC has the option -mieee.
   6926         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
   6927         CPPFLAGS="$CPPFLAGS -mieee"
   6928       else
   6929         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
   6930         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
   6931         CPPFLAGS="$CPPFLAGS -ieee"
   6932       fi
   6933       ;;
   6934     sh*)
   6935       if test -n "$GCC"; then
   6936         # GCC has the option -mieee.
   6937         CPPFLAGS="$CPPFLAGS -mieee"
   6938       fi
   6939       ;;
   6940   esac
   6941 
   6942 
   6943 
   6944   case "$host_os" in
   6945     mingw*)
   6946 
   6947 $as_echo "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
   6948 
   6949       ;;
   6950   esac
   6951 
   6952 
   6953 
   6954 
   6955 
   6956 
   6957 
   6958   # Check whether --enable-threads was given.
   6959 if test "${enable_threads+set}" = set; then :
   6960   enableval=$enable_threads; gl_use_threads=$enableval
   6961 else
   6962   if test -n "$gl_use_threads_default"; then
   6963        gl_use_threads="$gl_use_threads_default"
   6964      else
   6965        case "$host_os" in
   6966                                     osf*) gl_use_threads=no ;;
   6967                                     cygwin*)
   6968                case `uname -r` in
   6969                  1.[0-5].*) gl_use_threads=no ;;
   6970                  *)         gl_use_threads=yes ;;
   6971                esac
   6972                ;;
   6973                   mingw*)
   6974                case "$gl_use_winpthreads_default" in
   6975                  yes) gl_use_threads=posix ;;
   6976                  no)  gl_use_threads=windows ;;
   6977                  *)   gl_use_threads=yes ;;
   6978                esac
   6979                ;;
   6980          *)    gl_use_threads=yes ;;
   6981        esac
   6982      fi
   6983 
   6984 fi
   6985 
   6986   if test "$gl_use_threads" = yes \
   6987      || test "$gl_use_threads" = isoc \
   6988      || test "$gl_use_threads" = posix \
   6989      || test "$gl_use_threads" = isoc+posix; then
   6990     # For using <threads.h> or <pthread.h>:
   6991 
   6992 
   6993   if test -z "$gl_anythreadlib_early_done"; then
   6994     case "$host_os" in
   6995       osf*)
   6996         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
   6997         # groks <pthread.h>. cc also understands the flag -pthread, but
   6998         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
   6999         # 2. putting a flag into CPPFLAGS that has an effect on the linker
   7000         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
   7001         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
   7002         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
   7003         ;;
   7004     esac
   7005     # Some systems optimize for single-threaded programs by default, and
   7006     # need special flags to disable these optimizations. For example, the
   7007     # definition of 'errno' in <errno.h>.
   7008     case "$host_os" in
   7009       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
   7010       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
   7011     esac
   7012     gl_anythreadlib_early_done=done
   7013   fi
   7014 
   7015   fi
   7016 
   7017 
   7018 
   7019   # Pre-early section.
   7020 
   7021 
   7022 
   7023   # Code from module absolute-header:
   7024   # Code from module accept:
   7025   # Code from module alloca:
   7026   # Code from module alloca-opt:
   7027   # Code from module arpa_inet:
   7028   # Code from module assure:
   7029   # Code from module at-internal:
   7030   # Code from module attribute:
   7031   # Code from module basename-lgpl:
   7032   # Code from module bind:
   7033   # Code from module btowc:
   7034   # Code from module builtin-expect:
   7035   # Code from module c99:
   7036   # Code from module canonicalize-lgpl:
   7037   # Code from module chdir:
   7038   # Code from module chdir-long:
   7039   # Code from module chown:
   7040   # Code from module clock-time:
   7041   # Code from module cloexec:
   7042   # Code from module close:
   7043   # Code from module closedir:
   7044   # Code from module connect:
   7045   # Code from module count-one-bits:
   7046   # Code from module ctype:
   7047   # Code from module d-ino:
   7048   # Code from module d-type:
   7049   # Code from module dirent:
   7050   # Code from module dirfd:
   7051   # Code from module dirname-lgpl:
   7052   # Code from module double-slash-root:
   7053   # Code from module dup:
   7054   # Code from module dup2:
   7055   # Code from module eloop-threshold:
   7056   # Code from module environ:
   7057   # Code from module errno:
   7058   # Code from module error:
   7059   # Code from module exitfail:
   7060   # Code from module extensions:
   7061   # Code from module extern-inline:
   7062   # Code from module fchdir:
   7063   # Code from module fcntl:
   7064   # Code from module fcntl-h:
   7065   # Code from module fd-hook:
   7066   # Code from module fd-safer-flag:
   7067   # Code from module fdopendir:
   7068   # Code from module ffs:
   7069   # Code from module filename:
   7070   # Code from module filenamecat-lgpl:
   7071   # Code from module flexmember:
   7072   # Code from module float:
   7073   # Code from module fnmatch:
   7074   # Code from module fnmatch-gnu:
   7075   # Code from module fnmatch-h:
   7076   # Code from module fpieee:
   7077 
   7078   # Code from module fpucw:
   7079   # Code from module free-posix:
   7080   # Code from module frexp:
   7081   # Code from module frexpl:
   7082   # Code from module fstat:
   7083   # Code from module fstatat:
   7084   # Code from module gen-header:
   7085   # Code from module gendocs:
   7086   # Code from module getcwd:
   7087   # Code from module getcwd-lgpl:
   7088   # Code from module getdelim:
   7089   # Code from module getdtablesize:
   7090   # Code from module getline:
   7091   # Code from module getlogin_r:
   7092   # Code from module getprogname:
   7093   # Code from module getrandom:
   7094   # Code from module gettext-h:
   7095   # Code from module gettimeofday:
   7096   # Code from module gitlog-to-changelog:
   7097   # Code from module glob:
   7098   # Code from module glob-h:
   7099   # Code from module hard-locale:
   7100   # Code from module idx:
   7101   # Code from module include_next:
   7102   # Code from module inet_ntop:
   7103   # Code from module intprops:
   7104   # Code from module inttypes:
   7105   # Code from module inttypes-incomplete:
   7106   # Code from module isblank:
   7107   # Code from module isnand-nolibm:
   7108   # Code from module isnanl-nolibm:
   7109   # Code from module largefile:
   7110 
   7111 
   7112   # Code from module libc-config:
   7113   # Code from module limits-h:
   7114   # Code from module listen:
   7115   # Code from module localcharset:
   7116   # Code from module locale:
   7117   # Code from module lock:
   7118   # Code from module lstat:
   7119   # Code from module malloc-posix:
   7120   # Code from module malloca:
   7121   # Code from module math:
   7122   # Code from module mbrtowc:
   7123   # Code from module mbsinit:
   7124   # Code from module mbsrtowcs:
   7125   # Code from module mbtowc:
   7126   # Code from module memchr:
   7127   # Code from module memmem:
   7128   # Code from module memmem-simple:
   7129   # Code from module mempcpy:
   7130   # Code from module memrchr:
   7131   # Code from module minmax:
   7132   # Code from module mkdir:
   7133   # Code from module mkdtemp:
   7134   # Code from module mkostemp:
   7135   # Code from module msvc-inval:
   7136   # Code from module msvc-nothrow:
   7137   # Code from module multiarch:
   7138   # Code from module netdb:
   7139   # Code from module netinet_in:
   7140   # Code from module nocrash:
   7141   # Code from module open:
   7142   # Code from module openat:
   7143   # Code from module openat-die:
   7144   # Code from module openat-h:
   7145   # Code from module opendir:
   7146   # Code from module pathmax:
   7147   # Code from module pipe-posix:
   7148   # Code from module rawmemchr:
   7149   # Code from module readdir:
   7150   # Code from module readlink:
   7151   # Code from module realloc-posix:
   7152   # Code from module rename:
   7153   # Code from module rewinddir:
   7154   # Code from module rmdir:
   7155   # Code from module same-inode:
   7156   # Code from module save-cwd:
   7157   # Code from module scratch_buffer:
   7158   # Code from module select:
   7159   # Code from module setenv:
   7160   # Code from module setlocale-null:
   7161   # Code from module setsockopt:
   7162   # Code from module signal-h:
   7163   # Code from module snippet/_Noreturn:
   7164   # Code from module snippet/arg-nonnull:
   7165   # Code from module snippet/c++defs:
   7166   # Code from module snippet/warn-on-use:
   7167   # Code from module socket:
   7168   # Code from module socketlib:
   7169   # Code from module sockets:
   7170   # Code from module socklen:
   7171   # Code from module ssize_t:
   7172   # Code from module stat:
   7173   # Code from module stat-time:
   7174   # Code from module std-gnu11:
   7175   # Code from module stdalign:
   7176   # Code from module stdbool:
   7177   # Code from module stddef:
   7178   # Code from module stdint:
   7179   # Code from module stdio:
   7180   # Code from module stdlib:
   7181   # Code from module strchrnul:
   7182   # Code from module strdup-posix:
   7183   # Code from module streq:
   7184   # Code from module strerror:
   7185   # Code from module strerror-override:
   7186   # Code from module strerror_r-posix:
   7187   # Code from module string:
   7188   # Code from module strings:
   7189   # Code from module strnlen:
   7190   # Code from module strnlen1:
   7191   # Code from module strstr:
   7192   # Code from module strstr-simple:
   7193   # Code from module strtok_r:
   7194   # Code from module sys_random:
   7195   # Code from module sys_select:
   7196   # Code from module sys_socket:
   7197   # Code from module sys_stat:
   7198   # Code from module sys_time:
   7199   # Code from module sys_types:
   7200   # Code from module sys_uio:
   7201   # Code from module sys_wait:
   7202   # Code from module tempname:
   7203   # Code from module threadlib:
   7204 
   7205 
   7206 
   7207   # Code from module time:
   7208   # Code from module time_r:
   7209   # Code from module unistd:
   7210   # Code from module unistd-safer:
   7211   # Code from module unsetenv:
   7212   # Code from module update-copyright:
   7213   # Code from module vararrays:
   7214   # Code from module verify:
   7215   # Code from module wchar:
   7216   # Code from module wctype-h:
   7217   # Code from module windows-mutex:
   7218   # Code from module windows-once:
   7219   # Code from module windows-recmutex:
   7220   # Code from module windows-rwlock:
   7221   # Code from module wmemchr:
   7222   # Code from module wmempcpy:
   7223   # Code from module xalloc-oversized:
   7224 
   7225 
   7226 ac_aux_dir=
   7227 for ac_dir in .. "$srcdir"/..; do
   7228   if test -f "$ac_dir/install-sh"; then
   7229     ac_aux_dir=$ac_dir
   7230     ac_install_sh="$ac_aux_dir/install-sh -c"
   7231     break
   7232   elif test -f "$ac_dir/install.sh"; then
   7233     ac_aux_dir=$ac_dir
   7234     ac_install_sh="$ac_aux_dir/install.sh -c"
   7235     break
   7236   elif test -f "$ac_dir/shtool"; then
   7237     ac_aux_dir=$ac_dir
   7238     ac_install_sh="$ac_aux_dir/shtool install -c"
   7239     break
   7240   fi
   7241 done
   7242 if test -z "$ac_aux_dir"; then
   7243   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   7244 fi
   7245 
   7246 # These three variables are undocumented and unsupported,
   7247 # and are intended to be withdrawn in a future Autoconf release.
   7248 # They can cause serious problems if a builder's source tree is in a directory
   7249 # whose full name contains unusual characters.
   7250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   7251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   7252 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   7253 
   7254 
   7255 
   7256 
   7257 
   7258 
   7259 
   7260 
   7261 
   7262 
   7263 
   7264 
   7265 
   7266                         # Check whether --enable-cross-guesses was given.
   7267 if test "${enable_cross_guesses+set}" = set; then :
   7268   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
   7269        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
   7270 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
   7271        enableval=conservative
   7272      fi
   7273      gl_cross_guesses="$enableval"
   7274 else
   7275   gl_cross_guesses=conservative
   7276 fi
   7277 
   7278   if test $gl_cross_guesses = risky; then
   7279     gl_cross_guess_normal="guessing yes"
   7280     gl_cross_guess_inverted="guessing no"
   7281   else
   7282     gl_cross_guess_normal="guessing no"
   7283     gl_cross_guess_inverted="guessing yes"
   7284   fi
   7285           LIBC_FATAL_STDERR_=1
   7286   export LIBC_FATAL_STDERR_
   7287 
   7288 
   7289 
   7290   HAVE_STRUCT_SOCKADDR_STORAGE=1;
   7291   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
   7292 
   7293   HAVE_SA_FAMILY_T=1;
   7294   HAVE_ACCEPT4=1;
   7295 
   7296 
   7297 
   7298 
   7299    if test $ac_cv_header_sys_socket_h = no; then
   7300                          for ac_header in ws2tcpip.h
   7301 do :
   7302   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
   7303 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
   7304   cat >>confdefs.h <<_ACEOF
   7305 #define HAVE_WS2TCPIP_H 1
   7306 _ACEOF
   7307 
   7308 fi
   7309 
   7310 done
   7311 
   7312    fi
   7313 
   7314 
   7315 
   7316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
   7317 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
   7318 if ${gl_cv_have_include_next+:} false; then :
   7319   $as_echo_n "(cached) " >&6
   7320 else
   7321   rm -rf conftestd1a conftestd1b conftestd2
   7322      mkdir conftestd1a conftestd1b conftestd2
   7323                                                   cat <<EOF > conftestd1a/conftest.h
   7324 #define DEFINED_IN_CONFTESTD1
   7325 #include_next <conftest.h>
   7326 #ifdef DEFINED_IN_CONFTESTD2
   7327 int foo;
   7328 #else
   7329 #error "include_next doesn't work"
   7330 #endif
   7331 EOF
   7332      cat <<EOF > conftestd1b/conftest.h
   7333 #define DEFINED_IN_CONFTESTD1
   7334 #include <stdio.h>
   7335 #include_next <conftest.h>
   7336 #ifdef DEFINED_IN_CONFTESTD2
   7337 int foo;
   7338 #else
   7339 #error "include_next doesn't work"
   7340 #endif
   7341 EOF
   7342      cat <<EOF > conftestd2/conftest.h
   7343 #ifndef DEFINED_IN_CONFTESTD1
   7344 #error "include_next test doesn't work"
   7345 #endif
   7346 #define DEFINED_IN_CONFTESTD2
   7347 EOF
   7348      gl_save_CPPFLAGS="$CPPFLAGS"
   7349      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
   7350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7351 /* end confdefs.h.  */
   7352 #include <conftest.h>
   7353 _ACEOF
   7354 if ac_fn_c_try_compile "$LINENO"; then :
   7355   gl_cv_have_include_next=yes
   7356 else
   7357   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
   7358         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7359 /* end confdefs.h.  */
   7360 #include <conftest.h>
   7361 _ACEOF
   7362 if ac_fn_c_try_compile "$LINENO"; then :
   7363   gl_cv_have_include_next=buggy
   7364 else
   7365   gl_cv_have_include_next=no
   7366 fi
   7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7368 
   7369 fi
   7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7371      CPPFLAGS="$gl_save_CPPFLAGS"
   7372      rm -rf conftestd1a conftestd1b conftestd2
   7373 
   7374 fi
   7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
   7376 $as_echo "$gl_cv_have_include_next" >&6; }
   7377   PRAGMA_SYSTEM_HEADER=
   7378   if test $gl_cv_have_include_next = yes; then
   7379     INCLUDE_NEXT=include_next
   7380     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   7381     if test -n "$GCC"; then
   7382       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
   7383     fi
   7384   else
   7385     if test $gl_cv_have_include_next = buggy; then
   7386       INCLUDE_NEXT=include
   7387       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
   7388     else
   7389       INCLUDE_NEXT=include
   7390       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
   7391     fi
   7392   fi
   7393 
   7394 
   7395 
   7396 
   7397       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
   7398 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
   7399 if ${gl_cv_source_line_length_unlimited+:} false; then :
   7400   $as_echo_n "(cached) " >&6
   7401 else
   7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7403 /* end confdefs.h.  */
   7404 
   7405 #ifdef __TANDEM
   7406 choke me
   7407 #endif
   7408 
   7409 _ACEOF
   7410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7411   $EGREP "choke me" >/dev/null 2>&1; then :
   7412   gl_cv_source_line_length_unlimited=no
   7413 else
   7414   gl_cv_source_line_length_unlimited=yes
   7415 fi
   7416 rm -f conftest*
   7417 
   7418 
   7419 fi
   7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
   7421 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
   7422   if test $gl_cv_source_line_length_unlimited = no; then
   7423     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
   7424   else
   7425     PRAGMA_COLUMNS=
   7426   fi
   7427 
   7428 
   7429 
   7430     HAVE_CHOWN=1;
   7431   HAVE_COPY_FILE_RANGE=1;
   7432   HAVE_DUP3=1;
   7433   HAVE_EUIDACCESS=1;
   7434   HAVE_EXECVPE=1;
   7435   HAVE_FACCESSAT=1;
   7436   HAVE_FCHDIR=1;
   7437   HAVE_FCHOWNAT=1;
   7438   HAVE_FDATASYNC=1;
   7439   HAVE_FSYNC=1;
   7440   HAVE_FTRUNCATE=1;
   7441   HAVE_GETDTABLESIZE=1;
   7442   HAVE_GETENTROPY=1;
   7443   HAVE_GETGROUPS=1;
   7444   HAVE_GETHOSTNAME=1;
   7445   HAVE_GETLOGIN=1;
   7446   HAVE_GETPAGESIZE=1;
   7447   HAVE_GETPASS=1;
   7448   HAVE_GROUP_MEMBER=1;
   7449   HAVE_LCHOWN=1;
   7450   HAVE_LINK=1;
   7451   HAVE_LINKAT=1;
   7452   HAVE_PIPE=1;
   7453   HAVE_PIPE2=1;
   7454   HAVE_PREAD=1;
   7455   HAVE_PWRITE=1;
   7456   HAVE_READLINK=1;
   7457   HAVE_READLINKAT=1;
   7458   HAVE_SETHOSTNAME=1;
   7459   HAVE_SLEEP=1;
   7460   HAVE_SYMLINK=1;
   7461   HAVE_SYMLINKAT=1;
   7462   HAVE_UNLINKAT=1;
   7463   HAVE_USLEEP=1;
   7464   HAVE_DECL_ENVIRON=1;
   7465   HAVE_DECL_EXECVPE=1;
   7466   HAVE_DECL_FCHDIR=1;
   7467   HAVE_DECL_FDATASYNC=1;
   7468   HAVE_DECL_GETDOMAINNAME=1;
   7469   HAVE_DECL_GETLOGIN=1;
   7470   HAVE_DECL_GETLOGIN_R=1;
   7471   HAVE_DECL_GETPAGESIZE=1;
   7472   HAVE_DECL_GETUSERSHELL=1;
   7473   HAVE_DECL_SETHOSTNAME=1;
   7474   HAVE_DECL_TRUNCATE=1;
   7475   HAVE_DECL_TTYNAME_R=1;
   7476   HAVE_OS_H=0;
   7477   HAVE_SYS_PARAM_H=0;
   7478   REPLACE_ACCESS=0;
   7479   REPLACE_CHOWN=0;
   7480   REPLACE_CLOSE=0;
   7481   REPLACE_COPY_FILE_RANGE=0;
   7482   REPLACE_DUP=0;
   7483   REPLACE_DUP2=0;
   7484   REPLACE_EXECL=0;
   7485   REPLACE_EXECLE=0;
   7486   REPLACE_EXECLP=0;
   7487   REPLACE_EXECV=0;
   7488   REPLACE_EXECVE=0;
   7489   REPLACE_EXECVP=0;
   7490   REPLACE_EXECVPE=0;
   7491   REPLACE_FACCESSAT=0;
   7492   REPLACE_FCHOWNAT=0;
   7493   REPLACE_FTRUNCATE=0;
   7494   REPLACE_GETCWD=0;
   7495   REPLACE_GETDOMAINNAME=0;
   7496   REPLACE_GETDTABLESIZE=0;
   7497   REPLACE_GETLOGIN_R=0;
   7498   REPLACE_GETGROUPS=0;
   7499   REPLACE_GETPAGESIZE=0;
   7500   REPLACE_GETPASS=0;
   7501   REPLACE_GETPASS_FOR_GETPASS_GNU=0;
   7502   REPLACE_ISATTY=0;
   7503   REPLACE_LCHOWN=0;
   7504   REPLACE_LINK=0;
   7505   REPLACE_LINKAT=0;
   7506   REPLACE_LSEEK=0;
   7507   REPLACE_PREAD=0;
   7508   REPLACE_PWRITE=0;
   7509   REPLACE_READ=0;
   7510   REPLACE_READLINK=0;
   7511   REPLACE_READLINKAT=0;
   7512   REPLACE_RMDIR=0;
   7513   REPLACE_SLEEP=0;
   7514   REPLACE_SYMLINK=0;
   7515   REPLACE_SYMLINKAT=0;
   7516   REPLACE_TRUNCATE=0;
   7517   REPLACE_TTYNAME_R=0;
   7518   REPLACE_UNLINK=0;
   7519   REPLACE_UNLINKAT=0;
   7520   REPLACE_USLEEP=0;
   7521   REPLACE_WRITE=0;
   7522   UNISTD_H_HAVE_SYS_RANDOM_H=0;
   7523   UNISTD_H_HAVE_WINSOCK2_H=0;
   7524   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
   7525 
   7526 
   7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
   7528 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
   7529 if ${ac_cv_c_restrict+:} false; then :
   7530   $as_echo_n "(cached) " >&6
   7531 else
   7532   ac_cv_c_restrict=no
   7533    # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
   7534    # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
   7535    # Put 'restrict' last, because C++ lacks it.
   7536    for ac_kw in __restrict__ __restrict _Restrict restrict; do
   7537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7538 /* end confdefs.h.  */
   7539 typedef int *int_ptr;
   7540            int foo (int_ptr $ac_kw ip) { return ip[0]; }
   7541            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
   7542            int bar (int ip[$ac_kw]) { return ip[0]; }
   7543 
   7544 int
   7545 main ()
   7546 {
   7547 int s[1];
   7548            int *$ac_kw t = s;
   7549            t[0] = 0;
   7550            return foo (t) + bar (t);
   7551 
   7552   ;
   7553   return 0;
   7554 }
   7555 _ACEOF
   7556 if ac_fn_c_try_compile "$LINENO"; then :
   7557   ac_cv_c_restrict=$ac_kw
   7558 fi
   7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7560      test "$ac_cv_c_restrict" != no && break
   7561    done
   7562 
   7563 fi
   7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
   7565 $as_echo "$ac_cv_c_restrict" >&6; }
   7566 
   7567  case $ac_cv_c_restrict in
   7568    restrict) ;;
   7569    no) $as_echo "#define restrict /**/" >>confdefs.h
   7570  ;;
   7571    *)  cat >>confdefs.h <<_ACEOF
   7572 #define restrict $ac_cv_c_restrict
   7573 _ACEOF
   7574  ;;
   7575  esac
   7576 
   7577 
   7578 
   7579 
   7580 
   7581         case "$host_os" in
   7582     osf*)
   7583 
   7584 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
   7585 
   7586       ;;
   7587   esac
   7588 
   7589   GL_GENERATE_SYS_SOCKET_H=false
   7590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
   7591 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
   7592 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
   7593   $as_echo_n "(cached) " >&6
   7594 else
   7595 
   7596       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7597 /* end confdefs.h.  */
   7598 #include <sys/socket.h>
   7599 int
   7600 main ()
   7601 {
   7602 
   7603   ;
   7604   return 0;
   7605 }
   7606 _ACEOF
   7607 if ac_fn_c_try_compile "$LINENO"; then :
   7608   gl_cv_header_sys_socket_h_selfcontained=yes
   7609 else
   7610   gl_cv_header_sys_socket_h_selfcontained=no
   7611 fi
   7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7613 
   7614 fi
   7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
   7616 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
   7617   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
   7618             for ac_func in shutdown
   7619 do :
   7620   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
   7621 if test "x$ac_cv_func_shutdown" = xyes; then :
   7622   cat >>confdefs.h <<_ACEOF
   7623 #define HAVE_SHUTDOWN 1
   7624 _ACEOF
   7625 
   7626 fi
   7627 done
   7628 
   7629     if test $ac_cv_func_shutdown = yes; then
   7630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
   7631 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
   7632 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
   7633   $as_echo_n "(cached) " >&6
   7634 else
   7635 
   7636           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7637 /* end confdefs.h.  */
   7638 #include <sys/socket.h>
   7639 int
   7640 main ()
   7641 {
   7642 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
   7643   ;
   7644   return 0;
   7645 }
   7646 _ACEOF
   7647 if ac_fn_c_try_compile "$LINENO"; then :
   7648   gl_cv_header_sys_socket_h_shut=yes
   7649 else
   7650   gl_cv_header_sys_socket_h_shut=no
   7651 fi
   7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7653 
   7654 fi
   7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
   7656 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
   7657       if test $gl_cv_header_sys_socket_h_shut = no; then
   7658         GL_GENERATE_SYS_SOCKET_H=true
   7659       fi
   7660     fi
   7661   fi
   7662   # We need to check for ws2tcpip.h now.
   7663 
   7664 
   7665 
   7666 
   7667 
   7668 
   7669 
   7670 
   7671 
   7672 
   7673 
   7674      if test $gl_cv_have_include_next = yes; then
   7675        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
   7676      else
   7677        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
   7678 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
   7679 if ${gl_cv_next_sys_socket_h+:} false; then :
   7680   $as_echo_n "(cached) " >&6
   7681 else
   7682 
   7683              if test $ac_cv_header_sys_socket_h = yes; then
   7684 
   7685 
   7686 
   7687 
   7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7689 /* end confdefs.h.  */
   7690 #include <sys/socket.h>
   7691 _ACEOF
   7692                 case "$host_os" in
   7693     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   7694     *)    gl_absname_cpp="$ac_cpp" ;;
   7695   esac
   7696 
   7697   case "$host_os" in
   7698     mingw*)
   7699                                           gl_dirsep_regex='[/\\]'
   7700       ;;
   7701     *)
   7702       gl_dirsep_regex='\/'
   7703       ;;
   7704   esac
   7705       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   7706   gl_header_literal_regex=`echo 'sys/socket.h' \
   7707                            | sed -e "$gl_make_literal_regex_sed"`
   7708   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   7709       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   7710       s|^/[^/]|//&|
   7711       p
   7712       q
   7713     }'
   7714 
   7715         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   7716   sed -n "$gl_absolute_header_sed"`
   7717 
   7718           gl_header=$gl_cv_absolute_sys_socket_h
   7719           gl_cv_next_sys_socket_h='"'$gl_header'"'
   7720           else
   7721                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
   7722              fi
   7723 
   7724 
   7725 fi
   7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
   7727 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
   7728      fi
   7729      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
   7730 
   7731      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   7732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   7733        gl_next_as_first_directive='<'sys/socket.h'>'
   7734      else
   7735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   7736        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
   7737      fi
   7738      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
   7739 
   7740 
   7741 
   7742 
   7743   if test $ac_cv_header_sys_socket_h = yes; then
   7744     HAVE_SYS_SOCKET_H=1
   7745   else
   7746     HAVE_SYS_SOCKET_H=0
   7747   fi
   7748 
   7749 
   7750 
   7751   if test $ac_cv_header_sys_socket_h = yes; then
   7752     HAVE_WS2TCPIP_H=0
   7753   else
   7754     if test $ac_cv_header_ws2tcpip_h = yes; then
   7755       HAVE_WS2TCPIP_H=1
   7756     else
   7757       HAVE_WS2TCPIP_H=0
   7758     fi
   7759   fi
   7760 
   7761 
   7762 
   7763   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
   7764   /* sys/types.h is not needed according to POSIX, but the
   7765      sys/socket.h in i386-unknown-freebsd4.10 and
   7766      powerpc-apple-darwin5.5 required it. */
   7767 #include <sys/types.h>
   7768 #ifdef HAVE_SYS_SOCKET_H
   7769 #include <sys/socket.h>
   7770 #endif
   7771 #ifdef HAVE_WS2TCPIP_H
   7772 #include <ws2tcpip.h>
   7773 #endif
   7774 
   7775 "
   7776 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
   7777 
   7778 cat >>confdefs.h <<_ACEOF
   7779 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
   7780 _ACEOF
   7781 
   7782 
   7783 fi
   7784 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
   7785   /* sys/types.h is not needed according to POSIX, but the
   7786      sys/socket.h in i386-unknown-freebsd4.10 and
   7787      powerpc-apple-darwin5.5 required it. */
   7788 #include <sys/types.h>
   7789 #ifdef HAVE_SYS_SOCKET_H
   7790 #include <sys/socket.h>
   7791 #endif
   7792 #ifdef HAVE_WS2TCPIP_H
   7793 #include <ws2tcpip.h>
   7794 #endif
   7795 
   7796 "
   7797 if test "x$ac_cv_type_sa_family_t" = xyes; then :
   7798 
   7799 cat >>confdefs.h <<_ACEOF
   7800 #define HAVE_SA_FAMILY_T 1
   7801 _ACEOF
   7802 
   7803 
   7804 fi
   7805 
   7806   if test $ac_cv_type_struct_sockaddr_storage = no; then
   7807     HAVE_STRUCT_SOCKADDR_STORAGE=0
   7808   fi
   7809   if test $ac_cv_type_sa_family_t = no; then
   7810     HAVE_SA_FAMILY_T=0
   7811   fi
   7812   if test $ac_cv_type_struct_sockaddr_storage != no; then
   7813     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
   7814        #ifdef HAVE_SYS_SOCKET_H
   7815        #include <sys/socket.h>
   7816        #endif
   7817        #ifdef HAVE_WS2TCPIP_H
   7818        #include <ws2tcpip.h>
   7819        #endif
   7820 
   7821 "
   7822 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
   7823 
   7824 cat >>confdefs.h <<_ACEOF
   7825 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
   7826 _ACEOF
   7827 
   7828 
   7829 else
   7830   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
   7831 fi
   7832 
   7833   fi
   7834   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
   7835      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
   7836     GL_GENERATE_SYS_SOCKET_H=true
   7837   fi
   7838 
   7839 
   7840 
   7841 
   7842   if test $ac_cv_header_sys_socket_h != yes; then
   7843                     for ac_header in winsock2.h
   7844 do :
   7845   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   7846 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   7847   cat >>confdefs.h <<_ACEOF
   7848 #define HAVE_WINSOCK2_H 1
   7849 _ACEOF
   7850 
   7851 fi
   7852 
   7853 done
   7854 
   7855   fi
   7856   if test "$ac_cv_header_winsock2_h" = yes; then
   7857     HAVE_WINSOCK2_H=1
   7858     UNISTD_H_HAVE_WINSOCK2_H=1
   7859     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   7860   else
   7861     HAVE_WINSOCK2_H=0
   7862   fi
   7863 
   7864 
   7865 
   7866 
   7867 
   7868 
   7869 
   7870 
   7871 
   7872 
   7873 
   7874   GL_GNULIB_SOCKET=0
   7875 
   7876 
   7877 
   7878   GL_GNULIB_CONNECT=0
   7879 
   7880 
   7881 
   7882   GL_GNULIB_ACCEPT=0
   7883 
   7884 
   7885 
   7886   GL_GNULIB_BIND=0
   7887 
   7888 
   7889 
   7890   GL_GNULIB_GETPEERNAME=0
   7891 
   7892 
   7893 
   7894   GL_GNULIB_GETSOCKNAME=0
   7895 
   7896 
   7897 
   7898   GL_GNULIB_GETSOCKOPT=0
   7899 
   7900 
   7901 
   7902   GL_GNULIB_LISTEN=0
   7903 
   7904 
   7905 
   7906   GL_GNULIB_RECV=0
   7907 
   7908 
   7909 
   7910   GL_GNULIB_SEND=0
   7911 
   7912 
   7913 
   7914   GL_GNULIB_RECVFROM=0
   7915 
   7916 
   7917 
   7918   GL_GNULIB_SENDTO=0
   7919 
   7920 
   7921 
   7922   GL_GNULIB_SETSOCKOPT=0
   7923 
   7924 
   7925 
   7926   GL_GNULIB_SHUTDOWN=0
   7927 
   7928 
   7929 
   7930   GL_GNULIB_ACCEPT4=0
   7931 
   7932 
   7933 
   7934 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   7935 if test "x$ac_cv_type_size_t" = xyes; then :
   7936 
   7937 else
   7938 
   7939 cat >>confdefs.h <<_ACEOF
   7940 #define size_t unsigned int
   7941 _ACEOF
   7942 
   7943 fi
   7944 
   7945 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   7946 # for constant arguments.  Useless!
   7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   7948 $as_echo_n "checking for working alloca.h... " >&6; }
   7949 if ${ac_cv_working_alloca_h+:} false; then :
   7950   $as_echo_n "(cached) " >&6
   7951 else
   7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7953 /* end confdefs.h.  */
   7954 #include <alloca.h>
   7955 int
   7956 main ()
   7957 {
   7958 char *p = (char *) alloca (2 * sizeof (int));
   7959 			  if (p) return 0;
   7960   ;
   7961   return 0;
   7962 }
   7963 _ACEOF
   7964 if ac_fn_c_try_link "$LINENO"; then :
   7965   ac_cv_working_alloca_h=yes
   7966 else
   7967   ac_cv_working_alloca_h=no
   7968 fi
   7969 rm -f core conftest.err conftest.$ac_objext \
   7970     conftest$ac_exeext conftest.$ac_ext
   7971 fi
   7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   7973 $as_echo "$ac_cv_working_alloca_h" >&6; }
   7974 if test $ac_cv_working_alloca_h = yes; then
   7975 
   7976 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   7977 
   7978 fi
   7979 
   7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   7981 $as_echo_n "checking for alloca... " >&6; }
   7982 if ${ac_cv_func_alloca_works+:} false; then :
   7983   $as_echo_n "(cached) " >&6
   7984 else
   7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7986 /* end confdefs.h.  */
   7987 #ifdef __GNUC__
   7988 # define alloca __builtin_alloca
   7989 #else
   7990 # ifdef _MSC_VER
   7991 #  include <malloc.h>
   7992 #  define alloca _alloca
   7993 # else
   7994 #  ifdef HAVE_ALLOCA_H
   7995 #   include <alloca.h>
   7996 #  else
   7997 #   ifdef _AIX
   7998  #pragma alloca
   7999 #   else
   8000 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   8001 void *alloca (size_t);
   8002 #    endif
   8003 #   endif
   8004 #  endif
   8005 # endif
   8006 #endif
   8007 
   8008 int
   8009 main ()
   8010 {
   8011 char *p = (char *) alloca (1);
   8012 				    if (p) return 0;
   8013   ;
   8014   return 0;
   8015 }
   8016 _ACEOF
   8017 if ac_fn_c_try_link "$LINENO"; then :
   8018   ac_cv_func_alloca_works=yes
   8019 else
   8020   ac_cv_func_alloca_works=no
   8021 fi
   8022 rm -f core conftest.err conftest.$ac_objext \
   8023     conftest$ac_exeext conftest.$ac_ext
   8024 fi
   8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   8026 $as_echo "$ac_cv_func_alloca_works" >&6; }
   8027 
   8028 if test $ac_cv_func_alloca_works = yes; then
   8029 
   8030 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   8031 
   8032 else
   8033   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   8034 # that cause trouble.  Some versions do not even contain alloca or
   8035 # contain a buggy version.  If you still want to use their alloca,
   8036 # use ar to extract alloca.o from them instead of compiling alloca.c.
   8037 
   8038 
   8039 
   8040 
   8041 
   8042 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   8043 
   8044 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   8045 
   8046 
   8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   8048 $as_echo_n "checking stack direction for C alloca... " >&6; }
   8049 if ${ac_cv_c_stack_direction+:} false; then :
   8050   $as_echo_n "(cached) " >&6
   8051 else
   8052   if test "$cross_compiling" = yes; then :
   8053   ac_cv_c_stack_direction=0
   8054 else
   8055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8056 /* end confdefs.h.  */
   8057 $ac_includes_default
   8058 int
   8059 find_stack_direction (int *addr, int depth)
   8060 {
   8061   int dir, dummy = 0;
   8062   if (! addr)
   8063     addr = &dummy;
   8064   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   8065   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   8066   return dir + dummy;
   8067 }
   8068 
   8069 int
   8070 main (int argc, char **argv)
   8071 {
   8072   return find_stack_direction (0, argc + !argv + 20) < 0;
   8073 }
   8074 _ACEOF
   8075 if ac_fn_c_try_run "$LINENO"; then :
   8076   ac_cv_c_stack_direction=1
   8077 else
   8078   ac_cv_c_stack_direction=-1
   8079 fi
   8080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8081   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8082 fi
   8083 
   8084 fi
   8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   8086 $as_echo "$ac_cv_c_stack_direction" >&6; }
   8087 cat >>confdefs.h <<_ACEOF
   8088 #define STACK_DIRECTION $ac_cv_c_stack_direction
   8089 _ACEOF
   8090 
   8091 
   8092 fi
   8093 
   8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   8095 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   8096 if test -z "$MKDIR_P"; then
   8097   if ${ac_cv_path_mkdir+:} false; then :
   8098   $as_echo_n "(cached) " >&6
   8099 else
   8100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8101 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   8102 do
   8103   IFS=$as_save_IFS
   8104   test -z "$as_dir" && as_dir=.
   8105     for ac_prog in mkdir gmkdir; do
   8106 	 for ac_exec_ext in '' $ac_executable_extensions; do
   8107 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   8108 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   8109 	     'mkdir (GNU coreutils) '* | \
   8110 	     'mkdir (coreutils) '* | \
   8111 	     'mkdir (fileutils) '4.1*)
   8112 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   8113 	       break 3;;
   8114 	   esac
   8115 	 done
   8116        done
   8117   done
   8118 IFS=$as_save_IFS
   8119 
   8120 fi
   8121 
   8122   test -d ./--version && rmdir ./--version
   8123   if test "${ac_cv_path_mkdir+set}" = set; then
   8124     MKDIR_P="$ac_cv_path_mkdir -p"
   8125   else
   8126     # As a last resort, use the slow shell script.  Don't cache a
   8127     # value for MKDIR_P within a source directory, because that will
   8128     # break other packages using the cache if that directory is
   8129     # removed, or if the value is a relative name.
   8130     MKDIR_P="$ac_install_sh -d"
   8131   fi
   8132 fi
   8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   8134 $as_echo "$MKDIR_P" >&6; }
   8135 
   8136 
   8137     HAVE_DECL_INET_NTOP=1;
   8138   HAVE_DECL_INET_PTON=1;
   8139   REPLACE_INET_NTOP=0;
   8140   REPLACE_INET_PTON=0;
   8141 
   8142 
   8143 
   8144 
   8145 
   8146 
   8147 
   8148   if test $ac_cv_header_features_h = yes; then
   8149     HAVE_FEATURES_H=1
   8150   else
   8151     HAVE_FEATURES_H=0
   8152   fi
   8153 
   8154 
   8155 
   8156 
   8157 
   8158 
   8159   if test $ac_cv_header_arpa_inet_h = yes; then
   8160     HAVE_ARPA_INET_H=1
   8161   else
   8162     HAVE_ARPA_INET_H=0
   8163   fi
   8164 
   8165 
   8166 
   8167 
   8168 
   8169 
   8170 
   8171 
   8172 
   8173 
   8174      if test $gl_cv_have_include_next = yes; then
   8175        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
   8176      else
   8177        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
   8178 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
   8179 if ${gl_cv_next_arpa_inet_h+:} false; then :
   8180   $as_echo_n "(cached) " >&6
   8181 else
   8182 
   8183              if test $ac_cv_header_arpa_inet_h = yes; then
   8184 
   8185 
   8186 
   8187 
   8188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8189 /* end confdefs.h.  */
   8190 #include <arpa/inet.h>
   8191 _ACEOF
   8192                 case "$host_os" in
   8193     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   8194     *)    gl_absname_cpp="$ac_cpp" ;;
   8195   esac
   8196 
   8197   case "$host_os" in
   8198     mingw*)
   8199                                           gl_dirsep_regex='[/\\]'
   8200       ;;
   8201     *)
   8202       gl_dirsep_regex='\/'
   8203       ;;
   8204   esac
   8205       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   8206   gl_header_literal_regex=`echo 'arpa/inet.h' \
   8207                            | sed -e "$gl_make_literal_regex_sed"`
   8208   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   8209       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   8210       s|^/[^/]|//&|
   8211       p
   8212       q
   8213     }'
   8214 
   8215         gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   8216   sed -n "$gl_absolute_header_sed"`
   8217 
   8218           gl_header=$gl_cv_absolute_arpa_inet_h
   8219           gl_cv_next_arpa_inet_h='"'$gl_header'"'
   8220           else
   8221                gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
   8222              fi
   8223 
   8224 
   8225 fi
   8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
   8227 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
   8228      fi
   8229      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
   8230 
   8231      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   8232        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   8233        gl_next_as_first_directive='<'arpa/inet.h'>'
   8234      else
   8235        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   8236        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
   8237      fi
   8238      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
   8239 
   8240 
   8241 
   8242 
   8243 
   8244 
   8245 
   8246 
   8247 
   8248   if test $ac_cv_header_sys_socket_h = yes; then
   8249     HAVE_WS2TCPIP_H=0
   8250   else
   8251     if test $ac_cv_header_ws2tcpip_h = yes; then
   8252       HAVE_WS2TCPIP_H=1
   8253     else
   8254       HAVE_WS2TCPIP_H=0
   8255     fi
   8256   fi
   8257 
   8258 
   8259 
   8260 
   8261 
   8262 
   8263 
   8264 
   8265 
   8266   GL_GNULIB_INET_NTOP=0
   8267 
   8268 
   8269 
   8270   GL_GNULIB_INET_PTON=0
   8271 
   8272 
   8273 
   8274 
   8275     HAVE_BTOWC=1;
   8276   HAVE_MBSINIT=1;
   8277   HAVE_MBRTOWC=1;
   8278   HAVE_MBRLEN=1;
   8279   HAVE_MBSRTOWCS=1;
   8280   HAVE_MBSNRTOWCS=1;
   8281   HAVE_WCRTOMB=1;
   8282   HAVE_WCSRTOMBS=1;
   8283   HAVE_WCSNRTOMBS=1;
   8284   HAVE_WMEMCHR=1;
   8285   HAVE_WMEMCMP=1;
   8286   HAVE_WMEMCPY=1;
   8287   HAVE_WMEMMOVE=1;
   8288   HAVE_WMEMPCPY=1;
   8289   HAVE_WMEMSET=1;
   8290   HAVE_WCSLEN=1;
   8291   HAVE_WCSNLEN=1;
   8292   HAVE_WCSCPY=1;
   8293   HAVE_WCPCPY=1;
   8294   HAVE_WCSNCPY=1;
   8295   HAVE_WCPNCPY=1;
   8296   HAVE_WCSCAT=1;
   8297   HAVE_WCSNCAT=1;
   8298   HAVE_WCSCMP=1;
   8299   HAVE_WCSNCMP=1;
   8300   HAVE_WCSCASECMP=1;
   8301   HAVE_WCSNCASECMP=1;
   8302   HAVE_WCSCOLL=1;
   8303   HAVE_WCSXFRM=1;
   8304   HAVE_WCSDUP=1;
   8305   HAVE_WCSCHR=1;
   8306   HAVE_WCSRCHR=1;
   8307   HAVE_WCSCSPN=1;
   8308   HAVE_WCSSPN=1;
   8309   HAVE_WCSPBRK=1;
   8310   HAVE_WCSSTR=1;
   8311   HAVE_WCSTOK=1;
   8312   HAVE_WCSWIDTH=1;
   8313   HAVE_WCSFTIME=1;
   8314   HAVE_DECL_WCTOB=1;
   8315   HAVE_DECL_WCSDUP=1;
   8316   HAVE_DECL_WCWIDTH=1;
   8317   REPLACE_MBSTATE_T=0;
   8318   REPLACE_BTOWC=0;
   8319   REPLACE_WCTOB=0;
   8320   REPLACE_MBSINIT=0;
   8321   REPLACE_MBRTOWC=0;
   8322   REPLACE_MBRLEN=0;
   8323   REPLACE_MBSRTOWCS=0;
   8324   REPLACE_MBSNRTOWCS=0;
   8325   REPLACE_WCRTOMB=0;
   8326   REPLACE_WCSRTOMBS=0;
   8327   REPLACE_WCSNRTOMBS=0;
   8328   REPLACE_WCWIDTH=0;
   8329   REPLACE_WCSWIDTH=0;
   8330   REPLACE_WCSFTIME=0;
   8331   REPLACE_WCSTOK=0;
   8332 
   8333 
   8334 
   8335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
   8336 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
   8337 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
   8338   $as_echo_n "(cached) " >&6
   8339 else
   8340   gl_cv_header_wchar_h_correct_inline=yes
   8341      case "$host_os" in
   8342        *-gnu* | gnu*)
   8343          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8344 /* end confdefs.h.  */
   8345 
   8346 
   8347              #define wcstod renamed_wcstod
   8348              #include <wchar.h>
   8349              extern int zero (void);
   8350              int main () { return zero(); }
   8351 
   8352 _ACEOF
   8353                                                       save_ac_compile="$ac_compile"
   8354          ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
   8355          if echo '#include "conftest.c"' >conftest1.c \
   8356             && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8357   (eval $ac_compile) 2>&5
   8358   ac_status=$?
   8359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8360   test $ac_status = 0; }; then
   8361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8362 /* end confdefs.h.  */
   8363 
   8364 
   8365                #define wcstod renamed_wcstod
   8366                #include <wchar.h>
   8367                int zero (void) { return 0; }
   8368 
   8369 _ACEOF
   8370                       ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
   8371            if echo '#include "conftest.c"' >conftest2.c \
   8372               && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8373   (eval $ac_compile) 2>&5
   8374   ac_status=$?
   8375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8376   test $ac_status = 0; }; then
   8377              if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
   8378                :
   8379              else
   8380                gl_cv_header_wchar_h_correct_inline=no
   8381              fi
   8382            fi
   8383          fi
   8384          ac_compile="$save_ac_compile"
   8385          rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
   8386          ;;
   8387      esac
   8388 
   8389 fi
   8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
   8391 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
   8392   if test $gl_cv_header_wchar_h_correct_inline = no; then
   8393     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
   8394 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
   8395 C99 mode. You have four options:
   8396   - Add the flag -fgnu89-inline to CC and reconfigure, or
   8397   - Fix your include files, using parts of
   8398     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
   8399   - Use a gcc version older than 4.3, or
   8400   - Don't use the flags -std=c99 or -std=gnu99.
   8401 Configuration aborted." "$LINENO" 5
   8402   fi
   8403 
   8404 
   8405 
   8406 
   8407   for ac_func in $ac_func_list
   8408 do :
   8409   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   8411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   8412   cat >>confdefs.h <<_ACEOF
   8413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8414 _ACEOF
   8415 
   8416 fi
   8417 done
   8418 
   8419 
   8420 
   8421 
   8422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   8423 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   8424 if ${am_cv_langinfo_codeset+:} false; then :
   8425   $as_echo_n "(cached) " >&6
   8426 else
   8427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8428 /* end confdefs.h.  */
   8429 #include <langinfo.h>
   8430 int
   8431 main ()
   8432 {
   8433 char* cs = nl_langinfo(CODESET); return !cs;
   8434   ;
   8435   return 0;
   8436 }
   8437 _ACEOF
   8438 if ac_fn_c_try_link "$LINENO"; then :
   8439   am_cv_langinfo_codeset=yes
   8440 else
   8441   am_cv_langinfo_codeset=no
   8442 fi
   8443 rm -f core conftest.err conftest.$ac_objext \
   8444     conftest$ac_exeext conftest.$ac_ext
   8445 
   8446 fi
   8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   8448 $as_echo "$am_cv_langinfo_codeset" >&6; }
   8449   if test $am_cv_langinfo_codeset = yes; then
   8450 
   8451 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   8452 
   8453   fi
   8454 
   8455 
   8456 
   8457 
   8458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
   8459 $as_echo_n "checking for a traditional french locale... " >&6; }
   8460 if ${gt_cv_locale_fr+:} false; then :
   8461   $as_echo_n "(cached) " >&6
   8462 else
   8463 
   8464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8465 /* end confdefs.h.  */
   8466 
   8467 #include <locale.h>
   8468 #include <time.h>
   8469 #if HAVE_LANGINFO_CODESET
   8470 # include <langinfo.h>
   8471 #endif
   8472 #include <stdlib.h>
   8473 #include <string.h>
   8474 struct tm t;
   8475 char buf[16];
   8476 int main () {
   8477   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   8478      imitates locale dependent behaviour by looking at the environment
   8479      variables, and all locales use the UTF-8 encoding.  */
   8480 #if defined __BEOS__ || defined __HAIKU__
   8481   return 1;
   8482 #else
   8483   /* Check whether the given locale name is recognized by the system.  */
   8484 # if defined _WIN32 && !defined __CYGWIN__
   8485   /* On native Windows, setlocale(category, "") looks at the system settings,
   8486      not at the environment variables.  Also, when an encoding suffix such
   8487      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   8488      category of the locale to "C".  */
   8489   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   8490       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   8491     return 1;
   8492 # else
   8493   if (setlocale (LC_ALL, "") == NULL) return 1;
   8494 # endif
   8495   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   8496      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   8497      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   8498      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   8499      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   8500      some unit tests fail.
   8501      On MirBSD 10, when an unsupported locale is specified, setlocale()
   8502      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
   8503 # if HAVE_LANGINFO_CODESET
   8504   {
   8505     const char *cs = nl_langinfo (CODESET);
   8506     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
   8507         || strcmp (cs, "UTF-8") == 0)
   8508       return 1;
   8509   }
   8510 # endif
   8511 # ifdef __CYGWIN__
   8512   /* On Cygwin, avoid locale names without encoding suffix, because the
   8513      locale_charset() function relies on the encoding suffix.  Note that
   8514      LC_ALL is set on the command line.  */
   8515   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   8516 # endif
   8517   /* Check whether in the abbreviation of the second month, the second
   8518      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
   8519      one byte long. This excludes the UTF-8 encoding.  */
   8520   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   8521   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
   8522 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
   8523   /* Check whether the decimal separator is a comma.
   8524      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
   8525      are nl_langinfo(RADIXCHAR) are both ".".  */
   8526   if (localeconv () ->decimal_point[0] != ',') return 1;
   8527 # endif
   8528   return 0;
   8529 #endif
   8530 }
   8531 
   8532 _ACEOF
   8533     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   8534   (eval $ac_link) 2>&5
   8535   ac_status=$?
   8536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8537   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   8538       case "$host_os" in
   8539         # Handle native Windows specially, because there setlocale() interprets
   8540         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   8541         # "fr" or "fra" as "French" or "French_France.1252",
   8542         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   8543         # "ja" as "Japanese" or "Japanese_Japan.932",
   8544         # and similar.
   8545         mingw*)
   8546           # Test for the native Windows locale name.
   8547           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8548             gt_cv_locale_fr=French_France.1252
   8549           else
   8550             # None found.
   8551             gt_cv_locale_fr=none
   8552           fi
   8553           ;;
   8554         *)
   8555           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   8556           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   8557           # configure script would override the LC_ALL setting. Likewise for
   8558           # LC_CTYPE, which is also set at the beginning of the configure script.
   8559           # Test for the usual locale name.
   8560           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8561             gt_cv_locale_fr=fr_FR
   8562           else
   8563             # Test for the locale name with explicit encoding suffix.
   8564             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8565               gt_cv_locale_fr=fr_FR.ISO-8859-1
   8566             else
   8567               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
   8568               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8569                 gt_cv_locale_fr=fr_FR.ISO8859-1
   8570               else
   8571                 # Test for the HP-UX locale name.
   8572                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8573                   gt_cv_locale_fr=fr_FR.iso88591
   8574                 else
   8575                   # Test for the Solaris 7 locale name.
   8576                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   8577                     gt_cv_locale_fr=fr
   8578                   else
   8579                     # None found.
   8580                     gt_cv_locale_fr=none
   8581                   fi
   8582                 fi
   8583               fi
   8584             fi
   8585           fi
   8586           ;;
   8587       esac
   8588     fi
   8589     rm -fr conftest*
   8590 
   8591 fi
   8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
   8593 $as_echo "$gt_cv_locale_fr" >&6; }
   8594   LOCALE_FR=$gt_cv_locale_fr
   8595 
   8596 
   8597 
   8598 
   8599   GL_GNULIB_BTOWC=0
   8600 
   8601 
   8602 
   8603   GL_GNULIB_WCTOB=0
   8604 
   8605 
   8606 
   8607   GL_GNULIB_MBSINIT=0
   8608 
   8609 
   8610 
   8611   GL_GNULIB_MBRTOWC=0
   8612 
   8613 
   8614 
   8615   GL_GNULIB_MBRLEN=0
   8616 
   8617 
   8618 
   8619   GL_GNULIB_MBSRTOWCS=0
   8620 
   8621 
   8622 
   8623   GL_GNULIB_MBSNRTOWCS=0
   8624 
   8625 
   8626 
   8627   GL_GNULIB_WCRTOMB=0
   8628 
   8629 
   8630 
   8631   GL_GNULIB_WCSRTOMBS=0
   8632 
   8633 
   8634 
   8635   GL_GNULIB_WCSNRTOMBS=0
   8636 
   8637 
   8638 
   8639   GL_GNULIB_WCWIDTH=0
   8640 
   8641 
   8642 
   8643   GL_GNULIB_WMEMCHR=0
   8644 
   8645 
   8646 
   8647   GL_GNULIB_WMEMCMP=0
   8648 
   8649 
   8650 
   8651   GL_GNULIB_WMEMCPY=0
   8652 
   8653 
   8654 
   8655   GL_GNULIB_WMEMMOVE=0
   8656 
   8657 
   8658 
   8659   GL_GNULIB_WMEMPCPY=0
   8660 
   8661 
   8662 
   8663   GL_GNULIB_WMEMSET=0
   8664 
   8665 
   8666 
   8667   GL_GNULIB_WCSLEN=0
   8668 
   8669 
   8670 
   8671   GL_GNULIB_WCSNLEN=0
   8672 
   8673 
   8674 
   8675   GL_GNULIB_WCSCPY=0
   8676 
   8677 
   8678 
   8679   GL_GNULIB_WCPCPY=0
   8680 
   8681 
   8682 
   8683   GL_GNULIB_WCSNCPY=0
   8684 
   8685 
   8686 
   8687   GL_GNULIB_WCPNCPY=0
   8688 
   8689 
   8690 
   8691   GL_GNULIB_WCSCAT=0
   8692 
   8693 
   8694 
   8695   GL_GNULIB_WCSNCAT=0
   8696 
   8697 
   8698 
   8699   GL_GNULIB_WCSCMP=0
   8700 
   8701 
   8702 
   8703   GL_GNULIB_WCSNCMP=0
   8704 
   8705 
   8706 
   8707   GL_GNULIB_WCSCASECMP=0
   8708 
   8709 
   8710 
   8711   GL_GNULIB_WCSNCASECMP=0
   8712 
   8713 
   8714 
   8715   GL_GNULIB_WCSCOLL=0
   8716 
   8717 
   8718 
   8719   GL_GNULIB_WCSXFRM=0
   8720 
   8721 
   8722 
   8723   GL_GNULIB_WCSDUP=0
   8724 
   8725 
   8726 
   8727   GL_GNULIB_WCSCHR=0
   8728 
   8729 
   8730 
   8731   GL_GNULIB_WCSRCHR=0
   8732 
   8733 
   8734 
   8735   GL_GNULIB_WCSCSPN=0
   8736 
   8737 
   8738 
   8739   GL_GNULIB_WCSSPN=0
   8740 
   8741 
   8742 
   8743   GL_GNULIB_WCSPBRK=0
   8744 
   8745 
   8746 
   8747   GL_GNULIB_WCSSTR=0
   8748 
   8749 
   8750 
   8751   GL_GNULIB_WCSTOK=0
   8752 
   8753 
   8754 
   8755   GL_GNULIB_WCSWIDTH=0
   8756 
   8757 
   8758 
   8759   GL_GNULIB_WCSFTIME=0
   8760 
   8761 
   8762 
   8763   GL_GNULIB_MDA_WCSDUP=1
   8764 
   8765 
   8766 
   8767 
   8768 
   8769   GL_GNULIB__EXIT=0
   8770 
   8771 
   8772 
   8773   GL_GNULIB_ALIGNED_ALLOC=0
   8774 
   8775 
   8776 
   8777   GL_GNULIB_ATOLL=0
   8778 
   8779 
   8780 
   8781   GL_GNULIB_CALLOC_GNU=0
   8782 
   8783 
   8784 
   8785   GL_GNULIB_CALLOC_POSIX=0
   8786 
   8787 
   8788 
   8789   GL_GNULIB_CANONICALIZE_FILE_NAME=0
   8790 
   8791 
   8792 
   8793   GL_GNULIB_FREE_POSIX=0
   8794 
   8795 
   8796 
   8797   GL_GNULIB_GETLOADAVG=0
   8798 
   8799 
   8800 
   8801   GL_GNULIB_GETSUBOPT=0
   8802 
   8803 
   8804 
   8805   GL_GNULIB_GRANTPT=0
   8806 
   8807 
   8808 
   8809   GL_GNULIB_MALLOC_GNU=0
   8810 
   8811 
   8812 
   8813   GL_GNULIB_MALLOC_POSIX=0
   8814 
   8815 
   8816 
   8817   GL_GNULIB_MBTOWC=0
   8818 
   8819 
   8820 
   8821   GL_GNULIB_MKDTEMP=0
   8822 
   8823 
   8824 
   8825   GL_GNULIB_MKOSTEMP=0
   8826 
   8827 
   8828 
   8829   GL_GNULIB_MKOSTEMPS=0
   8830 
   8831 
   8832 
   8833   GL_GNULIB_MKSTEMP=0
   8834 
   8835 
   8836 
   8837   GL_GNULIB_MKSTEMPS=0
   8838 
   8839 
   8840 
   8841   GL_GNULIB_POSIX_MEMALIGN=0
   8842 
   8843 
   8844 
   8845   GL_GNULIB_POSIX_OPENPT=0
   8846 
   8847 
   8848 
   8849   GL_GNULIB_PTSNAME=0
   8850 
   8851 
   8852 
   8853   GL_GNULIB_PTSNAME_R=0
   8854 
   8855 
   8856 
   8857   GL_GNULIB_PUTENV=0
   8858 
   8859 
   8860 
   8861   GL_GNULIB_QSORT_R=0
   8862 
   8863 
   8864 
   8865   GL_GNULIB_RANDOM=0
   8866 
   8867 
   8868 
   8869   GL_GNULIB_RANDOM_R=0
   8870 
   8871 
   8872 
   8873   GL_GNULIB_REALLOCARRAY=0
   8874 
   8875 
   8876 
   8877   GL_GNULIB_REALLOC_GNU=0
   8878 
   8879 
   8880 
   8881   GL_GNULIB_REALLOC_POSIX=0
   8882 
   8883 
   8884 
   8885   GL_GNULIB_REALPATH=0
   8886 
   8887 
   8888 
   8889   GL_GNULIB_RPMATCH=0
   8890 
   8891 
   8892 
   8893   GL_GNULIB_SECURE_GETENV=0
   8894 
   8895 
   8896 
   8897   GL_GNULIB_SETENV=0
   8898 
   8899 
   8900 
   8901   GL_GNULIB_STRTOD=0
   8902 
   8903 
   8904 
   8905   GL_GNULIB_STRTOL=0
   8906 
   8907 
   8908 
   8909   GL_GNULIB_STRTOLD=0
   8910 
   8911 
   8912 
   8913   GL_GNULIB_STRTOLL=0
   8914 
   8915 
   8916 
   8917   GL_GNULIB_STRTOUL=0
   8918 
   8919 
   8920 
   8921   GL_GNULIB_STRTOULL=0
   8922 
   8923 
   8924 
   8925   GL_GNULIB_SYSTEM_POSIX=0
   8926 
   8927 
   8928 
   8929   GL_GNULIB_UNLOCKPT=0
   8930 
   8931 
   8932 
   8933   GL_GNULIB_UNSETENV=0
   8934 
   8935 
   8936 
   8937   GL_GNULIB_WCTOMB=0
   8938 
   8939 
   8940 
   8941   GL_GNULIB_MDA_ECVT=1
   8942 
   8943 
   8944 
   8945   GL_GNULIB_MDA_FCVT=1
   8946 
   8947 
   8948 
   8949   GL_GNULIB_MDA_GCVT=1
   8950 
   8951 
   8952 
   8953   GL_GNULIB_MDA_MKTEMP=1
   8954 
   8955 
   8956 
   8957   GL_GNULIB_MDA_PUTENV=1
   8958 
   8959 
   8960 
   8961 
   8962     HAVE__EXIT=1;
   8963   HAVE_ALIGNED_ALLOC=1;
   8964   HAVE_ATOLL=1;
   8965   HAVE_CANONICALIZE_FILE_NAME=1;
   8966   HAVE_DECL_ECVT=1;
   8967   HAVE_DECL_FCVT=1;
   8968   HAVE_DECL_GCVT=1;
   8969   HAVE_DECL_GETLOADAVG=1;
   8970   HAVE_GETSUBOPT=1;
   8971   HAVE_GRANTPT=1;
   8972   HAVE_INITSTATE=1;
   8973   HAVE_DECL_INITSTATE=1;
   8974   HAVE_MBTOWC=1;
   8975   HAVE_MKDTEMP=1;
   8976   HAVE_MKOSTEMP=1;
   8977   HAVE_MKOSTEMPS=1;
   8978   HAVE_MKSTEMP=1;
   8979   HAVE_MKSTEMPS=1;
   8980   HAVE_POSIX_MEMALIGN=1;
   8981   HAVE_POSIX_OPENPT=1;
   8982   HAVE_PTSNAME=1;
   8983   HAVE_PTSNAME_R=1;
   8984   HAVE_QSORT_R=1;
   8985   HAVE_RANDOM=1;
   8986   HAVE_RANDOM_H=1;
   8987   HAVE_RANDOM_R=1;
   8988   HAVE_REALLOCARRAY=1;
   8989   HAVE_REALPATH=1;
   8990   HAVE_RPMATCH=1;
   8991   HAVE_SECURE_GETENV=1;
   8992   HAVE_SETENV=1;
   8993   HAVE_DECL_SETENV=1;
   8994   HAVE_SETSTATE=1;
   8995   HAVE_DECL_SETSTATE=1;
   8996   HAVE_STRTOD=1;
   8997   HAVE_STRTOL=1;
   8998   HAVE_STRTOLD=1;
   8999   HAVE_STRTOLL=1;
   9000   HAVE_STRTOUL=1;
   9001   HAVE_STRTOULL=1;
   9002   HAVE_STRUCT_RANDOM_DATA=1;
   9003   HAVE_SYS_LOADAVG_H=0;
   9004   HAVE_UNLOCKPT=1;
   9005   HAVE_DECL_UNSETENV=1;
   9006   REPLACE_ALIGNED_ALLOC=0;
   9007   REPLACE_CALLOC_FOR_CALLOC_GNU=0;
   9008   REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
   9009   REPLACE_CANONICALIZE_FILE_NAME=0;
   9010   REPLACE_FREE=0;
   9011   REPLACE_INITSTATE=0;
   9012   REPLACE_MALLOC_FOR_MALLOC_GNU=0;
   9013   REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
   9014   REPLACE_MBTOWC=0;
   9015   REPLACE_MKSTEMP=0;
   9016   REPLACE_POSIX_MEMALIGN=0;
   9017   REPLACE_PTSNAME=0;
   9018   REPLACE_PTSNAME_R=0;
   9019   REPLACE_PUTENV=0;
   9020   REPLACE_QSORT_R=0;
   9021   REPLACE_RANDOM=0;
   9022   REPLACE_RANDOM_R=0;
   9023   REPLACE_REALLOC_FOR_REALLOC_GNU=0;
   9024   REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
   9025   REPLACE_REALLOCARRAY=0;
   9026   REPLACE_REALPATH=0;
   9027   REPLACE_SETENV=0;
   9028   REPLACE_SETSTATE=0;
   9029   REPLACE_STRTOD=0;
   9030   REPLACE_STRTOL=0;
   9031   REPLACE_STRTOLD=0;
   9032   REPLACE_STRTOLL=0;
   9033   REPLACE_STRTOUL=0;
   9034   REPLACE_STRTOULL=0;
   9035   REPLACE_UNSETENV=0;
   9036   REPLACE_WCTOMB=0;
   9037 
   9038 
   9039          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
   9040 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
   9041 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
   9042   $as_echo_n "(cached) " >&6
   9043 else
   9044   rm -f conftest.sym conftest.file
   9045      echo >conftest.file
   9046      if test "$cross_compiling" = yes; then :
   9047   case "$host_os" in
   9048           linux-* | linux)
   9049             # Guess yes on Linux systems.
   9050             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
   9051           *-gnu* | gnu*)
   9052             # Guess yes on glibc systems.
   9053             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
   9054           mingw*)
   9055             # Guess no on native Windows.
   9056             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
   9057           *)
   9058             # If we don't know, obey --enable-cross-guesses.
   9059             gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
   9060         esac
   9061 
   9062 else
   9063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9064 /* end confdefs.h.  */
   9065 $ac_includes_default
   9066 int
   9067 main ()
   9068 {
   9069 struct stat sbuf;
   9070             if (symlink ("conftest.file", "conftest.sym") != 0)
   9071               return 1;
   9072             /* Linux will dereference the symlink and fail, as required by
   9073                POSIX.  That is better in the sense that it means we will not
   9074                have to compile and use the lstat wrapper.  */
   9075             return lstat ("conftest.sym/", &sbuf) == 0;
   9076 
   9077   ;
   9078   return 0;
   9079 }
   9080 _ACEOF
   9081 if ac_fn_c_try_run "$LINENO"; then :
   9082   gl_cv_func_lstat_dereferences_slashed_symlink=yes
   9083 else
   9084   gl_cv_func_lstat_dereferences_slashed_symlink=no
   9085 fi
   9086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9087   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9088 fi
   9089 
   9090      rm -f conftest.sym conftest.file
   9091 
   9092 fi
   9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
   9094 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
   9095   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
   9096     *yes)
   9097 
   9098 cat >>confdefs.h <<_ACEOF
   9099 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
   9100 _ACEOF
   9101 
   9102       ;;
   9103   esac
   9104 
   9105 
   9106 
   9107 
   9108 
   9109 
   9110 
   9111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
   9112 $as_echo_n "checking whether // is distinct from /... " >&6; }
   9113 if ${gl_cv_double_slash_root+:} false; then :
   9114   $as_echo_n "(cached) " >&6
   9115 else
   9116    if test x"$cross_compiling" = xyes ; then
   9117         # When cross-compiling, there is no way to tell whether // is special
   9118         # short of a list of hosts.  However, the only known hosts to date
   9119         # that have a distinct // are Apollo DomainOS (too old to port to),
   9120         # Cygwin, and z/OS.  If anyone knows of another system for which // has
   9121         # special semantics and is distinct from /, please report it to
   9122         # <bug-gnulib (at] gnu.org>.
   9123         case $host in
   9124           *-cygwin | i370-ibm-openedition)
   9125             gl_cv_double_slash_root=yes ;;
   9126           *)
   9127             # Be optimistic and assume that / and // are the same when we
   9128             # don't know.
   9129             gl_cv_double_slash_root='unknown, assuming no' ;;
   9130         esac
   9131       else
   9132         set x `ls -di / // 2>/dev/null`
   9133         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   9134           gl_cv_double_slash_root=no
   9135         else
   9136           gl_cv_double_slash_root=yes
   9137         fi
   9138       fi
   9139 fi
   9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
   9141 $as_echo "$gl_cv_double_slash_root" >&6; }
   9142   if test "$gl_cv_double_slash_root" = yes; then
   9143 
   9144 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
   9145 
   9146   fi
   9147 
   9148 
   9149 
   9150 
   9151 
   9152 
   9153 
   9154      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
   9155 $as_echo_n "checking whether realpath works... " >&6; }
   9156 if ${gl_cv_func_realpath_works+:} false; then :
   9157   $as_echo_n "(cached) " >&6
   9158 else
   9159 
   9160     rm -rf conftest.a conftest.d
   9161     touch conftest.a
   9162     # Assume that if we have lstat, we can also check symlinks.
   9163     if test $ac_cv_func_lstat = yes; then
   9164       ln -s conftest.a conftest.l
   9165     fi
   9166     mkdir conftest.d
   9167     if test "$cross_compiling" = yes; then :
   9168   case "$host_os" in
   9169                        # Guess yes on glibc systems.
   9170         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
   9171                        # Guess 'nearly' on musl systems.
   9172         *-musl*)       gl_cv_func_realpath_works="guessing nearly" ;;
   9173                        # Guess no on Cygwin.
   9174         cygwin*)       gl_cv_func_realpath_works="guessing no" ;;
   9175                        # Guess no on native Windows.
   9176         mingw*)        gl_cv_func_realpath_works="guessing no" ;;
   9177                        # If we don't know, obey --enable-cross-guesses.
   9178         *)             gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
   9179       esac
   9180 
   9181 else
   9182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9183 /* end confdefs.h.  */
   9184 
   9185 
   9186 
   9187 #include <stdlib.h>
   9188 #if defined __MACH__ && defined __APPLE__
   9189 /* Avoid a crash on Mac OS X.  */
   9190 #include <mach/mach.h>
   9191 #include <mach/mach_error.h>
   9192 #include <mach/thread_status.h>
   9193 #include <mach/exception.h>
   9194 #include <mach/task.h>
   9195 #include <pthread.h>
   9196 /* The exception port on which our thread listens.  */
   9197 static mach_port_t our_exception_port;
   9198 /* The main function of the thread listening for exceptions of type
   9199    EXC_BAD_ACCESS.  */
   9200 static void *
   9201 mach_exception_thread (void *arg)
   9202 {
   9203   /* Buffer for a message to be received.  */
   9204   struct {
   9205     mach_msg_header_t head;
   9206     mach_msg_body_t msgh_body;
   9207     char data[1024];
   9208   } msg;
   9209   mach_msg_return_t retval;
   9210   /* Wait for a message on the exception port.  */
   9211   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
   9212                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
   9213   if (retval != MACH_MSG_SUCCESS)
   9214     abort ();
   9215   exit (1);
   9216 }
   9217 static void
   9218 nocrash_init (void)
   9219 {
   9220   mach_port_t self = mach_task_self ();
   9221   /* Allocate a port on which the thread shall listen for exceptions.  */
   9222   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
   9223       == KERN_SUCCESS) {
   9224     /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
   9225     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
   9226                                 MACH_MSG_TYPE_MAKE_SEND)
   9227         == KERN_SUCCESS) {
   9228       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
   9229          for us.  */
   9230       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
   9231       /* Create the thread listening on the exception port.  */
   9232       pthread_attr_t attr;
   9233       pthread_t thread;
   9234       if (pthread_attr_init (&attr) == 0
   9235           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
   9236           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
   9237         pthread_attr_destroy (&attr);
   9238         /* Replace the exception port info for these exceptions with our own.
   9239            Note that we replace the exception port for the entire task, not only
   9240            for a particular thread.  This has the effect that when our exception
   9241            port gets the message, the thread specific exception port has already
   9242            been asked, and we don't need to bother about it.
   9243            See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
   9244         task_set_exception_ports (self, mask, our_exception_port,
   9245                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
   9246       }
   9247     }
   9248   }
   9249 }
   9250 #elif defined _WIN32 && ! defined __CYGWIN__
   9251 /* Avoid a crash on native Windows.  */
   9252 #define WIN32_LEAN_AND_MEAN
   9253 #include <windows.h>
   9254 #include <winerror.h>
   9255 static LONG WINAPI
   9256 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
   9257 {
   9258   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
   9259     {
   9260     case EXCEPTION_ACCESS_VIOLATION:
   9261     case EXCEPTION_IN_PAGE_ERROR:
   9262     case EXCEPTION_STACK_OVERFLOW:
   9263     case EXCEPTION_GUARD_PAGE:
   9264     case EXCEPTION_PRIV_INSTRUCTION:
   9265     case EXCEPTION_ILLEGAL_INSTRUCTION:
   9266     case EXCEPTION_DATATYPE_MISALIGNMENT:
   9267     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
   9268     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
   9269       exit (1);
   9270     }
   9271   return EXCEPTION_CONTINUE_SEARCH;
   9272 }
   9273 static void
   9274 nocrash_init (void)
   9275 {
   9276   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
   9277 }
   9278 #else
   9279 /* Avoid a crash on POSIX systems.  */
   9280 #include <signal.h>
   9281 #include <unistd.h>
   9282 /* A POSIX signal handler.  */
   9283 static void
   9284 exception_handler (int sig)
   9285 {
   9286   _exit (1);
   9287 }
   9288 static void
   9289 nocrash_init (void)
   9290 {
   9291 #ifdef SIGSEGV
   9292   signal (SIGSEGV, exception_handler);
   9293 #endif
   9294 #ifdef SIGBUS
   9295   signal (SIGBUS, exception_handler);
   9296 #endif
   9297 }
   9298 #endif
   9299 
   9300         #include <errno.h>
   9301         #include <stdlib.h>
   9302         #include <string.h>
   9303 
   9304 int
   9305 main ()
   9306 {
   9307 
   9308         int result = 0;
   9309         /* This test fails on Solaris 10.  */
   9310         {
   9311           char *name = realpath ("conftest.a", NULL);
   9312           if (!(name && *name == '/'))
   9313             result |= 1;
   9314           free (name);
   9315         }
   9316         /* This test fails on older versions of Cygwin.  */
   9317         {
   9318           char *name = realpath ("conftest.b/../conftest.a", NULL);
   9319           if (name != NULL)
   9320             result |= 2;
   9321           free (name);
   9322         }
   9323         /* This test fails on Cygwin 2.9.  */
   9324         #if HAVE_LSTAT
   9325         {
   9326           char *name = realpath ("conftest.l/../conftest.a", NULL);
   9327           if (name != NULL || errno != ENOTDIR)
   9328             result |= 4;
   9329           free (name);
   9330         }
   9331         #endif
   9332         /* This test fails on Mac OS X 10.13, OpenBSD 6.0.  */
   9333         {
   9334           char *name = realpath ("conftest.a/", NULL);
   9335           if (name != NULL)
   9336             result |= 8;
   9337           free (name);
   9338         }
   9339         /* This test fails on AIX 7, Solaris 10.  */
   9340         {
   9341           char *name1 = realpath (".", NULL);
   9342           char *name2 = realpath ("conftest.d//./..", NULL);
   9343           if (! name1 || ! name2 || strcmp (name1, name2))
   9344             result |= 16;
   9345           free (name1);
   9346           free (name2);
   9347         }
   9348         #ifdef __linux__
   9349         /* On Linux, // is the same as /. See also double-slash-root.m4.
   9350            realpath() should respect this.
   9351            This test fails on musl libc 1.2.2.  */
   9352         {
   9353           char *name = realpath ("//", NULL);
   9354           if (! name || strcmp (name, "/"))
   9355             result |= 32;
   9356           free (name);
   9357         }
   9358         #endif
   9359         return result;
   9360 
   9361   ;
   9362   return 0;
   9363 }
   9364 
   9365 _ACEOF
   9366 if ac_fn_c_try_run "$LINENO"; then :
   9367   gl_cv_func_realpath_works=yes
   9368 else
   9369   case $? in
   9370         32) gl_cv_func_realpath_works=nearly ;;
   9371         *)  gl_cv_func_realpath_works=no ;;
   9372       esac
   9373 
   9374 fi
   9375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9376   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9377 fi
   9378 
   9379     rm -rf conftest.a conftest.l conftest.d
   9380 
   9381 fi
   9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
   9383 $as_echo "$gl_cv_func_realpath_works" >&6; }
   9384   case "$gl_cv_func_realpath_works" in
   9385     *yes)
   9386 
   9387 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
   9388 
   9389       ;;
   9390     *nearly)
   9391 
   9392 $as_echo "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h
   9393 
   9394       ;;
   9395   esac
   9396 
   9397 
   9398 
   9399 
   9400 
   9401 
   9402 
   9403 
   9404 
   9405   case "$host_os" in
   9406     mingw*) ;;
   9407     *)      for ac_func in getcwd
   9408 do :
   9409   ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
   9410 if test "x$ac_cv_func_getcwd" = xyes; then :
   9411   cat >>confdefs.h <<_ACEOF
   9412 #define HAVE_GETCWD 1
   9413 _ACEOF
   9414 
   9415 fi
   9416 done
   9417  ;;
   9418   esac
   9419 
   9420 
   9421 
   9422 
   9423 
   9424 
   9425 
   9426   GL_GNULIB_ACCESS=0
   9427 
   9428 
   9429 
   9430   GL_GNULIB_CHDIR=0
   9431 
   9432 
   9433 
   9434   GL_GNULIB_CHOWN=0
   9435 
   9436 
   9437 
   9438   GL_GNULIB_CLOSE=0
   9439 
   9440 
   9441 
   9442   GL_GNULIB_COPY_FILE_RANGE=0
   9443 
   9444 
   9445 
   9446   GL_GNULIB_DUP=0
   9447 
   9448 
   9449 
   9450   GL_GNULIB_DUP2=0
   9451 
   9452 
   9453 
   9454   GL_GNULIB_DUP3=0
   9455 
   9456 
   9457 
   9458   GL_GNULIB_ENVIRON=0
   9459 
   9460 
   9461 
   9462   GL_GNULIB_EUIDACCESS=0
   9463 
   9464 
   9465 
   9466   GL_GNULIB_EXECL=0
   9467 
   9468 
   9469 
   9470   GL_GNULIB_EXECLE=0
   9471 
   9472 
   9473 
   9474   GL_GNULIB_EXECLP=0
   9475 
   9476 
   9477 
   9478   GL_GNULIB_EXECV=0
   9479 
   9480 
   9481 
   9482   GL_GNULIB_EXECVE=0
   9483 
   9484 
   9485 
   9486   GL_GNULIB_EXECVP=0
   9487 
   9488 
   9489 
   9490   GL_GNULIB_EXECVPE=0
   9491 
   9492 
   9493 
   9494   GL_GNULIB_FACCESSAT=0
   9495 
   9496 
   9497 
   9498   GL_GNULIB_FCHDIR=0
   9499 
   9500 
   9501 
   9502   GL_GNULIB_FCHOWNAT=0
   9503 
   9504 
   9505 
   9506   GL_GNULIB_FDATASYNC=0
   9507 
   9508 
   9509 
   9510   GL_GNULIB_FSYNC=0
   9511 
   9512 
   9513 
   9514   GL_GNULIB_FTRUNCATE=0
   9515 
   9516 
   9517 
   9518   GL_GNULIB_GETCWD=0
   9519 
   9520 
   9521 
   9522   GL_GNULIB_GETDOMAINNAME=0
   9523 
   9524 
   9525 
   9526   GL_GNULIB_GETDTABLESIZE=0
   9527 
   9528 
   9529 
   9530   GL_GNULIB_GETENTROPY=0
   9531 
   9532 
   9533 
   9534   GL_GNULIB_GETGROUPS=0
   9535 
   9536 
   9537 
   9538   GL_GNULIB_GETHOSTNAME=0
   9539 
   9540 
   9541 
   9542   GL_GNULIB_GETLOGIN=0
   9543 
   9544 
   9545 
   9546   GL_GNULIB_GETLOGIN_R=0
   9547 
   9548 
   9549 
   9550   GL_GNULIB_GETOPT_POSIX=0
   9551 
   9552 
   9553 
   9554   GL_GNULIB_GETPAGESIZE=0
   9555 
   9556 
   9557 
   9558   GL_GNULIB_GETPASS=0
   9559 
   9560 
   9561 
   9562   GL_GNULIB_GETPASS_GNU=0
   9563 
   9564 
   9565 
   9566   GL_GNULIB_GETUSERSHELL=0
   9567 
   9568 
   9569 
   9570   GL_GNULIB_GROUP_MEMBER=0
   9571 
   9572 
   9573 
   9574   GL_GNULIB_ISATTY=0
   9575 
   9576 
   9577 
   9578   GL_GNULIB_LCHOWN=0
   9579 
   9580 
   9581 
   9582   GL_GNULIB_LINK=0
   9583 
   9584 
   9585 
   9586   GL_GNULIB_LINKAT=0
   9587 
   9588 
   9589 
   9590   GL_GNULIB_LSEEK=0
   9591 
   9592 
   9593 
   9594   GL_GNULIB_PIPE=0
   9595 
   9596 
   9597 
   9598   GL_GNULIB_PIPE2=0
   9599 
   9600 
   9601 
   9602   GL_GNULIB_PREAD=0
   9603 
   9604 
   9605 
   9606   GL_GNULIB_PWRITE=0
   9607 
   9608 
   9609 
   9610   GL_GNULIB_READ=0
   9611 
   9612 
   9613 
   9614   GL_GNULIB_READLINK=0
   9615 
   9616 
   9617 
   9618   GL_GNULIB_READLINKAT=0
   9619 
   9620 
   9621 
   9622   GL_GNULIB_RMDIR=0
   9623 
   9624 
   9625 
   9626   GL_GNULIB_SETHOSTNAME=0
   9627 
   9628 
   9629 
   9630   GL_GNULIB_SLEEP=0
   9631 
   9632 
   9633 
   9634   GL_GNULIB_SYMLINK=0
   9635 
   9636 
   9637 
   9638   GL_GNULIB_SYMLINKAT=0
   9639 
   9640 
   9641 
   9642   GL_GNULIB_TRUNCATE=0
   9643 
   9644 
   9645 
   9646   GL_GNULIB_TTYNAME_R=0
   9647 
   9648 
   9649 
   9650   GL_GNULIB_UNISTD_H_GETOPT=0
   9651 
   9652 
   9653 
   9654   GL_GNULIB_UNISTD_H_NONBLOCKING=0
   9655 
   9656 
   9657 
   9658   GL_GNULIB_UNISTD_H_SIGPIPE=0
   9659 
   9660 
   9661 
   9662   GL_GNULIB_UNLINK=0
   9663 
   9664 
   9665 
   9666   GL_GNULIB_UNLINKAT=0
   9667 
   9668 
   9669 
   9670   GL_GNULIB_USLEEP=0
   9671 
   9672 
   9673 
   9674   GL_GNULIB_WRITE=0
   9675 
   9676 
   9677 
   9678   GL_GNULIB_MDA_ACCESS=1
   9679 
   9680 
   9681 
   9682   GL_GNULIB_MDA_CHDIR=1
   9683 
   9684 
   9685 
   9686   GL_GNULIB_MDA_CLOSE=1
   9687 
   9688 
   9689 
   9690   GL_GNULIB_MDA_DUP=1
   9691 
   9692 
   9693 
   9694   GL_GNULIB_MDA_DUP2=1
   9695 
   9696 
   9697 
   9698   GL_GNULIB_MDA_EXECL=1
   9699 
   9700 
   9701 
   9702   GL_GNULIB_MDA_EXECLE=1
   9703 
   9704 
   9705 
   9706   GL_GNULIB_MDA_EXECLP=1
   9707 
   9708 
   9709 
   9710   GL_GNULIB_MDA_EXECV=1
   9711 
   9712 
   9713 
   9714   GL_GNULIB_MDA_EXECVE=1
   9715 
   9716 
   9717 
   9718   GL_GNULIB_MDA_EXECVP=1
   9719 
   9720 
   9721 
   9722   GL_GNULIB_MDA_EXECVPE=1
   9723 
   9724 
   9725 
   9726   GL_GNULIB_MDA_GETCWD=1
   9727 
   9728 
   9729 
   9730   GL_GNULIB_MDA_GETPID=1
   9731 
   9732 
   9733 
   9734   GL_GNULIB_MDA_ISATTY=1
   9735 
   9736 
   9737 
   9738   GL_GNULIB_MDA_LSEEK=1
   9739 
   9740 
   9741 
   9742   GL_GNULIB_MDA_READ=1
   9743 
   9744 
   9745 
   9746   GL_GNULIB_MDA_RMDIR=1
   9747 
   9748 
   9749 
   9750   GL_GNULIB_MDA_SWAB=1
   9751 
   9752 
   9753 
   9754   GL_GNULIB_MDA_UNLINK=1
   9755 
   9756 
   9757 
   9758   GL_GNULIB_MDA_WRITE=1
   9759 
   9760 
   9761 
   9762 
   9763 
   9764 
   9765 
   9766 
   9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   9768 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   9769 if ${ac_cv_type_uid_t+:} false; then :
   9770   $as_echo_n "(cached) " >&6
   9771 else
   9772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9773 /* end confdefs.h.  */
   9774 #include <sys/types.h>
   9775 
   9776 _ACEOF
   9777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9778   $EGREP "uid_t" >/dev/null 2>&1; then :
   9779   ac_cv_type_uid_t=yes
   9780 else
   9781   ac_cv_type_uid_t=no
   9782 fi
   9783 rm -f conftest*
   9784 
   9785 fi
   9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   9787 $as_echo "$ac_cv_type_uid_t" >&6; }
   9788 if test $ac_cv_type_uid_t = no; then
   9789 
   9790 $as_echo "#define uid_t int" >>confdefs.h
   9791 
   9792 
   9793 $as_echo "#define gid_t int" >>confdefs.h
   9794 
   9795 fi
   9796 
   9797 gl_mda_defines='
   9798 #if defined _WIN32 && !defined __CYGWIN__
   9799 #define access    _access
   9800 #define chdir     _chdir
   9801 #define chmod     _chmod
   9802 #define close     _close
   9803 #define creat     _creat
   9804 #define dup       _dup
   9805 #define dup2      _dup2
   9806 #define ecvt      _ecvt
   9807 #define execl     _execl
   9808 #define execle    _execle
   9809 #define execlp    _execlp
   9810 #define execv     _execv
   9811 #define execve    _execve
   9812 #define execvp    _execvp
   9813 #define execvpe   _execvpe
   9814 #define fcloseall _fcloseall
   9815 #define fcvt      _fcvt
   9816 #define fdopen    _fdopen
   9817 #define fileno    _fileno
   9818 #define gcvt      _gcvt
   9819 #define getcwd    _getcwd
   9820 #define getpid    _getpid
   9821 #define getw      _getw
   9822 #define isatty    _isatty
   9823 #define j0        _j0
   9824 #define j1        _j1
   9825 #define jn        _jn
   9826 #define lfind     _lfind
   9827 #define lsearch   _lsearch
   9828 #define lseek     _lseek
   9829 #define memccpy   _memccpy
   9830 #define mkdir     _mkdir
   9831 #define mktemp    _mktemp
   9832 #define open      _open
   9833 #define putenv    _putenv
   9834 #define putw      _putw
   9835 #define read      _read
   9836 #define rmdir     _rmdir
   9837 #define strdup    _strdup
   9838 #define swab      _swab
   9839 #define tempnam   _tempnam
   9840 #define tzset     _tzset
   9841 #define umask     _umask
   9842 #define unlink    _unlink
   9843 #define utime     _utime
   9844 #define wcsdup    _wcsdup
   9845 #define write     _write
   9846 #define y0        _y0
   9847 #define y1        _y1
   9848 #define yn        _yn
   9849 #endif
   9850 '
   9851 
   9852 
   9853       for ac_header in unistd.h
   9854 do :
   9855   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
   9856 if test "x$ac_cv_header_unistd_h" = xyes; then :
   9857   cat >>confdefs.h <<_ACEOF
   9858 #define HAVE_UNISTD_H 1
   9859 _ACEOF
   9860 
   9861 fi
   9862 
   9863 done
   9864 
   9865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   9866 $as_echo_n "checking for working chown... " >&6; }
   9867 if ${ac_cv_func_chown_works+:} false; then :
   9868   $as_echo_n "(cached) " >&6
   9869 else
   9870   if test "$cross_compiling" = yes; then :
   9871   case "$host_os" in # ((
   9872                            # Guess yes on Linux systems.
   9873           linux-* | linux) ac_cv_func_chown_works="guessing yes" ;;
   9874                            # Guess yes on glibc systems.
   9875           *-gnu* | gnu*)   ac_cv_func_chown_works="guessing yes" ;;
   9876                            # Guess no on native Windows.
   9877           mingw*)          ac_cv_func_chown_works="guessing no" ;;
   9878                            # If we don't know, obey --enable-cross-guesses.
   9879           *)               ac_cv_func_chown_works="$gl_cross_guess_normal" ;;
   9880         esac
   9881 
   9882 else
   9883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9884 /* end confdefs.h.  */
   9885 $ac_includes_default
   9886            #include <fcntl.h>
   9887 
   9888 
   9889 $gl_mda_defines
   9890 
   9891 int
   9892 main ()
   9893 {
   9894 
   9895             char *f = "conftest.chown";
   9896             struct stat before, after;
   9897 
   9898             if (creat (f, 0600) < 0)
   9899               return 1;
   9900             if (stat (f, &before) < 0)
   9901               return 1;
   9902             if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
   9903               return 1;
   9904             if (stat (f, &after) < 0)
   9905               return 1;
   9906             return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   9907 
   9908   ;
   9909   return 0;
   9910 }
   9911 
   9912 _ACEOF
   9913 if ac_fn_c_try_run "$LINENO"; then :
   9914   ac_cv_func_chown_works=yes
   9915 else
   9916   ac_cv_func_chown_works=no
   9917 fi
   9918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9919   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9920 fi
   9921 
   9922      rm -f conftest.chown
   9923 
   9924 fi
   9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   9926 $as_echo "$ac_cv_func_chown_works" >&6; }
   9927   case "$ac_cv_func_chown_works" in
   9928     *yes)
   9929 
   9930 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
   9931 
   9932       ;;
   9933   esac
   9934 
   9935 
   9936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown dereferences symlinks" >&5
   9937 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
   9938 if ${gl_cv_func_chown_follows_symlink+:} false; then :
   9939   $as_echo_n "(cached) " >&6
   9940 else
   9941 
   9942       if test "$cross_compiling" = yes; then :
   9943   gl_cv_func_chown_follows_symlink="guessing yes"
   9944 
   9945 else
   9946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9947 /* end confdefs.h.  */
   9948 
   9949 #include <unistd.h>
   9950 #include <stdlib.h>
   9951 #include <errno.h>
   9952 
   9953 
   9954 $gl_mda_defines
   9955 
   9956         int
   9957         main ()
   9958         {
   9959           int result = 0;
   9960           char const *dangling_symlink = "conftest.dangle";
   9961 
   9962           unlink (dangling_symlink);
   9963           if (symlink ("conftest.no-such", dangling_symlink))
   9964             abort ();
   9965 
   9966           /* Exit successfully on a conforming system,
   9967              i.e., where chown must fail with ENOENT.  */
   9968           if (chown (dangling_symlink, getuid (), getgid ()) == 0)
   9969             result |= 1;
   9970           if (errno != ENOENT)
   9971             result |= 2;
   9972           return result;
   9973         }
   9974 
   9975 _ACEOF
   9976 if ac_fn_c_try_run "$LINENO"; then :
   9977   gl_cv_func_chown_follows_symlink=yes
   9978 else
   9979   gl_cv_func_chown_follows_symlink=no
   9980 fi
   9981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9982   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9983 fi
   9984 
   9985 
   9986 
   9987 fi
   9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_follows_symlink" >&5
   9989 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
   9990 
   9991   case "$gl_cv_func_chown_follows_symlink" in
   9992     *yes) ;;
   9993     *)
   9994 
   9995 $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
   9996 
   9997       ;;
   9998   esac
   9999 
   10000 
   10001 
   10002 
   10003 
   10004 
   10005 
   10006 
   10007 
   10008 
   10009 
   10010 
   10011     if test $ac_cv_func_chown = no; then
   10012     HAVE_CHOWN=0
   10013   else
   10014         case "$gl_cv_func_chown_follows_symlink" in
   10015       *yes) ;;
   10016       *) REPLACE_CHOWN=1 ;;
   10017     esac
   10018 
   10019         case "$ac_cv_func_chown_works" in
   10020       *no)
   10021 
   10022 $as_echo "#define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1" >>confdefs.h
   10023 
   10024         REPLACE_CHOWN=1
   10025         ;;
   10026     esac
   10027 
   10028                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown honors trailing slash" >&5
   10029 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
   10030 if ${gl_cv_func_chown_slash_works+:} false; then :
   10031   $as_echo_n "(cached) " >&6
   10032 else
   10033   touch conftest.file && rm -f conftest.link
   10034        if test "$cross_compiling" = yes; then :
   10035   case "$host_os" in
   10036                     # Guess yes on glibc systems.
   10037            *-gnu*)  gl_cv_func_chown_slash_works="guessing yes" ;;
   10038                     # Guess yes on musl systems.
   10039            *-musl*) gl_cv_func_chown_slash_works="guessing yes" ;;
   10040                     # If we don't know, obey --enable-cross-guesses.
   10041            *)       gl_cv_func_chown_slash_works="$gl_cross_guess_normal" ;;
   10042          esac
   10043 
   10044 else
   10045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10046 /* end confdefs.h.  */
   10047 
   10048 #include <unistd.h>
   10049 #include <stdlib.h>
   10050 #include <errno.h>
   10051 
   10052 
   10053 $gl_mda_defines
   10054 
   10055 int
   10056 main ()
   10057 {
   10058 if (symlink ("conftest.file", "conftest.link")) return 1;
   10059           if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
   10060 
   10061   ;
   10062   return 0;
   10063 }
   10064 _ACEOF
   10065 if ac_fn_c_try_run "$LINENO"; then :
   10066   gl_cv_func_chown_slash_works=yes
   10067 else
   10068   gl_cv_func_chown_slash_works=no
   10069 fi
   10070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10071   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10072 fi
   10073 
   10074       rm -f conftest.link conftest.file
   10075 fi
   10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_slash_works" >&5
   10077 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
   10078     case "$gl_cv_func_chown_slash_works" in
   10079       *yes) ;;
   10080       *)
   10081 
   10082 $as_echo "#define CHOWN_TRAILING_SLASH_BUG 1" >>confdefs.h
   10083 
   10084         REPLACE_CHOWN=1
   10085         ;;
   10086     esac
   10087 
   10088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown always updates ctime" >&5
   10089 $as_echo_n "checking whether chown always updates ctime... " >&6; }
   10090 if ${gl_cv_func_chown_ctime_works+:} false; then :
   10091   $as_echo_n "(cached) " >&6
   10092 else
   10093   if test "$cross_compiling" = yes; then :
   10094   case "$host_os" in
   10095                     # Guess yes on glibc systems.
   10096            *-gnu*)  gl_cv_func_chown_ctime_works="guessing yes" ;;
   10097                     # Guess yes on musl systems.
   10098            *-musl*) gl_cv_func_chown_ctime_works="guessing yes" ;;
   10099                     # If we don't know, obey --enable-cross-guesses.
   10100            *)       gl_cv_func_chown_ctime_works="$gl_cross_guess_normal" ;;
   10101          esac
   10102 
   10103 else
   10104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10105 /* end confdefs.h.  */
   10106 
   10107 #include <unistd.h>
   10108 #include <stdlib.h>
   10109 #include <errno.h>
   10110 #include <fcntl.h>
   10111 #include <sys/stat.h>
   10112 
   10113 
   10114 $gl_mda_defines
   10115 
   10116 int
   10117 main ()
   10118 {
   10119 struct stat st1, st2;
   10120           if (close (creat ("conftest.file", 0600))) return 1;
   10121           if (stat ("conftest.file", &st1)) return 2;
   10122           sleep (1);
   10123           if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
   10124           if (stat ("conftest.file", &st2)) return 4;
   10125           if (st2.st_ctime <= st1.st_ctime) return 5;
   10126 
   10127   ;
   10128   return 0;
   10129 }
   10130 _ACEOF
   10131 if ac_fn_c_try_run "$LINENO"; then :
   10132   gl_cv_func_chown_ctime_works=yes
   10133 else
   10134   gl_cv_func_chown_ctime_works=no
   10135 fi
   10136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10137   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10138 fi
   10139 
   10140       rm -f conftest.file
   10141 fi
   10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_ctime_works" >&5
   10143 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
   10144     case "$gl_cv_func_chown_ctime_works" in
   10145       *yes) ;;
   10146       *)
   10147 
   10148 $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
   10149 
   10150         REPLACE_CHOWN=1
   10151         ;;
   10152     esac
   10153   fi
   10154 
   10155 
   10156 
   10157 
   10158 
   10159   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
   10160     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
   10161 
   10162 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
   10163 
   10164   else
   10165     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
   10166   fi
   10167 
   10168 
   10169 
   10170 
   10171 
   10172     HAVE_OPENDIR=1;
   10173   HAVE_READDIR=1;
   10174   HAVE_REWINDDIR=1;
   10175   HAVE_CLOSEDIR=1;
   10176   HAVE_DECL_DIRFD=1;
   10177   HAVE_DECL_FDOPENDIR=1;
   10178   HAVE_FDOPENDIR=1;
   10179   HAVE_SCANDIR=1;
   10180   HAVE_ALPHASORT=1;
   10181   REPLACE_OPENDIR=0;
   10182   REPLACE_CLOSEDIR=0;
   10183   REPLACE_DIRFD=0;
   10184   REPLACE_FDOPENDIR=0;
   10185 
   10186 
   10187 
   10188 
   10189 
   10190 
   10191 
   10192   GL_GNULIB_OPENDIR=0
   10193 
   10194 
   10195 
   10196   GL_GNULIB_READDIR=0
   10197 
   10198 
   10199 
   10200   GL_GNULIB_REWINDDIR=0
   10201 
   10202 
   10203 
   10204   GL_GNULIB_CLOSEDIR=0
   10205 
   10206 
   10207 
   10208   GL_GNULIB_DIRFD=0
   10209 
   10210 
   10211 
   10212   GL_GNULIB_FDOPENDIR=0
   10213 
   10214 
   10215 
   10216   GL_GNULIB_SCANDIR=0
   10217 
   10218 
   10219 
   10220   GL_GNULIB_ALPHASORT=0
   10221 
   10222 
   10223 
   10224 
   10225     HAVE_ISBLANK=1;
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 
   10235 
   10236 
   10237 
   10238      if test $gl_cv_have_include_next = yes; then
   10239        gl_cv_next_ctype_h='<'ctype.h'>'
   10240      else
   10241        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
   10242 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
   10243 if ${gl_cv_next_ctype_h+:} false; then :
   10244   $as_echo_n "(cached) " >&6
   10245 else
   10246 
   10247 
   10248 
   10249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10250 /* end confdefs.h.  */
   10251 #include <ctype.h>
   10252 _ACEOF
   10253                 case "$host_os" in
   10254     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   10255     *)    gl_absname_cpp="$ac_cpp" ;;
   10256   esac
   10257 
   10258   case "$host_os" in
   10259     mingw*)
   10260                                           gl_dirsep_regex='[/\\]'
   10261       ;;
   10262     *)
   10263       gl_dirsep_regex='\/'
   10264       ;;
   10265   esac
   10266       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   10267   gl_header_literal_regex=`echo 'ctype.h' \
   10268                            | sed -e "$gl_make_literal_regex_sed"`
   10269   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   10270       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   10271       s|^/[^/]|//&|
   10272       p
   10273       q
   10274     }'
   10275 
   10276         gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   10277   sed -n "$gl_absolute_header_sed"`
   10278 
   10279           gl_header=$gl_cv_absolute_ctype_h
   10280           gl_cv_next_ctype_h='"'$gl_header'"'
   10281 
   10282 
   10283 fi
   10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
   10285 $as_echo "$gl_cv_next_ctype_h" >&6; }
   10286      fi
   10287      NEXT_CTYPE_H=$gl_cv_next_ctype_h
   10288 
   10289      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   10290        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   10291        gl_next_as_first_directive='<'ctype.h'>'
   10292      else
   10293        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   10294        gl_next_as_first_directive=$gl_cv_next_ctype_h
   10295      fi
   10296      NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
   10297 
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304 
   10305 
   10306 
   10307 
   10308   GL_GNULIB_ISBLANK=0
   10309 
   10310 
   10311 
   10312 
   10313 
   10314 
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326      if test $gl_cv_have_include_next = yes; then
   10327        gl_cv_next_dirent_h='<'dirent.h'>'
   10328      else
   10329        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
   10330 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
   10331 if ${gl_cv_next_dirent_h+:} false; then :
   10332   $as_echo_n "(cached) " >&6
   10333 else
   10334 
   10335              if test $ac_cv_header_dirent_h = yes; then
   10336 
   10337 
   10338 
   10339 
   10340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10341 /* end confdefs.h.  */
   10342 #include <dirent.h>
   10343 _ACEOF
   10344                 case "$host_os" in
   10345     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   10346     *)    gl_absname_cpp="$ac_cpp" ;;
   10347   esac
   10348 
   10349   case "$host_os" in
   10350     mingw*)
   10351                                           gl_dirsep_regex='[/\\]'
   10352       ;;
   10353     *)
   10354       gl_dirsep_regex='\/'
   10355       ;;
   10356   esac
   10357       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   10358   gl_header_literal_regex=`echo 'dirent.h' \
   10359                            | sed -e "$gl_make_literal_regex_sed"`
   10360   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   10361       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   10362       s|^/[^/]|//&|
   10363       p
   10364       q
   10365     }'
   10366 
   10367         gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   10368   sed -n "$gl_absolute_header_sed"`
   10369 
   10370           gl_header=$gl_cv_absolute_dirent_h
   10371           gl_cv_next_dirent_h='"'$gl_header'"'
   10372           else
   10373                gl_cv_next_dirent_h='<'dirent.h'>'
   10374              fi
   10375 
   10376 
   10377 fi
   10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
   10379 $as_echo "$gl_cv_next_dirent_h" >&6; }
   10380      fi
   10381      NEXT_DIRENT_H=$gl_cv_next_dirent_h
   10382 
   10383      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   10384        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   10385        gl_next_as_first_directive='<'dirent.h'>'
   10386      else
   10387        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   10388        gl_next_as_first_directive=$gl_cv_next_dirent_h
   10389      fi
   10390      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
   10391 
   10392 
   10393 
   10394 
   10395   if test $ac_cv_header_dirent_h = yes; then
   10396     HAVE_DIRENT_H=1
   10397   else
   10398     HAVE_DIRENT_H=0
   10399   fi
   10400 
   10401 
   10402 
   10403 
   10404 
   10405 
   10406 
   10407 
   10408 
   10409 
   10410 
   10411 
   10412 
   10413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
   10414 $as_echo_n "checking if environ is properly declared... " >&6; }
   10415 if ${gt_cv_var_environ_declaration+:} false; then :
   10416   $as_echo_n "(cached) " >&6
   10417 else
   10418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10419 /* end confdefs.h.  */
   10420 #if HAVE_UNISTD_H
   10421      #include <unistd.h>
   10422      #endif
   10423      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
   10424      #include <stdlib.h>
   10425 
   10426             typedef struct { int foo; } foo_t;
   10427             extern foo_t environ;
   10428 int
   10429 main ()
   10430 {
   10431 environ.foo = 1;
   10432   ;
   10433   return 0;
   10434 }
   10435 _ACEOF
   10436 if ac_fn_c_try_compile "$LINENO"; then :
   10437   gt_cv_var_environ_declaration=no
   10438 else
   10439   gt_cv_var_environ_declaration=yes
   10440 fi
   10441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10442 fi
   10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
   10444 $as_echo "$gt_cv_var_environ_declaration" >&6; }
   10445   if test $gt_cv_var_environ_declaration = yes; then
   10446 
   10447 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
   10448 
   10449   fi
   10450 
   10451 
   10452   if test $gt_cv_var_environ_declaration != yes; then
   10453     HAVE_DECL_ENVIRON=0
   10454   fi
   10455 
   10456 
   10457 
   10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
   10459 $as_echo_n "checking for complete errno.h... " >&6; }
   10460 if ${gl_cv_header_errno_h_complete+:} false; then :
   10461   $as_echo_n "(cached) " >&6
   10462 else
   10463 
   10464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10465 /* end confdefs.h.  */
   10466 
   10467 #include <errno.h>
   10468 #if !defined ETXTBSY
   10469 booboo
   10470 #endif
   10471 #if !defined ENOMSG
   10472 booboo
   10473 #endif
   10474 #if !defined EIDRM
   10475 booboo
   10476 #endif
   10477 #if !defined ENOLINK
   10478 booboo
   10479 #endif
   10480 #if !defined EPROTO
   10481 booboo
   10482 #endif
   10483 #if !defined EMULTIHOP
   10484 booboo
   10485 #endif
   10486 #if !defined EBADMSG
   10487 booboo
   10488 #endif
   10489 #if !defined EOVERFLOW
   10490 booboo
   10491 #endif
   10492 #if !defined ENOTSUP
   10493 booboo
   10494 #endif
   10495 #if !defined ENETRESET
   10496 booboo
   10497 #endif
   10498 #if !defined ECONNABORTED
   10499 booboo
   10500 #endif
   10501 #if !defined ESTALE
   10502 booboo
   10503 #endif
   10504 #if !defined EDQUOT
   10505 booboo
   10506 #endif
   10507 #if !defined ECANCELED
   10508 booboo
   10509 #endif
   10510 #if !defined EOWNERDEAD
   10511 booboo
   10512 #endif
   10513 #if !defined ENOTRECOVERABLE
   10514 booboo
   10515 #endif
   10516 #if !defined EILSEQ
   10517 booboo
   10518 #endif
   10519 
   10520 _ACEOF
   10521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10522   $EGREP "booboo" >/dev/null 2>&1; then :
   10523   gl_cv_header_errno_h_complete=no
   10524 else
   10525   gl_cv_header_errno_h_complete=yes
   10526 fi
   10527 rm -f conftest*
   10528 
   10529 
   10530 fi
   10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
   10532 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
   10533   if test $gl_cv_header_errno_h_complete = yes; then
   10534     GL_GENERATE_ERRNO_H=false
   10535   else
   10536 
   10537 
   10538 
   10539 
   10540 
   10541 
   10542 
   10543 
   10544      if test $gl_cv_have_include_next = yes; then
   10545        gl_cv_next_errno_h='<'errno.h'>'
   10546      else
   10547        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
   10548 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
   10549 if ${gl_cv_next_errno_h+:} false; then :
   10550   $as_echo_n "(cached) " >&6
   10551 else
   10552 
   10553 
   10554 
   10555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10556 /* end confdefs.h.  */
   10557 #include <errno.h>
   10558 _ACEOF
   10559                 case "$host_os" in
   10560     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   10561     *)    gl_absname_cpp="$ac_cpp" ;;
   10562   esac
   10563 
   10564   case "$host_os" in
   10565     mingw*)
   10566                                           gl_dirsep_regex='[/\\]'
   10567       ;;
   10568     *)
   10569       gl_dirsep_regex='\/'
   10570       ;;
   10571   esac
   10572       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   10573   gl_header_literal_regex=`echo 'errno.h' \
   10574                            | sed -e "$gl_make_literal_regex_sed"`
   10575   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   10576       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   10577       s|^/[^/]|//&|
   10578       p
   10579       q
   10580     }'
   10581 
   10582         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   10583   sed -n "$gl_absolute_header_sed"`
   10584 
   10585           gl_header=$gl_cv_absolute_errno_h
   10586           gl_cv_next_errno_h='"'$gl_header'"'
   10587 
   10588 
   10589 fi
   10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
   10591 $as_echo "$gl_cv_next_errno_h" >&6; }
   10592      fi
   10593      NEXT_ERRNO_H=$gl_cv_next_errno_h
   10594 
   10595      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   10596        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   10597        gl_next_as_first_directive='<'errno.h'>'
   10598      else
   10599        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   10600        gl_next_as_first_directive=$gl_cv_next_errno_h
   10601      fi
   10602      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
   10603 
   10604 
   10605 
   10606 
   10607     GL_GENERATE_ERRNO_H=true
   10608   fi
   10609 
   10610   if $GL_GENERATE_ERRNO_H; then
   10611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
   10612 $as_echo_n "checking for EMULTIHOP value... " >&6; }
   10613 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
   10614   $as_echo_n "(cached) " >&6
   10615 else
   10616 
   10617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10618 /* end confdefs.h.  */
   10619 
   10620 #include <errno.h>
   10621 #ifdef EMULTIHOP
   10622 yes
   10623 #endif
   10624 
   10625 _ACEOF
   10626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10627   $EGREP "yes" >/dev/null 2>&1; then :
   10628   gl_cv_header_errno_h_EMULTIHOP=yes
   10629 else
   10630   gl_cv_header_errno_h_EMULTIHOP=no
   10631 fi
   10632 rm -f conftest*
   10633 
   10634       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
   10635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10636 /* end confdefs.h.  */
   10637 
   10638 #define _XOPEN_SOURCE_EXTENDED 1
   10639 #include <errno.h>
   10640 #ifdef EMULTIHOP
   10641 yes
   10642 #endif
   10643 
   10644 _ACEOF
   10645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10646   $EGREP "yes" >/dev/null 2>&1; then :
   10647   gl_cv_header_errno_h_EMULTIHOP=hidden
   10648 fi
   10649 rm -f conftest*
   10650 
   10651         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
   10652                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
   10653 #define _XOPEN_SOURCE_EXTENDED 1
   10654 #include <errno.h>
   10655 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   10656 #include <stdio.h>
   10657 #include <stdlib.h>
   10658 "; then :
   10659 
   10660 fi
   10661 
   10662         fi
   10663       fi
   10664 
   10665 fi
   10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
   10667 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
   10668     case $gl_cv_header_errno_h_EMULTIHOP in
   10669       yes | no)
   10670         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
   10671         ;;
   10672       *)
   10673         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
   10674         ;;
   10675     esac
   10676 
   10677 
   10678   fi
   10679 
   10680 
   10681   if $GL_GENERATE_ERRNO_H; then
   10682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
   10683 $as_echo_n "checking for ENOLINK value... " >&6; }
   10684 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
   10685   $as_echo_n "(cached) " >&6
   10686 else
   10687 
   10688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10689 /* end confdefs.h.  */
   10690 
   10691 #include <errno.h>
   10692 #ifdef ENOLINK
   10693 yes
   10694 #endif
   10695 
   10696 _ACEOF
   10697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10698   $EGREP "yes" >/dev/null 2>&1; then :
   10699   gl_cv_header_errno_h_ENOLINK=yes
   10700 else
   10701   gl_cv_header_errno_h_ENOLINK=no
   10702 fi
   10703 rm -f conftest*
   10704 
   10705       if test $gl_cv_header_errno_h_ENOLINK = no; then
   10706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10707 /* end confdefs.h.  */
   10708 
   10709 #define _XOPEN_SOURCE_EXTENDED 1
   10710 #include <errno.h>
   10711 #ifdef ENOLINK
   10712 yes
   10713 #endif
   10714 
   10715 _ACEOF
   10716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10717   $EGREP "yes" >/dev/null 2>&1; then :
   10718   gl_cv_header_errno_h_ENOLINK=hidden
   10719 fi
   10720 rm -f conftest*
   10721 
   10722         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
   10723                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
   10724 #define _XOPEN_SOURCE_EXTENDED 1
   10725 #include <errno.h>
   10726 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   10727 #include <stdio.h>
   10728 #include <stdlib.h>
   10729 "; then :
   10730 
   10731 fi
   10732 
   10733         fi
   10734       fi
   10735 
   10736 fi
   10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
   10738 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
   10739     case $gl_cv_header_errno_h_ENOLINK in
   10740       yes | no)
   10741         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
   10742         ;;
   10743       *)
   10744         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
   10745         ;;
   10746     esac
   10747 
   10748 
   10749   fi
   10750 
   10751 
   10752   if $GL_GENERATE_ERRNO_H; then
   10753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
   10754 $as_echo_n "checking for EOVERFLOW value... " >&6; }
   10755 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
   10756   $as_echo_n "(cached) " >&6
   10757 else
   10758 
   10759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10760 /* end confdefs.h.  */
   10761 
   10762 #include <errno.h>
   10763 #ifdef EOVERFLOW
   10764 yes
   10765 #endif
   10766 
   10767 _ACEOF
   10768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10769   $EGREP "yes" >/dev/null 2>&1; then :
   10770   gl_cv_header_errno_h_EOVERFLOW=yes
   10771 else
   10772   gl_cv_header_errno_h_EOVERFLOW=no
   10773 fi
   10774 rm -f conftest*
   10775 
   10776       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
   10777         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10778 /* end confdefs.h.  */
   10779 
   10780 #define _XOPEN_SOURCE_EXTENDED 1
   10781 #include <errno.h>
   10782 #ifdef EOVERFLOW
   10783 yes
   10784 #endif
   10785 
   10786 _ACEOF
   10787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10788   $EGREP "yes" >/dev/null 2>&1; then :
   10789   gl_cv_header_errno_h_EOVERFLOW=hidden
   10790 fi
   10791 rm -f conftest*
   10792 
   10793         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
   10794                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
   10795 #define _XOPEN_SOURCE_EXTENDED 1
   10796 #include <errno.h>
   10797 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
   10798 #include <stdio.h>
   10799 #include <stdlib.h>
   10800 "; then :
   10801 
   10802 fi
   10803 
   10804         fi
   10805       fi
   10806 
   10807 fi
   10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
   10809 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
   10810     case $gl_cv_header_errno_h_EOVERFLOW in
   10811       yes | no)
   10812         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
   10813         ;;
   10814       *)
   10815         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
   10816         ;;
   10817     esac
   10818 
   10819 
   10820   fi
   10821 
   10822 
   10823 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   10824 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
   10825   ac_have_decl=1
   10826 else
   10827   ac_have_decl=0
   10828 fi
   10829 
   10830 cat >>confdefs.h <<_ACEOF
   10831 #define HAVE_DECL_STRERROR_R $ac_have_decl
   10832 _ACEOF
   10833 
   10834 for ac_func in strerror_r
   10835 do :
   10836   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
   10837 if test "x$ac_cv_func_strerror_r" = xyes; then :
   10838   cat >>confdefs.h <<_ACEOF
   10839 #define HAVE_STRERROR_R 1
   10840 _ACEOF
   10841 
   10842 fi
   10843 done
   10844 
   10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
   10846 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
   10847 if ${ac_cv_func_strerror_r_char_p+:} false; then :
   10848   $as_echo_n "(cached) " >&6
   10849 else
   10850 
   10851     ac_cv_func_strerror_r_char_p=no
   10852     if test $ac_cv_have_decl_strerror_r = yes; then
   10853       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10854 /* end confdefs.h.  */
   10855 $ac_includes_default
   10856 int
   10857 main ()
   10858 {
   10859 
   10860 	  char buf[100];
   10861 	  char x = *strerror_r (0, buf, sizeof buf);
   10862 	  char *p = strerror_r (0, buf, sizeof buf);
   10863 	  return !p || x;
   10864 
   10865   ;
   10866   return 0;
   10867 }
   10868 _ACEOF
   10869 if ac_fn_c_try_compile "$LINENO"; then :
   10870   ac_cv_func_strerror_r_char_p=yes
   10871 fi
   10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10873     else
   10874       # strerror_r is not declared.  Choose between
   10875       # systems that have relatively inaccessible declarations for the
   10876       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   10877       # former has a strerror_r that returns char*, while the latter
   10878       # has a strerror_r that returns `int'.
   10879       # This test should segfault on the DEC system.
   10880       if test "$cross_compiling" = yes; then :
   10881   :
   10882 else
   10883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10884 /* end confdefs.h.  */
   10885 $ac_includes_default
   10886 	extern char *strerror_r ();
   10887 int
   10888 main ()
   10889 {
   10890 char buf[100];
   10891 	  char x = *strerror_r (0, buf, sizeof buf);
   10892 	  return ! isalpha (x);
   10893   ;
   10894   return 0;
   10895 }
   10896 _ACEOF
   10897 if ac_fn_c_try_run "$LINENO"; then :
   10898   ac_cv_func_strerror_r_char_p=yes
   10899 fi
   10900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10901   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10902 fi
   10903 
   10904     fi
   10905 
   10906 fi
   10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
   10908 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
   10909 if test $ac_cv_func_strerror_r_char_p = yes; then
   10910 
   10911 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
   10912 
   10913 fi
   10914 
   10915 
   10916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
   10917 $as_echo_n "checking whether ctype.h defines __header_inline... " >&6; }
   10918 if ${gl_cv_have___header_inline+:} false; then :
   10919   $as_echo_n "(cached) " >&6
   10920 else
   10921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10922 /* end confdefs.h.  */
   10923 #include <ctype.h>
   10924                          #ifndef __header_inline
   10925                           #error "<ctype.h> does not define __header_inline"
   10926                          #endif
   10927 
   10928 _ACEOF
   10929 if ac_fn_c_try_cpp "$LINENO"; then :
   10930   gl_cv_have___header_inline=yes
   10931 else
   10932   gl_cv_have___header_inline=no
   10933 fi
   10934 rm -f conftest.err conftest.i conftest.$ac_ext
   10935 fi
   10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
   10937 $as_echo "$gl_cv_have___header_inline" >&6; }
   10938   if test "$gl_cv_have___header_inline" = yes; then
   10939 
   10940 $as_echo "#define HAVE___HEADER_INLINE 1" >>confdefs.h
   10941 
   10942   fi
   10943 
   10944 
   10945 
   10946 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
   10947 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
   10948   ac_have_decl=1
   10949 else
   10950   ac_have_decl=0
   10951 fi
   10952 
   10953 cat >>confdefs.h <<_ACEOF
   10954 #define HAVE_DECL_FCHDIR $ac_have_decl
   10955 _ACEOF
   10956 
   10957 
   10958     HAVE_FCNTL=1;
   10959   HAVE_OPENAT=1;
   10960   REPLACE_CREAT=0;
   10961   REPLACE_FCNTL=0;
   10962   REPLACE_OPEN=0;
   10963   REPLACE_OPENAT=0;
   10964 
   10965 
   10966 
   10967 
   10968 
   10969   GL_GNULIB_CREAT=0
   10970 
   10971 
   10972 
   10973   GL_GNULIB_FCNTL=0
   10974 
   10975 
   10976 
   10977   GL_GNULIB_NONBLOCKING=0
   10978 
   10979 
   10980 
   10981   GL_GNULIB_OPEN=0
   10982 
   10983 
   10984 
   10985   GL_GNULIB_OPENAT=0
   10986 
   10987 
   10988 
   10989   GL_GNULIB_MDA_CREAT=1
   10990 
   10991 
   10992 
   10993   GL_GNULIB_MDA_OPEN=1
   10994 
   10995 
   10996 
   10997 
   10998 
   10999 
   11000 
   11001 
   11002 
   11003 
   11004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
   11005 $as_echo_n "checking for working fcntl.h... " >&6; }
   11006 if ${gl_cv_header_working_fcntl_h+:} false; then :
   11007   $as_echo_n "(cached) " >&6
   11008 else
   11009   if test "$cross_compiling" = yes; then :
   11010   case "$host_os" in
   11011                   # Guess 'no' on native Windows.
   11012           mingw*) gl_cv_header_working_fcntl_h='no' ;;
   11013           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
   11014         esac
   11015 
   11016 else
   11017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11018 /* end confdefs.h.  */
   11019 #include <sys/types.h>
   11020            #include <sys/stat.h>
   11021            #if HAVE_UNISTD_H
   11022            # include <unistd.h>
   11023            #else /* on Windows with MSVC */
   11024            # include <io.h>
   11025            # include <stdlib.h>
   11026            # defined sleep(n) _sleep ((n) * 1000)
   11027            #endif
   11028            #include <fcntl.h>
   11029 
   11030 
   11031 $gl_mda_defines
   11032 
   11033            #ifndef O_NOATIME
   11034             #define O_NOATIME 0
   11035            #endif
   11036            #ifndef O_NOFOLLOW
   11037             #define O_NOFOLLOW 0
   11038            #endif
   11039            static int const constants[] =
   11040             {
   11041               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
   11042               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
   11043             };
   11044 
   11045 int
   11046 main ()
   11047 {
   11048 
   11049             int result = !constants;
   11050             #if HAVE_SYMLINK
   11051             {
   11052               static char const sym[] = "conftest.sym";
   11053               if (symlink ("/dev/null", sym) != 0)
   11054                 result |= 2;
   11055               else
   11056                 {
   11057                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
   11058                   if (fd >= 0)
   11059                     {
   11060                       close (fd);
   11061                       result |= 4;
   11062                     }
   11063                 }
   11064               if (unlink (sym) != 0 || symlink (".", sym) != 0)
   11065                 result |= 2;
   11066               else
   11067                 {
   11068                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
   11069                   if (fd >= 0)
   11070                     {
   11071                       close (fd);
   11072                       result |= 4;
   11073                     }
   11074                 }
   11075               unlink (sym);
   11076             }
   11077             #endif
   11078             {
   11079               static char const file[] = "confdefs.h";
   11080               int fd = open (file, O_RDONLY | O_NOATIME);
   11081               if (fd < 0)
   11082                 result |= 8;
   11083               else
   11084                 {
   11085                   struct stat st0;
   11086                   if (fstat (fd, &st0) != 0)
   11087                     result |= 16;
   11088                   else
   11089                     {
   11090                       char c;
   11091                       sleep (1);
   11092                       if (read (fd, &c, 1) != 1)
   11093                         result |= 24;
   11094                       else
   11095                         {
   11096                           if (close (fd) != 0)
   11097                             result |= 32;
   11098                           else
   11099                             {
   11100                               struct stat st1;
   11101                               if (stat (file, &st1) != 0)
   11102                                 result |= 40;
   11103                               else
   11104                                 if (st0.st_atime != st1.st_atime)
   11105                                   result |= 64;
   11106                             }
   11107                         }
   11108                     }
   11109                 }
   11110             }
   11111             return result;
   11112   ;
   11113   return 0;
   11114 }
   11115 _ACEOF
   11116 if ac_fn_c_try_run "$LINENO"; then :
   11117   gl_cv_header_working_fcntl_h=yes
   11118 else
   11119   case $? in #(
   11120         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
   11121         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
   11122         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
   11123          *) gl_cv_header_working_fcntl_h='no';;
   11124         esac
   11125 fi
   11126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11127   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11128 fi
   11129 
   11130 
   11131 fi
   11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
   11133 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
   11134 
   11135   case $gl_cv_header_working_fcntl_h in #(
   11136   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
   11137   *) ac_val=1;;
   11138   esac
   11139 
   11140 cat >>confdefs.h <<_ACEOF
   11141 #define HAVE_WORKING_O_NOATIME $ac_val
   11142 _ACEOF
   11143 
   11144 
   11145   case $gl_cv_header_working_fcntl_h in #(
   11146   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
   11147   *) ac_val=1;;
   11148   esac
   11149 
   11150 cat >>confdefs.h <<_ACEOF
   11151 #define HAVE_WORKING_O_NOFOLLOW $ac_val
   11152 _ACEOF
   11153 
   11154 
   11155 
   11156   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
   11157 "
   11158 if test "x$ac_cv_type_pid_t" = xyes; then :
   11159 
   11160 else
   11161                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11162 /* end confdefs.h.  */
   11163 
   11164           #if defined _WIN64 && !defined __CYGWIN__
   11165           LLP64
   11166           #endif
   11167 
   11168 int
   11169 main ()
   11170 {
   11171 
   11172   ;
   11173   return 0;
   11174 }
   11175 
   11176 _ACEOF
   11177 if ac_fn_c_try_compile "$LINENO"; then :
   11178   gl_pid_type='int'
   11179 else
   11180   gl_pid_type='__int64'
   11181 fi
   11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11183 
   11184 cat >>confdefs.h <<_ACEOF
   11185 #define pid_t $gl_pid_type
   11186 _ACEOF
   11187 
   11188 
   11189 fi
   11190 
   11191 
   11192 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   11193 if test "x$ac_cv_type_mode_t" = xyes; then :
   11194 
   11195 else
   11196 
   11197 cat >>confdefs.h <<_ACEOF
   11198 #define mode_t int
   11199 _ACEOF
   11200 
   11201 fi
   11202 
   11203 
   11204 
   11205 
   11206 
   11207 
   11208 
   11209 
   11210 
   11211 
   11212 
   11213 
   11214      if test $gl_cv_have_include_next = yes; then
   11215        gl_cv_next_fcntl_h='<'fcntl.h'>'
   11216      else
   11217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
   11218 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
   11219 if ${gl_cv_next_fcntl_h+:} false; then :
   11220   $as_echo_n "(cached) " >&6
   11221 else
   11222 
   11223 
   11224 
   11225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11226 /* end confdefs.h.  */
   11227 #include <fcntl.h>
   11228 _ACEOF
   11229                 case "$host_os" in
   11230     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   11231     *)    gl_absname_cpp="$ac_cpp" ;;
   11232   esac
   11233 
   11234   case "$host_os" in
   11235     mingw*)
   11236                                           gl_dirsep_regex='[/\\]'
   11237       ;;
   11238     *)
   11239       gl_dirsep_regex='\/'
   11240       ;;
   11241   esac
   11242       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   11243   gl_header_literal_regex=`echo 'fcntl.h' \
   11244                            | sed -e "$gl_make_literal_regex_sed"`
   11245   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   11246       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   11247       s|^/[^/]|//&|
   11248       p
   11249       q
   11250     }'
   11251 
   11252         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   11253   sed -n "$gl_absolute_header_sed"`
   11254 
   11255           gl_header=$gl_cv_absolute_fcntl_h
   11256           gl_cv_next_fcntl_h='"'$gl_header'"'
   11257 
   11258 
   11259 fi
   11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
   11261 $as_echo "$gl_cv_next_fcntl_h" >&6; }
   11262      fi
   11263      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
   11264 
   11265      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   11266        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   11267        gl_next_as_first_directive='<'fcntl.h'>'
   11268      else
   11269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   11270        gl_next_as_first_directive=$gl_cv_next_fcntl_h
   11271      fi
   11272      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
   11273 
   11274 
   11275 
   11276 
   11277 
   11278 
   11279 
   11280 
   11281 
   11282 
   11283 
   11284 
   11285 
   11286 
   11287 
   11288 
   11289     HAVE_FFS=1;
   11290   HAVE_STRCASECMP=1;
   11291   HAVE_DECL_STRNCASECMP=1;
   11292 
   11293 
   11294 
   11295   GL_GNULIB_FFS=0
   11296 
   11297 
   11298 
   11299 
   11300 
   11301 
   11302     HAVE_FNMATCH=1;
   11303   REPLACE_FNMATCH=0;
   11304 
   11305 
   11306 
   11307 
   11308 
   11309 
   11310 
   11311 
   11312 
   11313 
   11314 
   11315 
   11316 
   11317 
   11318 
   11319 
   11320      if test $gl_cv_have_include_next = yes; then
   11321        gl_cv_next_fnmatch_h='<'fnmatch.h'>'
   11322      else
   11323        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
   11324 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
   11325 if ${gl_cv_next_fnmatch_h+:} false; then :
   11326   $as_echo_n "(cached) " >&6
   11327 else
   11328 
   11329              if test $ac_cv_header_fnmatch_h = yes; then
   11330 
   11331 
   11332 
   11333 
   11334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11335 /* end confdefs.h.  */
   11336 #include <fnmatch.h>
   11337 _ACEOF
   11338                 case "$host_os" in
   11339     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   11340     *)    gl_absname_cpp="$ac_cpp" ;;
   11341   esac
   11342 
   11343   case "$host_os" in
   11344     mingw*)
   11345                                           gl_dirsep_regex='[/\\]'
   11346       ;;
   11347     *)
   11348       gl_dirsep_regex='\/'
   11349       ;;
   11350   esac
   11351       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   11352   gl_header_literal_regex=`echo 'fnmatch.h' \
   11353                            | sed -e "$gl_make_literal_regex_sed"`
   11354   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   11355       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   11356       s|^/[^/]|//&|
   11357       p
   11358       q
   11359     }'
   11360 
   11361         gl_cv_absolute_fnmatch_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   11362   sed -n "$gl_absolute_header_sed"`
   11363 
   11364           gl_header=$gl_cv_absolute_fnmatch_h
   11365           gl_cv_next_fnmatch_h='"'$gl_header'"'
   11366           else
   11367                gl_cv_next_fnmatch_h='<'fnmatch.h'>'
   11368              fi
   11369 
   11370 
   11371 fi
   11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
   11373 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
   11374      fi
   11375      NEXT_FNMATCH_H=$gl_cv_next_fnmatch_h
   11376 
   11377      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   11378        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   11379        gl_next_as_first_directive='<'fnmatch.h'>'
   11380      else
   11381        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   11382        gl_next_as_first_directive=$gl_cv_next_fnmatch_h
   11383      fi
   11384      NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H=$gl_next_as_first_directive
   11385 
   11386 
   11387 
   11388 
   11389 
   11390 
   11391 
   11392   if test $ac_cv_header_fnmatch_h = yes; then
   11393     HAVE_FNMATCH_H=1
   11394   else
   11395     HAVE_FNMATCH_H=0
   11396   fi
   11397 
   11398 
   11399   GL_GENERATE_FNMATCH_H=false
   11400      if false; then
   11401               GL_GENERATE_FNMATCH_H=true
   11402      else
   11403        if test $ac_cv_header_fnmatch_h != yes; then
   11404                   GL_GENERATE_FNMATCH_H=true
   11405        fi
   11406      fi
   11407 
   11408 
   11409 
   11410 
   11411 
   11412 
   11413 
   11414 
   11415 
   11416 
   11417   GL_GNULIB_FNMATCH=0
   11418 
   11419 
   11420 
   11421 
   11422 
   11423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
   11424 $as_echo_n "checking for mbstate_t... " >&6; }
   11425 if ${ac_cv_type_mbstate_t+:} false; then :
   11426   $as_echo_n "(cached) " >&6
   11427 else
   11428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11429 /* end confdefs.h.  */
   11430 $ac_includes_default
   11431              #include <wchar.h>
   11432 int
   11433 main ()
   11434 {
   11435 mbstate_t x; return sizeof x;
   11436   ;
   11437   return 0;
   11438 }
   11439 _ACEOF
   11440 if ac_fn_c_try_compile "$LINENO"; then :
   11441   ac_cv_type_mbstate_t=yes
   11442 else
   11443   ac_cv_type_mbstate_t=no
   11444 fi
   11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11446 fi
   11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
   11448 $as_echo "$ac_cv_type_mbstate_t" >&6; }
   11449    if test $ac_cv_type_mbstate_t = yes; then
   11450 
   11451 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
   11452 
   11453    else
   11454 
   11455 $as_echo "#define mbstate_t int" >>confdefs.h
   11456 
   11457    fi
   11458 
   11459 
   11460 
   11461 
   11462     HAVE_ACOSF=1;
   11463   HAVE_ACOSL=1;
   11464   HAVE_ASINF=1;
   11465   HAVE_ASINL=1;
   11466   HAVE_ATANF=1;
   11467   HAVE_ATANL=1;
   11468   HAVE_ATAN2F=1;
   11469   HAVE_CBRT=1;
   11470   HAVE_CBRTF=1;
   11471   HAVE_CBRTL=1;
   11472   HAVE_COPYSIGN=1;
   11473   HAVE_COPYSIGNL=1;
   11474   HAVE_COSF=1;
   11475   HAVE_COSL=1;
   11476   HAVE_COSHF=1;
   11477   HAVE_EXPF=1;
   11478   HAVE_EXPL=1;
   11479   HAVE_EXPM1=1;
   11480   HAVE_EXPM1F=1;
   11481   HAVE_FABSF=1;
   11482   HAVE_FABSL=1;
   11483   HAVE_FMA=1;
   11484   HAVE_FMAF=1;
   11485   HAVE_FMAL=1;
   11486   HAVE_FMODF=1;
   11487   HAVE_FMODL=1;
   11488   HAVE_FREXPF=1;
   11489   HAVE_HYPOTF=1;
   11490   HAVE_HYPOTL=1;
   11491   HAVE_ILOGB=1;
   11492   HAVE_ILOGBF=1;
   11493   HAVE_ILOGBL=1;
   11494   HAVE_ISNANF=1;
   11495   HAVE_ISNAND=1;
   11496   HAVE_ISNANL=1;
   11497   HAVE_LDEXPF=1;
   11498   HAVE_LOGF=1;
   11499   HAVE_LOGL=1;
   11500   HAVE_LOG10F=1;
   11501   HAVE_LOG10L=1;
   11502   HAVE_LOG1P=1;
   11503   HAVE_LOG1PF=1;
   11504   HAVE_LOG1PL=1;
   11505   HAVE_LOGBF=1;
   11506   HAVE_LOGBL=1;
   11507   HAVE_MODFF=1;
   11508   HAVE_MODFL=1;
   11509   HAVE_POWF=1;
   11510   HAVE_REMAINDER=1;
   11511   HAVE_REMAINDERF=1;
   11512   HAVE_RINT=1;
   11513   HAVE_RINTL=1;
   11514   HAVE_SINF=1;
   11515   HAVE_SINL=1;
   11516   HAVE_SINHF=1;
   11517   HAVE_SQRTF=1;
   11518   HAVE_SQRTL=1;
   11519   HAVE_TANF=1;
   11520   HAVE_TANL=1;
   11521   HAVE_TANHF=1;
   11522   HAVE_DECL_ACOSL=1;
   11523   HAVE_DECL_ASINL=1;
   11524   HAVE_DECL_ATANL=1;
   11525   HAVE_DECL_CBRTF=1;
   11526   HAVE_DECL_CBRTL=1;
   11527   HAVE_DECL_CEILF=1;
   11528   HAVE_DECL_CEILL=1;
   11529   HAVE_DECL_COPYSIGNF=1;
   11530   HAVE_DECL_COSL=1;
   11531   HAVE_DECL_EXPL=1;
   11532   HAVE_DECL_EXP2=1;
   11533   HAVE_DECL_EXP2F=1;
   11534   HAVE_DECL_EXP2L=1;
   11535   HAVE_DECL_EXPM1L=1;
   11536   HAVE_DECL_FLOORF=1;
   11537   HAVE_DECL_FLOORL=1;
   11538   HAVE_DECL_FREXPL=1;
   11539   HAVE_DECL_LDEXPL=1;
   11540   HAVE_DECL_LOGL=1;
   11541   HAVE_DECL_LOG10L=1;
   11542   HAVE_DECL_LOG2=1;
   11543   HAVE_DECL_LOG2F=1;
   11544   HAVE_DECL_LOG2L=1;
   11545   HAVE_DECL_LOGB=1;
   11546   HAVE_DECL_REMAINDER=1;
   11547   HAVE_DECL_REMAINDERL=1;
   11548   HAVE_DECL_RINTF=1;
   11549   HAVE_DECL_ROUND=1;
   11550   HAVE_DECL_ROUNDF=1;
   11551   HAVE_DECL_ROUNDL=1;
   11552   HAVE_DECL_SINL=1;
   11553   HAVE_DECL_SQRTL=1;
   11554   HAVE_DECL_TANL=1;
   11555   HAVE_DECL_TRUNC=1;
   11556   HAVE_DECL_TRUNCF=1;
   11557   HAVE_DECL_TRUNCL=1;
   11558   REPLACE_ACOSF=0;
   11559   REPLACE_ASINF=0;
   11560   REPLACE_ATANF=0;
   11561   REPLACE_ATAN2F=0;
   11562   REPLACE_CBRTF=0;
   11563   REPLACE_CBRTL=0;
   11564   REPLACE_CEIL=0;
   11565   REPLACE_CEILF=0;
   11566   REPLACE_CEILL=0;
   11567   REPLACE_COSF=0;
   11568   REPLACE_COSHF=0;
   11569   REPLACE_EXPF=0;
   11570   REPLACE_EXPL=0;
   11571   REPLACE_EXPM1=0;
   11572   REPLACE_EXPM1F=0;
   11573   REPLACE_EXPM1L=0;
   11574   REPLACE_EXP2=0;
   11575   REPLACE_EXP2L=0;
   11576   REPLACE_FABSL=0;
   11577   REPLACE_FLOOR=0;
   11578   REPLACE_FLOORF=0;
   11579   REPLACE_FLOORL=0;
   11580   REPLACE_FMA=0;
   11581   REPLACE_FMAF=0;
   11582   REPLACE_FMAL=0;
   11583   REPLACE_FMOD=0;
   11584   REPLACE_FMODF=0;
   11585   REPLACE_FMODL=0;
   11586   REPLACE_FREXPF=0;
   11587   REPLACE_FREXP=0;
   11588   REPLACE_FREXPL=0;
   11589   REPLACE_HUGE_VAL=0;
   11590   REPLACE_HYPOT=0;
   11591   REPLACE_HYPOTF=0;
   11592   REPLACE_HYPOTL=0;
   11593   REPLACE_ILOGB=0;
   11594   REPLACE_ILOGBF=0;
   11595   REPLACE_ILOGBL=0;
   11596   REPLACE_ISFINITE=0;
   11597   REPLACE_ISINF=0;
   11598   REPLACE_ISNAN=0;
   11599   REPLACE_LDEXPL=0;
   11600   REPLACE_LOG=0;
   11601   REPLACE_LOGF=0;
   11602   REPLACE_LOGL=0;
   11603   REPLACE_LOG10=0;
   11604   REPLACE_LOG10F=0;
   11605   REPLACE_LOG10L=0;
   11606   REPLACE_LOG1P=0;
   11607   REPLACE_LOG1PF=0;
   11608   REPLACE_LOG1PL=0;
   11609   REPLACE_LOG2=0;
   11610   REPLACE_LOG2F=0;
   11611   REPLACE_LOG2L=0;
   11612   REPLACE_LOGB=0;
   11613   REPLACE_LOGBF=0;
   11614   REPLACE_LOGBL=0;
   11615   REPLACE_MODF=0;
   11616   REPLACE_MODFF=0;
   11617   REPLACE_MODFL=0;
   11618   REPLACE_NAN=0;
   11619   REPLACE_REMAINDER=0;
   11620   REPLACE_REMAINDERF=0;
   11621   REPLACE_REMAINDERL=0;
   11622   REPLACE_RINTL=0;
   11623   REPLACE_ROUND=0;
   11624   REPLACE_ROUNDF=0;
   11625   REPLACE_ROUNDL=0;
   11626   REPLACE_SIGNBIT=0;
   11627   REPLACE_SIGNBIT_USING_BUILTINS=0;
   11628   REPLACE_SINF=0;
   11629   REPLACE_SINHF=0;
   11630   REPLACE_SQRTF=0;
   11631   REPLACE_SQRTL=0;
   11632   REPLACE_TANF=0;
   11633   REPLACE_TANHF=0;
   11634   REPLACE_TRUNC=0;
   11635   REPLACE_TRUNCF=0;
   11636   REPLACE_TRUNCL=0;
   11637 
   11638 
   11639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
   11640 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
   11641 if ${gl_cv_func_frexp_no_libm+:} false; then :
   11642   $as_echo_n "(cached) " >&6
   11643 else
   11644 
   11645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11646 /* end confdefs.h.  */
   11647 #include <math.h>
   11648              double x;
   11649 int
   11650 main ()
   11651 {
   11652 int e; return frexp (x, &e) > 0;
   11653   ;
   11654   return 0;
   11655 }
   11656 _ACEOF
   11657 if ac_fn_c_try_link "$LINENO"; then :
   11658   gl_cv_func_frexp_no_libm=yes
   11659 else
   11660   gl_cv_func_frexp_no_libm=no
   11661 fi
   11662 rm -f core conftest.err conftest.$ac_objext \
   11663     conftest$ac_exeext conftest.$ac_ext
   11664 
   11665 fi
   11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
   11667 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
   11668 
   11669 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
   11670 if test "x$ac_cv_have_decl_alarm" = xyes; then :
   11671   ac_have_decl=1
   11672 else
   11673   ac_have_decl=0
   11674 fi
   11675 
   11676 cat >>confdefs.h <<_ACEOF
   11677 #define HAVE_DECL_ALARM $ac_have_decl
   11678 _ACEOF
   11679 
   11680 
   11681 
   11682 
   11683   FREXP_LIBM=
   11684   if test $gl_cv_func_frexp_no_libm = no; then
   11685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
   11686 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
   11687 if ${gl_cv_func_frexp_in_libm+:} false; then :
   11688   $as_echo_n "(cached) " >&6
   11689 else
   11690 
   11691         save_LIBS="$LIBS"
   11692         LIBS="$LIBS -lm"
   11693         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11694 /* end confdefs.h.  */
   11695 #include <math.h>
   11696                double x;
   11697 int
   11698 main ()
   11699 {
   11700 int e; return frexp (x, &e) > 0;
   11701   ;
   11702   return 0;
   11703 }
   11704 _ACEOF
   11705 if ac_fn_c_try_link "$LINENO"; then :
   11706   gl_cv_func_frexp_in_libm=yes
   11707 else
   11708   gl_cv_func_frexp_in_libm=no
   11709 fi
   11710 rm -f core conftest.err conftest.$ac_objext \
   11711     conftest$ac_exeext conftest.$ac_ext
   11712         LIBS="$save_LIBS"
   11713 
   11714 fi
   11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
   11716 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
   11717     if test $gl_cv_func_frexp_in_libm = yes; then
   11718       FREXP_LIBM=-lm
   11719     fi
   11720   fi
   11721   if test $gl_cv_func_frexp_no_libm = yes \
   11722      || test $gl_cv_func_frexp_in_libm = yes; then
   11723     save_LIBS="$LIBS"
   11724     LIBS="$LIBS $FREXP_LIBM"
   11725 
   11726 
   11727 
   11728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
   11729 $as_echo_n "checking whether frexp works... " >&6; }
   11730 if ${gl_cv_func_frexp_works+:} false; then :
   11731   $as_echo_n "(cached) " >&6
   11732 else
   11733 
   11734       if test "$cross_compiling" = yes; then :
   11735   case "$host_os" in
   11736            netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
   11737            mingw*) # Guess yes with MSVC, no with mingw.
   11738              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11739 /* end confdefs.h.  */
   11740 
   11741 #ifdef _MSC_VER
   11742  Good
   11743 #endif
   11744 
   11745 _ACEOF
   11746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11747   $EGREP "Good" >/dev/null 2>&1; then :
   11748   gl_cv_func_frexp_works="guessing yes"
   11749 else
   11750   gl_cv_func_frexp_works="guessing no"
   11751 fi
   11752 rm -f conftest*
   11753 
   11754              ;;
   11755            *) gl_cv_func_frexp_works="guessing yes" ;;
   11756          esac
   11757 
   11758 else
   11759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11760 /* end confdefs.h.  */
   11761 
   11762 #include <float.h>
   11763 #include <math.h>
   11764 #include <string.h>
   11765 #if HAVE_DECL_ALARM
   11766 # include <signal.h>
   11767 # include <unistd.h>
   11768 #endif
   11769 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
   11770    ICC 10.0 has a bug when optimizing the expression -zero.
   11771    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
   11772    to PowerPC on Mac OS X 10.5.  */
   11773 #if defined __hpux || defined __sgi || defined __ICC
   11774 static double
   11775 compute_minus_zero (void)
   11776 {
   11777   return -DBL_MIN * DBL_MIN;
   11778 }
   11779 # define minus_zero compute_minus_zero ()
   11780 #else
   11781 double minus_zero = -0.0;
   11782 #endif
   11783 int main()
   11784 {
   11785   int result = 0;
   11786   int i;
   11787   volatile double x;
   11788   double zero = 0.0;
   11789 #if HAVE_DECL_ALARM
   11790   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
   11791      number.  Let the test fail in this case.  */
   11792   signal (SIGALRM, SIG_DFL);
   11793   alarm (5);
   11794 #endif
   11795   /* Test on denormalized numbers.  */
   11796   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
   11797     ;
   11798   if (x > 0.0)
   11799     {
   11800       int exp;
   11801       double y = frexp (x, &exp);
   11802       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
   11803          On NetBSD: y = 0.75. Correct: y = 0.5.  */
   11804       if (y != 0.5)
   11805         result |= 1;
   11806     }
   11807   /* Test on infinite numbers.  */
   11808   x = 1.0 / zero;
   11809   {
   11810     int exp;
   11811     double y = frexp (x, &exp);
   11812     if (y != x)
   11813       result |= 2;
   11814   }
   11815   /* Test on negative zero.  */
   11816   x = minus_zero;
   11817   {
   11818     int exp;
   11819     double y = frexp (x, &exp);
   11820     if (memcmp (&y, &x, sizeof x))
   11821       result |= 4;
   11822   }
   11823   return result;
   11824 }
   11825 _ACEOF
   11826 if ac_fn_c_try_run "$LINENO"; then :
   11827   gl_cv_func_frexp_works=yes
   11828 else
   11829   gl_cv_func_frexp_works=no
   11830 fi
   11831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11832   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11833 fi
   11834 
   11835 
   11836 fi
   11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
   11838 $as_echo "$gl_cv_func_frexp_works" >&6; }
   11839 
   11840     LIBS="$save_LIBS"
   11841     case "$gl_cv_func_frexp_works" in
   11842       *yes) gl_func_frexp=yes ;;
   11843       *)    gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
   11844     esac
   11845   else
   11846     gl_func_frexp=no
   11847   fi
   11848   if test $gl_func_frexp = yes; then
   11849 
   11850 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
   11851 
   11852   fi
   11853 
   11854 
   11855 
   11856 
   11857   GL_GNULIB_ACOSF=0
   11858 
   11859 
   11860 
   11861   GL_GNULIB_ACOSL=0
   11862 
   11863 
   11864 
   11865   GL_GNULIB_ASINF=0
   11866 
   11867 
   11868 
   11869   GL_GNULIB_ASINL=0
   11870 
   11871 
   11872 
   11873   GL_GNULIB_ATANF=0
   11874 
   11875 
   11876 
   11877   GL_GNULIB_ATANL=0
   11878 
   11879 
   11880 
   11881   GL_GNULIB_ATAN2F=0
   11882 
   11883 
   11884 
   11885   GL_GNULIB_CBRT=0
   11886 
   11887 
   11888 
   11889   GL_GNULIB_CBRTF=0
   11890 
   11891 
   11892 
   11893   GL_GNULIB_CBRTL=0
   11894 
   11895 
   11896 
   11897   GL_GNULIB_CEIL=0
   11898 
   11899 
   11900 
   11901   GL_GNULIB_CEILF=0
   11902 
   11903 
   11904 
   11905   GL_GNULIB_CEILL=0
   11906 
   11907 
   11908 
   11909   GL_GNULIB_COPYSIGN=0
   11910 
   11911 
   11912 
   11913   GL_GNULIB_COPYSIGNF=0
   11914 
   11915 
   11916 
   11917   GL_GNULIB_COPYSIGNL=0
   11918 
   11919 
   11920 
   11921   GL_GNULIB_COSF=0
   11922 
   11923 
   11924 
   11925   GL_GNULIB_COSL=0
   11926 
   11927 
   11928 
   11929   GL_GNULIB_COSHF=0
   11930 
   11931 
   11932 
   11933   GL_GNULIB_EXPF=0
   11934 
   11935 
   11936 
   11937   GL_GNULIB_EXPL=0
   11938 
   11939 
   11940 
   11941   GL_GNULIB_EXP2=0
   11942 
   11943 
   11944 
   11945   GL_GNULIB_EXP2F=0
   11946 
   11947 
   11948 
   11949   GL_GNULIB_EXP2L=0
   11950 
   11951 
   11952 
   11953   GL_GNULIB_EXPM1=0
   11954 
   11955 
   11956 
   11957   GL_GNULIB_EXPM1F=0
   11958 
   11959 
   11960 
   11961   GL_GNULIB_EXPM1L=0
   11962 
   11963 
   11964 
   11965   GL_GNULIB_FABSF=0
   11966 
   11967 
   11968 
   11969   GL_GNULIB_FABSL=0
   11970 
   11971 
   11972 
   11973   GL_GNULIB_FLOOR=0
   11974 
   11975 
   11976 
   11977   GL_GNULIB_FLOORF=0
   11978 
   11979 
   11980 
   11981   GL_GNULIB_FLOORL=0
   11982 
   11983 
   11984 
   11985   GL_GNULIB_FMA=0
   11986 
   11987 
   11988 
   11989   GL_GNULIB_FMAF=0
   11990 
   11991 
   11992 
   11993   GL_GNULIB_FMAL=0
   11994 
   11995 
   11996 
   11997   GL_GNULIB_FMOD=0
   11998 
   11999 
   12000 
   12001   GL_GNULIB_FMODF=0
   12002 
   12003 
   12004 
   12005   GL_GNULIB_FMODL=0
   12006 
   12007 
   12008 
   12009   GL_GNULIB_FREXPF=0
   12010 
   12011 
   12012 
   12013   GL_GNULIB_FREXP=0
   12014 
   12015 
   12016 
   12017   GL_GNULIB_FREXPL=0
   12018 
   12019 
   12020 
   12021   GL_GNULIB_HYPOT=0
   12022 
   12023 
   12024 
   12025   GL_GNULIB_HYPOTF=0
   12026 
   12027 
   12028 
   12029   GL_GNULIB_HYPOTL=0
   12030 
   12031 
   12032 
   12033   GL_GNULIB_ILOGB=0
   12034 
   12035 
   12036 
   12037   GL_GNULIB_ILOGBF=0
   12038 
   12039 
   12040 
   12041   GL_GNULIB_ILOGBL=0
   12042 
   12043 
   12044 
   12045   GL_GNULIB_ISFINITE=0
   12046 
   12047 
   12048 
   12049   GL_GNULIB_ISINF=0
   12050 
   12051 
   12052 
   12053   GL_GNULIB_ISNAN=0
   12054 
   12055 
   12056 
   12057   GL_GNULIB_ISNANF=0
   12058 
   12059 
   12060 
   12061   GL_GNULIB_ISNAND=0
   12062 
   12063 
   12064 
   12065   GL_GNULIB_ISNANL=0
   12066 
   12067 
   12068 
   12069   GL_GNULIB_LDEXPF=0
   12070 
   12071 
   12072 
   12073   GL_GNULIB_LDEXPL=0
   12074 
   12075 
   12076 
   12077   GL_GNULIB_LOG=0
   12078 
   12079 
   12080 
   12081   GL_GNULIB_LOGF=0
   12082 
   12083 
   12084 
   12085   GL_GNULIB_LOGL=0
   12086 
   12087 
   12088 
   12089   GL_GNULIB_LOG10=0
   12090 
   12091 
   12092 
   12093   GL_GNULIB_LOG10F=0
   12094 
   12095 
   12096 
   12097   GL_GNULIB_LOG10L=0
   12098 
   12099 
   12100 
   12101   GL_GNULIB_LOG1P=0
   12102 
   12103 
   12104 
   12105   GL_GNULIB_LOG1PF=0
   12106 
   12107 
   12108 
   12109   GL_GNULIB_LOG1PL=0
   12110 
   12111 
   12112 
   12113   GL_GNULIB_LOG2=0
   12114 
   12115 
   12116 
   12117   GL_GNULIB_LOG2F=0
   12118 
   12119 
   12120 
   12121   GL_GNULIB_LOG2L=0
   12122 
   12123 
   12124 
   12125   GL_GNULIB_LOGB=0
   12126 
   12127 
   12128 
   12129   GL_GNULIB_LOGBF=0
   12130 
   12131 
   12132 
   12133   GL_GNULIB_LOGBL=0
   12134 
   12135 
   12136 
   12137   GL_GNULIB_MODF=0
   12138 
   12139 
   12140 
   12141   GL_GNULIB_MODFF=0
   12142 
   12143 
   12144 
   12145   GL_GNULIB_MODFL=0
   12146 
   12147 
   12148 
   12149   GL_GNULIB_POWF=0
   12150 
   12151 
   12152 
   12153   GL_GNULIB_REMAINDER=0
   12154 
   12155 
   12156 
   12157   GL_GNULIB_REMAINDERF=0
   12158 
   12159 
   12160 
   12161   GL_GNULIB_REMAINDERL=0
   12162 
   12163 
   12164 
   12165   GL_GNULIB_RINT=0
   12166 
   12167 
   12168 
   12169   GL_GNULIB_RINTF=0
   12170 
   12171 
   12172 
   12173   GL_GNULIB_RINTL=0
   12174 
   12175 
   12176 
   12177   GL_GNULIB_ROUND=0
   12178 
   12179 
   12180 
   12181   GL_GNULIB_ROUNDF=0
   12182 
   12183 
   12184 
   12185   GL_GNULIB_ROUNDL=0
   12186 
   12187 
   12188 
   12189   GL_GNULIB_SIGNBIT=0
   12190 
   12191 
   12192 
   12193   GL_GNULIB_SINF=0
   12194 
   12195 
   12196 
   12197   GL_GNULIB_SINL=0
   12198 
   12199 
   12200 
   12201   GL_GNULIB_SINHF=0
   12202 
   12203 
   12204 
   12205   GL_GNULIB_SQRTF=0
   12206 
   12207 
   12208 
   12209   GL_GNULIB_SQRTL=0
   12210 
   12211 
   12212 
   12213   GL_GNULIB_TANF=0
   12214 
   12215 
   12216 
   12217   GL_GNULIB_TANL=0
   12218 
   12219 
   12220 
   12221   GL_GNULIB_TANHF=0
   12222 
   12223 
   12224 
   12225   GL_GNULIB_TRUNC=0
   12226 
   12227 
   12228 
   12229   GL_GNULIB_TRUNCF=0
   12230 
   12231 
   12232 
   12233   GL_GNULIB_TRUNCL=0
   12234 
   12235 
   12236 
   12237   GL_GNULIB_MDA_J0=1
   12238 
   12239 
   12240 
   12241   GL_GNULIB_MDA_J1=1
   12242 
   12243 
   12244 
   12245   GL_GNULIB_MDA_JN=1
   12246 
   12247 
   12248 
   12249   GL_GNULIB_MDA_Y0=1
   12250 
   12251 
   12252 
   12253   GL_GNULIB_MDA_Y1=1
   12254 
   12255 
   12256 
   12257   GL_GNULIB_MDA_YN=1
   12258 
   12259 
   12260 
   12261 
   12262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
   12263 $as_echo_n "checking whether long double and double are the same... " >&6; }
   12264 if ${gl_cv_long_double_equals_double+:} false; then :
   12265   $as_echo_n "(cached) " >&6
   12266 else
   12267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12268 /* end confdefs.h.  */
   12269 #include <float.h>
   12270 int
   12271 main ()
   12272 {
   12273 typedef int check[sizeof (long double) == sizeof (double)
   12274                               && LDBL_MANT_DIG == DBL_MANT_DIG
   12275                               && LDBL_MAX_EXP == DBL_MAX_EXP
   12276                               && LDBL_MIN_EXP == DBL_MIN_EXP
   12277                               ? 1 : -1];
   12278 
   12279   ;
   12280   return 0;
   12281 }
   12282 _ACEOF
   12283 if ac_fn_c_try_compile "$LINENO"; then :
   12284   gl_cv_long_double_equals_double=yes
   12285 else
   12286   gl_cv_long_double_equals_double=no
   12287 fi
   12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12289 
   12290 fi
   12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
   12292 $as_echo "$gl_cv_long_double_equals_double" >&6; }
   12293   if test $gl_cv_long_double_equals_double = yes; then
   12294 
   12295 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
   12296 
   12297     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
   12298   else
   12299     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
   12300   fi
   12301 
   12302 
   12303 
   12304 
   12305 
   12306 
   12307 
   12308 
   12309       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
   12310 "
   12311 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
   12312 
   12313 else
   12314   HAVE_DECL_FREXPL=0
   12315 fi
   12316 
   12317 
   12318   FREXPL_LIBM=
   12319   if test $HAVE_DECL_FREXPL = 1; then
   12320 
   12321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
   12322 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
   12323 if ${gl_cv_func_frexpl_no_libm+:} false; then :
   12324   $as_echo_n "(cached) " >&6
   12325 else
   12326 
   12327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12328 /* end confdefs.h.  */
   12329 #include <math.h>
   12330              long double x;
   12331 int
   12332 main ()
   12333 {
   12334 int e; return frexpl (x, &e) > 0;
   12335   ;
   12336   return 0;
   12337 }
   12338 _ACEOF
   12339 if ac_fn_c_try_link "$LINENO"; then :
   12340   gl_cv_func_frexpl_no_libm=yes
   12341 else
   12342   gl_cv_func_frexpl_no_libm=no
   12343 fi
   12344 rm -f core conftest.err conftest.$ac_objext \
   12345     conftest$ac_exeext conftest.$ac_ext
   12346 
   12347 fi
   12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
   12349 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
   12350 
   12351     if test $gl_cv_func_frexpl_no_libm = no; then
   12352       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
   12353 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
   12354 if ${gl_cv_func_frexpl_in_libm+:} false; then :
   12355   $as_echo_n "(cached) " >&6
   12356 else
   12357 
   12358           save_LIBS="$LIBS"
   12359           LIBS="$LIBS -lm"
   12360           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12361 /* end confdefs.h.  */
   12362 #include <math.h>
   12363                  long double x;
   12364 int
   12365 main ()
   12366 {
   12367 int e; return frexpl (x, &e) > 0;
   12368   ;
   12369   return 0;
   12370 }
   12371 _ACEOF
   12372 if ac_fn_c_try_link "$LINENO"; then :
   12373   gl_cv_func_frexpl_in_libm=yes
   12374 else
   12375   gl_cv_func_frexpl_in_libm=no
   12376 fi
   12377 rm -f core conftest.err conftest.$ac_objext \
   12378     conftest$ac_exeext conftest.$ac_ext
   12379           LIBS="$save_LIBS"
   12380 
   12381 fi
   12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
   12383 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
   12384       if test $gl_cv_func_frexpl_in_libm = yes; then
   12385         FREXPL_LIBM=-lm
   12386       fi
   12387     fi
   12388     if test $gl_cv_func_frexpl_no_libm = yes \
   12389        || test $gl_cv_func_frexpl_in_libm = yes; then
   12390       save_LIBS="$LIBS"
   12391       LIBS="$LIBS $FREXPL_LIBM"
   12392 
   12393 
   12394      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
   12395 $as_echo_n "checking whether frexpl works... " >&6; }
   12396 if ${gl_cv_func_frexpl_works+:} false; then :
   12397   $as_echo_n "(cached) " >&6
   12398 else
   12399 
   12400       if test "$cross_compiling" = yes; then :
   12401 
   12402          case "$host_os" in
   12403            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
   12404               gl_cv_func_frexpl_works="guessing no";;
   12405            *) gl_cv_func_frexpl_works="guessing yes";;
   12406          esac
   12407 
   12408 else
   12409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12410 /* end confdefs.h.  */
   12411 
   12412 #include <float.h>
   12413 #include <math.h>
   12414 /* Override the values of <float.h>, like done in float.in.h.  */
   12415 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
   12416 # undef LDBL_MIN_EXP
   12417 # define LDBL_MIN_EXP    (-16381)
   12418 #endif
   12419 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
   12420 # undef LDBL_MIN_EXP
   12421 # define LDBL_MIN_EXP    (-16381)
   12422 #endif
   12423 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
   12424 # undef LDBL_MIN_EXP
   12425 # define LDBL_MIN_EXP DBL_MIN_EXP
   12426 #endif
   12427 #if defined __sgi && (LDBL_MANT_DIG >= 106)
   12428 # if defined __GNUC__
   12429 #  undef LDBL_MIN_EXP
   12430 #  define LDBL_MIN_EXP DBL_MIN_EXP
   12431 # endif
   12432 #endif
   12433 extern
   12434 #ifdef __cplusplus
   12435 "C"
   12436 #endif
   12437 long double frexpl (long double, int *);
   12438 long double zero = 0.0L;
   12439 int main()
   12440 {
   12441   int result = 0;
   12442   volatile long double x;
   12443   /* Test on finite numbers that fails on AIX 5.1.  */
   12444   x = 16.0L;
   12445   {
   12446     int exp = -9999;
   12447     frexpl (x, &exp);
   12448     if (exp != 5)
   12449       result |= 1;
   12450   }
   12451   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
   12452      function returns an invalid (incorrectly normalized) value: it returns
   12453                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
   12454      but the correct result is
   12455           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
   12456   x = 1.01L;
   12457   {
   12458     int exp = -9999;
   12459     long double y = frexpl (x, &exp);
   12460     if (!(exp == 1 && y == 0.505L))
   12461       result |= 2;
   12462   }
   12463   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
   12464      LDBL_MAX_EXP = 16384.
   12465      In the loop end test, we test x against Infinity, rather than comparing
   12466      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
   12467   {
   12468     int i;
   12469     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
   12470       {
   12471         int exp = -9999;
   12472         frexpl (x, &exp);
   12473         if (exp != i)
   12474           {
   12475             result |= 4;
   12476             break;
   12477           }
   12478       }
   12479   }
   12480   /* Test on denormalized numbers.  */
   12481   {
   12482     int i;
   12483     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
   12484       ;
   12485     if (x > 0.0L)
   12486       {
   12487         int exp;
   12488         long double y = frexpl (x, &exp);
   12489         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
   12490            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
   12491         if (exp != LDBL_MIN_EXP - 1)
   12492           result |= 8;
   12493       }
   12494   }
   12495   /* Test on infinite numbers.  */
   12496   /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0.  */
   12497   x = 1.0L / zero;
   12498   {
   12499     int exp;
   12500     long double y = frexpl (x, &exp);
   12501     if (y != x)
   12502       result |= 16;
   12503   }
   12504   return result;
   12505 }
   12506 _ACEOF
   12507 if ac_fn_c_try_run "$LINENO"; then :
   12508   gl_cv_func_frexpl_works=yes
   12509 else
   12510   gl_cv_func_frexpl_works=no
   12511 fi
   12512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12513   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12514 fi
   12515 
   12516 
   12517 fi
   12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
   12519 $as_echo "$gl_cv_func_frexpl_works" >&6; }
   12520 
   12521       LIBS="$save_LIBS"
   12522       case "$gl_cv_func_frexpl_works" in
   12523         *yes) gl_func_frexpl=yes ;;
   12524         *)    gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
   12525       esac
   12526     else
   12527       gl_func_frexpl=no
   12528     fi
   12529     if test $gl_func_frexpl = yes; then
   12530 
   12531 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
   12532 
   12533     fi
   12534   fi
   12535   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
   12536         if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
   12537 
   12538       FREXPL_LIBM="$FREXP_LIBM"
   12539     else
   12540       FREXPL_LIBM=
   12541     fi
   12542   fi
   12543 
   12544 
   12545 
   12546     HAVE_FCHMODAT=1;
   12547   HAVE_FSTATAT=1;
   12548   HAVE_FUTIMENS=1;
   12549   HAVE_GETUMASK=1;
   12550   HAVE_LCHMOD=1;
   12551   HAVE_LSTAT=1;
   12552   HAVE_MKDIRAT=1;
   12553   HAVE_MKFIFO=1;
   12554   HAVE_MKFIFOAT=1;
   12555   HAVE_MKNOD=1;
   12556   HAVE_MKNODAT=1;
   12557   HAVE_UTIMENSAT=1;
   12558   REPLACE_FCHMODAT=0;
   12559   REPLACE_FSTAT=0;
   12560   REPLACE_FSTATAT=0;
   12561   REPLACE_FUTIMENS=0;
   12562   REPLACE_LSTAT=0;
   12563   REPLACE_MKDIR=0;
   12564   REPLACE_MKFIFO=0;
   12565   REPLACE_MKFIFOAT=0;
   12566   REPLACE_MKNOD=0;
   12567   REPLACE_MKNODAT=0;
   12568   REPLACE_STAT=0;
   12569   REPLACE_UTIMENSAT=0;
   12570 
   12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
   12572 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
   12573 if ${ac_cv_header_stat_broken+:} false; then :
   12574   $as_echo_n "(cached) " >&6
   12575 else
   12576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12577 /* end confdefs.h.  */
   12578 #include <sys/types.h>
   12579 #include <sys/stat.h>
   12580 
   12581 #if defined S_ISBLK && defined S_IFDIR
   12582 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
   12583 #endif
   12584 
   12585 #if defined S_ISBLK && defined S_IFCHR
   12586 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
   12587 #endif
   12588 
   12589 #if defined S_ISLNK && defined S_IFREG
   12590 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
   12591 #endif
   12592 
   12593 #if defined S_ISSOCK && defined S_IFREG
   12594 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
   12595 #endif
   12596 
   12597 _ACEOF
   12598 if ac_fn_c_try_compile "$LINENO"; then :
   12599   ac_cv_header_stat_broken=no
   12600 else
   12601   ac_cv_header_stat_broken=yes
   12602 fi
   12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12604 fi
   12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
   12606 $as_echo "$ac_cv_header_stat_broken" >&6; }
   12607 if test $ac_cv_header_stat_broken = yes; then
   12608 
   12609 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
   12610 
   12611 fi
   12612 
   12613 
   12614 
   12615 
   12616 
   12617   case "$host_os" in
   12618     mingw*)
   12619                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
   12620 $as_echo_n "checking for 64-bit off_t... " >&6; }
   12621 if ${gl_cv_type_off_t_64+:} false; then :
   12622   $as_echo_n "(cached) " >&6
   12623 else
   12624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12625 /* end confdefs.h.  */
   12626 #include <sys/types.h>
   12627                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
   12628 
   12629 int
   12630 main ()
   12631 {
   12632 
   12633   ;
   12634   return 0;
   12635 }
   12636 _ACEOF
   12637 if ac_fn_c_try_compile "$LINENO"; then :
   12638   gl_cv_type_off_t_64=yes
   12639 else
   12640   gl_cv_type_off_t_64=no
   12641 fi
   12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12643 
   12644 fi
   12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
   12646 $as_echo "$gl_cv_type_off_t_64" >&6; }
   12647       if test $gl_cv_type_off_t_64 = no; then
   12648         WINDOWS_64_BIT_OFF_T=1
   12649       else
   12650         WINDOWS_64_BIT_OFF_T=0
   12651       fi
   12652                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
   12653 $as_echo_n "checking for 64-bit st_size... " >&6; }
   12654 if ${gl_cv_member_st_size_64+:} false; then :
   12655   $as_echo_n "(cached) " >&6
   12656 else
   12657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12658 /* end confdefs.h.  */
   12659 #include <sys/types.h>
   12660                 struct stat buf;
   12661                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
   12662 
   12663 int
   12664 main ()
   12665 {
   12666 
   12667   ;
   12668   return 0;
   12669 }
   12670 _ACEOF
   12671 if ac_fn_c_try_compile "$LINENO"; then :
   12672   gl_cv_member_st_size_64=yes
   12673 else
   12674   gl_cv_member_st_size_64=no
   12675 fi
   12676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12677 
   12678 fi
   12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
   12680 $as_echo "$gl_cv_member_st_size_64" >&6; }
   12681       if test $gl_cv_member_st_size_64 = no; then
   12682         WINDOWS_64_BIT_ST_SIZE=1
   12683       else
   12684         WINDOWS_64_BIT_ST_SIZE=0
   12685       fi
   12686       ;;
   12687     *)
   12688                                                       WINDOWS_64_BIT_OFF_T=0
   12689       WINDOWS_64_BIT_ST_SIZE=0
   12690       ;;
   12691   esac
   12692 
   12693 
   12694 
   12695 
   12696 
   12697 
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704 
   12705 
   12706 
   12707      if test $gl_cv_have_include_next = yes; then
   12708        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   12709      else
   12710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
   12711 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
   12712 if ${gl_cv_next_sys_stat_h+:} false; then :
   12713   $as_echo_n "(cached) " >&6
   12714 else
   12715 
   12716              if test $ac_cv_header_sys_stat_h = yes; then
   12717 
   12718 
   12719 
   12720 
   12721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12722 /* end confdefs.h.  */
   12723 #include <sys/stat.h>
   12724 _ACEOF
   12725                 case "$host_os" in
   12726     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   12727     *)    gl_absname_cpp="$ac_cpp" ;;
   12728   esac
   12729 
   12730   case "$host_os" in
   12731     mingw*)
   12732                                           gl_dirsep_regex='[/\\]'
   12733       ;;
   12734     *)
   12735       gl_dirsep_regex='\/'
   12736       ;;
   12737   esac
   12738       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   12739   gl_header_literal_regex=`echo 'sys/stat.h' \
   12740                            | sed -e "$gl_make_literal_regex_sed"`
   12741   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   12742       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   12743       s|^/[^/]|//&|
   12744       p
   12745       q
   12746     }'
   12747 
   12748         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   12749   sed -n "$gl_absolute_header_sed"`
   12750 
   12751           gl_header=$gl_cv_absolute_sys_stat_h
   12752           gl_cv_next_sys_stat_h='"'$gl_header'"'
   12753           else
   12754                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
   12755              fi
   12756 
   12757 
   12758 fi
   12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
   12760 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
   12761      fi
   12762      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
   12763 
   12764      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   12765        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   12766        gl_next_as_first_directive='<'sys/stat.h'>'
   12767      else
   12768        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   12769        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
   12770      fi
   12771      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
   12772 
   12773 
   12774 
   12775 
   12776 
   12777 
   12778 
   12779 
   12780     WINDOWS_STAT_TIMESPEC=0
   12781 
   12782 
   12783 
   12784 
   12785 
   12786 
   12787 
   12788 
   12789       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
   12790      #include <sys/stat.h>
   12791 "
   12792 if test "x$ac_cv_type_nlink_t" = xyes; then :
   12793 
   12794 else
   12795 
   12796 $as_echo "#define nlink_t int" >>confdefs.h
   12797 
   12798 fi
   12799 
   12800 
   12801 
   12802 
   12803 
   12804 
   12805 
   12806 
   12807 
   12808 
   12809   case "$host_os" in
   12810     mingw*)
   12811       for ac_header in sdkddkver.h
   12812 do :
   12813   ac_fn_c_check_header_mongrel "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
   12814 if test "x$ac_cv_header_sdkddkver_h" = xyes; then :
   12815   cat >>confdefs.h <<_ACEOF
   12816 #define HAVE_SDKDDKVER_H 1
   12817 _ACEOF
   12818 
   12819 fi
   12820 
   12821 done
   12822 
   12823       ;;
   12824   esac
   12825 
   12826 
   12827 
   12828 
   12829 
   12830 
   12831 
   12832   GL_GNULIB_FCHMODAT=0
   12833 
   12834 
   12835 
   12836   GL_GNULIB_FSTAT=0
   12837 
   12838 
   12839 
   12840   GL_GNULIB_FSTATAT=0
   12841 
   12842 
   12843 
   12844   GL_GNULIB_FUTIMENS=0
   12845 
   12846 
   12847 
   12848   GL_GNULIB_GETUMASK=0
   12849 
   12850 
   12851 
   12852   GL_GNULIB_LCHMOD=0
   12853 
   12854 
   12855 
   12856   GL_GNULIB_LSTAT=0
   12857 
   12858 
   12859 
   12860   GL_GNULIB_MKDIR=0
   12861 
   12862 
   12863 
   12864   GL_GNULIB_MKDIRAT=0
   12865 
   12866 
   12867 
   12868   GL_GNULIB_MKFIFO=0
   12869 
   12870 
   12871 
   12872   GL_GNULIB_MKFIFOAT=0
   12873 
   12874 
   12875 
   12876   GL_GNULIB_MKNOD=0
   12877 
   12878 
   12879 
   12880   GL_GNULIB_MKNODAT=0
   12881 
   12882 
   12883 
   12884   GL_GNULIB_STAT=0
   12885 
   12886 
   12887 
   12888   GL_GNULIB_UTIMENSAT=0
   12889 
   12890 
   12891 
   12892   GL_GNULIB_OVERRIDES_STRUCT_STAT=0
   12893 
   12894 
   12895 
   12896   GL_GNULIB_MDA_CHMOD=1
   12897 
   12898 
   12899 
   12900   GL_GNULIB_MDA_MKDIR=1
   12901 
   12902 
   12903 
   12904   GL_GNULIB_MDA_UMASK=1
   12905 
   12906 
   12907 
   12908 
   12909 
   12910 
   12911 
   12912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
   12913 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
   12914 if ${gl_cv_func_getcwd_null+:} false; then :
   12915   $as_echo_n "(cached) " >&6
   12916 else
   12917   if test "$cross_compiling" = yes; then :
   12918   case "$host_os" in
   12919                            # Guess yes on glibc systems.
   12920             *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
   12921                            # Guess yes on musl systems.
   12922             *-musl*)       gl_cv_func_getcwd_null="guessing yes";;
   12923                            # Guess yes on Cygwin.
   12924             cygwin*)       gl_cv_func_getcwd_null="guessing yes";;
   12925                            # If we don't know, obey --enable-cross-guesses.
   12926             *)             gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
   12927           esac
   12928 
   12929 else
   12930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12931 /* end confdefs.h.  */
   12932 
   12933 #	 include <stdlib.h>
   12934 #        if HAVE_UNISTD_H
   12935 #         include <unistd.h>
   12936 #        else /* on Windows with MSVC */
   12937 #         include <direct.h>
   12938 #        endif
   12939 
   12940 
   12941 $gl_mda_defines
   12942 
   12943 #        ifndef getcwd
   12944          char *getcwd ();
   12945 #        endif
   12946 
   12947 int
   12948 main ()
   12949 {
   12950 
   12951 #if defined _WIN32 && ! defined __CYGWIN__
   12952 /* mingw cwd does not start with '/', but _getcwd does allocate.
   12953    However, mingw fails to honor non-zero size.  */
   12954 #else
   12955            if (chdir ("/") != 0)
   12956              return 1;
   12957            else
   12958              {
   12959                char *f = getcwd (NULL, 0);
   12960                if (! f)
   12961                  return 2;
   12962                if (f[0] != '/')
   12963                  { free (f); return 3; }
   12964                if (f[1] != '\0')
   12965                  { free (f); return 4; }
   12966                free (f);
   12967                return 0;
   12968              }
   12969 #endif
   12970 
   12971   ;
   12972   return 0;
   12973 }
   12974 _ACEOF
   12975 if ac_fn_c_try_run "$LINENO"; then :
   12976   gl_cv_func_getcwd_null=yes
   12977 else
   12978   gl_cv_func_getcwd_null=no
   12979 fi
   12980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12981   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12982 fi
   12983 
   12984 fi
   12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
   12986 $as_echo "$gl_cv_func_getcwd_null" >&6; }
   12987 
   12988 
   12989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
   12990 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
   12991 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
   12992   $as_echo_n "(cached) " >&6
   12993 else
   12994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12995 /* end confdefs.h.  */
   12996 #include <unistd.h>
   12997 
   12998 
   12999 $gl_mda_defines
   13000 
   13001 int
   13002 main ()
   13003 {
   13004 extern
   13005            #ifdef __cplusplus
   13006            "C"
   13007            #endif
   13008            char *getcwd (char *, size_t);
   13009 
   13010   ;
   13011   return 0;
   13012 }
   13013 
   13014 _ACEOF
   13015 if ac_fn_c_try_compile "$LINENO"; then :
   13016   gl_cv_func_getcwd_posix_signature=yes
   13017 else
   13018   gl_cv_func_getcwd_posix_signature=no
   13019 fi
   13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13021 
   13022 fi
   13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
   13024 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
   13025 
   13026 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
   13027 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
   13028   ac_have_decl=1
   13029 else
   13030   ac_have_decl=0
   13031 fi
   13032 
   13033 cat >>confdefs.h <<_ACEOF
   13034 #define HAVE_DECL_GETCWD $ac_have_decl
   13035 _ACEOF
   13036 
   13037 
   13038     HAVE_DECL_FCLOSEALL=1;
   13039   HAVE_DECL_FPURGE=1;
   13040   HAVE_DECL_FSEEKO=1;
   13041   HAVE_DECL_FTELLO=1;
   13042   HAVE_DECL_GETDELIM=1;
   13043   HAVE_DECL_GETLINE=1;
   13044   HAVE_DECL_OBSTACK_PRINTF=1;
   13045   HAVE_DECL_SNPRINTF=1;
   13046   HAVE_DECL_VSNPRINTF=1;
   13047   HAVE_DPRINTF=1;
   13048   HAVE_FSEEKO=1;
   13049   HAVE_FTELLO=1;
   13050   HAVE_PCLOSE=1;
   13051   HAVE_POPEN=1;
   13052   HAVE_RENAMEAT=1;
   13053   HAVE_VASPRINTF=1;
   13054   HAVE_VDPRINTF=1;
   13055   REPLACE_DPRINTF=0;
   13056   REPLACE_FCLOSE=0;
   13057   REPLACE_FDOPEN=0;
   13058   REPLACE_FFLUSH=0;
   13059   REPLACE_FOPEN=0;
   13060   REPLACE_FOPEN_FOR_FOPEN_GNU=0;
   13061   REPLACE_FPRINTF=0;
   13062   REPLACE_FPURGE=0;
   13063   REPLACE_FREOPEN=0;
   13064   REPLACE_FSEEK=0;
   13065   REPLACE_FSEEKO=0;
   13066   REPLACE_FTELL=0;
   13067   REPLACE_FTELLO=0;
   13068   REPLACE_GETDELIM=0;
   13069   REPLACE_GETLINE=0;
   13070   REPLACE_OBSTACK_PRINTF=0;
   13071   REPLACE_PERROR=0;
   13072   REPLACE_POPEN=0;
   13073   REPLACE_PRINTF=0;
   13074   REPLACE_REMOVE=0;
   13075   REPLACE_RENAME=0;
   13076   REPLACE_RENAMEAT=0;
   13077   REPLACE_SNPRINTF=0;
   13078   REPLACE_SPRINTF=0;
   13079   REPLACE_STDIO_READ_FUNCS=0;
   13080   REPLACE_STDIO_WRITE_FUNCS=0;
   13081   REPLACE_TMPFILE=0;
   13082   REPLACE_VASPRINTF=0;
   13083   REPLACE_VDPRINTF=0;
   13084   REPLACE_VFPRINTF=0;
   13085   REPLACE_VPRINTF=0;
   13086   REPLACE_VSNPRINTF=0;
   13087   REPLACE_VSPRINTF=0;
   13088 
   13089 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
   13090 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
   13091   ac_have_decl=1
   13092 else
   13093   ac_have_decl=0
   13094 fi
   13095 
   13096 cat >>confdefs.h <<_ACEOF
   13097 #define HAVE_DECL_GETDELIM $ac_have_decl
   13098 _ACEOF
   13099 
   13100 
   13101 
   13102 
   13103 
   13104   GL_GNULIB_DPRINTF=0
   13105 
   13106 
   13107 
   13108   GL_GNULIB_FCLOSE=0
   13109 
   13110 
   13111 
   13112   GL_GNULIB_FDOPEN=0
   13113 
   13114 
   13115 
   13116   GL_GNULIB_FFLUSH=0
   13117 
   13118 
   13119 
   13120   GL_GNULIB_FGETC=0
   13121 
   13122 
   13123 
   13124   GL_GNULIB_FGETS=0
   13125 
   13126 
   13127 
   13128   GL_GNULIB_FOPEN=0
   13129 
   13130 
   13131 
   13132   GL_GNULIB_FOPEN_GNU=0
   13133 
   13134 
   13135 
   13136   GL_GNULIB_FPRINTF=0
   13137 
   13138 
   13139 
   13140   GL_GNULIB_FPRINTF_POSIX=0
   13141 
   13142 
   13143 
   13144   GL_GNULIB_FPURGE=0
   13145 
   13146 
   13147 
   13148   GL_GNULIB_FPUTC=0
   13149 
   13150 
   13151 
   13152   GL_GNULIB_FPUTS=0
   13153 
   13154 
   13155 
   13156   GL_GNULIB_FREAD=0
   13157 
   13158 
   13159 
   13160   GL_GNULIB_FREOPEN=0
   13161 
   13162 
   13163 
   13164   GL_GNULIB_FSCANF=0
   13165 
   13166 
   13167 
   13168   GL_GNULIB_FSEEK=0
   13169 
   13170 
   13171 
   13172   GL_GNULIB_FSEEKO=0
   13173 
   13174 
   13175 
   13176   GL_GNULIB_FTELL=0
   13177 
   13178 
   13179 
   13180   GL_GNULIB_FTELLO=0
   13181 
   13182 
   13183 
   13184   GL_GNULIB_FWRITE=0
   13185 
   13186 
   13187 
   13188   GL_GNULIB_GETC=0
   13189 
   13190 
   13191 
   13192   GL_GNULIB_GETCHAR=0
   13193 
   13194 
   13195 
   13196   GL_GNULIB_GETDELIM=0
   13197 
   13198 
   13199 
   13200   GL_GNULIB_GETLINE=0
   13201 
   13202 
   13203 
   13204   GL_GNULIB_OBSTACK_PRINTF=0
   13205 
   13206 
   13207 
   13208   GL_GNULIB_OBSTACK_PRINTF_POSIX=0
   13209 
   13210 
   13211 
   13212   GL_GNULIB_PCLOSE=0
   13213 
   13214 
   13215 
   13216   GL_GNULIB_PERROR=0
   13217 
   13218 
   13219 
   13220   GL_GNULIB_POPEN=0
   13221 
   13222 
   13223 
   13224   GL_GNULIB_PRINTF=0
   13225 
   13226 
   13227 
   13228   GL_GNULIB_PRINTF_POSIX=0
   13229 
   13230 
   13231 
   13232   GL_GNULIB_PUTC=0
   13233 
   13234 
   13235 
   13236   GL_GNULIB_PUTCHAR=0
   13237 
   13238 
   13239 
   13240   GL_GNULIB_PUTS=0
   13241 
   13242 
   13243 
   13244   GL_GNULIB_REMOVE=0
   13245 
   13246 
   13247 
   13248   GL_GNULIB_RENAME=0
   13249 
   13250 
   13251 
   13252   GL_GNULIB_RENAMEAT=0
   13253 
   13254 
   13255 
   13256   GL_GNULIB_SCANF=0
   13257 
   13258 
   13259 
   13260   GL_GNULIB_SNPRINTF=0
   13261 
   13262 
   13263 
   13264   GL_GNULIB_SPRINTF_POSIX=0
   13265 
   13266 
   13267 
   13268   GL_GNULIB_STDIO_H_NONBLOCKING=0
   13269 
   13270 
   13271 
   13272   GL_GNULIB_STDIO_H_SIGPIPE=0
   13273 
   13274 
   13275 
   13276   GL_GNULIB_TMPFILE=0
   13277 
   13278 
   13279 
   13280   GL_GNULIB_VASPRINTF=0
   13281 
   13282 
   13283 
   13284   GL_GNULIB_VFSCANF=0
   13285 
   13286 
   13287 
   13288   GL_GNULIB_VSCANF=0
   13289 
   13290 
   13291 
   13292   GL_GNULIB_VDPRINTF=0
   13293 
   13294 
   13295 
   13296   GL_GNULIB_VFPRINTF=0
   13297 
   13298 
   13299 
   13300   GL_GNULIB_VFPRINTF_POSIX=0
   13301 
   13302 
   13303 
   13304   GL_GNULIB_VPRINTF=0
   13305 
   13306 
   13307 
   13308   GL_GNULIB_VPRINTF_POSIX=0
   13309 
   13310 
   13311 
   13312   GL_GNULIB_VSNPRINTF=0
   13313 
   13314 
   13315 
   13316   GL_GNULIB_VSPRINTF_POSIX=0
   13317 
   13318 
   13319 
   13320   GL_GNULIB_MDA_FCLOSEALL=1
   13321 
   13322 
   13323 
   13324   GL_GNULIB_MDA_FDOPEN=1
   13325 
   13326 
   13327 
   13328   GL_GNULIB_MDA_FILENO=1
   13329 
   13330 
   13331 
   13332   GL_GNULIB_MDA_GETW=1
   13333 
   13334 
   13335 
   13336   GL_GNULIB_MDA_PUTW=1
   13337 
   13338 
   13339 
   13340   GL_GNULIB_MDA_TEMPNAM=1
   13341 
   13342 
   13343 
   13344 
   13345 
   13346 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
   13347 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
   13348   ac_have_decl=1
   13349 else
   13350   ac_have_decl=0
   13351 fi
   13352 
   13353 cat >>confdefs.h <<_ACEOF
   13354 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
   13355 _ACEOF
   13356 
   13357 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
   13358 if test "x$ac_cv_have_decl_getline" = xyes; then :
   13359   ac_have_decl=1
   13360 else
   13361   ac_have_decl=0
   13362 fi
   13363 
   13364 cat >>confdefs.h <<_ACEOF
   13365 #define HAVE_DECL_GETLINE $ac_have_decl
   13366 _ACEOF
   13367 
   13368 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
   13369 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
   13370   ac_have_decl=1
   13371 else
   13372   ac_have_decl=0
   13373 fi
   13374 
   13375 cat >>confdefs.h <<_ACEOF
   13376 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
   13377 _ACEOF
   13378 
   13379 
   13380 
   13381 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
   13382 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
   13383   ac_have_decl=1
   13384 else
   13385   ac_have_decl=0
   13386 fi
   13387 
   13388 cat >>confdefs.h <<_ACEOF
   13389 #define HAVE_DECL_GETLOGIN $ac_have_decl
   13390 _ACEOF
   13391 
   13392 
   13393 
   13394   case $host_os in
   13395     mingw*)
   13396       LIB_GETLOGIN='-ladvapi32' ;;
   13397     *)
   13398       LIB_GETLOGIN= ;;
   13399   esac
   13400 
   13401 
   13402 
   13403 
   13404 
   13405 
   13406 
   13407     HAVE_GETRANDOM=1;
   13408   REPLACE_GETRANDOM=0;
   13409 
   13410 
   13411 
   13412 
   13413 
   13414   GL_GNULIB_GETRANDOM=0
   13415 
   13416 
   13417 
   13418 
   13419     HAVE_GETTIMEOFDAY=1;
   13420   HAVE_STRUCT_TIMEVAL=1;
   13421   HAVE_SYS_TIME_H=1;
   13422   REPLACE_GETTIMEOFDAY=0;
   13423   REPLACE_STRUCT_TIMEVAL=0;
   13424 
   13425 
   13426 
   13427 
   13428 
   13429 
   13430 
   13431 
   13432 
   13433 
   13434 
   13435 
   13436 
   13437 
   13438 
   13439 
   13440      if test $gl_cv_have_include_next = yes; then
   13441        gl_cv_next_sys_time_h='<'sys/time.h'>'
   13442      else
   13443        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
   13444 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
   13445 if ${gl_cv_next_sys_time_h+:} false; then :
   13446   $as_echo_n "(cached) " >&6
   13447 else
   13448 
   13449              if test $ac_cv_header_sys_time_h = yes; then
   13450 
   13451 
   13452 
   13453 
   13454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13455 /* end confdefs.h.  */
   13456 #include <sys/time.h>
   13457 _ACEOF
   13458                 case "$host_os" in
   13459     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   13460     *)    gl_absname_cpp="$ac_cpp" ;;
   13461   esac
   13462 
   13463   case "$host_os" in
   13464     mingw*)
   13465                                           gl_dirsep_regex='[/\\]'
   13466       ;;
   13467     *)
   13468       gl_dirsep_regex='\/'
   13469       ;;
   13470   esac
   13471       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   13472   gl_header_literal_regex=`echo 'sys/time.h' \
   13473                            | sed -e "$gl_make_literal_regex_sed"`
   13474   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   13475       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   13476       s|^/[^/]|//&|
   13477       p
   13478       q
   13479     }'
   13480 
   13481         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   13482   sed -n "$gl_absolute_header_sed"`
   13483 
   13484           gl_header=$gl_cv_absolute_sys_time_h
   13485           gl_cv_next_sys_time_h='"'$gl_header'"'
   13486           else
   13487                gl_cv_next_sys_time_h='<'sys/time.h'>'
   13488              fi
   13489 
   13490 
   13491 fi
   13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
   13493 $as_echo "$gl_cv_next_sys_time_h" >&6; }
   13494      fi
   13495      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
   13496 
   13497      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   13498        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   13499        gl_next_as_first_directive='<'sys/time.h'>'
   13500      else
   13501        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   13502        gl_next_as_first_directive=$gl_cv_next_sys_time_h
   13503      fi
   13504      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
   13505 
   13506 
   13507 
   13508 
   13509 
   13510   if test $ac_cv_header_sys_time_h != yes; then
   13511     HAVE_SYS_TIME_H=0
   13512   fi
   13513 
   13514 
   13515 
   13516 
   13517 
   13518   if test $ac_cv_header_sys_socket_h != yes; then
   13519                     for ac_header in winsock2.h
   13520 do :
   13521   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   13522 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   13523   cat >>confdefs.h <<_ACEOF
   13524 #define HAVE_WINSOCK2_H 1
   13525 _ACEOF
   13526 
   13527 fi
   13528 
   13529 done
   13530 
   13531   fi
   13532   if test "$ac_cv_header_winsock2_h" = yes; then
   13533     HAVE_WINSOCK2_H=1
   13534     UNISTD_H_HAVE_WINSOCK2_H=1
   13535     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   13536   else
   13537     HAVE_WINSOCK2_H=0
   13538   fi
   13539 
   13540 
   13541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
   13542 $as_echo_n "checking for struct timeval... " >&6; }
   13543 if ${gl_cv_sys_struct_timeval+:} false; then :
   13544   $as_echo_n "(cached) " >&6
   13545 else
   13546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13547 /* end confdefs.h.  */
   13548 #if HAVE_SYS_TIME_H
   13549              #include <sys/time.h>
   13550             #endif
   13551             #include <time.h>
   13552             #if HAVE_WINSOCK2_H
   13553             # include <winsock2.h>
   13554             #endif
   13555 
   13556 int
   13557 main ()
   13558 {
   13559 static struct timeval x; x.tv_sec = x.tv_usec;
   13560   ;
   13561   return 0;
   13562 }
   13563 _ACEOF
   13564 if ac_fn_c_try_compile "$LINENO"; then :
   13565   gl_cv_sys_struct_timeval=yes
   13566 else
   13567   gl_cv_sys_struct_timeval=no
   13568 fi
   13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13570 
   13571 fi
   13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
   13573 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
   13574   if test $gl_cv_sys_struct_timeval != yes; then
   13575     HAVE_STRUCT_TIMEVAL=0
   13576   else
   13577                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
   13578 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
   13579 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
   13580   $as_echo_n "(cached) " >&6
   13581 else
   13582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13583 /* end confdefs.h.  */
   13584 #if HAVE_SYS_TIME_H
   13585                #include <sys/time.h>
   13586               #endif
   13587               #include <time.h>
   13588               #if HAVE_WINSOCK2_H
   13589               # include <winsock2.h>
   13590               #endif
   13591 
   13592 int
   13593 main ()
   13594 {
   13595 static struct timeval x;
   13596               typedef int verify_tv_sec_type[
   13597                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
   13598               ];
   13599 
   13600   ;
   13601   return 0;
   13602 }
   13603 _ACEOF
   13604 if ac_fn_c_try_compile "$LINENO"; then :
   13605   gl_cv_sys_struct_timeval_tv_sec=yes
   13606 else
   13607   gl_cv_sys_struct_timeval_tv_sec=no
   13608 fi
   13609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13610 
   13611 fi
   13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
   13613 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
   13614     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
   13615       REPLACE_STRUCT_TIMEVAL=1
   13616     fi
   13617   fi
   13618 
   13619 
   13620 
   13621 
   13622 
   13623 
   13624 
   13625 
   13626 
   13627   GL_GNULIB_GETTIMEOFDAY=0
   13628 
   13629 
   13630 
   13631 
   13632     HAVE_GLOB=1;
   13633   HAVE_GLOB_PATTERN_P=1;
   13634   REPLACE_GLOB=0;
   13635   REPLACE_GLOB_PATTERN_P=0;
   13636 
   13637 
   13638 
   13639 
   13640 
   13641 
   13642 
   13643 
   13644 
   13645 
   13646 
   13647 
   13648 
   13649 
   13650 
   13651 
   13652 
   13653      if test $gl_cv_have_include_next = yes; then
   13654        gl_cv_next_glob_h='<'glob.h'>'
   13655      else
   13656        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
   13657 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
   13658 if ${gl_cv_next_glob_h+:} false; then :
   13659   $as_echo_n "(cached) " >&6
   13660 else
   13661 
   13662              if test $ac_cv_header_glob_h = yes; then
   13663 
   13664 
   13665 
   13666 
   13667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13668 /* end confdefs.h.  */
   13669 #include <glob.h>
   13670 _ACEOF
   13671                 case "$host_os" in
   13672     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   13673     *)    gl_absname_cpp="$ac_cpp" ;;
   13674   esac
   13675 
   13676   case "$host_os" in
   13677     mingw*)
   13678                                           gl_dirsep_regex='[/\\]'
   13679       ;;
   13680     *)
   13681       gl_dirsep_regex='\/'
   13682       ;;
   13683   esac
   13684       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   13685   gl_header_literal_regex=`echo 'glob.h' \
   13686                            | sed -e "$gl_make_literal_regex_sed"`
   13687   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   13688       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   13689       s|^/[^/]|//&|
   13690       p
   13691       q
   13692     }'
   13693 
   13694         gl_cv_absolute_glob_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   13695   sed -n "$gl_absolute_header_sed"`
   13696 
   13697           gl_header=$gl_cv_absolute_glob_h
   13698           gl_cv_next_glob_h='"'$gl_header'"'
   13699           else
   13700                gl_cv_next_glob_h='<'glob.h'>'
   13701              fi
   13702 
   13703 
   13704 fi
   13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
   13706 $as_echo "$gl_cv_next_glob_h" >&6; }
   13707      fi
   13708      NEXT_GLOB_H=$gl_cv_next_glob_h
   13709 
   13710      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   13711        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   13712        gl_next_as_first_directive='<'glob.h'>'
   13713      else
   13714        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   13715        gl_next_as_first_directive=$gl_cv_next_glob_h
   13716      fi
   13717      NEXT_AS_FIRST_DIRECTIVE_GLOB_H=$gl_next_as_first_directive
   13718 
   13719 
   13720 
   13721 
   13722 
   13723   if test $ac_cv_header_glob_h = yes; then
   13724     HAVE_GLOB_H=1
   13725   else
   13726     HAVE_GLOB_H=0
   13727   fi
   13728 
   13729 
   13730   GL_GENERATE_GLOB_H=false
   13731      if false; then
   13732               GL_GENERATE_GLOB_H=true
   13733      else
   13734        if test $ac_cv_header_glob_h != yes; then
   13735                   GL_GENERATE_GLOB_H=true
   13736        fi
   13737      fi
   13738 
   13739 
   13740 
   13741 
   13742 
   13743 
   13744 
   13745 
   13746 
   13747 
   13748 
   13749 
   13750   GL_GNULIB_GLOB=0
   13751 
   13752 
   13753 
   13754 
   13755 
   13756 
   13757 
   13758 
   13759 
   13760   if test -z "$gl_pthreadlib_body_done"; then
   13761     gl_pthread_api=no
   13762     LIBPTHREAD=
   13763     LIBPMULTITHREAD=
   13764     # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
   13765     # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
   13766     ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   13767 if test "x$ac_cv_header_pthread_h" = xyes; then :
   13768   gl_have_pthread_h=yes
   13769 else
   13770   gl_have_pthread_h=no
   13771 fi
   13772 
   13773 
   13774     if test "$gl_have_pthread_h" = yes; then
   13775       # Other possible tests:
   13776       #   -lpthreads (FSU threads, PCthreads)
   13777       #   -lgthreads
   13778       # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
   13779       # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
   13780       # the second one only in libpthread, and lock.c needs it.
   13781       #
   13782       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
   13783       # needs -pthread for some reason.  See:
   13784       # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
   13785       save_LIBS=$LIBS
   13786       for gl_pthread in '' '-pthread'; do
   13787         LIBS="$LIBS $gl_pthread"
   13788         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13789 /* end confdefs.h.  */
   13790 #include <pthread.h>
   13791                pthread_mutex_t m;
   13792                pthread_mutexattr_t ma;
   13793 
   13794 int
   13795 main ()
   13796 {
   13797 pthread_mutex_lock (&m);
   13798                pthread_mutexattr_init (&ma);
   13799   ;
   13800   return 0;
   13801 }
   13802 _ACEOF
   13803 if ac_fn_c_try_link "$LINENO"; then :
   13804   gl_pthread_api=yes
   13805            LIBPTHREAD=$gl_pthread
   13806            LIBPMULTITHREAD=$gl_pthread
   13807 fi
   13808 rm -f core conftest.err conftest.$ac_objext \
   13809     conftest$ac_exeext conftest.$ac_ext
   13810         LIBS=$save_LIBS
   13811         test $gl_pthread_api = yes && break
   13812       done
   13813       echo "$as_me:13813: gl_pthread_api=$gl_pthread_api" >&5
   13814       echo "$as_me:13814: LIBPTHREAD=$LIBPTHREAD" >&5
   13815 
   13816       gl_pthread_in_glibc=no
   13817       # On Linux with glibc >= 2.34, libc contains the fully functional
   13818       # pthread functions.
   13819       case "$host_os" in
   13820         linux*)
   13821           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13822 /* end confdefs.h.  */
   13823 #include <features.h>
   13824              #ifdef __GNU_LIBRARY__
   13825               #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
   13826                Lucky user
   13827               #endif
   13828              #endif
   13829 
   13830 _ACEOF
   13831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13832   $EGREP "Lucky user" >/dev/null 2>&1; then :
   13833   gl_pthread_in_glibc=yes
   13834 fi
   13835 rm -f conftest*
   13836 
   13837           ;;
   13838       esac
   13839       echo "$as_me:13839: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
   13840 
   13841       # Test for libpthread by looking for pthread_kill. (Not pthread_self,
   13842       # since it is defined as a macro on OSF/1.)
   13843       if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
   13844         # The program links fine without libpthread. But it may actually
   13845         # need to link with libpthread in order to create multiple threads.
   13846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   13847 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   13848 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   13849   $as_echo_n "(cached) " >&6
   13850 else
   13851   ac_check_lib_save_LIBS=$LIBS
   13852 LIBS="-lpthread  $LIBS"
   13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13854 /* end confdefs.h.  */
   13855 
   13856 /* Override any GCC internal prototype to avoid an error.
   13857    Use char because int might match the return type of a GCC
   13858    builtin and then its argument prototype would still apply.  */
   13859 #ifdef __cplusplus
   13860 extern "C"
   13861 #endif
   13862 char pthread_kill ();
   13863 int
   13864 main ()
   13865 {
   13866 return pthread_kill ();
   13867   ;
   13868   return 0;
   13869 }
   13870 _ACEOF
   13871 if ac_fn_c_try_link "$LINENO"; then :
   13872   ac_cv_lib_pthread_pthread_kill=yes
   13873 else
   13874   ac_cv_lib_pthread_pthread_kill=no
   13875 fi
   13876 rm -f core conftest.err conftest.$ac_objext \
   13877     conftest$ac_exeext conftest.$ac_ext
   13878 LIBS=$ac_check_lib_save_LIBS
   13879 fi
   13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   13881 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   13882 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   13883   if test $gl_pthread_in_glibc = yes; then
   13884              LIBPMULTITHREAD=
   13885            else
   13886              LIBPMULTITHREAD=-lpthread
   13887              # On Solaris and HP-UX, most pthread functions exist also in libc.
   13888              # Therefore pthread_in_use() needs to actually try to create a
   13889              # thread: pthread_create from libc will fail, whereas
   13890              # pthread_create will actually create a thread.
   13891              # On Solaris 10 or newer, this test is no longer needed, because
   13892              # libc contains the fully functional pthread functions.
   13893              case "$host_os" in
   13894                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
   13895 
   13896 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
   13897 
   13898              esac
   13899            fi
   13900 
   13901 fi
   13902 
   13903       elif test $gl_pthread_api != yes; then
   13904         # Some library is needed. Try libpthread and libc_r.
   13905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   13906 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   13907 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   13908   $as_echo_n "(cached) " >&6
   13909 else
   13910   ac_check_lib_save_LIBS=$LIBS
   13911 LIBS="-lpthread  $LIBS"
   13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13913 /* end confdefs.h.  */
   13914 
   13915 /* Override any GCC internal prototype to avoid an error.
   13916    Use char because int might match the return type of a GCC
   13917    builtin and then its argument prototype would still apply.  */
   13918 #ifdef __cplusplus
   13919 extern "C"
   13920 #endif
   13921 char pthread_kill ();
   13922 int
   13923 main ()
   13924 {
   13925 return pthread_kill ();
   13926   ;
   13927   return 0;
   13928 }
   13929 _ACEOF
   13930 if ac_fn_c_try_link "$LINENO"; then :
   13931   ac_cv_lib_pthread_pthread_kill=yes
   13932 else
   13933   ac_cv_lib_pthread_pthread_kill=no
   13934 fi
   13935 rm -f core conftest.err conftest.$ac_objext \
   13936     conftest$ac_exeext conftest.$ac_ext
   13937 LIBS=$ac_check_lib_save_LIBS
   13938 fi
   13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   13940 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   13941 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   13942   gl_pthread_api=yes
   13943            LIBPTHREAD=-lpthread
   13944            LIBPMULTITHREAD=-lpthread
   13945 fi
   13946 
   13947         if test $gl_pthread_api != yes; then
   13948           # For FreeBSD 4.
   13949           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
   13950 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
   13951 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
   13952   $as_echo_n "(cached) " >&6
   13953 else
   13954   ac_check_lib_save_LIBS=$LIBS
   13955 LIBS="-lc_r  $LIBS"
   13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13957 /* end confdefs.h.  */
   13958 
   13959 /* Override any GCC internal prototype to avoid an error.
   13960    Use char because int might match the return type of a GCC
   13961    builtin and then its argument prototype would still apply.  */
   13962 #ifdef __cplusplus
   13963 extern "C"
   13964 #endif
   13965 char pthread_kill ();
   13966 int
   13967 main ()
   13968 {
   13969 return pthread_kill ();
   13970   ;
   13971   return 0;
   13972 }
   13973 _ACEOF
   13974 if ac_fn_c_try_link "$LINENO"; then :
   13975   ac_cv_lib_c_r_pthread_kill=yes
   13976 else
   13977   ac_cv_lib_c_r_pthread_kill=no
   13978 fi
   13979 rm -f core conftest.err conftest.$ac_objext \
   13980     conftest$ac_exeext conftest.$ac_ext
   13981 LIBS=$ac_check_lib_save_LIBS
   13982 fi
   13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
   13984 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
   13985 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
   13986   gl_pthread_api=yes
   13987              LIBPTHREAD=-lc_r
   13988              LIBPMULTITHREAD=-lc_r
   13989 fi
   13990 
   13991         fi
   13992       fi
   13993       echo "$as_me:13993: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
   13994     fi
   13995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
   13996 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
   13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
   13998 $as_echo "$gl_pthread_api" >&6; }
   13999 
   14000 
   14001     if test $gl_pthread_api = yes; then
   14002 
   14003 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
   14004 
   14005     fi
   14006 
   14007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14008 /* end confdefs.h.  */
   14009 #include <sched.h>
   14010 int
   14011 main ()
   14012 {
   14013 sched_yield ();
   14014   ;
   14015   return 0;
   14016 }
   14017 _ACEOF
   14018 if ac_fn_c_try_link "$LINENO"; then :
   14019   LIB_SCHED_YIELD=
   14020 
   14021 else
   14022          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
   14023 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
   14024 if ${ac_cv_lib_rt_sched_yield+:} false; then :
   14025   $as_echo_n "(cached) " >&6
   14026 else
   14027   ac_check_lib_save_LIBS=$LIBS
   14028 LIBS="-lrt  $LIBS"
   14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14030 /* end confdefs.h.  */
   14031 
   14032 /* Override any GCC internal prototype to avoid an error.
   14033    Use char because int might match the return type of a GCC
   14034    builtin and then its argument prototype would still apply.  */
   14035 #ifdef __cplusplus
   14036 extern "C"
   14037 #endif
   14038 char sched_yield ();
   14039 int
   14040 main ()
   14041 {
   14042 return sched_yield ();
   14043   ;
   14044   return 0;
   14045 }
   14046 _ACEOF
   14047 if ac_fn_c_try_link "$LINENO"; then :
   14048   ac_cv_lib_rt_sched_yield=yes
   14049 else
   14050   ac_cv_lib_rt_sched_yield=no
   14051 fi
   14052 rm -f core conftest.err conftest.$ac_objext \
   14053     conftest$ac_exeext conftest.$ac_ext
   14054 LIBS=$ac_check_lib_save_LIBS
   14055 fi
   14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
   14057 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
   14058 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
   14059   LIB_SCHED_YIELD=-lrt
   14060 else
   14061             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
   14062 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
   14063 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
   14064   $as_echo_n "(cached) " >&6
   14065 else
   14066   ac_check_lib_save_LIBS=$LIBS
   14067 LIBS="-lposix4  $LIBS"
   14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14069 /* end confdefs.h.  */
   14070 
   14071 /* Override any GCC internal prototype to avoid an error.
   14072    Use char because int might match the return type of a GCC
   14073    builtin and then its argument prototype would still apply.  */
   14074 #ifdef __cplusplus
   14075 extern "C"
   14076 #endif
   14077 char sched_yield ();
   14078 int
   14079 main ()
   14080 {
   14081 return sched_yield ();
   14082   ;
   14083   return 0;
   14084 }
   14085 _ACEOF
   14086 if ac_fn_c_try_link "$LINENO"; then :
   14087   ac_cv_lib_posix4_sched_yield=yes
   14088 else
   14089   ac_cv_lib_posix4_sched_yield=no
   14090 fi
   14091 rm -f core conftest.err conftest.$ac_objext \
   14092     conftest$ac_exeext conftest.$ac_ext
   14093 LIBS=$ac_check_lib_save_LIBS
   14094 fi
   14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
   14096 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
   14097 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
   14098   LIB_SCHED_YIELD=-lposix4
   14099 fi
   14100 
   14101 fi
   14102 
   14103 
   14104 fi
   14105 rm -f core conftest.err conftest.$ac_objext \
   14106     conftest$ac_exeext conftest.$ac_ext
   14107 
   14108 
   14109     gl_pthreadlib_body_done=done
   14110   fi
   14111 
   14112 
   14113 
   14114 
   14115 
   14116 
   14117 
   14118 
   14119 
   14120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
   14121 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
   14122 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
   14123   $as_echo_n "(cached) " >&6
   14124 else
   14125   case "$host_os" in
   14126        # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
   14127        *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
   14128          gl_cv_func_setlocale_null_all_mtsafe=no ;;
   14129        # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
   14130        *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
   14131          gl_cv_func_setlocale_null_all_mtsafe=yes ;;
   14132        # If we don't know, obey --enable-cross-guesses.
   14133        *)
   14134          gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
   14135      esac
   14136 
   14137 fi
   14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
   14139 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
   14140     case "$host_os" in
   14141     mingw*) ;;
   14142     *)
   14143       if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
   14144         gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
   14145       fi
   14146       ;;
   14147   esac
   14148   case "$gl_cv_func_setlocale_null_all_mtsafe" in
   14149     *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
   14150     *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
   14151   esac
   14152 
   14153 cat >>confdefs.h <<_ACEOF
   14154 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
   14155 _ACEOF
   14156 
   14157 
   14158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
   14159 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
   14160 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
   14161   $as_echo_n "(cached) " >&6
   14162 else
   14163   case "$host_os" in
   14164        # Guess no on OpenBSD, AIX.
   14165        openbsd* | aix*)
   14166          gl_cv_func_setlocale_null_one_mtsafe=no ;;
   14167        # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
   14168        *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
   14169          gl_cv_func_setlocale_null_one_mtsafe=yes ;;
   14170        # If we don't know, obey --enable-cross-guesses.
   14171        *)
   14172          gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
   14173      esac
   14174 
   14175 fi
   14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
   14177 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
   14178     case "$host_os" in
   14179     mingw*) ;;
   14180     *)
   14181       if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
   14182         gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
   14183       fi
   14184       ;;
   14185   esac
   14186   case "$gl_cv_func_setlocale_null_one_mtsafe" in
   14187     *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
   14188     *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
   14189   esac
   14190 
   14191 cat >>confdefs.h <<_ACEOF
   14192 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
   14193 _ACEOF
   14194 
   14195 
   14196     if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
   14197     case "$host_os" in
   14198       mingw*) LIB_SETLOCALE_NULL= ;;
   14199       *)
   14200 
   14201 
   14202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
   14203 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
   14204 if ${gl_cv_have_weak+:} false; then :
   14205   $as_echo_n "(cached) " >&6
   14206 else
   14207   case "$host_os" in
   14208        cygwin*)
   14209                                     gl_cv_have_weak="guessing no"
   14210          ;;
   14211        *)
   14212          gl_cv_have_weak=no
   14213                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14214 /* end confdefs.h.  */
   14215 extern void xyzzy ();
   14216 #pragma weak xyzzy
   14217 int
   14218 main ()
   14219 {
   14220 xyzzy();
   14221   ;
   14222   return 0;
   14223 }
   14224 _ACEOF
   14225 if ac_fn_c_try_link "$LINENO"; then :
   14226   gl_cv_have_weak=maybe
   14227 fi
   14228 rm -f core conftest.err conftest.$ac_objext \
   14229     conftest$ac_exeext conftest.$ac_ext
   14230          if test $gl_cv_have_weak = maybe; then
   14231                                  if test "$cross_compiling" = yes; then :
   14232                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14233 /* end confdefs.h.  */
   14234 #ifdef __ELF__
   14235                  Extensible Linking Format
   14236                  #endif
   14237 
   14238 _ACEOF
   14239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14240   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
   14241   gl_cv_have_weak="guessing yes"
   14242 else
   14243   gl_cv_have_weak="guessing no"
   14244 fi
   14245 rm -f conftest*
   14246 
   14247 
   14248 else
   14249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14250 /* end confdefs.h.  */
   14251 
   14252 #include <stdio.h>
   14253 #pragma weak fputs
   14254 int main ()
   14255 {
   14256   return (fputs == NULL);
   14257 }
   14258 _ACEOF
   14259 if ac_fn_c_try_run "$LINENO"; then :
   14260   gl_cv_have_weak=yes
   14261 else
   14262   gl_cv_have_weak=no
   14263 fi
   14264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14265   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14266 fi
   14267 
   14268          fi
   14269          ;;
   14270      esac
   14271           case " $LDFLAGS " in
   14272        *" -static "*) gl_cv_have_weak=no ;;
   14273      esac
   14274                     case "$gl_cv_have_weak" in
   14275        *yes)
   14276          case "$host_os" in
   14277            freebsd* | dragonfly* | midnightbsd*)
   14278              : > conftest1.c
   14279              $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
   14280              cat <<EOF > conftest2.c
   14281 #include <pthread.h>
   14282 #pragma weak pthread_mutexattr_gettype
   14283 int main ()
   14284 {
   14285   return (pthread_mutexattr_gettype != NULL);
   14286 }
   14287 EOF
   14288              $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
   14289                || gl_cv_have_weak=no
   14290              rm -f conftest1.c libempty.so conftest2.c conftest
   14291              ;;
   14292          esac
   14293          ;;
   14294      esac
   14295 
   14296 fi
   14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
   14298 $as_echo "$gl_cv_have_weak" >&6; }
   14299   case "$gl_cv_have_weak" in
   14300     *yes)
   14301 
   14302 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
   14303 
   14304       ;;
   14305   esac
   14306 
   14307         case "$gl_cv_have_weak" in
   14308           *yes) LIB_SETLOCALE_NULL= ;;
   14309           *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
   14310         esac
   14311         ;;
   14312     esac
   14313   else
   14314     LIB_SETLOCALE_NULL=
   14315   fi
   14316 
   14317 
   14318 
   14319 
   14320 
   14321 
   14322 
   14323 
   14324 
   14325 
   14326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
   14327 $as_echo_n "checking for IPv4 sockets... " >&6; }
   14328 if ${gl_cv_socket_ipv4+:} false; then :
   14329   $as_echo_n "(cached) " >&6
   14330 else
   14331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14332 /* end confdefs.h.  */
   14333 #include <sys/types.h>
   14334 #ifdef HAVE_SYS_SOCKET_H
   14335 #include <sys/socket.h>
   14336 #endif
   14337 #ifdef HAVE_NETINET_IN_H
   14338 #include <netinet/in.h>
   14339 #endif
   14340 #ifdef HAVE_WINSOCK2_H
   14341 #include <winsock2.h>
   14342 #endif
   14343 int
   14344 main ()
   14345 {
   14346 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
   14347  if (&x && &y && &z) return 0;
   14348   ;
   14349   return 0;
   14350 }
   14351 _ACEOF
   14352 if ac_fn_c_try_compile "$LINENO"; then :
   14353   gl_cv_socket_ipv4=yes
   14354 else
   14355   gl_cv_socket_ipv4=no
   14356 fi
   14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14358 fi
   14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
   14360 $as_echo "$gl_cv_socket_ipv4" >&6; }
   14361   if test $gl_cv_socket_ipv4 = yes; then
   14362 
   14363 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
   14364 
   14365   fi
   14366 
   14367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
   14368 $as_echo_n "checking for IPv6 sockets... " >&6; }
   14369 if ${gl_cv_socket_ipv6+:} false; then :
   14370   $as_echo_n "(cached) " >&6
   14371 else
   14372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14373 /* end confdefs.h.  */
   14374 #include <sys/types.h>
   14375 #ifdef HAVE_SYS_SOCKET_H
   14376 #include <sys/socket.h>
   14377 #endif
   14378 #ifdef HAVE_NETINET_IN_H
   14379 #include <netinet/in.h>
   14380 #endif
   14381 #ifdef HAVE_WINSOCK2_H
   14382 #include <winsock2.h>
   14383 #endif
   14384 #ifdef HAVE_WS2TCPIP_H
   14385 #include <ws2tcpip.h>
   14386 #endif
   14387 int
   14388 main ()
   14389 {
   14390 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
   14391  if (&x && &y && &z) return 0;
   14392   ;
   14393   return 0;
   14394 }
   14395 _ACEOF
   14396 if ac_fn_c_try_compile "$LINENO"; then :
   14397   gl_cv_socket_ipv6=yes
   14398 else
   14399   gl_cv_socket_ipv6=no
   14400 fi
   14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14402 fi
   14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
   14404 $as_echo "$gl_cv_socket_ipv6" >&6; }
   14405   if test $gl_cv_socket_ipv6 = yes; then
   14406 
   14407 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
   14408 
   14409   fi
   14410 
   14411 
   14412 
   14413 
   14414 
   14415 
   14416 
   14417 
   14418 
   14419 
   14420 
   14421 
   14422 
   14423      if test $gl_cv_have_include_next = yes; then
   14424        gl_cv_next_limits_h='<'limits.h'>'
   14425      else
   14426        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
   14427 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
   14428 if ${gl_cv_next_limits_h+:} false; then :
   14429   $as_echo_n "(cached) " >&6
   14430 else
   14431 
   14432              if test $ac_cv_header_limits_h = yes; then
   14433 
   14434 
   14435 
   14436 
   14437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14438 /* end confdefs.h.  */
   14439 #include <limits.h>
   14440 _ACEOF
   14441                 case "$host_os" in
   14442     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   14443     *)    gl_absname_cpp="$ac_cpp" ;;
   14444   esac
   14445 
   14446   case "$host_os" in
   14447     mingw*)
   14448                                           gl_dirsep_regex='[/\\]'
   14449       ;;
   14450     *)
   14451       gl_dirsep_regex='\/'
   14452       ;;
   14453   esac
   14454       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   14455   gl_header_literal_regex=`echo 'limits.h' \
   14456                            | sed -e "$gl_make_literal_regex_sed"`
   14457   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   14458       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   14459       s|^/[^/]|//&|
   14460       p
   14461       q
   14462     }'
   14463 
   14464         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   14465   sed -n "$gl_absolute_header_sed"`
   14466 
   14467           gl_header=$gl_cv_absolute_limits_h
   14468           gl_cv_next_limits_h='"'$gl_header'"'
   14469           else
   14470                gl_cv_next_limits_h='<'limits.h'>'
   14471              fi
   14472 
   14473 
   14474 fi
   14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
   14476 $as_echo "$gl_cv_next_limits_h" >&6; }
   14477      fi
   14478      NEXT_LIMITS_H=$gl_cv_next_limits_h
   14479 
   14480      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   14481        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   14482        gl_next_as_first_directive='<'limits.h'>'
   14483      else
   14484        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   14485        gl_next_as_first_directive=$gl_cv_next_limits_h
   14486      fi
   14487      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
   14488 
   14489 
   14490 
   14491 
   14492 
   14493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
   14494 $as_echo_n "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
   14495 if ${gl_cv_header_limits_width+:} false; then :
   14496   $as_echo_n "(cached) " >&6
   14497 else
   14498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14499 /* end confdefs.h.  */
   14500 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
   14501              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
   14502             #endif
   14503             #include <limits.h>
   14504             long long llm = LLONG_MAX;
   14505             int wb = WORD_BIT;
   14506             int ullw = ULLONG_WIDTH;
   14507             int bw = BOOL_WIDTH;
   14508 
   14509 int
   14510 main ()
   14511 {
   14512 
   14513   ;
   14514   return 0;
   14515 }
   14516 _ACEOF
   14517 if ac_fn_c_try_compile "$LINENO"; then :
   14518   gl_cv_header_limits_width=yes
   14519 else
   14520   gl_cv_header_limits_width=no
   14521 fi
   14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14523 fi
   14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
   14525 $as_echo "$gl_cv_header_limits_width" >&6; }
   14526   if test "$gl_cv_header_limits_width" = yes; then
   14527     GL_GENERATE_LIMITS_H=false
   14528   else
   14529     GL_GENERATE_LIMITS_H=true
   14530   fi
   14531 
   14532 
   14533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
   14534 $as_echo_n "checking for wint_t... " >&6; }
   14535 if ${gt_cv_c_wint_t+:} false; then :
   14536   $as_echo_n "(cached) " >&6
   14537 else
   14538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14539 /* end confdefs.h.  */
   14540 #include <wchar.h>
   14541             wint_t foo = (wchar_t)'\0';
   14542 int
   14543 main ()
   14544 {
   14545 
   14546   ;
   14547   return 0;
   14548 }
   14549 _ACEOF
   14550 if ac_fn_c_try_compile "$LINENO"; then :
   14551   gt_cv_c_wint_t=yes
   14552 else
   14553   gt_cv_c_wint_t=no
   14554 fi
   14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14556 fi
   14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
   14558 $as_echo "$gt_cv_c_wint_t" >&6; }
   14559   if test $gt_cv_c_wint_t = yes; then
   14560 
   14561 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
   14562 
   14563 
   14564             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
   14565 $as_echo_n "checking whether wint_t is large enough... " >&6; }
   14566 if ${gl_cv_type_wint_t_large_enough+:} false; then :
   14567   $as_echo_n "(cached) " >&6
   14568 else
   14569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14570 /* end confdefs.h.  */
   14571 #include <wchar.h>
   14572               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
   14573 
   14574 int
   14575 main ()
   14576 {
   14577 
   14578   ;
   14579   return 0;
   14580 }
   14581 _ACEOF
   14582 if ac_fn_c_try_compile "$LINENO"; then :
   14583   gl_cv_type_wint_t_large_enough=yes
   14584 else
   14585   gl_cv_type_wint_t_large_enough=no
   14586 fi
   14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14588 fi
   14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
   14590 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
   14591     if test $gl_cv_type_wint_t_large_enough = no; then
   14592       GNULIBHEADERS_OVERRIDE_WINT_T=1
   14593     else
   14594       GNULIBHEADERS_OVERRIDE_WINT_T=0
   14595     fi
   14596   else
   14597     GNULIBHEADERS_OVERRIDE_WINT_T=0
   14598   fi
   14599 
   14600 
   14601 
   14602 
   14603 
   14604 
   14605 
   14606 
   14607 
   14608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
   14609 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
   14610 if ${gl_cv_c_multiarch+:} false; then :
   14611   $as_echo_n "(cached) " >&6
   14612 else
   14613   gl_cv_c_multiarch=no
   14614      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14615 /* end confdefs.h.  */
   14616 #ifndef __APPLE_CC__
   14617             not a universal capable compiler
   14618            #endif
   14619            typedef int dummy;
   14620 
   14621 _ACEOF
   14622 if ac_fn_c_try_compile "$LINENO"; then :
   14623 
   14624                         arch=
   14625         prev=
   14626         for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
   14627           if test -n "$prev"; then
   14628             case $word in
   14629               i?86 | x86_64 | ppc | ppc64 | arm | arm64)
   14630                 if test -z "$arch" || test "$arch" = "$word"; then
   14631                   arch="$word"
   14632                 else
   14633                   gl_cv_c_multiarch=yes
   14634                 fi
   14635                 ;;
   14636             esac
   14637             prev=
   14638           else
   14639             if test "x$word" = "x-arch"; then
   14640               prev=arch
   14641             fi
   14642           fi
   14643         done
   14644 
   14645 fi
   14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14647 
   14648 fi
   14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
   14650 $as_echo "$gl_cv_c_multiarch" >&6; }
   14651   if test $gl_cv_c_multiarch = yes; then
   14652     APPLE_UNIVERSAL_BUILD=1
   14653   else
   14654     APPLE_UNIVERSAL_BUILD=0
   14655   fi
   14656 
   14657 
   14658 
   14659 
   14660 
   14661 
   14662 
   14663 
   14664 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
   14665 
   14666 
   14667 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
   14668 
   14669 
   14670 
   14671   if test $ac_cv_header_wchar_h = yes; then
   14672     HAVE_WCHAR_H=1
   14673   else
   14674     HAVE_WCHAR_H=0
   14675   fi
   14676 
   14677 
   14678 
   14679   if test $ac_cv_header_inttypes_h = yes; then
   14680     HAVE_INTTYPES_H=1
   14681   else
   14682     HAVE_INTTYPES_H=0
   14683   fi
   14684 
   14685 
   14686 
   14687   if test $ac_cv_header_sys_types_h = yes; then
   14688     HAVE_SYS_TYPES_H=1
   14689   else
   14690     HAVE_SYS_TYPES_H=0
   14691   fi
   14692 
   14693 
   14694 
   14695 
   14696 
   14697 
   14698 
   14699 
   14700 
   14701 
   14702 
   14703      if test $gl_cv_have_include_next = yes; then
   14704        gl_cv_next_stdint_h='<'stdint.h'>'
   14705      else
   14706        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
   14707 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
   14708 if ${gl_cv_next_stdint_h+:} false; then :
   14709   $as_echo_n "(cached) " >&6
   14710 else
   14711 
   14712              if test $ac_cv_header_stdint_h = yes; then
   14713 
   14714 
   14715 
   14716 
   14717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14718 /* end confdefs.h.  */
   14719 #include <stdint.h>
   14720 _ACEOF
   14721                 case "$host_os" in
   14722     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   14723     *)    gl_absname_cpp="$ac_cpp" ;;
   14724   esac
   14725 
   14726   case "$host_os" in
   14727     mingw*)
   14728                                           gl_dirsep_regex='[/\\]'
   14729       ;;
   14730     *)
   14731       gl_dirsep_regex='\/'
   14732       ;;
   14733   esac
   14734       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   14735   gl_header_literal_regex=`echo 'stdint.h' \
   14736                            | sed -e "$gl_make_literal_regex_sed"`
   14737   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   14738       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   14739       s|^/[^/]|//&|
   14740       p
   14741       q
   14742     }'
   14743 
   14744         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   14745   sed -n "$gl_absolute_header_sed"`
   14746 
   14747           gl_header=$gl_cv_absolute_stdint_h
   14748           gl_cv_next_stdint_h='"'$gl_header'"'
   14749           else
   14750                gl_cv_next_stdint_h='<'stdint.h'>'
   14751              fi
   14752 
   14753 
   14754 fi
   14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
   14756 $as_echo "$gl_cv_next_stdint_h" >&6; }
   14757      fi
   14758      NEXT_STDINT_H=$gl_cv_next_stdint_h
   14759 
   14760      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   14761        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   14762        gl_next_as_first_directive='<'stdint.h'>'
   14763      else
   14764        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   14765        gl_next_as_first_directive=$gl_cv_next_stdint_h
   14766      fi
   14767      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
   14768 
   14769 
   14770 
   14771 
   14772   if test $ac_cv_header_stdint_h = yes; then
   14773     HAVE_STDINT_H=1
   14774   else
   14775     HAVE_STDINT_H=0
   14776   fi
   14777 
   14778 
   14779     if test $ac_cv_header_stdint_h = yes; then
   14780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
   14781 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
   14782 if ${gl_cv_header_working_stdint_h+:} false; then :
   14783   $as_echo_n "(cached) " >&6
   14784 else
   14785   gl_cv_header_working_stdint_h=no
   14786        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14787 /* end confdefs.h.  */
   14788 
   14789 
   14790 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   14791 #define __STDC_CONSTANT_MACROS 1
   14792 #define __STDC_LIMIT_MACROS 1
   14793 #include <stdint.h>
   14794 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
   14795 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
   14796 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
   14797 #endif
   14798 
   14799 
   14800   #include <stddef.h>
   14801   #include <signal.h>
   14802   #if HAVE_WCHAR_H
   14803   # include <wchar.h>
   14804   #endif
   14805 
   14806 
   14807 #ifdef INT8_MAX
   14808 int8_t a1 = INT8_MAX;
   14809 int8_t a1min = INT8_MIN;
   14810 #endif
   14811 #ifdef INT16_MAX
   14812 int16_t a2 = INT16_MAX;
   14813 int16_t a2min = INT16_MIN;
   14814 #endif
   14815 #ifdef INT32_MAX
   14816 int32_t a3 = INT32_MAX;
   14817 int32_t a3min = INT32_MIN;
   14818 #endif
   14819 #ifdef INT64_MAX
   14820 int64_t a4 = INT64_MAX;
   14821 int64_t a4min = INT64_MIN;
   14822 #endif
   14823 #ifdef UINT8_MAX
   14824 uint8_t b1 = UINT8_MAX;
   14825 #else
   14826 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
   14827 #endif
   14828 #ifdef UINT16_MAX
   14829 uint16_t b2 = UINT16_MAX;
   14830 #endif
   14831 #ifdef UINT32_MAX
   14832 uint32_t b3 = UINT32_MAX;
   14833 #endif
   14834 #ifdef UINT64_MAX
   14835 uint64_t b4 = UINT64_MAX;
   14836 #endif
   14837 int_least8_t c1 = INT8_C (0x7f);
   14838 int_least8_t c1max = INT_LEAST8_MAX;
   14839 int_least8_t c1min = INT_LEAST8_MIN;
   14840 int_least16_t c2 = INT16_C (0x7fff);
   14841 int_least16_t c2max = INT_LEAST16_MAX;
   14842 int_least16_t c2min = INT_LEAST16_MIN;
   14843 int_least32_t c3 = INT32_C (0x7fffffff);
   14844 int_least32_t c3max = INT_LEAST32_MAX;
   14845 int_least32_t c3min = INT_LEAST32_MIN;
   14846 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
   14847 int_least64_t c4max = INT_LEAST64_MAX;
   14848 int_least64_t c4min = INT_LEAST64_MIN;
   14849 uint_least8_t d1 = UINT8_C (0xff);
   14850 uint_least8_t d1max = UINT_LEAST8_MAX;
   14851 uint_least16_t d2 = UINT16_C (0xffff);
   14852 uint_least16_t d2max = UINT_LEAST16_MAX;
   14853 uint_least32_t d3 = UINT32_C (0xffffffff);
   14854 uint_least32_t d3max = UINT_LEAST32_MAX;
   14855 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
   14856 uint_least64_t d4max = UINT_LEAST64_MAX;
   14857 int_fast8_t e1 = INT_FAST8_MAX;
   14858 int_fast8_t e1min = INT_FAST8_MIN;
   14859 int_fast16_t e2 = INT_FAST16_MAX;
   14860 int_fast16_t e2min = INT_FAST16_MIN;
   14861 int_fast32_t e3 = INT_FAST32_MAX;
   14862 int_fast32_t e3min = INT_FAST32_MIN;
   14863 int_fast64_t e4 = INT_FAST64_MAX;
   14864 int_fast64_t e4min = INT_FAST64_MIN;
   14865 uint_fast8_t f1 = UINT_FAST8_MAX;
   14866 uint_fast16_t f2 = UINT_FAST16_MAX;
   14867 uint_fast32_t f3 = UINT_FAST32_MAX;
   14868 uint_fast64_t f4 = UINT_FAST64_MAX;
   14869 #ifdef INTPTR_MAX
   14870 intptr_t g = INTPTR_MAX;
   14871 intptr_t gmin = INTPTR_MIN;
   14872 #endif
   14873 #ifdef UINTPTR_MAX
   14874 uintptr_t h = UINTPTR_MAX;
   14875 #endif
   14876 intmax_t i = INTMAX_MAX;
   14877 uintmax_t j = UINTMAX_MAX;
   14878 
   14879 /* Check that SIZE_MAX has the correct type, if possible.  */
   14880 #if 201112 <= __STDC_VERSION__
   14881 int k = _Generic (SIZE_MAX, size_t: 0);
   14882 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
   14883        || (0x5110 <= __SUNPRO_C && !__STDC__))
   14884 extern size_t k;
   14885 extern __typeof__ (SIZE_MAX) k;
   14886 #endif
   14887 
   14888 #include <limits.h> /* for CHAR_BIT */
   14889 #define TYPE_MINIMUM(t) \
   14890   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
   14891 #define TYPE_MAXIMUM(t) \
   14892   ((t) ((t) 0 < (t) -1 \
   14893         ? (t) -1 \
   14894         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
   14895 struct s {
   14896   int check_PTRDIFF:
   14897       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
   14898       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
   14899       ? 1 : -1;
   14900   /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64.  */
   14901   int check_SIG_ATOMIC:
   14902       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
   14903       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
   14904       ? 1 : -1;
   14905   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
   14906   int check_WCHAR:
   14907       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
   14908       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
   14909       ? 1 : -1;
   14910   /* Detect bug in mingw.  */
   14911   int check_WINT:
   14912       WINT_MIN == TYPE_MINIMUM (wint_t)
   14913       && WINT_MAX == TYPE_MAXIMUM (wint_t)
   14914       ? 1 : -1;
   14915 
   14916   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
   14917   int check_UINT8_C:
   14918         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
   14919   int check_UINT16_C:
   14920         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
   14921 
   14922   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
   14923 #ifdef UINT8_MAX
   14924   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
   14925 #endif
   14926 #ifdef UINT16_MAX
   14927   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
   14928 #endif
   14929 #ifdef UINT32_MAX
   14930   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
   14931 #endif
   14932 #ifdef UINT64_MAX
   14933   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
   14934 #endif
   14935   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
   14936   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
   14937   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
   14938   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
   14939   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
   14940   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
   14941   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
   14942   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
   14943   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
   14944   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
   14945   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
   14946 };
   14947 
   14948 int
   14949 main ()
   14950 {
   14951 
   14952   ;
   14953   return 0;
   14954 }
   14955 _ACEOF
   14956 if ac_fn_c_try_compile "$LINENO"; then :
   14957                                                     if test "$cross_compiling" = yes; then :
   14958   case "$host_os" in
   14959                          # Guess yes on native Windows.
   14960                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
   14961                          # In general, assume it works.
   14962                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
   14963                esac
   14964 
   14965 else
   14966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14967 /* end confdefs.h.  */
   14968 
   14969 
   14970 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   14971 #define __STDC_CONSTANT_MACROS 1
   14972 #define __STDC_LIMIT_MACROS 1
   14973 #include <stdint.h>
   14974 
   14975 
   14976   #include <stddef.h>
   14977   #include <signal.h>
   14978   #if HAVE_WCHAR_H
   14979   # include <wchar.h>
   14980   #endif
   14981 
   14982 
   14983 #include <stdio.h>
   14984 #include <string.h>
   14985 #define MVAL(macro) MVAL1(macro)
   14986 #define MVAL1(expression) #expression
   14987 static const char *macro_values[] =
   14988   {
   14989 #ifdef INT8_MAX
   14990     MVAL (INT8_MAX),
   14991 #endif
   14992 #ifdef INT16_MAX
   14993     MVAL (INT16_MAX),
   14994 #endif
   14995 #ifdef INT32_MAX
   14996     MVAL (INT32_MAX),
   14997 #endif
   14998 #ifdef INT64_MAX
   14999     MVAL (INT64_MAX),
   15000 #endif
   15001 #ifdef UINT8_MAX
   15002     MVAL (UINT8_MAX),
   15003 #endif
   15004 #ifdef UINT16_MAX
   15005     MVAL (UINT16_MAX),
   15006 #endif
   15007 #ifdef UINT32_MAX
   15008     MVAL (UINT32_MAX),
   15009 #endif
   15010 #ifdef UINT64_MAX
   15011     MVAL (UINT64_MAX),
   15012 #endif
   15013     NULL
   15014   };
   15015 
   15016 int
   15017 main ()
   15018 {
   15019 
   15020   const char **mv;
   15021   for (mv = macro_values; *mv != NULL; mv++)
   15022     {
   15023       const char *value = *mv;
   15024       /* Test whether it looks like a cast expression.  */
   15025       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
   15026           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
   15027           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
   15028           || strncmp (value, "((int)"/*)*/, 6) == 0
   15029           || strncmp (value, "((signed short)"/*)*/, 15) == 0
   15030           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
   15031         return mv - macro_values + 1;
   15032     }
   15033   return 0;
   15034 
   15035   ;
   15036   return 0;
   15037 }
   15038 _ACEOF
   15039 if ac_fn_c_try_run "$LINENO"; then :
   15040   gl_cv_header_working_stdint_h=yes
   15041 fi
   15042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15043   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15044 fi
   15045 
   15046 
   15047 fi
   15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15049 
   15050 fi
   15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
   15052 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
   15053   fi
   15054 
   15055   HAVE_C99_STDINT_H=0
   15056   HAVE_SYS_BITYPES_H=0
   15057   HAVE_SYS_INTTYPES_H=0
   15058   GL_GENERATE_STDINT_H=true
   15059   case "$gl_cv_header_working_stdint_h" in
   15060     *yes)
   15061       HAVE_C99_STDINT_H=1
   15062                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
   15063 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
   15064 if ${gl_cv_header_stdint_without_STDC_macros+:} false; then :
   15065   $as_echo_n "(cached) " >&6
   15066 else
   15067   gl_cv_header_stdint_without_STDC_macros=no
   15068          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15069 /* end confdefs.h.  */
   15070 
   15071 
   15072 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
   15073 #include <stdint.h>
   15074 
   15075 
   15076   #include <stddef.h>
   15077   #include <signal.h>
   15078   #if HAVE_WCHAR_H
   15079   # include <wchar.h>
   15080   #endif
   15081 
   15082 
   15083 intmax_t im = INTMAX_MAX;
   15084 int32_t i32 = INT32_C (0x7fffffff);
   15085 
   15086 int
   15087 main ()
   15088 {
   15089 
   15090   ;
   15091   return 0;
   15092 }
   15093 _ACEOF
   15094 if ac_fn_c_try_compile "$LINENO"; then :
   15095   gl_cv_header_stdint_without_STDC_macros=yes
   15096 fi
   15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15098 
   15099 fi
   15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
   15101 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
   15102 
   15103       if test $gl_cv_header_stdint_without_STDC_macros = no; then
   15104 
   15105 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
   15106 
   15107 
   15108 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
   15109 
   15110       fi
   15111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
   15112 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
   15113 if ${gl_cv_header_stdint_width+:} false; then :
   15114   $as_echo_n "(cached) " >&6
   15115 else
   15116   gl_cv_header_stdint_width=no
   15117          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15118 /* end confdefs.h.  */
   15119 
   15120               /* Work if build is not clean.  */
   15121               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
   15122               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
   15123                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
   15124               #endif
   15125               #include <stdint.h>
   15126 
   15127   #include <stddef.h>
   15128   #include <signal.h>
   15129   #if HAVE_WCHAR_H
   15130   # include <wchar.h>
   15131   #endif
   15132 
   15133               int iw = UINTMAX_WIDTH;
   15134 
   15135 int
   15136 main ()
   15137 {
   15138 
   15139   ;
   15140   return 0;
   15141 }
   15142 _ACEOF
   15143 if ac_fn_c_try_compile "$LINENO"; then :
   15144   gl_cv_header_stdint_width=yes
   15145 fi
   15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15147 fi
   15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
   15149 $as_echo "$gl_cv_header_stdint_width" >&6; }
   15150       if test "$gl_cv_header_stdint_width" = yes; then
   15151         GL_GENERATE_STDINT_H=false
   15152       fi
   15153       ;;
   15154     *)
   15155                   for ac_header in sys/inttypes.h sys/bitypes.h
   15156 do :
   15157   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   15159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   15160   cat >>confdefs.h <<_ACEOF
   15161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15162 _ACEOF
   15163 
   15164 fi
   15165 
   15166 done
   15167 
   15168       if test $ac_cv_header_sys_inttypes_h = yes; then
   15169         HAVE_SYS_INTTYPES_H=1
   15170       fi
   15171       if test $ac_cv_header_sys_bitypes_h = yes; then
   15172         HAVE_SYS_BITYPES_H=1
   15173       fi
   15174 
   15175 
   15176   if test $APPLE_UNIVERSAL_BUILD = 0; then
   15177 
   15178 
   15179   for gltype in ptrdiff_t size_t ; do
   15180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
   15181 $as_echo_n "checking for bit size of $gltype... " >&6; }
   15182 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
   15183   $as_echo_n "(cached) " >&6
   15184 else
   15185   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
   15186   #include <stddef.h>
   15187   #include <signal.h>
   15188   #if HAVE_WCHAR_H
   15189   # include <wchar.h>
   15190   #endif
   15191 
   15192 #include <limits.h>"; then :
   15193 
   15194 else
   15195   result=unknown
   15196 fi
   15197 
   15198        eval gl_cv_bitsizeof_${gltype}=\$result
   15199 
   15200 fi
   15201 eval ac_res=\$gl_cv_bitsizeof_${gltype}
   15202 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15203 $as_echo "$ac_res" >&6; }
   15204     eval result=\$gl_cv_bitsizeof_${gltype}
   15205     if test $result = unknown; then
   15206                                                 result=0
   15207     fi
   15208     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   15209     cat >>confdefs.h <<_ACEOF
   15210 #define BITSIZEOF_${GLTYPE} $result
   15211 _ACEOF
   15212 
   15213     eval BITSIZEOF_${GLTYPE}=\$result
   15214   done
   15215 
   15216 
   15217   fi
   15218 
   15219 
   15220   for gltype in sig_atomic_t wchar_t wint_t ; do
   15221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
   15222 $as_echo_n "checking for bit size of $gltype... " >&6; }
   15223 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
   15224   $as_echo_n "(cached) " >&6
   15225 else
   15226   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
   15227   #include <stddef.h>
   15228   #include <signal.h>
   15229   #if HAVE_WCHAR_H
   15230   # include <wchar.h>
   15231   #endif
   15232 
   15233 #include <limits.h>"; then :
   15234 
   15235 else
   15236   result=unknown
   15237 fi
   15238 
   15239        eval gl_cv_bitsizeof_${gltype}=\$result
   15240 
   15241 fi
   15242 eval ac_res=\$gl_cv_bitsizeof_${gltype}
   15243 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15244 $as_echo "$ac_res" >&6; }
   15245     eval result=\$gl_cv_bitsizeof_${gltype}
   15246     if test $result = unknown; then
   15247                                                 result=0
   15248     fi
   15249     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   15250     cat >>confdefs.h <<_ACEOF
   15251 #define BITSIZEOF_${GLTYPE} $result
   15252 _ACEOF
   15253 
   15254     eval BITSIZEOF_${GLTYPE}=\$result
   15255   done
   15256 
   15257 
   15258 
   15259 
   15260   for gltype in sig_atomic_t wchar_t wint_t ; do
   15261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
   15262 $as_echo_n "checking whether $gltype is signed... " >&6; }
   15263 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
   15264   $as_echo_n "(cached) " >&6
   15265 else
   15266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15267 /* end confdefs.h.  */
   15268 
   15269   #include <stddef.h>
   15270   #include <signal.h>
   15271   #if HAVE_WCHAR_H
   15272   # include <wchar.h>
   15273   #endif
   15274 
   15275             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
   15276 int
   15277 main ()
   15278 {
   15279 
   15280   ;
   15281   return 0;
   15282 }
   15283 _ACEOF
   15284 if ac_fn_c_try_compile "$LINENO"; then :
   15285   result=yes
   15286 else
   15287   result=no
   15288 fi
   15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15290        eval gl_cv_type_${gltype}_signed=\$result
   15291 
   15292 fi
   15293 eval ac_res=\$gl_cv_type_${gltype}_signed
   15294 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15295 $as_echo "$ac_res" >&6; }
   15296     eval result=\$gl_cv_type_${gltype}_signed
   15297     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   15298     if test "$result" = yes; then
   15299       cat >>confdefs.h <<_ACEOF
   15300 #define HAVE_SIGNED_${GLTYPE} 1
   15301 _ACEOF
   15302 
   15303       eval HAVE_SIGNED_${GLTYPE}=1
   15304     else
   15305       eval HAVE_SIGNED_${GLTYPE}=0
   15306     fi
   15307   done
   15308 
   15309 
   15310   gl_cv_type_ptrdiff_t_signed=yes
   15311   gl_cv_type_size_t_signed=no
   15312   if test $APPLE_UNIVERSAL_BUILD = 0; then
   15313 
   15314 
   15315   for gltype in ptrdiff_t size_t ; do
   15316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
   15317 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   15318 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
   15319   $as_echo_n "(cached) " >&6
   15320 else
   15321   eval gl_cv_type_${gltype}_suffix=no
   15322        eval result=\$gl_cv_type_${gltype}_signed
   15323        if test "$result" = yes; then
   15324          glsufu=
   15325        else
   15326          glsufu=u
   15327        fi
   15328        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   15329          case $glsuf in
   15330            '')  gltype1='int';;
   15331            l)   gltype1='long int';;
   15332            ll)  gltype1='long long int';;
   15333            i64) gltype1='__int64';;
   15334            u)   gltype1='unsigned int';;
   15335            ul)  gltype1='unsigned long int';;
   15336            ull) gltype1='unsigned long long int';;
   15337            ui64)gltype1='unsigned __int64';;
   15338          esac
   15339          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15340 /* end confdefs.h.  */
   15341 
   15342   #include <stddef.h>
   15343   #include <signal.h>
   15344   #if HAVE_WCHAR_H
   15345   # include <wchar.h>
   15346   #endif
   15347 
   15348               extern $gltype foo;
   15349               extern $gltype1 foo;
   15350 int
   15351 main ()
   15352 {
   15353 
   15354   ;
   15355   return 0;
   15356 }
   15357 _ACEOF
   15358 if ac_fn_c_try_compile "$LINENO"; then :
   15359   eval gl_cv_type_${gltype}_suffix=\$glsuf
   15360 fi
   15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15362          eval result=\$gl_cv_type_${gltype}_suffix
   15363          test "$result" != no && break
   15364        done
   15365 fi
   15366 eval ac_res=\$gl_cv_type_${gltype}_suffix
   15367 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15368 $as_echo "$ac_res" >&6; }
   15369     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   15370     eval result=\$gl_cv_type_${gltype}_suffix
   15371     test "$result" = no && result=
   15372     eval ${GLTYPE}_SUFFIX=\$result
   15373     cat >>confdefs.h <<_ACEOF
   15374 #define ${GLTYPE}_SUFFIX $result
   15375 _ACEOF
   15376 
   15377   done
   15378 
   15379 
   15380   fi
   15381 
   15382 
   15383   for gltype in sig_atomic_t wchar_t wint_t ; do
   15384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
   15385 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
   15386 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
   15387   $as_echo_n "(cached) " >&6
   15388 else
   15389   eval gl_cv_type_${gltype}_suffix=no
   15390        eval result=\$gl_cv_type_${gltype}_signed
   15391        if test "$result" = yes; then
   15392          glsufu=
   15393        else
   15394          glsufu=u
   15395        fi
   15396        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
   15397          case $glsuf in
   15398            '')  gltype1='int';;
   15399            l)   gltype1='long int';;
   15400            ll)  gltype1='long long int';;
   15401            i64) gltype1='__int64';;
   15402            u)   gltype1='unsigned int';;
   15403            ul)  gltype1='unsigned long int';;
   15404            ull) gltype1='unsigned long long int';;
   15405            ui64)gltype1='unsigned __int64';;
   15406          esac
   15407          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15408 /* end confdefs.h.  */
   15409 
   15410   #include <stddef.h>
   15411   #include <signal.h>
   15412   #if HAVE_WCHAR_H
   15413   # include <wchar.h>
   15414   #endif
   15415 
   15416               extern $gltype foo;
   15417               extern $gltype1 foo;
   15418 int
   15419 main ()
   15420 {
   15421 
   15422   ;
   15423   return 0;
   15424 }
   15425 _ACEOF
   15426 if ac_fn_c_try_compile "$LINENO"; then :
   15427   eval gl_cv_type_${gltype}_suffix=\$glsuf
   15428 fi
   15429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15430          eval result=\$gl_cv_type_${gltype}_suffix
   15431          test "$result" != no && break
   15432        done
   15433 fi
   15434 eval ac_res=\$gl_cv_type_${gltype}_suffix
   15435 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   15436 $as_echo "$ac_res" >&6; }
   15437     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
   15438     eval result=\$gl_cv_type_${gltype}_suffix
   15439     test "$result" = no && result=
   15440     eval ${GLTYPE}_SUFFIX=\$result
   15441     cat >>confdefs.h <<_ACEOF
   15442 #define ${GLTYPE}_SUFFIX $result
   15443 _ACEOF
   15444 
   15445   done
   15446 
   15447 
   15448 
   15449           if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
   15450     BITSIZEOF_WINT_T=32
   15451   fi
   15452 
   15453       ;;
   15454   esac
   15455 
   15456 
   15457 
   15458   GL_GENERATE_LIMITS_H=true
   15459 
   15460 
   15461 
   15462 
   15463 
   15464 
   15465 
   15466     HAVE_DECL_IMAXABS=1;
   15467   HAVE_DECL_IMAXDIV=1;
   15468   HAVE_DECL_STRTOIMAX=1;
   15469   HAVE_DECL_STRTOUMAX=1;
   15470   HAVE_IMAXDIV_T=1;
   15471   REPLACE_STRTOIMAX=0;
   15472   REPLACE_STRTOUMAX=0;
   15473   INT32_MAX_LT_INTMAX_MAX=1;
   15474   INT64_MAX_EQ_LONG_MAX='defined _LP64';
   15475   PRIPTR_PREFIX=__PRIPTR_PREFIX;
   15476   UINT32_MAX_LT_UINTMAX_MAX=1;
   15477   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
   15478 
   15479 
   15480 
   15481 
   15482 
   15483 
   15484 
   15485 
   15486 
   15487 
   15488 
   15489 
   15490 
   15491 
   15492 
   15493      if test $gl_cv_have_include_next = yes; then
   15494        gl_cv_next_inttypes_h='<'inttypes.h'>'
   15495      else
   15496        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
   15497 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
   15498 if ${gl_cv_next_inttypes_h+:} false; then :
   15499   $as_echo_n "(cached) " >&6
   15500 else
   15501 
   15502              if test $ac_cv_header_inttypes_h = yes; then
   15503 
   15504 
   15505 
   15506 
   15507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15508 /* end confdefs.h.  */
   15509 #include <inttypes.h>
   15510 _ACEOF
   15511                 case "$host_os" in
   15512     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   15513     *)    gl_absname_cpp="$ac_cpp" ;;
   15514   esac
   15515 
   15516   case "$host_os" in
   15517     mingw*)
   15518                                           gl_dirsep_regex='[/\\]'
   15519       ;;
   15520     *)
   15521       gl_dirsep_regex='\/'
   15522       ;;
   15523   esac
   15524       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   15525   gl_header_literal_regex=`echo 'inttypes.h' \
   15526                            | sed -e "$gl_make_literal_regex_sed"`
   15527   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   15528       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   15529       s|^/[^/]|//&|
   15530       p
   15531       q
   15532     }'
   15533 
   15534         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   15535   sed -n "$gl_absolute_header_sed"`
   15536 
   15537           gl_header=$gl_cv_absolute_inttypes_h
   15538           gl_cv_next_inttypes_h='"'$gl_header'"'
   15539           else
   15540                gl_cv_next_inttypes_h='<'inttypes.h'>'
   15541              fi
   15542 
   15543 
   15544 fi
   15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
   15546 $as_echo "$gl_cv_next_inttypes_h" >&6; }
   15547      fi
   15548      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
   15549 
   15550      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   15551        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   15552        gl_next_as_first_directive='<'inttypes.h'>'
   15553      else
   15554        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   15555        gl_next_as_first_directive=$gl_cv_next_inttypes_h
   15556      fi
   15557      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
   15558 
   15559 
   15560 
   15561 
   15562 
   15563 
   15564 
   15565 
   15566 
   15567 
   15568 
   15569 
   15570 
   15571 
   15572 
   15573 
   15574   PRIPTR_PREFIX=
   15575   if $GL_GENERATE_STDINT_H; then
   15576             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15577 /* end confdefs.h.  */
   15578 
   15579          #ifdef _WIN64
   15580          LLP64
   15581          #endif
   15582 
   15583 int
   15584 main ()
   15585 {
   15586 
   15587   ;
   15588   return 0;
   15589 }
   15590 
   15591 _ACEOF
   15592 if ac_fn_c_try_compile "$LINENO"; then :
   15593   PRIPTR_PREFIX='"l"'
   15594 else
   15595   PRIPTR_PREFIX='"ll"'
   15596 fi
   15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15598   else
   15599         for glpfx in '' l ll I64; do
   15600       case $glpfx in
   15601         '')  gltype1='int';;
   15602         l)   gltype1='long int';;
   15603         ll)  gltype1='long long int';;
   15604         I64) gltype1='__int64';;
   15605       esac
   15606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15607 /* end confdefs.h.  */
   15608 #include <stdint.h>
   15609            extern intptr_t foo;
   15610            extern $gltype1 foo;
   15611 int
   15612 main ()
   15613 {
   15614 
   15615   ;
   15616   return 0;
   15617 }
   15618 _ACEOF
   15619 if ac_fn_c_try_compile "$LINENO"; then :
   15620   PRIPTR_PREFIX='"'$glpfx'"'
   15621 fi
   15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15623       test -n "$PRIPTR_PREFIX" && break
   15624     done
   15625   fi
   15626 
   15627 
   15628 
   15629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
   15630 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
   15631 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
   15632   $as_echo_n "(cached) " >&6
   15633 else
   15634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15635 /* end confdefs.h.  */
   15636 /* Work also in C++ mode.  */
   15637             #define __STDC_LIMIT_MACROS 1
   15638 
   15639             /* Work if build is not clean.  */
   15640             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   15641 
   15642             #include <limits.h>
   15643             #if HAVE_STDINT_H
   15644              #include <stdint.h>
   15645             #endif
   15646 
   15647             #if defined INT32_MAX && defined INTMAX_MAX
   15648              #define CONDITION (INT32_MAX < INTMAX_MAX)
   15649             #else
   15650              #define CONDITION (sizeof (int) < sizeof (long long int))
   15651             #endif
   15652             int test[CONDITION ? 1 : -1];
   15653 int
   15654 main ()
   15655 {
   15656 
   15657   ;
   15658   return 0;
   15659 }
   15660 _ACEOF
   15661 if ac_fn_c_try_compile "$LINENO"; then :
   15662   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
   15663 else
   15664   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
   15665 fi
   15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15667 fi
   15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
   15669 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
   15670   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
   15671     INT32_MAX_LT_INTMAX_MAX=1;
   15672   else
   15673     INT32_MAX_LT_INTMAX_MAX=0;
   15674   fi
   15675 
   15676 
   15677   if test $APPLE_UNIVERSAL_BUILD = 0; then
   15678 
   15679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
   15680 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
   15681 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
   15682   $as_echo_n "(cached) " >&6
   15683 else
   15684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15685 /* end confdefs.h.  */
   15686 /* Work also in C++ mode.  */
   15687             #define __STDC_LIMIT_MACROS 1
   15688 
   15689             /* Work if build is not clean.  */
   15690             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   15691 
   15692             #include <limits.h>
   15693             #if HAVE_STDINT_H
   15694              #include <stdint.h>
   15695             #endif
   15696 
   15697             #if defined INT64_MAX
   15698              #define CONDITION (INT64_MAX == LONG_MAX)
   15699             #else
   15700              #define CONDITION (sizeof (long long int) == sizeof (long int))
   15701             #endif
   15702             int test[CONDITION ? 1 : -1];
   15703 int
   15704 main ()
   15705 {
   15706 
   15707   ;
   15708   return 0;
   15709 }
   15710 _ACEOF
   15711 if ac_fn_c_try_compile "$LINENO"; then :
   15712   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
   15713 else
   15714   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
   15715 fi
   15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15717 fi
   15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
   15719 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
   15720   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
   15721     INT64_MAX_EQ_LONG_MAX=1;
   15722   else
   15723     INT64_MAX_EQ_LONG_MAX=0;
   15724   fi
   15725 
   15726 
   15727   else
   15728     INT64_MAX_EQ_LONG_MAX=-1
   15729   fi
   15730 
   15731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
   15732 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
   15733 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
   15734   $as_echo_n "(cached) " >&6
   15735 else
   15736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15737 /* end confdefs.h.  */
   15738 /* Work also in C++ mode.  */
   15739             #define __STDC_LIMIT_MACROS 1
   15740 
   15741             /* Work if build is not clean.  */
   15742             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   15743 
   15744             #include <limits.h>
   15745             #if HAVE_STDINT_H
   15746              #include <stdint.h>
   15747             #endif
   15748 
   15749             #if defined UINT32_MAX && defined UINTMAX_MAX
   15750              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
   15751             #else
   15752              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
   15753             #endif
   15754             int test[CONDITION ? 1 : -1];
   15755 int
   15756 main ()
   15757 {
   15758 
   15759   ;
   15760   return 0;
   15761 }
   15762 _ACEOF
   15763 if ac_fn_c_try_compile "$LINENO"; then :
   15764   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
   15765 else
   15766   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
   15767 fi
   15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15769 fi
   15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
   15771 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
   15772   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
   15773     UINT32_MAX_LT_UINTMAX_MAX=1;
   15774   else
   15775     UINT32_MAX_LT_UINTMAX_MAX=0;
   15776   fi
   15777 
   15778 
   15779   if test $APPLE_UNIVERSAL_BUILD = 0; then
   15780 
   15781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
   15782 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
   15783 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
   15784   $as_echo_n "(cached) " >&6
   15785 else
   15786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15787 /* end confdefs.h.  */
   15788 /* Work also in C++ mode.  */
   15789             #define __STDC_LIMIT_MACROS 1
   15790 
   15791             /* Work if build is not clean.  */
   15792             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
   15793 
   15794             #include <limits.h>
   15795             #if HAVE_STDINT_H
   15796              #include <stdint.h>
   15797             #endif
   15798 
   15799             #if defined UINT64_MAX
   15800              #define CONDITION (UINT64_MAX == ULONG_MAX)
   15801             #else
   15802              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
   15803             #endif
   15804             int test[CONDITION ? 1 : -1];
   15805 int
   15806 main ()
   15807 {
   15808 
   15809   ;
   15810   return 0;
   15811 }
   15812 _ACEOF
   15813 if ac_fn_c_try_compile "$LINENO"; then :
   15814   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
   15815 else
   15816   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
   15817 fi
   15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15819 fi
   15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
   15821 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
   15822   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
   15823     UINT64_MAX_EQ_ULONG_MAX=1;
   15824   else
   15825     UINT64_MAX_EQ_ULONG_MAX=0;
   15826   fi
   15827 
   15828 
   15829   else
   15830     UINT64_MAX_EQ_ULONG_MAX=-1
   15831   fi
   15832 
   15833 
   15834 
   15835 
   15836   GL_GNULIB_IMAXABS=0
   15837 
   15838 
   15839 
   15840   GL_GNULIB_IMAXDIV=0
   15841 
   15842 
   15843 
   15844   GL_GNULIB_STRTOIMAX=0
   15845 
   15846 
   15847 
   15848   GL_GNULIB_STRTOUMAX=0
   15849 
   15850 
   15851 
   15852 
   15853 
   15854 
   15855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
   15856 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
   15857 if ${gl_cv_cc_double_expbit0+:} false; then :
   15858   $as_echo_n "(cached) " >&6
   15859 else
   15860 
   15861       if test "$cross_compiling" = yes; then :
   15862 
   15863                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15864 /* end confdefs.h.  */
   15865 
   15866 #if defined arm || defined __arm || defined __arm__
   15867   mixed_endianness
   15868 #endif
   15869 
   15870 _ACEOF
   15871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15872   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
   15873   gl_cv_cc_double_expbit0="unknown"
   15874 else
   15875 
   15876                                                          :
   15877 if ${ac_cv_c_bigendian+:} false; then :
   15878   $as_echo_n "(cached) " >&6
   15879 else
   15880   ac_cv_c_bigendian=unknown
   15881     # See if we're dealing with a universal compiler.
   15882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15883 /* end confdefs.h.  */
   15884 #ifndef __APPLE_CC__
   15885 	       not a universal capable compiler
   15886 	     #endif
   15887 	     typedef int dummy;
   15888 
   15889 _ACEOF
   15890 if ac_fn_c_try_compile "$LINENO"; then :
   15891 
   15892 	# Check for potential -arch flags.  It is not universal unless
   15893 	# there are at least two -arch flags with different values.
   15894 	ac_arch=
   15895 	ac_prev=
   15896 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   15897 	 if test -n "$ac_prev"; then
   15898 	   case $ac_word in
   15899 	     i?86 | x86_64 | ppc | ppc64)
   15900 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   15901 		 ac_arch=$ac_word
   15902 	       else
   15903 		 ac_cv_c_bigendian=universal
   15904 		 break
   15905 	       fi
   15906 	       ;;
   15907 	   esac
   15908 	   ac_prev=
   15909 	 elif test "x$ac_word" = "x-arch"; then
   15910 	   ac_prev=arch
   15911 	 fi
   15912        done
   15913 fi
   15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15915     if test $ac_cv_c_bigendian = unknown; then
   15916       # See if sys/param.h defines the BYTE_ORDER macro.
   15917       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15918 /* end confdefs.h.  */
   15919 #include <sys/types.h>
   15920 	     #include <sys/param.h>
   15921 
   15922 int
   15923 main ()
   15924 {
   15925 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   15926 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   15927 		     && LITTLE_ENDIAN)
   15928 	      bogus endian macros
   15929 	     #endif
   15930 
   15931   ;
   15932   return 0;
   15933 }
   15934 _ACEOF
   15935 if ac_fn_c_try_compile "$LINENO"; then :
   15936   # It does; now see whether it defined to BIG_ENDIAN or not.
   15937 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15938 /* end confdefs.h.  */
   15939 #include <sys/types.h>
   15940 		#include <sys/param.h>
   15941 
   15942 int
   15943 main ()
   15944 {
   15945 #if BYTE_ORDER != BIG_ENDIAN
   15946 		 not big endian
   15947 		#endif
   15948 
   15949   ;
   15950   return 0;
   15951 }
   15952 _ACEOF
   15953 if ac_fn_c_try_compile "$LINENO"; then :
   15954   ac_cv_c_bigendian=yes
   15955 else
   15956   ac_cv_c_bigendian=no
   15957 fi
   15958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15959 fi
   15960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15961     fi
   15962     if test $ac_cv_c_bigendian = unknown; then
   15963       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   15964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15965 /* end confdefs.h.  */
   15966 #include <limits.h>
   15967 
   15968 int
   15969 main ()
   15970 {
   15971 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   15972 	      bogus endian macros
   15973 	     #endif
   15974 
   15975   ;
   15976   return 0;
   15977 }
   15978 _ACEOF
   15979 if ac_fn_c_try_compile "$LINENO"; then :
   15980   # It does; now see whether it defined to _BIG_ENDIAN or not.
   15981 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15982 /* end confdefs.h.  */
   15983 #include <limits.h>
   15984 
   15985 int
   15986 main ()
   15987 {
   15988 #ifndef _BIG_ENDIAN
   15989 		 not big endian
   15990 		#endif
   15991 
   15992   ;
   15993   return 0;
   15994 }
   15995 _ACEOF
   15996 if ac_fn_c_try_compile "$LINENO"; then :
   15997   ac_cv_c_bigendian=yes
   15998 else
   15999   ac_cv_c_bigendian=no
   16000 fi
   16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16002 fi
   16003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16004     fi
   16005     if test $ac_cv_c_bigendian = unknown; then
   16006       # Compile a test program.
   16007       if test "$cross_compiling" = yes; then :
   16008   # Try to guess by grepping values from an object file.
   16009 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16010 /* end confdefs.h.  */
   16011 short int ascii_mm[] =
   16012 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   16013 		short int ascii_ii[] =
   16014 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   16015 		int use_ascii (int i) {
   16016 		  return ascii_mm[i] + ascii_ii[i];
   16017 		}
   16018 		short int ebcdic_ii[] =
   16019 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   16020 		short int ebcdic_mm[] =
   16021 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   16022 		int use_ebcdic (int i) {
   16023 		  return ebcdic_mm[i] + ebcdic_ii[i];
   16024 		}
   16025 		extern int foo;
   16026 
   16027 int
   16028 main ()
   16029 {
   16030 return use_ascii (foo) == use_ebcdic (foo);
   16031   ;
   16032   return 0;
   16033 }
   16034 _ACEOF
   16035 if ac_fn_c_try_compile "$LINENO"; then :
   16036   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   16037 	      ac_cv_c_bigendian=yes
   16038 	    fi
   16039 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   16040 	      if test "$ac_cv_c_bigendian" = unknown; then
   16041 		ac_cv_c_bigendian=no
   16042 	      else
   16043 		# finding both strings is unlikely to happen, but who knows?
   16044 		ac_cv_c_bigendian=unknown
   16045 	      fi
   16046 	    fi
   16047 fi
   16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16049 else
   16050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16051 /* end confdefs.h.  */
   16052 $ac_includes_default
   16053 int
   16054 main ()
   16055 {
   16056 
   16057 	     /* Are we little or big endian?  From Harbison&Steele.  */
   16058 	     union
   16059 	     {
   16060 	       long int l;
   16061 	       char c[sizeof (long int)];
   16062 	     } u;
   16063 	     u.l = 1;
   16064 	     return u.c[sizeof (long int) - 1] == 1;
   16065 
   16066   ;
   16067   return 0;
   16068 }
   16069 _ACEOF
   16070 if ac_fn_c_try_run "$LINENO"; then :
   16071   ac_cv_c_bigendian=no
   16072 else
   16073   ac_cv_c_bigendian=yes
   16074 fi
   16075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16076   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16077 fi
   16078 
   16079     fi
   16080 fi
   16081 :
   16082  case $ac_cv_c_bigendian in #(
   16083    yes)
   16084      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
   16085    no)
   16086      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
   16087    universal)
   16088 
   16089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   16090 
   16091      ;; #(
   16092    *)
   16093      gl_cv_cc_double_expbit0="unknown" ;;
   16094  esac
   16095 
   16096 
   16097 fi
   16098 rm -f conftest*
   16099 
   16100 
   16101 else
   16102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16103 /* end confdefs.h.  */
   16104 
   16105 #include <float.h>
   16106 #include <stddef.h>
   16107 #include <stdio.h>
   16108 #include <string.h>
   16109 #define NWORDS \
   16110   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   16111 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
   16112 static unsigned int ored_words[NWORDS];
   16113 static unsigned int anded_words[NWORDS];
   16114 static void add_to_ored_words (double x)
   16115 {
   16116   memory_double m;
   16117   size_t i;
   16118   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
   16119   memset (&m, 0, sizeof (memory_double));
   16120   m.value = x;
   16121   for (i = 0; i < NWORDS; i++)
   16122     {
   16123       ored_words[i] |= m.word[i];
   16124       anded_words[i] &= m.word[i];
   16125     }
   16126 }
   16127 int main ()
   16128 {
   16129   size_t j;
   16130   FILE *fp = fopen ("conftest.out", "w");
   16131   if (fp == NULL)
   16132     return 1;
   16133   for (j = 0; j < NWORDS; j++)
   16134     anded_words[j] = ~ (unsigned int) 0;
   16135   add_to_ored_words (0.25);
   16136   add_to_ored_words (0.5);
   16137   add_to_ored_words (1.0);
   16138   add_to_ored_words (2.0);
   16139   add_to_ored_words (4.0);
   16140   /* Remove bits that are common (e.g. if representation of the first mantissa
   16141      bit is explicit).  */
   16142   for (j = 0; j < NWORDS; j++)
   16143     ored_words[j] &= ~anded_words[j];
   16144   /* Now find the nonzero word.  */
   16145   for (j = 0; j < NWORDS; j++)
   16146     if (ored_words[j] != 0)
   16147       break;
   16148   if (j < NWORDS)
   16149     {
   16150       size_t i;
   16151       for (i = j + 1; i < NWORDS; i++)
   16152         if (ored_words[i] != 0)
   16153           {
   16154             fprintf (fp, "unknown");
   16155             return (fclose (fp) != 0);
   16156           }
   16157       for (i = 0; ; i++)
   16158         if ((ored_words[j] >> i) & 1)
   16159           {
   16160             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   16161             return (fclose (fp) != 0);
   16162           }
   16163     }
   16164   fprintf (fp, "unknown");
   16165   return (fclose (fp) != 0);
   16166 }
   16167 
   16168 _ACEOF
   16169 if ac_fn_c_try_run "$LINENO"; then :
   16170   gl_cv_cc_double_expbit0=`cat conftest.out`
   16171 else
   16172   gl_cv_cc_double_expbit0="unknown"
   16173 fi
   16174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16175   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16176 fi
   16177 
   16178       rm -f conftest.out
   16179 
   16180 fi
   16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
   16182 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
   16183   case "$gl_cv_cc_double_expbit0" in
   16184     word*bit*)
   16185       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   16186       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
   16187 
   16188 cat >>confdefs.h <<_ACEOF
   16189 #define DBL_EXPBIT0_WORD $word
   16190 _ACEOF
   16191 
   16192 
   16193 cat >>confdefs.h <<_ACEOF
   16194 #define DBL_EXPBIT0_BIT $bit
   16195 _ACEOF
   16196 
   16197       ;;
   16198   esac
   16199 
   16200 
   16201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   16202 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   16203 if ${ac_cv_c_bigendian+:} false; then :
   16204   $as_echo_n "(cached) " >&6
   16205 else
   16206   ac_cv_c_bigendian=unknown
   16207     # See if we're dealing with a universal compiler.
   16208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16209 /* end confdefs.h.  */
   16210 #ifndef __APPLE_CC__
   16211 	       not a universal capable compiler
   16212 	     #endif
   16213 	     typedef int dummy;
   16214 
   16215 _ACEOF
   16216 if ac_fn_c_try_compile "$LINENO"; then :
   16217 
   16218 	# Check for potential -arch flags.  It is not universal unless
   16219 	# there are at least two -arch flags with different values.
   16220 	ac_arch=
   16221 	ac_prev=
   16222 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   16223 	 if test -n "$ac_prev"; then
   16224 	   case $ac_word in
   16225 	     i?86 | x86_64 | ppc | ppc64)
   16226 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   16227 		 ac_arch=$ac_word
   16228 	       else
   16229 		 ac_cv_c_bigendian=universal
   16230 		 break
   16231 	       fi
   16232 	       ;;
   16233 	   esac
   16234 	   ac_prev=
   16235 	 elif test "x$ac_word" = "x-arch"; then
   16236 	   ac_prev=arch
   16237 	 fi
   16238        done
   16239 fi
   16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16241     if test $ac_cv_c_bigendian = unknown; then
   16242       # See if sys/param.h defines the BYTE_ORDER macro.
   16243       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16244 /* end confdefs.h.  */
   16245 #include <sys/types.h>
   16246 	     #include <sys/param.h>
   16247 
   16248 int
   16249 main ()
   16250 {
   16251 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   16252 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   16253 		     && LITTLE_ENDIAN)
   16254 	      bogus endian macros
   16255 	     #endif
   16256 
   16257   ;
   16258   return 0;
   16259 }
   16260 _ACEOF
   16261 if ac_fn_c_try_compile "$LINENO"; then :
   16262   # It does; now see whether it defined to BIG_ENDIAN or not.
   16263 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16264 /* end confdefs.h.  */
   16265 #include <sys/types.h>
   16266 		#include <sys/param.h>
   16267 
   16268 int
   16269 main ()
   16270 {
   16271 #if BYTE_ORDER != BIG_ENDIAN
   16272 		 not big endian
   16273 		#endif
   16274 
   16275   ;
   16276   return 0;
   16277 }
   16278 _ACEOF
   16279 if ac_fn_c_try_compile "$LINENO"; then :
   16280   ac_cv_c_bigendian=yes
   16281 else
   16282   ac_cv_c_bigendian=no
   16283 fi
   16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16285 fi
   16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16287     fi
   16288     if test $ac_cv_c_bigendian = unknown; then
   16289       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   16290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16291 /* end confdefs.h.  */
   16292 #include <limits.h>
   16293 
   16294 int
   16295 main ()
   16296 {
   16297 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   16298 	      bogus endian macros
   16299 	     #endif
   16300 
   16301   ;
   16302   return 0;
   16303 }
   16304 _ACEOF
   16305 if ac_fn_c_try_compile "$LINENO"; then :
   16306   # It does; now see whether it defined to _BIG_ENDIAN or not.
   16307 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16308 /* end confdefs.h.  */
   16309 #include <limits.h>
   16310 
   16311 int
   16312 main ()
   16313 {
   16314 #ifndef _BIG_ENDIAN
   16315 		 not big endian
   16316 		#endif
   16317 
   16318   ;
   16319   return 0;
   16320 }
   16321 _ACEOF
   16322 if ac_fn_c_try_compile "$LINENO"; then :
   16323   ac_cv_c_bigendian=yes
   16324 else
   16325   ac_cv_c_bigendian=no
   16326 fi
   16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16328 fi
   16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16330     fi
   16331     if test $ac_cv_c_bigendian = unknown; then
   16332       # Compile a test program.
   16333       if test "$cross_compiling" = yes; then :
   16334   # Try to guess by grepping values from an object file.
   16335 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16336 /* end confdefs.h.  */
   16337 short int ascii_mm[] =
   16338 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   16339 		short int ascii_ii[] =
   16340 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   16341 		int use_ascii (int i) {
   16342 		  return ascii_mm[i] + ascii_ii[i];
   16343 		}
   16344 		short int ebcdic_ii[] =
   16345 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   16346 		short int ebcdic_mm[] =
   16347 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   16348 		int use_ebcdic (int i) {
   16349 		  return ebcdic_mm[i] + ebcdic_ii[i];
   16350 		}
   16351 		extern int foo;
   16352 
   16353 int
   16354 main ()
   16355 {
   16356 return use_ascii (foo) == use_ebcdic (foo);
   16357   ;
   16358   return 0;
   16359 }
   16360 _ACEOF
   16361 if ac_fn_c_try_compile "$LINENO"; then :
   16362   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   16363 	      ac_cv_c_bigendian=yes
   16364 	    fi
   16365 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   16366 	      if test "$ac_cv_c_bigendian" = unknown; then
   16367 		ac_cv_c_bigendian=no
   16368 	      else
   16369 		# finding both strings is unlikely to happen, but who knows?
   16370 		ac_cv_c_bigendian=unknown
   16371 	      fi
   16372 	    fi
   16373 fi
   16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16375 else
   16376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16377 /* end confdefs.h.  */
   16378 $ac_includes_default
   16379 int
   16380 main ()
   16381 {
   16382 
   16383 	     /* Are we little or big endian?  From Harbison&Steele.  */
   16384 	     union
   16385 	     {
   16386 	       long int l;
   16387 	       char c[sizeof (long int)];
   16388 	     } u;
   16389 	     u.l = 1;
   16390 	     return u.c[sizeof (long int) - 1] == 1;
   16391 
   16392   ;
   16393   return 0;
   16394 }
   16395 _ACEOF
   16396 if ac_fn_c_try_run "$LINENO"; then :
   16397   ac_cv_c_bigendian=no
   16398 else
   16399   ac_cv_c_bigendian=yes
   16400 fi
   16401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16402   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16403 fi
   16404 
   16405     fi
   16406 fi
   16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   16408 $as_echo "$ac_cv_c_bigendian" >&6; }
   16409  case $ac_cv_c_bigendian in #(
   16410    yes)
   16411      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   16412 ;; #(
   16413    no)
   16414       ;; #(
   16415    universal)
   16416 
   16417 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   16418 
   16419      ;; #(
   16420    *)
   16421      as_fn_error $? "unknown endianness
   16422  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   16423  esac
   16424 
   16425 
   16426 
   16427     HAVE_NEWLOCALE=1;
   16428   HAVE_DUPLOCALE=1;
   16429   HAVE_FREELOCALE=1;
   16430   REPLACE_LOCALECONV=0;
   16431   REPLACE_SETLOCALE=0;
   16432   REPLACE_NEWLOCALE=0;
   16433   REPLACE_DUPLOCALE=0;
   16434   REPLACE_FREELOCALE=0;
   16435   REPLACE_STRUCT_LCONV=0;
   16436   LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
   16437 
   16438 
   16439     REPLACE_NULL=0;
   16440   HAVE_MAX_ALIGN_T=1;
   16441   HAVE_WCHAR_T=1;
   16442 
   16443 
   16444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
   16445 $as_echo_n "checking for wchar_t... " >&6; }
   16446 if ${gt_cv_c_wchar_t+:} false; then :
   16447   $as_echo_n "(cached) " >&6
   16448 else
   16449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16450 /* end confdefs.h.  */
   16451 #include <stddef.h>
   16452             wchar_t foo = (wchar_t)'\0';
   16453 int
   16454 main ()
   16455 {
   16456 
   16457   ;
   16458   return 0;
   16459 }
   16460 _ACEOF
   16461 if ac_fn_c_try_compile "$LINENO"; then :
   16462   gt_cv_c_wchar_t=yes
   16463 else
   16464   gt_cv_c_wchar_t=no
   16465 fi
   16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16467 fi
   16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
   16469 $as_echo "$gt_cv_c_wchar_t" >&6; }
   16470   if test $gt_cv_c_wchar_t = yes; then
   16471 
   16472 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
   16473 
   16474   fi
   16475 
   16476 
   16477 
   16478 
   16479 
   16480 
   16481 
   16482   GL_GENERATE_STDDEF_H=false
   16483 
   16484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
   16485 $as_echo_n "checking for good max_align_t... " >&6; }
   16486 if ${gl_cv_type_max_align_t+:} false; then :
   16487   $as_echo_n "(cached) " >&6
   16488 else
   16489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16490 /* end confdefs.h.  */
   16491 #include <stddef.h>
   16492             unsigned int s = sizeof (max_align_t);
   16493             #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
   16494             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
   16495             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
   16496             #endif
   16497             typedef struct { char a; max_align_t b; } max_helper;
   16498             typedef struct { char a; long b; } long_helper;
   16499             typedef struct { char a; double b; } double_helper;
   16500             typedef struct { char a; long double b; } long_double_helper;
   16501             int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
   16502             int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
   16503             int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
   16504 
   16505 int
   16506 main ()
   16507 {
   16508 
   16509   ;
   16510   return 0;
   16511 }
   16512 _ACEOF
   16513 if ac_fn_c_try_compile "$LINENO"; then :
   16514   gl_cv_type_max_align_t=yes
   16515 else
   16516   gl_cv_type_max_align_t=no
   16517 fi
   16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16519 
   16520 fi
   16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
   16522 $as_echo "$gl_cv_type_max_align_t" >&6; }
   16523   if test $gl_cv_type_max_align_t = no; then
   16524     HAVE_MAX_ALIGN_T=0
   16525     GL_GENERATE_STDDEF_H=true
   16526   fi
   16527 
   16528   if test $gt_cv_c_wchar_t = no; then
   16529     HAVE_WCHAR_T=0
   16530     GL_GENERATE_STDDEF_H=true
   16531   fi
   16532 
   16533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
   16534 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
   16535 if ${gl_cv_decl_null_works+:} false; then :
   16536   $as_echo_n "(cached) " >&6
   16537 else
   16538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16539 /* end confdefs.h.  */
   16540 #include <stddef.h>
   16541       int test[2 * (sizeof NULL == sizeof (void *)) -1];
   16542 
   16543 int
   16544 main ()
   16545 {
   16546 
   16547   ;
   16548   return 0;
   16549 }
   16550 _ACEOF
   16551 if ac_fn_c_try_compile "$LINENO"; then :
   16552   gl_cv_decl_null_works=yes
   16553 else
   16554   gl_cv_decl_null_works=no
   16555 fi
   16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16557 fi
   16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
   16559 $as_echo "$gl_cv_decl_null_works" >&6; }
   16560   if test $gl_cv_decl_null_works = no; then
   16561     REPLACE_NULL=1
   16562     GL_GENERATE_STDDEF_H=true
   16563   fi
   16564 
   16565   if $GL_GENERATE_STDDEF_H; then
   16566 
   16567 
   16568 
   16569 
   16570 
   16571 
   16572 
   16573 
   16574      if test $gl_cv_have_include_next = yes; then
   16575        gl_cv_next_stddef_h='<'stddef.h'>'
   16576      else
   16577        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
   16578 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
   16579 if ${gl_cv_next_stddef_h+:} false; then :
   16580   $as_echo_n "(cached) " >&6
   16581 else
   16582 
   16583 
   16584 
   16585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16586 /* end confdefs.h.  */
   16587 #include <stddef.h>
   16588 _ACEOF
   16589                 case "$host_os" in
   16590     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   16591     *)    gl_absname_cpp="$ac_cpp" ;;
   16592   esac
   16593 
   16594   case "$host_os" in
   16595     mingw*)
   16596                                           gl_dirsep_regex='[/\\]'
   16597       ;;
   16598     *)
   16599       gl_dirsep_regex='\/'
   16600       ;;
   16601   esac
   16602       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   16603   gl_header_literal_regex=`echo 'stddef.h' \
   16604                            | sed -e "$gl_make_literal_regex_sed"`
   16605   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   16606       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   16607       s|^/[^/]|//&|
   16608       p
   16609       q
   16610     }'
   16611 
   16612         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   16613   sed -n "$gl_absolute_header_sed"`
   16614 
   16615           gl_header=$gl_cv_absolute_stddef_h
   16616           gl_cv_next_stddef_h='"'$gl_header'"'
   16617 
   16618 
   16619 fi
   16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
   16621 $as_echo "$gl_cv_next_stddef_h" >&6; }
   16622      fi
   16623      NEXT_STDDEF_H=$gl_cv_next_stddef_h
   16624 
   16625      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   16626        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   16627        gl_next_as_first_directive='<'stddef.h'>'
   16628      else
   16629        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   16630        gl_next_as_first_directive=$gl_cv_next_stddef_h
   16631      fi
   16632      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
   16633 
   16634 
   16635 
   16636 
   16637   fi
   16638 
   16639 
   16640 
   16641 
   16642 
   16643 
   16644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
   16645 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
   16646 if ${gl_cv_header_locale_has_locale_t+:} false; then :
   16647   $as_echo_n "(cached) " >&6
   16648 else
   16649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16650 /* end confdefs.h.  */
   16651 #include <locale.h>
   16652             locale_t x;
   16653 int
   16654 main ()
   16655 {
   16656 
   16657   ;
   16658   return 0;
   16659 }
   16660 _ACEOF
   16661 if ac_fn_c_try_compile "$LINENO"; then :
   16662   gl_cv_header_locale_has_locale_t=yes
   16663 else
   16664   gl_cv_header_locale_has_locale_t=no
   16665 fi
   16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16667 
   16668 fi
   16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
   16670 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
   16671 
   16672 
   16673   if test $ac_cv_header_xlocale_h = yes; then
   16674     HAVE_XLOCALE_H=1
   16675     if test $gl_cv_header_locale_has_locale_t = yes; then
   16676       gl_cv_header_locale_h_needs_xlocale_h=no
   16677     else
   16678       gl_cv_header_locale_h_needs_xlocale_h=yes
   16679     fi
   16680     HAVE_LOCALE_T=1
   16681   else
   16682     HAVE_XLOCALE_H=0
   16683     gl_cv_header_locale_h_needs_xlocale_h=no
   16684     if test $gl_cv_header_locale_has_locale_t = yes; then
   16685       HAVE_LOCALE_T=1
   16686     else
   16687       HAVE_LOCALE_T=0
   16688     fi
   16689   fi
   16690 
   16691 
   16692 
   16693 
   16694 
   16695 
   16696 
   16697 
   16698 
   16699 
   16700 
   16701 
   16702   case "$host_os" in
   16703     solaris*)
   16704 
   16705 $as_echo "#define _LCONV_C99 1" >>confdefs.h
   16706 
   16707       ;;
   16708   esac
   16709 
   16710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
   16711 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
   16712 if ${gl_cv_header_locale_h_posix2001+:} false; then :
   16713   $as_echo_n "(cached) " >&6
   16714 else
   16715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16716 /* end confdefs.h.  */
   16717 #include <locale.h>
   16718             int x = LC_MESSAGES;
   16719             int y = sizeof (((struct lconv *) 0)->decimal_point);
   16720 int
   16721 main ()
   16722 {
   16723 
   16724   ;
   16725   return 0;
   16726 }
   16727 _ACEOF
   16728 if ac_fn_c_try_compile "$LINENO"; then :
   16729   gl_cv_header_locale_h_posix2001=yes
   16730 else
   16731   gl_cv_header_locale_h_posix2001=no
   16732 fi
   16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16734 fi
   16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
   16736 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
   16737 
   16738           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
   16739 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
   16740 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
   16741   $as_echo_n "(cached) " >&6
   16742 else
   16743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16744 /* end confdefs.h.  */
   16745 #include <locale.h>
   16746             struct lconv l;
   16747             int x = sizeof (l.decimal_point);
   16748             int y = sizeof (l.int_p_cs_precedes);
   16749 int
   16750 main ()
   16751 {
   16752 
   16753   ;
   16754   return 0;
   16755 }
   16756 _ACEOF
   16757 if ac_fn_c_try_compile "$LINENO"; then :
   16758   gl_cv_sys_struct_lconv_ok=yes
   16759 else
   16760   gl_cv_sys_struct_lconv_ok=no
   16761 fi
   16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16763 
   16764 fi
   16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
   16766 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
   16767   if test $gl_cv_sys_struct_lconv_ok = no; then
   16768             case "$host_os" in
   16769       mingw*)
   16770         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16771 /* end confdefs.h.  */
   16772 
   16773 #ifdef _MSC_VER
   16774  Special
   16775 #endif
   16776 
   16777 _ACEOF
   16778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16779   $EGREP "Special" >/dev/null 2>&1; then :
   16780 
   16781 else
   16782   REPLACE_STRUCT_LCONV=1
   16783 fi
   16784 rm -f conftest*
   16785 
   16786         ;;
   16787       *) REPLACE_STRUCT_LCONV=1 ;;
   16788     esac
   16789   fi
   16790 
   16791 
   16792 
   16793 
   16794 
   16795 
   16796 
   16797 
   16798 
   16799      if test $gl_cv_have_include_next = yes; then
   16800        gl_cv_next_locale_h='<'locale.h'>'
   16801      else
   16802        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
   16803 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
   16804 if ${gl_cv_next_locale_h+:} false; then :
   16805   $as_echo_n "(cached) " >&6
   16806 else
   16807 
   16808 
   16809 
   16810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16811 /* end confdefs.h.  */
   16812 #include <locale.h>
   16813 _ACEOF
   16814                 case "$host_os" in
   16815     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   16816     *)    gl_absname_cpp="$ac_cpp" ;;
   16817   esac
   16818 
   16819   case "$host_os" in
   16820     mingw*)
   16821                                           gl_dirsep_regex='[/\\]'
   16822       ;;
   16823     *)
   16824       gl_dirsep_regex='\/'
   16825       ;;
   16826   esac
   16827       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   16828   gl_header_literal_regex=`echo 'locale.h' \
   16829                            | sed -e "$gl_make_literal_regex_sed"`
   16830   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   16831       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   16832       s|^/[^/]|//&|
   16833       p
   16834       q
   16835     }'
   16836 
   16837         gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   16838   sed -n "$gl_absolute_header_sed"`
   16839 
   16840           gl_header=$gl_cv_absolute_locale_h
   16841           gl_cv_next_locale_h='"'$gl_header'"'
   16842 
   16843 
   16844 fi
   16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
   16846 $as_echo "$gl_cv_next_locale_h" >&6; }
   16847      fi
   16848      NEXT_LOCALE_H=$gl_cv_next_locale_h
   16849 
   16850      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   16851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   16852        gl_next_as_first_directive='<'locale.h'>'
   16853      else
   16854        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   16855        gl_next_as_first_directive=$gl_cv_next_locale_h
   16856      fi
   16857      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
   16858 
   16859 
   16860 
   16861 
   16862 
   16863 
   16864 
   16865 
   16866 
   16867 
   16868 
   16869   GL_GNULIB_LOCALECONV=0
   16870 
   16871 
   16872 
   16873   GL_GNULIB_SETLOCALE=0
   16874 
   16875 
   16876 
   16877   GL_GNULIB_SETLOCALE_NULL=0
   16878 
   16879 
   16880 
   16881   GL_GNULIB_DUPLOCALE=0
   16882 
   16883 
   16884 
   16885   GL_GNULIB_LOCALENAME=0
   16886 
   16887 
   16888 
   16889 
   16890 
   16891   gl_threads_api=none
   16892   LIBTHREAD=
   16893   LTLIBTHREAD=
   16894   LIBMULTITHREAD=
   16895   LTLIBMULTITHREAD=
   16896   if test "$gl_use_threads" != no; then
   16897 
   16898 
   16899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
   16900 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
   16901 if ${gl_cv_have_weak+:} false; then :
   16902   $as_echo_n "(cached) " >&6
   16903 else
   16904   case "$host_os" in
   16905        cygwin*)
   16906                                     gl_cv_have_weak="guessing no"
   16907          ;;
   16908        *)
   16909          gl_cv_have_weak=no
   16910                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16911 /* end confdefs.h.  */
   16912 extern void xyzzy ();
   16913 #pragma weak xyzzy
   16914 int
   16915 main ()
   16916 {
   16917 xyzzy();
   16918   ;
   16919   return 0;
   16920 }
   16921 _ACEOF
   16922 if ac_fn_c_try_link "$LINENO"; then :
   16923   gl_cv_have_weak=maybe
   16924 fi
   16925 rm -f core conftest.err conftest.$ac_objext \
   16926     conftest$ac_exeext conftest.$ac_ext
   16927          if test $gl_cv_have_weak = maybe; then
   16928                                  if test "$cross_compiling" = yes; then :
   16929                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16930 /* end confdefs.h.  */
   16931 #ifdef __ELF__
   16932                  Extensible Linking Format
   16933                  #endif
   16934 
   16935 _ACEOF
   16936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16937   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
   16938   gl_cv_have_weak="guessing yes"
   16939 else
   16940   gl_cv_have_weak="guessing no"
   16941 fi
   16942 rm -f conftest*
   16943 
   16944 
   16945 else
   16946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16947 /* end confdefs.h.  */
   16948 
   16949 #include <stdio.h>
   16950 #pragma weak fputs
   16951 int main ()
   16952 {
   16953   return (fputs == NULL);
   16954 }
   16955 _ACEOF
   16956 if ac_fn_c_try_run "$LINENO"; then :
   16957   gl_cv_have_weak=yes
   16958 else
   16959   gl_cv_have_weak=no
   16960 fi
   16961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16962   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16963 fi
   16964 
   16965          fi
   16966          ;;
   16967      esac
   16968           case " $LDFLAGS " in
   16969        *" -static "*) gl_cv_have_weak=no ;;
   16970      esac
   16971                     case "$gl_cv_have_weak" in
   16972        *yes)
   16973          case "$host_os" in
   16974            freebsd* | dragonfly* | midnightbsd*)
   16975              : > conftest1.c
   16976              $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
   16977              cat <<EOF > conftest2.c
   16978 #include <pthread.h>
   16979 #pragma weak pthread_mutexattr_gettype
   16980 int main ()
   16981 {
   16982   return (pthread_mutexattr_gettype != NULL);
   16983 }
   16984 EOF
   16985              $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
   16986                || gl_cv_have_weak=no
   16987              rm -f conftest1.c libempty.so conftest2.c conftest
   16988              ;;
   16989          esac
   16990          ;;
   16991      esac
   16992 
   16993 fi
   16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
   16995 $as_echo "$gl_cv_have_weak" >&6; }
   16996   case "$gl_cv_have_weak" in
   16997     *yes)
   16998 
   16999 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
   17000 
   17001       ;;
   17002   esac
   17003 
   17004     if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
   17005 
   17006       :
   17007     fi
   17008     if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
   17009 
   17010       gl_have_isoc_threads="$ac_cv_header_threads_h"
   17011     fi
   17012     if test "$gl_use_threads" = yes \
   17013        || test "$gl_use_threads" = posix \
   17014        || test "$gl_use_threads" = isoc+posix; then
   17015 
   17016 
   17017   if test -z "$gl_pthreadlib_body_done"; then
   17018     gl_pthread_api=no
   17019     LIBPTHREAD=
   17020     LIBPMULTITHREAD=
   17021     # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
   17022     # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
   17023     ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   17024 if test "x$ac_cv_header_pthread_h" = xyes; then :
   17025   gl_have_pthread_h=yes
   17026 else
   17027   gl_have_pthread_h=no
   17028 fi
   17029 
   17030 
   17031     if test "$gl_have_pthread_h" = yes; then
   17032       # Other possible tests:
   17033       #   -lpthreads (FSU threads, PCthreads)
   17034       #   -lgthreads
   17035       # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
   17036       # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
   17037       # the second one only in libpthread, and lock.c needs it.
   17038       #
   17039       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
   17040       # needs -pthread for some reason.  See:
   17041       # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
   17042       save_LIBS=$LIBS
   17043       for gl_pthread in '' '-pthread'; do
   17044         LIBS="$LIBS $gl_pthread"
   17045         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17046 /* end confdefs.h.  */
   17047 #include <pthread.h>
   17048                pthread_mutex_t m;
   17049                pthread_mutexattr_t ma;
   17050 
   17051 int
   17052 main ()
   17053 {
   17054 pthread_mutex_lock (&m);
   17055                pthread_mutexattr_init (&ma);
   17056   ;
   17057   return 0;
   17058 }
   17059 _ACEOF
   17060 if ac_fn_c_try_link "$LINENO"; then :
   17061   gl_pthread_api=yes
   17062            LIBPTHREAD=$gl_pthread
   17063            LIBPMULTITHREAD=$gl_pthread
   17064 fi
   17065 rm -f core conftest.err conftest.$ac_objext \
   17066     conftest$ac_exeext conftest.$ac_ext
   17067         LIBS=$save_LIBS
   17068         test $gl_pthread_api = yes && break
   17069       done
   17070       echo "$as_me:17070: gl_pthread_api=$gl_pthread_api" >&5
   17071       echo "$as_me:17071: LIBPTHREAD=$LIBPTHREAD" >&5
   17072 
   17073       gl_pthread_in_glibc=no
   17074       # On Linux with glibc >= 2.34, libc contains the fully functional
   17075       # pthread functions.
   17076       case "$host_os" in
   17077         linux*)
   17078           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17079 /* end confdefs.h.  */
   17080 #include <features.h>
   17081              #ifdef __GNU_LIBRARY__
   17082               #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
   17083                Lucky user
   17084               #endif
   17085              #endif
   17086 
   17087 _ACEOF
   17088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17089   $EGREP "Lucky user" >/dev/null 2>&1; then :
   17090   gl_pthread_in_glibc=yes
   17091 fi
   17092 rm -f conftest*
   17093 
   17094           ;;
   17095       esac
   17096       echo "$as_me:17096: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
   17097 
   17098       # Test for libpthread by looking for pthread_kill. (Not pthread_self,
   17099       # since it is defined as a macro on OSF/1.)
   17100       if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
   17101         # The program links fine without libpthread. But it may actually
   17102         # need to link with libpthread in order to create multiple threads.
   17103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   17104 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   17105 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   17106   $as_echo_n "(cached) " >&6
   17107 else
   17108   ac_check_lib_save_LIBS=$LIBS
   17109 LIBS="-lpthread  $LIBS"
   17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17111 /* end confdefs.h.  */
   17112 
   17113 /* Override any GCC internal prototype to avoid an error.
   17114    Use char because int might match the return type of a GCC
   17115    builtin and then its argument prototype would still apply.  */
   17116 #ifdef __cplusplus
   17117 extern "C"
   17118 #endif
   17119 char pthread_kill ();
   17120 int
   17121 main ()
   17122 {
   17123 return pthread_kill ();
   17124   ;
   17125   return 0;
   17126 }
   17127 _ACEOF
   17128 if ac_fn_c_try_link "$LINENO"; then :
   17129   ac_cv_lib_pthread_pthread_kill=yes
   17130 else
   17131   ac_cv_lib_pthread_pthread_kill=no
   17132 fi
   17133 rm -f core conftest.err conftest.$ac_objext \
   17134     conftest$ac_exeext conftest.$ac_ext
   17135 LIBS=$ac_check_lib_save_LIBS
   17136 fi
   17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   17138 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   17139 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   17140   if test $gl_pthread_in_glibc = yes; then
   17141              LIBPMULTITHREAD=
   17142            else
   17143              LIBPMULTITHREAD=-lpthread
   17144              # On Solaris and HP-UX, most pthread functions exist also in libc.
   17145              # Therefore pthread_in_use() needs to actually try to create a
   17146              # thread: pthread_create from libc will fail, whereas
   17147              # pthread_create will actually create a thread.
   17148              # On Solaris 10 or newer, this test is no longer needed, because
   17149              # libc contains the fully functional pthread functions.
   17150              case "$host_os" in
   17151                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
   17152 
   17153 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
   17154 
   17155              esac
   17156            fi
   17157 
   17158 fi
   17159 
   17160       elif test $gl_pthread_api != yes; then
   17161         # Some library is needed. Try libpthread and libc_r.
   17162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   17163 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   17164 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   17165   $as_echo_n "(cached) " >&6
   17166 else
   17167   ac_check_lib_save_LIBS=$LIBS
   17168 LIBS="-lpthread  $LIBS"
   17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17170 /* end confdefs.h.  */
   17171 
   17172 /* Override any GCC internal prototype to avoid an error.
   17173    Use char because int might match the return type of a GCC
   17174    builtin and then its argument prototype would still apply.  */
   17175 #ifdef __cplusplus
   17176 extern "C"
   17177 #endif
   17178 char pthread_kill ();
   17179 int
   17180 main ()
   17181 {
   17182 return pthread_kill ();
   17183   ;
   17184   return 0;
   17185 }
   17186 _ACEOF
   17187 if ac_fn_c_try_link "$LINENO"; then :
   17188   ac_cv_lib_pthread_pthread_kill=yes
   17189 else
   17190   ac_cv_lib_pthread_pthread_kill=no
   17191 fi
   17192 rm -f core conftest.err conftest.$ac_objext \
   17193     conftest$ac_exeext conftest.$ac_ext
   17194 LIBS=$ac_check_lib_save_LIBS
   17195 fi
   17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   17197 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   17198 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   17199   gl_pthread_api=yes
   17200            LIBPTHREAD=-lpthread
   17201            LIBPMULTITHREAD=-lpthread
   17202 fi
   17203 
   17204         if test $gl_pthread_api != yes; then
   17205           # For FreeBSD 4.
   17206           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
   17207 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
   17208 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
   17209   $as_echo_n "(cached) " >&6
   17210 else
   17211   ac_check_lib_save_LIBS=$LIBS
   17212 LIBS="-lc_r  $LIBS"
   17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17214 /* end confdefs.h.  */
   17215 
   17216 /* Override any GCC internal prototype to avoid an error.
   17217    Use char because int might match the return type of a GCC
   17218    builtin and then its argument prototype would still apply.  */
   17219 #ifdef __cplusplus
   17220 extern "C"
   17221 #endif
   17222 char pthread_kill ();
   17223 int
   17224 main ()
   17225 {
   17226 return pthread_kill ();
   17227   ;
   17228   return 0;
   17229 }
   17230 _ACEOF
   17231 if ac_fn_c_try_link "$LINENO"; then :
   17232   ac_cv_lib_c_r_pthread_kill=yes
   17233 else
   17234   ac_cv_lib_c_r_pthread_kill=no
   17235 fi
   17236 rm -f core conftest.err conftest.$ac_objext \
   17237     conftest$ac_exeext conftest.$ac_ext
   17238 LIBS=$ac_check_lib_save_LIBS
   17239 fi
   17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
   17241 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
   17242 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
   17243   gl_pthread_api=yes
   17244              LIBPTHREAD=-lc_r
   17245              LIBPMULTITHREAD=-lc_r
   17246 fi
   17247 
   17248         fi
   17249       fi
   17250       echo "$as_me:17250: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
   17251     fi
   17252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
   17253 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
   17254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
   17255 $as_echo "$gl_pthread_api" >&6; }
   17256 
   17257 
   17258     if test $gl_pthread_api = yes; then
   17259 
   17260 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
   17261 
   17262     fi
   17263 
   17264         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17265 /* end confdefs.h.  */
   17266 #include <sched.h>
   17267 int
   17268 main ()
   17269 {
   17270 sched_yield ();
   17271   ;
   17272   return 0;
   17273 }
   17274 _ACEOF
   17275 if ac_fn_c_try_link "$LINENO"; then :
   17276   LIB_SCHED_YIELD=
   17277 
   17278 else
   17279          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
   17280 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
   17281 if ${ac_cv_lib_rt_sched_yield+:} false; then :
   17282   $as_echo_n "(cached) " >&6
   17283 else
   17284   ac_check_lib_save_LIBS=$LIBS
   17285 LIBS="-lrt  $LIBS"
   17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17287 /* end confdefs.h.  */
   17288 
   17289 /* Override any GCC internal prototype to avoid an error.
   17290    Use char because int might match the return type of a GCC
   17291    builtin and then its argument prototype would still apply.  */
   17292 #ifdef __cplusplus
   17293 extern "C"
   17294 #endif
   17295 char sched_yield ();
   17296 int
   17297 main ()
   17298 {
   17299 return sched_yield ();
   17300   ;
   17301   return 0;
   17302 }
   17303 _ACEOF
   17304 if ac_fn_c_try_link "$LINENO"; then :
   17305   ac_cv_lib_rt_sched_yield=yes
   17306 else
   17307   ac_cv_lib_rt_sched_yield=no
   17308 fi
   17309 rm -f core conftest.err conftest.$ac_objext \
   17310     conftest$ac_exeext conftest.$ac_ext
   17311 LIBS=$ac_check_lib_save_LIBS
   17312 fi
   17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
   17314 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
   17315 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
   17316   LIB_SCHED_YIELD=-lrt
   17317 else
   17318             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
   17319 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
   17320 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
   17321   $as_echo_n "(cached) " >&6
   17322 else
   17323   ac_check_lib_save_LIBS=$LIBS
   17324 LIBS="-lposix4  $LIBS"
   17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17326 /* end confdefs.h.  */
   17327 
   17328 /* Override any GCC internal prototype to avoid an error.
   17329    Use char because int might match the return type of a GCC
   17330    builtin and then its argument prototype would still apply.  */
   17331 #ifdef __cplusplus
   17332 extern "C"
   17333 #endif
   17334 char sched_yield ();
   17335 int
   17336 main ()
   17337 {
   17338 return sched_yield ();
   17339   ;
   17340   return 0;
   17341 }
   17342 _ACEOF
   17343 if ac_fn_c_try_link "$LINENO"; then :
   17344   ac_cv_lib_posix4_sched_yield=yes
   17345 else
   17346   ac_cv_lib_posix4_sched_yield=no
   17347 fi
   17348 rm -f core conftest.err conftest.$ac_objext \
   17349     conftest$ac_exeext conftest.$ac_ext
   17350 LIBS=$ac_check_lib_save_LIBS
   17351 fi
   17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
   17353 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
   17354 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
   17355   LIB_SCHED_YIELD=-lposix4
   17356 fi
   17357 
   17358 fi
   17359 
   17360 
   17361 fi
   17362 rm -f core conftest.err conftest.$ac_objext \
   17363     conftest$ac_exeext conftest.$ac_ext
   17364 
   17365 
   17366     gl_pthreadlib_body_done=done
   17367   fi
   17368 
   17369       LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
   17370       LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
   17371       if test $gl_pthread_api = yes; then
   17372         if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
   17373           gl_threads_api='isoc+posix'
   17374 
   17375 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
   17376 
   17377           LIBTHREAD= LTLIBTHREAD=
   17378         else
   17379           gl_threads_api=posix
   17380 
   17381 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
   17382 
   17383           if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then
   17384 
   17385 $as_echo "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h
   17386 
   17387           else
   17388             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
   17389 
   17390 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
   17391 
   17392               LIBTHREAD= LTLIBTHREAD=
   17393             else
   17394               case "$host_os" in
   17395                 freebsd* | dragonfly* | midnightbsd*)
   17396                   if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
   17397 
   17398 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
   17399 
   17400                   fi
   17401                   ;;
   17402               esac
   17403             fi
   17404           fi
   17405         fi
   17406       fi
   17407     fi
   17408     if test $gl_threads_api = none; then
   17409       if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
   17410 
   17411 
   17412 
   17413   if test -z "$gl_stdthreadlib_body_done"; then
   17414 
   17415 
   17416     case "$host_os" in
   17417       mingw*)
   17418         LIBSTDTHREAD=
   17419         ;;
   17420       *)
   17421 
   17422 
   17423   if test -z "$gl_pthreadlib_body_done"; then
   17424     gl_pthread_api=no
   17425     LIBPTHREAD=
   17426     LIBPMULTITHREAD=
   17427     # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
   17428     # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
   17429     ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   17430 if test "x$ac_cv_header_pthread_h" = xyes; then :
   17431   gl_have_pthread_h=yes
   17432 else
   17433   gl_have_pthread_h=no
   17434 fi
   17435 
   17436 
   17437     if test "$gl_have_pthread_h" = yes; then
   17438       # Other possible tests:
   17439       #   -lpthreads (FSU threads, PCthreads)
   17440       #   -lgthreads
   17441       # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
   17442       # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
   17443       # the second one only in libpthread, and lock.c needs it.
   17444       #
   17445       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
   17446       # needs -pthread for some reason.  See:
   17447       # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
   17448       save_LIBS=$LIBS
   17449       for gl_pthread in '' '-pthread'; do
   17450         LIBS="$LIBS $gl_pthread"
   17451         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17452 /* end confdefs.h.  */
   17453 #include <pthread.h>
   17454                pthread_mutex_t m;
   17455                pthread_mutexattr_t ma;
   17456 
   17457 int
   17458 main ()
   17459 {
   17460 pthread_mutex_lock (&m);
   17461                pthread_mutexattr_init (&ma);
   17462   ;
   17463   return 0;
   17464 }
   17465 _ACEOF
   17466 if ac_fn_c_try_link "$LINENO"; then :
   17467   gl_pthread_api=yes
   17468            LIBPTHREAD=$gl_pthread
   17469            LIBPMULTITHREAD=$gl_pthread
   17470 fi
   17471 rm -f core conftest.err conftest.$ac_objext \
   17472     conftest$ac_exeext conftest.$ac_ext
   17473         LIBS=$save_LIBS
   17474         test $gl_pthread_api = yes && break
   17475       done
   17476       echo "$as_me:17476: gl_pthread_api=$gl_pthread_api" >&5
   17477       echo "$as_me:17477: LIBPTHREAD=$LIBPTHREAD" >&5
   17478 
   17479       gl_pthread_in_glibc=no
   17480       # On Linux with glibc >= 2.34, libc contains the fully functional
   17481       # pthread functions.
   17482       case "$host_os" in
   17483         linux*)
   17484           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17485 /* end confdefs.h.  */
   17486 #include <features.h>
   17487              #ifdef __GNU_LIBRARY__
   17488               #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
   17489                Lucky user
   17490               #endif
   17491              #endif
   17492 
   17493 _ACEOF
   17494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17495   $EGREP "Lucky user" >/dev/null 2>&1; then :
   17496   gl_pthread_in_glibc=yes
   17497 fi
   17498 rm -f conftest*
   17499 
   17500           ;;
   17501       esac
   17502       echo "$as_me:17502: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
   17503 
   17504       # Test for libpthread by looking for pthread_kill. (Not pthread_self,
   17505       # since it is defined as a macro on OSF/1.)
   17506       if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
   17507         # The program links fine without libpthread. But it may actually
   17508         # need to link with libpthread in order to create multiple threads.
   17509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   17510 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   17511 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   17512   $as_echo_n "(cached) " >&6
   17513 else
   17514   ac_check_lib_save_LIBS=$LIBS
   17515 LIBS="-lpthread  $LIBS"
   17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17517 /* end confdefs.h.  */
   17518 
   17519 /* Override any GCC internal prototype to avoid an error.
   17520    Use char because int might match the return type of a GCC
   17521    builtin and then its argument prototype would still apply.  */
   17522 #ifdef __cplusplus
   17523 extern "C"
   17524 #endif
   17525 char pthread_kill ();
   17526 int
   17527 main ()
   17528 {
   17529 return pthread_kill ();
   17530   ;
   17531   return 0;
   17532 }
   17533 _ACEOF
   17534 if ac_fn_c_try_link "$LINENO"; then :
   17535   ac_cv_lib_pthread_pthread_kill=yes
   17536 else
   17537   ac_cv_lib_pthread_pthread_kill=no
   17538 fi
   17539 rm -f core conftest.err conftest.$ac_objext \
   17540     conftest$ac_exeext conftest.$ac_ext
   17541 LIBS=$ac_check_lib_save_LIBS
   17542 fi
   17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   17544 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   17545 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   17546   if test $gl_pthread_in_glibc = yes; then
   17547              LIBPMULTITHREAD=
   17548            else
   17549              LIBPMULTITHREAD=-lpthread
   17550              # On Solaris and HP-UX, most pthread functions exist also in libc.
   17551              # Therefore pthread_in_use() needs to actually try to create a
   17552              # thread: pthread_create from libc will fail, whereas
   17553              # pthread_create will actually create a thread.
   17554              # On Solaris 10 or newer, this test is no longer needed, because
   17555              # libc contains the fully functional pthread functions.
   17556              case "$host_os" in
   17557                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
   17558 
   17559 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
   17560 
   17561              esac
   17562            fi
   17563 
   17564 fi
   17565 
   17566       elif test $gl_pthread_api != yes; then
   17567         # Some library is needed. Try libpthread and libc_r.
   17568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
   17569 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
   17570 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
   17571   $as_echo_n "(cached) " >&6
   17572 else
   17573   ac_check_lib_save_LIBS=$LIBS
   17574 LIBS="-lpthread  $LIBS"
   17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17576 /* end confdefs.h.  */
   17577 
   17578 /* Override any GCC internal prototype to avoid an error.
   17579    Use char because int might match the return type of a GCC
   17580    builtin and then its argument prototype would still apply.  */
   17581 #ifdef __cplusplus
   17582 extern "C"
   17583 #endif
   17584 char pthread_kill ();
   17585 int
   17586 main ()
   17587 {
   17588 return pthread_kill ();
   17589   ;
   17590   return 0;
   17591 }
   17592 _ACEOF
   17593 if ac_fn_c_try_link "$LINENO"; then :
   17594   ac_cv_lib_pthread_pthread_kill=yes
   17595 else
   17596   ac_cv_lib_pthread_pthread_kill=no
   17597 fi
   17598 rm -f core conftest.err conftest.$ac_objext \
   17599     conftest$ac_exeext conftest.$ac_ext
   17600 LIBS=$ac_check_lib_save_LIBS
   17601 fi
   17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
   17603 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
   17604 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
   17605   gl_pthread_api=yes
   17606            LIBPTHREAD=-lpthread
   17607            LIBPMULTITHREAD=-lpthread
   17608 fi
   17609 
   17610         if test $gl_pthread_api != yes; then
   17611           # For FreeBSD 4.
   17612           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
   17613 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
   17614 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
   17615   $as_echo_n "(cached) " >&6
   17616 else
   17617   ac_check_lib_save_LIBS=$LIBS
   17618 LIBS="-lc_r  $LIBS"
   17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17620 /* end confdefs.h.  */
   17621 
   17622 /* Override any GCC internal prototype to avoid an error.
   17623    Use char because int might match the return type of a GCC
   17624    builtin and then its argument prototype would still apply.  */
   17625 #ifdef __cplusplus
   17626 extern "C"
   17627 #endif
   17628 char pthread_kill ();
   17629 int
   17630 main ()
   17631 {
   17632 return pthread_kill ();
   17633   ;
   17634   return 0;
   17635 }
   17636 _ACEOF
   17637 if ac_fn_c_try_link "$LINENO"; then :
   17638   ac_cv_lib_c_r_pthread_kill=yes
   17639 else
   17640   ac_cv_lib_c_r_pthread_kill=no
   17641 fi
   17642 rm -f core conftest.err conftest.$ac_objext \
   17643     conftest$ac_exeext conftest.$ac_ext
   17644 LIBS=$ac_check_lib_save_LIBS
   17645 fi
   17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
   17647 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
   17648 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
   17649   gl_pthread_api=yes
   17650              LIBPTHREAD=-lc_r
   17651              LIBPMULTITHREAD=-lc_r
   17652 fi
   17653 
   17654         fi
   17655       fi
   17656       echo "$as_me:17656: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
   17657     fi
   17658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
   17659 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
   17660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
   17661 $as_echo "$gl_pthread_api" >&6; }
   17662 
   17663 
   17664     if test $gl_pthread_api = yes; then
   17665 
   17666 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
   17667 
   17668     fi
   17669 
   17670         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17671 /* end confdefs.h.  */
   17672 #include <sched.h>
   17673 int
   17674 main ()
   17675 {
   17676 sched_yield ();
   17677   ;
   17678   return 0;
   17679 }
   17680 _ACEOF
   17681 if ac_fn_c_try_link "$LINENO"; then :
   17682   LIB_SCHED_YIELD=
   17683 
   17684 else
   17685          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
   17686 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
   17687 if ${ac_cv_lib_rt_sched_yield+:} false; then :
   17688   $as_echo_n "(cached) " >&6
   17689 else
   17690   ac_check_lib_save_LIBS=$LIBS
   17691 LIBS="-lrt  $LIBS"
   17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17693 /* end confdefs.h.  */
   17694 
   17695 /* Override any GCC internal prototype to avoid an error.
   17696    Use char because int might match the return type of a GCC
   17697    builtin and then its argument prototype would still apply.  */
   17698 #ifdef __cplusplus
   17699 extern "C"
   17700 #endif
   17701 char sched_yield ();
   17702 int
   17703 main ()
   17704 {
   17705 return sched_yield ();
   17706   ;
   17707   return 0;
   17708 }
   17709 _ACEOF
   17710 if ac_fn_c_try_link "$LINENO"; then :
   17711   ac_cv_lib_rt_sched_yield=yes
   17712 else
   17713   ac_cv_lib_rt_sched_yield=no
   17714 fi
   17715 rm -f core conftest.err conftest.$ac_objext \
   17716     conftest$ac_exeext conftest.$ac_ext
   17717 LIBS=$ac_check_lib_save_LIBS
   17718 fi
   17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
   17720 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
   17721 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
   17722   LIB_SCHED_YIELD=-lrt
   17723 else
   17724             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
   17725 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
   17726 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
   17727   $as_echo_n "(cached) " >&6
   17728 else
   17729   ac_check_lib_save_LIBS=$LIBS
   17730 LIBS="-lposix4  $LIBS"
   17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17732 /* end confdefs.h.  */
   17733 
   17734 /* Override any GCC internal prototype to avoid an error.
   17735    Use char because int might match the return type of a GCC
   17736    builtin and then its argument prototype would still apply.  */
   17737 #ifdef __cplusplus
   17738 extern "C"
   17739 #endif
   17740 char sched_yield ();
   17741 int
   17742 main ()
   17743 {
   17744 return sched_yield ();
   17745   ;
   17746   return 0;
   17747 }
   17748 _ACEOF
   17749 if ac_fn_c_try_link "$LINENO"; then :
   17750   ac_cv_lib_posix4_sched_yield=yes
   17751 else
   17752   ac_cv_lib_posix4_sched_yield=no
   17753 fi
   17754 rm -f core conftest.err conftest.$ac_objext \
   17755     conftest$ac_exeext conftest.$ac_ext
   17756 LIBS=$ac_check_lib_save_LIBS
   17757 fi
   17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
   17759 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
   17760 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
   17761   LIB_SCHED_YIELD=-lposix4
   17762 fi
   17763 
   17764 fi
   17765 
   17766 
   17767 fi
   17768 rm -f core conftest.err conftest.$ac_objext \
   17769     conftest$ac_exeext conftest.$ac_ext
   17770 
   17771 
   17772     gl_pthreadlib_body_done=done
   17773   fi
   17774 
   17775         if test $ac_cv_header_threads_h = yes; then
   17776                                                             for ac_func in thrd_create
   17777 do :
   17778   ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
   17779 if test "x$ac_cv_func_thrd_create" = xyes; then :
   17780   cat >>confdefs.h <<_ACEOF
   17781 #define HAVE_THRD_CREATE 1
   17782 _ACEOF
   17783 
   17784 fi
   17785 done
   17786 
   17787           if test $ac_cv_func_thrd_create = yes; then
   17788             LIBSTDTHREAD=
   17789           else
   17790             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
   17791 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
   17792 if ${ac_cv_lib_stdthreads_thrd_create+:} false; then :
   17793   $as_echo_n "(cached) " >&6
   17794 else
   17795   ac_check_lib_save_LIBS=$LIBS
   17796 LIBS="-lstdthreads  $LIBS"
   17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17798 /* end confdefs.h.  */
   17799 
   17800 /* Override any GCC internal prototype to avoid an error.
   17801    Use char because int might match the return type of a GCC
   17802    builtin and then its argument prototype would still apply.  */
   17803 #ifdef __cplusplus
   17804 extern "C"
   17805 #endif
   17806 char thrd_create ();
   17807 int
   17808 main ()
   17809 {
   17810 return thrd_create ();
   17811   ;
   17812   return 0;
   17813 }
   17814 _ACEOF
   17815 if ac_fn_c_try_link "$LINENO"; then :
   17816   ac_cv_lib_stdthreads_thrd_create=yes
   17817 else
   17818   ac_cv_lib_stdthreads_thrd_create=no
   17819 fi
   17820 rm -f core conftest.err conftest.$ac_objext \
   17821     conftest$ac_exeext conftest.$ac_ext
   17822 LIBS=$ac_check_lib_save_LIBS
   17823 fi
   17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
   17825 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
   17826 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then :
   17827 
   17828               LIBSTDTHREAD='-lstdthreads -lpthread'
   17829 
   17830 else
   17831 
   17832                             LIBSTDTHREAD="$LIBPMULTITHREAD"
   17833 
   17834 fi
   17835 
   17836           fi
   17837         else
   17838                     LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
   17839         fi
   17840         ;;
   17841     esac
   17842 
   17843 
   17844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
   17845 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
   17846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
   17847 $as_echo "$ac_cv_header_threads_h" >&6; }
   17848     gl_stdthreadlib_body_done=done
   17849   fi
   17850 
   17851         LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
   17852         LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
   17853         gl_threads_api=isoc
   17854 
   17855 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
   17856 
   17857       fi
   17858     fi
   17859     if test $gl_threads_api = none; then
   17860       case "$gl_use_threads" in
   17861         yes | windows | win32) # The 'win32' is for backward compatibility.
   17862           if { case "$host_os" in
   17863                  mingw*) true;;
   17864                  *) false;;
   17865                esac
   17866              }; then
   17867             gl_threads_api=windows
   17868 
   17869 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
   17870 
   17871           fi
   17872           ;;
   17873       esac
   17874     fi
   17875   fi
   17876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
   17877 $as_echo_n "checking for multithread API to use... " >&6; }
   17878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
   17879 $as_echo "$gl_threads_api" >&6; }
   17880 
   17881 
   17882 
   17883 
   17884 
   17885 
   17886 
   17887 
   17888 
   17889 
   17890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
   17891 $as_echo_n "checking whether malloc is ptrdiff_t safe... " >&6; }
   17892 if ${gl_cv_malloc_ptrdiff+:} false; then :
   17893   $as_echo_n "(cached) " >&6
   17894 else
   17895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17896 /* end confdefs.h.  */
   17897 #include <stdint.h>
   17898 
   17899 int
   17900 main ()
   17901 {
   17902 /* 64-bit ptrdiff_t is so wide that no practical platform
   17903                can exceed it.  */
   17904             #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
   17905 
   17906             /* On rare machines where size_t fits in ptrdiff_t there
   17907                is no problem.  */
   17908             #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
   17909 
   17910             /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
   17911                bounds even on 32-bit platforms.  We don't know which
   17912                non-glibc systems are safe.  */
   17913             #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
   17914 
   17915             #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
   17916               return 0;
   17917             #else
   17918               #error "malloc might not be ptrdiff_t safe"
   17919               syntax error
   17920             #endif
   17921 
   17922   ;
   17923   return 0;
   17924 }
   17925 _ACEOF
   17926 if ac_fn_c_try_compile "$LINENO"; then :
   17927   gl_cv_malloc_ptrdiff=yes
   17928 else
   17929   gl_cv_malloc_ptrdiff=no
   17930 fi
   17931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17932 
   17933 fi
   17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
   17935 $as_echo "$gl_cv_malloc_ptrdiff" >&6; }
   17936 
   17937 
   17938 
   17939 
   17940   test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
   17941 
   17942 
   17943 
   17944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
   17945 $as_echo_n "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
   17946 if ${gl_cv_func_malloc_posix+:} false; then :
   17947   $as_echo_n "(cached) " >&6
   17948 else
   17949 
   17950                                     case "$host_os" in
   17951         mingw*)
   17952           gl_cv_func_malloc_posix=no ;;
   17953         irix* | solaris*)
   17954 
   17955           gl_cv_func_malloc_posix=no ;;
   17956         *)
   17957           gl_cv_func_malloc_posix=yes ;;
   17958       esac
   17959 
   17960 fi
   17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
   17962 $as_echo "$gl_cv_func_malloc_posix" >&6; }
   17963 
   17964 
   17965 
   17966 
   17967 
   17968   if test "$gl_cv_func_malloc_posix" = yes; then
   17969 
   17970 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
   17971 
   17972   else
   17973     REPLACE_MALLOC_FOR_MALLOC_POSIX=1
   17974   fi
   17975 
   17976 
   17977 
   17978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
   17979 $as_echo_n "checking whether malloc (0) returns nonnull... " >&6; }
   17980 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
   17981   $as_echo_n "(cached) " >&6
   17982 else
   17983   if test "$cross_compiling" = yes; then :
   17984   case "$host_os" in
   17985           # Guess yes on platforms where we know the result.
   17986           *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
   17987           | gnu* | *-musl* | midnightbsd* \
   17988           | hpux* | solaris* | cygwin* | mingw* | msys* )
   17989             ac_cv_func_malloc_0_nonnull="guessing yes" ;;
   17990           # If we don't know, obey --enable-cross-guesses.
   17991           *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
   17992         esac
   17993 
   17994 else
   17995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17996 /* end confdefs.h.  */
   17997 #include <stdlib.h>
   17998 
   17999 int
   18000 main ()
   18001 {
   18002 void *p = malloc (0);
   18003             int result = !p;
   18004             free (p);
   18005             return result;
   18006   ;
   18007   return 0;
   18008 }
   18009 
   18010 _ACEOF
   18011 if ac_fn_c_try_run "$LINENO"; then :
   18012   ac_cv_func_malloc_0_nonnull=yes
   18013 else
   18014   ac_cv_func_malloc_0_nonnull=no
   18015 fi
   18016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18017   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18018 fi
   18019 
   18020 
   18021 fi
   18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   18023 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
   18024   case $ac_cv_func_malloc_0_nonnull in #(
   18025   *yes) :
   18026     gl_cv_func_malloc_0_nonnull=1 ;; #(
   18027   *) :
   18028     gl_cv_func_malloc_0_nonnull=0 ;;
   18029 esac
   18030 
   18031 
   18032 cat >>confdefs.h <<_ACEOF
   18033 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
   18034 _ACEOF
   18035 
   18036 
   18037 
   18038 
   18039 
   18040 
   18041 
   18042 
   18043 
   18044 
   18045 
   18046 
   18047 
   18048 
   18049 
   18050      if test $gl_cv_have_include_next = yes; then
   18051        gl_cv_next_math_h='<'math.h'>'
   18052      else
   18053        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
   18054 $as_echo_n "checking absolute name of <math.h>... " >&6; }
   18055 if ${gl_cv_next_math_h+:} false; then :
   18056   $as_echo_n "(cached) " >&6
   18057 else
   18058 
   18059              if test $ac_cv_header_math_h = yes; then
   18060 
   18061 
   18062 
   18063 
   18064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18065 /* end confdefs.h.  */
   18066 #include <math.h>
   18067 _ACEOF
   18068                 case "$host_os" in
   18069     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   18070     *)    gl_absname_cpp="$ac_cpp" ;;
   18071   esac
   18072 
   18073   case "$host_os" in
   18074     mingw*)
   18075                                           gl_dirsep_regex='[/\\]'
   18076       ;;
   18077     *)
   18078       gl_dirsep_regex='\/'
   18079       ;;
   18080   esac
   18081       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   18082   gl_header_literal_regex=`echo 'math.h' \
   18083                            | sed -e "$gl_make_literal_regex_sed"`
   18084   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   18085       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   18086       s|^/[^/]|//&|
   18087       p
   18088       q
   18089     }'
   18090 
   18091         gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   18092   sed -n "$gl_absolute_header_sed"`
   18093 
   18094           gl_header=$gl_cv_absolute_math_h
   18095           gl_cv_next_math_h='"'$gl_header'"'
   18096           else
   18097                gl_cv_next_math_h='<'math.h'>'
   18098              fi
   18099 
   18100 
   18101 fi
   18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
   18103 $as_echo "$gl_cv_next_math_h" >&6; }
   18104      fi
   18105      NEXT_MATH_H=$gl_cv_next_math_h
   18106 
   18107      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   18108        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   18109        gl_next_as_first_directive='<'math.h'>'
   18110      else
   18111        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   18112        gl_next_as_first_directive=$gl_cv_next_math_h
   18113      fi
   18114      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
   18115 
   18116 
   18117 
   18118 
   18119 
   18120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
   18121 $as_echo_n "checking whether NAN macro works... " >&6; }
   18122 if ${gl_cv_header_math_nan_works+:} false; then :
   18123   $as_echo_n "(cached) " >&6
   18124 else
   18125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18126 /* end confdefs.h.  */
   18127 #include <math.h>
   18128 int
   18129 main ()
   18130 {
   18131 /* Solaris 10 has a broken definition of NAN.  Other platforms
   18132         fail to provide NAN, or provide it only in C99 mode; this
   18133         test only needs to fail when NAN is provided but wrong.  */
   18134          float f = 1.0f;
   18135 #ifdef NAN
   18136          f = NAN;
   18137 #endif
   18138          return f == 0;
   18139   ;
   18140   return 0;
   18141 }
   18142 _ACEOF
   18143 if ac_fn_c_try_compile "$LINENO"; then :
   18144   gl_cv_header_math_nan_works=yes
   18145 else
   18146   gl_cv_header_math_nan_works=no
   18147 fi
   18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18149 fi
   18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
   18151 $as_echo "$gl_cv_header_math_nan_works" >&6; }
   18152   if test $gl_cv_header_math_nan_works = no; then
   18153     REPLACE_NAN=1
   18154   fi
   18155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
   18156 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
   18157 if ${gl_cv_header_math_huge_val_works+:} false; then :
   18158   $as_echo_n "(cached) " >&6
   18159 else
   18160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18161 /* end confdefs.h.  */
   18162 #include <math.h>
   18163 int
   18164 main ()
   18165 {
   18166 /* Solaris 10 has a broken definition of HUGE_VAL.  */
   18167          double d = HUGE_VAL;
   18168          return d == 0;
   18169   ;
   18170   return 0;
   18171 }
   18172 _ACEOF
   18173 if ac_fn_c_try_compile "$LINENO"; then :
   18174   gl_cv_header_math_huge_val_works=yes
   18175 else
   18176   gl_cv_header_math_huge_val_works=no
   18177 fi
   18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18179 fi
   18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
   18181 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
   18182   if test $gl_cv_header_math_huge_val_works = no; then
   18183     REPLACE_HUGE_VAL=1
   18184   fi
   18185 
   18186 
   18187 
   18188 
   18189 
   18190 
   18191 
   18192 
   18193 
   18194 
   18195 
   18196 
   18197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
   18198 $as_echo_n "checking for a traditional japanese locale... " >&6; }
   18199 if ${gt_cv_locale_ja+:} false; then :
   18200   $as_echo_n "(cached) " >&6
   18201 else
   18202 
   18203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18204 /* end confdefs.h.  */
   18205 
   18206 #include <locale.h>
   18207 #include <time.h>
   18208 #if HAVE_LANGINFO_CODESET
   18209 # include <langinfo.h>
   18210 #endif
   18211 #include <stdlib.h>
   18212 #include <string.h>
   18213 struct tm t;
   18214 char buf[16];
   18215 int main ()
   18216 {
   18217   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   18218      imitates locale dependent behaviour by looking at the environment
   18219      variables, and all locales use the UTF-8 encoding.  */
   18220 #if defined __BEOS__ || defined __HAIKU__
   18221   return 1;
   18222 #else
   18223   /* Check whether the given locale name is recognized by the system.  */
   18224 # if defined _WIN32 && !defined __CYGWIN__
   18225   /* On native Windows, setlocale(category, "") looks at the system settings,
   18226      not at the environment variables.  Also, when an encoding suffix such
   18227      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   18228      category of the locale to "C".  */
   18229   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   18230       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   18231     return 1;
   18232 # else
   18233   if (setlocale (LC_ALL, "") == NULL) return 1;
   18234 # endif
   18235   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   18236      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   18237      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   18238      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   18239      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   18240      some unit tests fail.
   18241      On MirBSD 10, when an unsupported locale is specified, setlocale()
   18242      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
   18243 # if HAVE_LANGINFO_CODESET
   18244   {
   18245     const char *cs = nl_langinfo (CODESET);
   18246     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
   18247         || strcmp (cs, "UTF-8") == 0)
   18248       return 1;
   18249   }
   18250 # endif
   18251 # ifdef __CYGWIN__
   18252   /* On Cygwin, avoid locale names without encoding suffix, because the
   18253      locale_charset() function relies on the encoding suffix.  Note that
   18254      LC_ALL is set on the command line.  */
   18255   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   18256 # endif
   18257   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
   18258      on Cygwin 1.5.x.  */
   18259   if (MB_CUR_MAX == 1)
   18260     return 1;
   18261   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   18262      This excludes the UTF-8 encoding (except on MirBSD).  */
   18263   {
   18264     const char *p;
   18265     t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   18266     if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   18267     for (p = buf; *p != '\0'; p++)
   18268       if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   18269         return 1;
   18270   }
   18271   return 0;
   18272 #endif
   18273 }
   18274 
   18275 _ACEOF
   18276     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   18277   (eval $ac_link) 2>&5
   18278   ac_status=$?
   18279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18280   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   18281       case "$host_os" in
   18282         # Handle native Windows specially, because there setlocale() interprets
   18283         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   18284         # "fr" or "fra" as "French" or "French_France.1252",
   18285         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   18286         # "ja" as "Japanese" or "Japanese_Japan.932",
   18287         # and similar.
   18288         mingw*)
   18289           # Note that on native Windows, the Japanese locale is
   18290           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
   18291           # cannot use it here.
   18292           gt_cv_locale_ja=none
   18293           ;;
   18294         *)
   18295           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   18296           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   18297           # configure script would override the LC_ALL setting. Likewise for
   18298           # LC_CTYPE, which is also set at the beginning of the configure script.
   18299           # Test for the AIX locale name.
   18300           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18301             gt_cv_locale_ja=ja_JP
   18302           else
   18303             # Test for the locale name with explicit encoding suffix.
   18304             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18305               gt_cv_locale_ja=ja_JP.EUC-JP
   18306             else
   18307               # Test for the HP-UX, OSF/1, NetBSD locale name.
   18308               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18309                 gt_cv_locale_ja=ja_JP.eucJP
   18310               else
   18311                 # Test for the IRIX, FreeBSD locale name.
   18312                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18313                   gt_cv_locale_ja=ja_JP.EUC
   18314                 else
   18315                   # Test for the Solaris 7 locale name.
   18316                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18317                     gt_cv_locale_ja=ja
   18318                   else
   18319                     # Special test for NetBSD 1.6.
   18320                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
   18321                       gt_cv_locale_ja=ja_JP.eucJP
   18322                     else
   18323                       # None found.
   18324                       gt_cv_locale_ja=none
   18325                     fi
   18326                   fi
   18327                 fi
   18328               fi
   18329             fi
   18330           fi
   18331           ;;
   18332       esac
   18333     fi
   18334     rm -fr conftest*
   18335 
   18336 fi
   18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
   18338 $as_echo "$gt_cv_locale_ja" >&6; }
   18339   LOCALE_JA=$gt_cv_locale_ja
   18340 
   18341 
   18342 
   18343 
   18344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
   18345 $as_echo_n "checking for a french Unicode locale... " >&6; }
   18346 if ${gt_cv_locale_fr_utf8+:} false; then :
   18347   $as_echo_n "(cached) " >&6
   18348 else
   18349 
   18350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18351 /* end confdefs.h.  */
   18352 
   18353 #include <locale.h>
   18354 #include <time.h>
   18355 #if HAVE_LANGINFO_CODESET
   18356 # include <langinfo.h>
   18357 #endif
   18358 #include <stdlib.h>
   18359 #include <string.h>
   18360 struct tm t;
   18361 char buf[16];
   18362 int main () {
   18363   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   18364      imitates locale dependent behaviour by looking at the environment
   18365      variables, and all locales use the UTF-8 encoding.  */
   18366 #if !(defined __BEOS__ || defined __HAIKU__)
   18367   /* Check whether the given locale name is recognized by the system.  */
   18368 # if defined _WIN32 && !defined __CYGWIN__
   18369   /* On native Windows, setlocale(category, "") looks at the system settings,
   18370      not at the environment variables.  Also, when an encoding suffix such
   18371      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   18372      category of the locale to "C".  */
   18373   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   18374       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   18375     return 1;
   18376 # else
   18377   if (setlocale (LC_ALL, "") == NULL) return 1;
   18378 # endif
   18379   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   18380      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   18381      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   18382      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   18383      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   18384      some unit tests fail.  */
   18385 # if HAVE_LANGINFO_CODESET
   18386   {
   18387     const char *cs = nl_langinfo (CODESET);
   18388     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
   18389       return 1;
   18390   }
   18391 # endif
   18392 # ifdef __CYGWIN__
   18393   /* On Cygwin, avoid locale names without encoding suffix, because the
   18394      locale_charset() function relies on the encoding suffix.  Note that
   18395      LC_ALL is set on the command line.  */
   18396   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   18397 # endif
   18398   /* Check whether in the abbreviation of the second month, the second
   18399      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
   18400      two bytes long, with UTF-8 encoding.  */
   18401   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   18402   if (strftime (buf, sizeof (buf), "%b", &t) < 4
   18403       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
   18404     return 1;
   18405 #endif
   18406 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
   18407   /* Check whether the decimal separator is a comma.
   18408      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
   18409      are nl_langinfo(RADIXCHAR) are both ".".  */
   18410   if (localeconv () ->decimal_point[0] != ',') return 1;
   18411 #endif
   18412   return 0;
   18413 }
   18414 
   18415 _ACEOF
   18416     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   18417   (eval $ac_link) 2>&5
   18418   ac_status=$?
   18419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18420   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   18421       case "$host_os" in
   18422         # Handle native Windows specially, because there setlocale() interprets
   18423         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   18424         # "fr" or "fra" as "French" or "French_France.1252",
   18425         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   18426         # "ja" as "Japanese" or "Japanese_Japan.932",
   18427         # and similar.
   18428         mingw*)
   18429           # Test for the hypothetical native Windows locale name.
   18430           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18431             gt_cv_locale_fr_utf8=French_France.65001
   18432           else
   18433             # None found.
   18434             gt_cv_locale_fr_utf8=none
   18435           fi
   18436           ;;
   18437         *)
   18438           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   18439           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   18440           # configure script would override the LC_ALL setting. Likewise for
   18441           # LC_CTYPE, which is also set at the beginning of the configure script.
   18442           # Test for the usual locale name.
   18443           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18444             gt_cv_locale_fr_utf8=fr_FR
   18445           else
   18446             # Test for the locale name with explicit encoding suffix.
   18447             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18448               gt_cv_locale_fr_utf8=fr_FR.UTF-8
   18449             else
   18450               # Test for the Solaris 7 locale name.
   18451               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18452                 gt_cv_locale_fr_utf8=fr.UTF-8
   18453               else
   18454                 # None found.
   18455                 gt_cv_locale_fr_utf8=none
   18456               fi
   18457             fi
   18458           fi
   18459           ;;
   18460       esac
   18461     fi
   18462     rm -fr conftest*
   18463 
   18464 fi
   18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
   18466 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
   18467   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
   18468 
   18469 
   18470 
   18471 
   18472 
   18473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
   18474 $as_echo_n "checking for a transitional chinese locale... " >&6; }
   18475 if ${gt_cv_locale_zh_CN+:} false; then :
   18476   $as_echo_n "(cached) " >&6
   18477 else
   18478 
   18479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18480 /* end confdefs.h.  */
   18481 
   18482 #include <locale.h>
   18483 #include <stdlib.h>
   18484 #include <time.h>
   18485 #if HAVE_LANGINFO_CODESET
   18486 # include <langinfo.h>
   18487 #endif
   18488 #include <stdlib.h>
   18489 #include <string.h>
   18490 struct tm t;
   18491 char buf[16];
   18492 int main ()
   18493 {
   18494   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
   18495      imitates locale dependent behaviour by looking at the environment
   18496      variables, and all locales use the UTF-8 encoding.  */
   18497 #if defined __BEOS__ || defined __HAIKU__
   18498   return 1;
   18499 #else
   18500   /* Check whether the given locale name is recognized by the system.  */
   18501 # if defined _WIN32 && !defined __CYGWIN__
   18502   /* On native Windows, setlocale(category, "") looks at the system settings,
   18503      not at the environment variables.  Also, when an encoding suffix such
   18504      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
   18505      category of the locale to "C".  */
   18506   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
   18507       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
   18508     return 1;
   18509 # else
   18510   if (setlocale (LC_ALL, "") == NULL) return 1;
   18511 # endif
   18512   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
   18513      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
   18514      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
   18515      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
   18516      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
   18517      some unit tests fail.
   18518      On MirBSD 10, when an unsupported locale is specified, setlocale()
   18519      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
   18520 # if HAVE_LANGINFO_CODESET
   18521   {
   18522     const char *cs = nl_langinfo (CODESET);
   18523     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
   18524         || strcmp (cs, "UTF-8") == 0)
   18525       return 1;
   18526   }
   18527 # endif
   18528 # ifdef __CYGWIN__
   18529   /* On Cygwin, avoid locale names without encoding suffix, because the
   18530      locale_charset() function relies on the encoding suffix.  Note that
   18531      LC_ALL is set on the command line.  */
   18532   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
   18533 # endif
   18534   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
   18535      This excludes the UTF-8 encoding (except on MirBSD).  */
   18536   {
   18537     const char *p;
   18538     t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
   18539     if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
   18540     for (p = buf; *p != '\0'; p++)
   18541       if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
   18542         return 1;
   18543   }
   18544   /* Check whether a typical GB18030 multibyte sequence is recognized as a
   18545      single wide character.  This excludes the GB2312 and GBK encodings.  */
   18546   if (mblen ("\203\062\332\066", 5) != 4)
   18547     return 1;
   18548   return 0;
   18549 #endif
   18550 }
   18551 
   18552 _ACEOF
   18553     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   18554   (eval $ac_link) 2>&5
   18555   ac_status=$?
   18556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18557   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   18558       case "$host_os" in
   18559         # Handle native Windows specially, because there setlocale() interprets
   18560         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
   18561         # "fr" or "fra" as "French" or "French_France.1252",
   18562         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
   18563         # "ja" as "Japanese" or "Japanese_Japan.932",
   18564         # and similar.
   18565         mingw*)
   18566           # Test for the hypothetical native Windows locale name.
   18567           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18568             gt_cv_locale_zh_CN=Chinese_China.54936
   18569           else
   18570             # None found.
   18571             gt_cv_locale_zh_CN=none
   18572           fi
   18573           ;;
   18574         solaris2.8)
   18575           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
   18576           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
   18577           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
   18578           gt_cv_locale_zh_CN=none
   18579           ;;
   18580         *)
   18581           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
   18582           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
   18583           # configure script would override the LC_ALL setting. Likewise for
   18584           # LC_CTYPE, which is also set at the beginning of the configure script.
   18585           # Test for the locale name without encoding suffix.
   18586           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18587             gt_cv_locale_zh_CN=zh_CN
   18588           else
   18589             # Test for the locale name with explicit encoding suffix.
   18590             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
   18591               gt_cv_locale_zh_CN=zh_CN.GB18030
   18592             else
   18593               # None found.
   18594               gt_cv_locale_zh_CN=none
   18595             fi
   18596           fi
   18597           ;;
   18598       esac
   18599     else
   18600       # If there was a link error, due to mblen(), the system is so old that
   18601       # it certainly doesn't have a chinese locale.
   18602       gt_cv_locale_zh_CN=none
   18603     fi
   18604     rm -fr conftest*
   18605 
   18606 fi
   18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
   18608 $as_echo "$gt_cv_locale_zh_CN" >&6; }
   18609   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
   18610 
   18611 
   18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   18613 $as_echo_n "checking for inline... " >&6; }
   18614 if ${ac_cv_c_inline+:} false; then :
   18615   $as_echo_n "(cached) " >&6
   18616 else
   18617   ac_cv_c_inline=no
   18618 for ac_kw in inline __inline__ __inline; do
   18619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18620 /* end confdefs.h.  */
   18621 #ifndef __cplusplus
   18622 typedef int foo_t;
   18623 static $ac_kw foo_t static_foo () {return 0; }
   18624 $ac_kw foo_t foo () {return 0; }
   18625 #endif
   18626 
   18627 _ACEOF
   18628 if ac_fn_c_try_compile "$LINENO"; then :
   18629   ac_cv_c_inline=$ac_kw
   18630 fi
   18631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18632   test "$ac_cv_c_inline" != no && break
   18633 done
   18634 
   18635 fi
   18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   18637 $as_echo "$ac_cv_c_inline" >&6; }
   18638 
   18639 case $ac_cv_c_inline in
   18640   inline | yes) ;;
   18641   *)
   18642     case $ac_cv_c_inline in
   18643       no) ac_val=;;
   18644       *) ac_val=$ac_cv_c_inline;;
   18645     esac
   18646     cat >>confdefs.h <<_ACEOF
   18647 #ifndef __cplusplus
   18648 #define inline $ac_val
   18649 #endif
   18650 _ACEOF
   18651     ;;
   18652 esac
   18653 
   18654 
   18655 
   18656 
   18657   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
   18658   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
   18659   # irrelevant for anonymous mappings.
   18660   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   18661 if test "x$ac_cv_func_mmap" = xyes; then :
   18662   gl_have_mmap=yes
   18663 else
   18664   gl_have_mmap=no
   18665 fi
   18666 
   18667 
   18668   # Try to allow MAP_ANONYMOUS.
   18669   gl_have_mmap_anonymous=no
   18670   if test $gl_have_mmap = yes; then
   18671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
   18672 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
   18673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18674 /* end confdefs.h.  */
   18675 
   18676 #include <sys/mman.h>
   18677 #ifdef MAP_ANONYMOUS
   18678     I cannot identify this map
   18679 #endif
   18680 
   18681 _ACEOF
   18682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18683   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
   18684   gl_have_mmap_anonymous=yes
   18685 fi
   18686 rm -f conftest*
   18687 
   18688     if test $gl_have_mmap_anonymous != yes; then
   18689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18690 /* end confdefs.h.  */
   18691 
   18692 #include <sys/mman.h>
   18693 #ifdef MAP_ANON
   18694     I cannot identify this map
   18695 #endif
   18696 
   18697 _ACEOF
   18698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   18699   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
   18700 
   18701 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
   18702 
   18703          gl_have_mmap_anonymous=yes
   18704 fi
   18705 rm -f conftest*
   18706 
   18707     fi
   18708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
   18709 $as_echo "$gl_have_mmap_anonymous" >&6; }
   18710     if test $gl_have_mmap_anonymous = yes; then
   18711 
   18712 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
   18713 
   18714     fi
   18715   fi
   18716 
   18717 
   18718 
   18719 
   18720 
   18721 
   18722   HAVE_MBSLEN=0;
   18723     HAVE_EXPLICIT_BZERO=1;
   18724   HAVE_FFSL=1;
   18725   HAVE_FFSLL=1;
   18726   HAVE_DECL_MEMMEM=1;
   18727   HAVE_MEMPCPY=1;
   18728   HAVE_DECL_MEMRCHR=1;
   18729   HAVE_RAWMEMCHR=1;
   18730   HAVE_STPCPY=1;
   18731   HAVE_STPNCPY=1;
   18732   HAVE_STRCHRNUL=1;
   18733   HAVE_DECL_STRDUP=1;
   18734   HAVE_DECL_STRNDUP=1;
   18735   HAVE_DECL_STRNLEN=1;
   18736   HAVE_STRPBRK=1;
   18737   HAVE_STRSEP=1;
   18738   HAVE_STRCASESTR=1;
   18739   HAVE_DECL_STRTOK_R=1;
   18740   HAVE_DECL_STRERROR_R=1;
   18741   HAVE_STRERRORNAME_NP=1;
   18742   HAVE_SIGABBREV_NP=1;
   18743   HAVE_SIGDESCR_NP=1;
   18744   HAVE_DECL_STRSIGNAL=1;
   18745   HAVE_STRVERSCMP=1;
   18746   REPLACE_FFSLL=0;
   18747   REPLACE_MEMCHR=0;
   18748   REPLACE_MEMMEM=0;
   18749   REPLACE_STPNCPY=0;
   18750   REPLACE_STRCHRNUL=0;
   18751   REPLACE_STRDUP=0;
   18752   REPLACE_STRNCAT=0;
   18753   REPLACE_STRNDUP=0;
   18754   REPLACE_STRNLEN=0;
   18755   REPLACE_STRSTR=0;
   18756   REPLACE_STRCASESTR=0;
   18757   REPLACE_STRTOK_R=0;
   18758   REPLACE_STRERROR=0;
   18759   REPLACE_STRERROR_R=0;
   18760   REPLACE_STRERRORNAME_NP=0;
   18761   REPLACE_STRSIGNAL=0;
   18762   UNDEFINE_STRTOK_R=0;
   18763 
   18764 
   18765 
   18766 
   18767 
   18768 
   18769 
   18770 
   18771   # Detect platform-specific bugs in some versions of glibc:
   18772   # memchr should not dereference anything with length 0
   18773   #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
   18774   # memchr should not dereference overestimated length after a match
   18775   #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
   18776   #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
   18777   # memchr should cast the second argument to 'unsigned char'.
   18778   #   This bug exists in Android 4.3.
   18779   # Assume that memchr works on platforms that lack mprotect.
   18780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
   18781 $as_echo_n "checking whether memchr works... " >&6; }
   18782 if ${gl_cv_func_memchr_works+:} false; then :
   18783   $as_echo_n "(cached) " >&6
   18784 else
   18785   if test "$cross_compiling" = yes; then :
   18786   case "$host_os" in
   18787                            # Guess no on Android.
   18788           linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
   18789                            # Guess yes on native Windows.
   18790           mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
   18791                            # If we don't know, obey --enable-cross-guesses.
   18792           *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
   18793         esac
   18794 
   18795 else
   18796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18797 /* end confdefs.h.  */
   18798 
   18799 #include <string.h>
   18800 #if HAVE_SYS_MMAN_H
   18801 # include <fcntl.h>
   18802 # include <unistd.h>
   18803 # include <sys/types.h>
   18804 # include <sys/mman.h>
   18805 # ifndef MAP_FILE
   18806 #  define MAP_FILE 0
   18807 # endif
   18808 #endif
   18809 
   18810 int
   18811 main ()
   18812 {
   18813 
   18814   int result = 0;
   18815   char *fence = NULL;
   18816 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
   18817 # if HAVE_MAP_ANONYMOUS
   18818   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
   18819   const int fd = -1;
   18820 # else /* !HAVE_MAP_ANONYMOUS */
   18821   const int flags = MAP_FILE | MAP_PRIVATE;
   18822   int fd = open ("/dev/zero", O_RDONLY, 0666);
   18823   if (fd >= 0)
   18824 # endif
   18825     {
   18826       int pagesize = getpagesize ();
   18827       char *two_pages =
   18828         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
   18829                        flags, fd, 0);
   18830       if (two_pages != (char *)(-1)
   18831           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
   18832         fence = two_pages + pagesize;
   18833     }
   18834 #endif
   18835   if (fence)
   18836     {
   18837       /* Test against bugs on glibc systems.  */
   18838       if (memchr (fence, 0, 0))
   18839         result |= 1;
   18840       strcpy (fence - 9, "12345678");
   18841       if (memchr (fence - 9, 0, 79) != fence - 1)
   18842         result |= 2;
   18843       if (memchr (fence - 1, 0, 3) != fence - 1)
   18844         result |= 4;
   18845       /* Test against bug on AIX 7.2.  */
   18846       if (memchr (fence - 4, '6', 16) != fence - 4)
   18847         result |= 8;
   18848     }
   18849   /* Test against bug on Android 4.3.  */
   18850   {
   18851     char input[3];
   18852     input[0] = 'a';
   18853     input[1] = 'b';
   18854     input[2] = 'c';
   18855     if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
   18856       result |= 16;
   18857   }
   18858   return result;
   18859 
   18860   ;
   18861   return 0;
   18862 }
   18863 _ACEOF
   18864 if ac_fn_c_try_run "$LINENO"; then :
   18865   gl_cv_func_memchr_works=yes
   18866 else
   18867   gl_cv_func_memchr_works=no
   18868 fi
   18869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18870   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18871 fi
   18872 
   18873 
   18874 fi
   18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
   18876 $as_echo "$gl_cv_func_memchr_works" >&6; }
   18877   case "$gl_cv_func_memchr_works" in
   18878     *yes) ;;
   18879     *) REPLACE_MEMCHR=1 ;;
   18880   esac
   18881 
   18882 
   18883 
   18884   GL_GNULIB_EXPLICIT_BZERO=0
   18885 
   18886 
   18887 
   18888   GL_GNULIB_FFSL=0
   18889 
   18890 
   18891 
   18892   GL_GNULIB_FFSLL=0
   18893 
   18894 
   18895 
   18896   GL_GNULIB_MEMCHR=0
   18897 
   18898 
   18899 
   18900   GL_GNULIB_MEMMEM=0
   18901 
   18902 
   18903 
   18904   GL_GNULIB_MEMPCPY=0
   18905 
   18906 
   18907 
   18908   GL_GNULIB_MEMRCHR=0
   18909 
   18910 
   18911 
   18912   GL_GNULIB_RAWMEMCHR=0
   18913 
   18914 
   18915 
   18916   GL_GNULIB_STPCPY=0
   18917 
   18918 
   18919 
   18920   GL_GNULIB_STPNCPY=0
   18921 
   18922 
   18923 
   18924   GL_GNULIB_STRCHRNUL=0
   18925 
   18926 
   18927 
   18928   GL_GNULIB_STRDUP=0
   18929 
   18930 
   18931 
   18932   GL_GNULIB_STRNCAT=0
   18933 
   18934 
   18935 
   18936   GL_GNULIB_STRNDUP=0
   18937 
   18938 
   18939 
   18940   GL_GNULIB_STRNLEN=0
   18941 
   18942 
   18943 
   18944   GL_GNULIB_STRPBRK=0
   18945 
   18946 
   18947 
   18948   GL_GNULIB_STRSEP=0
   18949 
   18950 
   18951 
   18952   GL_GNULIB_STRSTR=0
   18953 
   18954 
   18955 
   18956   GL_GNULIB_STRCASESTR=0
   18957 
   18958 
   18959 
   18960   GL_GNULIB_STRTOK_R=0
   18961 
   18962 
   18963 
   18964   GL_GNULIB_MBSLEN=0
   18965 
   18966 
   18967 
   18968   GL_GNULIB_MBSNLEN=0
   18969 
   18970 
   18971 
   18972   GL_GNULIB_MBSCHR=0
   18973 
   18974 
   18975 
   18976   GL_GNULIB_MBSRCHR=0
   18977 
   18978 
   18979 
   18980   GL_GNULIB_MBSSTR=0
   18981 
   18982 
   18983 
   18984   GL_GNULIB_MBSCASECMP=0
   18985 
   18986 
   18987 
   18988   GL_GNULIB_MBSNCASECMP=0
   18989 
   18990 
   18991 
   18992   GL_GNULIB_MBSPCASECMP=0
   18993 
   18994 
   18995 
   18996   GL_GNULIB_MBSCASESTR=0
   18997 
   18998 
   18999 
   19000   GL_GNULIB_MBSCSPN=0
   19001 
   19002 
   19003 
   19004   GL_GNULIB_MBSPBRK=0
   19005 
   19006 
   19007 
   19008   GL_GNULIB_MBSSPN=0
   19009 
   19010 
   19011 
   19012   GL_GNULIB_MBSSEP=0
   19013 
   19014 
   19015 
   19016   GL_GNULIB_MBSTOK_R=0
   19017 
   19018 
   19019 
   19020   GL_GNULIB_STRERROR=0
   19021 
   19022 
   19023 
   19024   GL_GNULIB_STRERROR_R=0
   19025 
   19026 
   19027 
   19028   GL_GNULIB_STRERRORNAME_NP=0
   19029 
   19030 
   19031 
   19032   GL_GNULIB_SIGABBREV_NP=0
   19033 
   19034 
   19035 
   19036   GL_GNULIB_SIGDESCR_NP=0
   19037 
   19038 
   19039 
   19040   GL_GNULIB_STRSIGNAL=0
   19041 
   19042 
   19043 
   19044   GL_GNULIB_STRVERSCMP=0
   19045 
   19046 
   19047 
   19048   GL_GNULIB_MDA_MEMCCPY=1
   19049 
   19050 
   19051 
   19052   GL_GNULIB_MDA_STRDUP=1
   19053 
   19054 
   19055 
   19056 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
   19057 if test "x$ac_cv_have_decl_memmem" = xyes; then :
   19058   ac_have_decl=1
   19059 else
   19060   ac_have_decl=0
   19061 fi
   19062 
   19063 cat >>confdefs.h <<_ACEOF
   19064 #define HAVE_DECL_MEMMEM $ac_have_decl
   19065 _ACEOF
   19066 
   19067 
   19068 
   19069 
   19070 
   19071   for ac_func in memmem
   19072 do :
   19073   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
   19074 if test "x$ac_cv_func_memmem" = xyes; then :
   19075   cat >>confdefs.h <<_ACEOF
   19076 #define HAVE_MEMMEM 1
   19077 _ACEOF
   19078 
   19079 fi
   19080 done
   19081 
   19082   if test $ac_cv_func_memmem = yes; then
   19083     HAVE_MEMMEM=1
   19084   else
   19085     HAVE_MEMMEM=0
   19086   fi
   19087 
   19088   if test $ac_cv_have_decl_memmem = no; then
   19089     HAVE_DECL_MEMMEM=0
   19090   else
   19091             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
   19092 $as_echo_n "checking whether memmem works... " >&6; }
   19093 if ${gl_cv_func_memmem_works_always+:} false; then :
   19094   $as_echo_n "(cached) " >&6
   19095 else
   19096   if test "$cross_compiling" = yes; then :
   19097                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19098 /* end confdefs.h.  */
   19099 
   19100 #include <string.h> /* for __GNU_LIBRARY__ */
   19101 #ifdef __GNU_LIBRARY__
   19102  #include <features.h>
   19103  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
   19104                           || __GLIBC_MINOR__ > 12)) \
   19105       || (__GLIBC__ > 2)) \
   19106      || defined __UCLIBC__
   19107   Lucky user
   19108  #endif
   19109 #elif defined __CYGWIN__
   19110  #include <cygwin/version.h>
   19111  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
   19112   Lucky user
   19113  #endif
   19114 #else
   19115   Lucky user
   19116 #endif
   19117 
   19118 _ACEOF
   19119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19120   $EGREP "Lucky user" >/dev/null 2>&1; then :
   19121   gl_cv_func_memmem_works_always="guessing yes"
   19122 else
   19123   gl_cv_func_memmem_works_always="$gl_cross_guess_normal"
   19124 fi
   19125 rm -f conftest*
   19126 
   19127 
   19128 else
   19129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19130 /* end confdefs.h.  */
   19131 
   19132 #include <string.h> /* for memmem */
   19133 #define P "_EF_BF_BD"
   19134 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
   19135 #define NEEDLE P P P P P
   19136 
   19137 int
   19138 main ()
   19139 {
   19140 
   19141     int result = 0;
   19142     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
   19143       result |= 1;
   19144     /* Check for empty needle behavior.  */
   19145     {
   19146       const char *haystack = "AAA";
   19147       if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
   19148         result |= 2;
   19149     }
   19150     return result;
   19151 
   19152   ;
   19153   return 0;
   19154 }
   19155 _ACEOF
   19156 if ac_fn_c_try_run "$LINENO"; then :
   19157   gl_cv_func_memmem_works_always=yes
   19158 else
   19159   gl_cv_func_memmem_works_always=no
   19160 fi
   19161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19162   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19163 fi
   19164 
   19165 
   19166 fi
   19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
   19168 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
   19169     case "$gl_cv_func_memmem_works_always" in
   19170       *yes) ;;
   19171       *)
   19172         REPLACE_MEMMEM=1
   19173         ;;
   19174     esac
   19175   fi
   19176   :
   19177 
   19178 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
   19179 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
   19180   ac_have_decl=1
   19181 else
   19182   ac_have_decl=0
   19183 fi
   19184 
   19185 cat >>confdefs.h <<_ACEOF
   19186 #define HAVE_DECL_MEMRCHR $ac_have_decl
   19187 _ACEOF
   19188 
   19189 
   19190 
   19191 
   19192 
   19193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
   19194 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
   19195 if ${gl_cv_minmax_in_limits_h+:} false; then :
   19196   $as_echo_n "(cached) " >&6
   19197 else
   19198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19199 /* end confdefs.h.  */
   19200 #include <limits.h>
   19201             int x = MIN (42, 17);
   19202 int
   19203 main ()
   19204 {
   19205 
   19206   ;
   19207   return 0;
   19208 }
   19209 _ACEOF
   19210 if ac_fn_c_try_compile "$LINENO"; then :
   19211   gl_cv_minmax_in_limits_h=yes
   19212 else
   19213   gl_cv_minmax_in_limits_h=no
   19214 fi
   19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19216 fi
   19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
   19218 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
   19219   if test $gl_cv_minmax_in_limits_h = yes; then
   19220 
   19221 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
   19222 
   19223   fi
   19224 
   19225 
   19226 
   19227 
   19228 
   19229 
   19230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
   19231 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
   19232 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
   19233   $as_echo_n "(cached) " >&6
   19234 else
   19235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19236 /* end confdefs.h.  */
   19237 #include <sys/param.h>
   19238             int x = MIN (42, 17);
   19239 int
   19240 main ()
   19241 {
   19242 
   19243   ;
   19244   return 0;
   19245 }
   19246 _ACEOF
   19247 if ac_fn_c_try_compile "$LINENO"; then :
   19248   gl_cv_minmax_in_sys_param_h=yes
   19249 else
   19250   gl_cv_minmax_in_sys_param_h=no
   19251 fi
   19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19253 fi
   19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
   19255 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
   19256   if test $gl_cv_minmax_in_sys_param_h = yes; then
   19257 
   19258 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
   19259 
   19260   fi
   19261 
   19262 
   19263 
   19264 
   19265 
   19266 
   19267 
   19268 
   19269 
   19270 
   19271     HAVE_STRUCT_ADDRINFO=1;
   19272   HAVE_DECL_FREEADDRINFO=1;
   19273   HAVE_DECL_GAI_STRERROR=1;
   19274   HAVE_DECL_GETADDRINFO=1;
   19275   HAVE_DECL_GETNAMEINFO=1;
   19276   REPLACE_GAI_STRERROR=0;
   19277   REPLACE_GETADDRINFO=0;
   19278 
   19279 
   19280 
   19281 
   19282 
   19283 
   19284 
   19285 
   19286 
   19287 
   19288 
   19289 
   19290      if test $gl_cv_have_include_next = yes; then
   19291        gl_cv_next_netdb_h='<'netdb.h'>'
   19292      else
   19293        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
   19294 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
   19295 if ${gl_cv_next_netdb_h+:} false; then :
   19296   $as_echo_n "(cached) " >&6
   19297 else
   19298 
   19299              if test $ac_cv_header_netdb_h = yes; then
   19300 
   19301 
   19302 
   19303 
   19304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19305 /* end confdefs.h.  */
   19306 #include <netdb.h>
   19307 _ACEOF
   19308                 case "$host_os" in
   19309     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   19310     *)    gl_absname_cpp="$ac_cpp" ;;
   19311   esac
   19312 
   19313   case "$host_os" in
   19314     mingw*)
   19315                                           gl_dirsep_regex='[/\\]'
   19316       ;;
   19317     *)
   19318       gl_dirsep_regex='\/'
   19319       ;;
   19320   esac
   19321       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   19322   gl_header_literal_regex=`echo 'netdb.h' \
   19323                            | sed -e "$gl_make_literal_regex_sed"`
   19324   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   19325       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   19326       s|^/[^/]|//&|
   19327       p
   19328       q
   19329     }'
   19330 
   19331         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   19332   sed -n "$gl_absolute_header_sed"`
   19333 
   19334           gl_header=$gl_cv_absolute_netdb_h
   19335           gl_cv_next_netdb_h='"'$gl_header'"'
   19336           else
   19337                gl_cv_next_netdb_h='<'netdb.h'>'
   19338              fi
   19339 
   19340 
   19341 fi
   19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
   19343 $as_echo "$gl_cv_next_netdb_h" >&6; }
   19344      fi
   19345      NEXT_NETDB_H=$gl_cv_next_netdb_h
   19346 
   19347      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   19348        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   19349        gl_next_as_first_directive='<'netdb.h'>'
   19350      else
   19351        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   19352        gl_next_as_first_directive=$gl_cv_next_netdb_h
   19353      fi
   19354      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
   19355 
   19356 
   19357 
   19358 
   19359   if test $ac_cv_header_netdb_h = yes; then
   19360     HAVE_NETDB_H=1
   19361   else
   19362     HAVE_NETDB_H=0
   19363   fi
   19364 
   19365 
   19366 
   19367 
   19368 
   19369 
   19370 
   19371 
   19372   GL_GNULIB_GETADDRINFO=0
   19373 
   19374 
   19375 
   19376 
   19377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
   19378 $as_echo_n "checking for O_CLOEXEC... " >&6; }
   19379 if ${gl_cv_macro_O_CLOEXEC+:} false; then :
   19380   $as_echo_n "(cached) " >&6
   19381 else
   19382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19383 /* end confdefs.h.  */
   19384 #include <fcntl.h>
   19385                           #ifndef O_CLOEXEC
   19386                             choke me;
   19387                           #endif
   19388 
   19389 int
   19390 main ()
   19391 {
   19392 return O_CLOEXEC;
   19393   ;
   19394   return 0;
   19395 }
   19396 _ACEOF
   19397 if ac_fn_c_try_compile "$LINENO"; then :
   19398   gl_cv_macro_O_CLOEXEC=yes
   19399 else
   19400   gl_cv_macro_O_CLOEXEC=no
   19401 fi
   19402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19403 fi
   19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
   19405 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
   19406 
   19407 
   19408 
   19409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
   19410 $as_echo_n "checking for promoted mode_t type... " >&6; }
   19411 if ${gl_cv_promoted_mode_t+:} false; then :
   19412   $as_echo_n "(cached) " >&6
   19413 else
   19414 
   19415                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19416 /* end confdefs.h.  */
   19417 #include <sys/types.h>
   19418 int
   19419 main ()
   19420 {
   19421 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
   19422   ;
   19423   return 0;
   19424 }
   19425 _ACEOF
   19426 if ac_fn_c_try_compile "$LINENO"; then :
   19427   gl_cv_promoted_mode_t='int'
   19428 else
   19429   gl_cv_promoted_mode_t='mode_t'
   19430 fi
   19431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19432 
   19433 fi
   19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
   19435 $as_echo "$gl_cv_promoted_mode_t" >&6; }
   19436 
   19437 cat >>confdefs.h <<_ACEOF
   19438 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
   19439 _ACEOF
   19440 
   19441 
   19442 
   19443 
   19444 
   19445 
   19446 
   19447 
   19448 
   19449 
   19450 
   19451     HAVE_PSELECT=1;
   19452   REPLACE_PSELECT=0;
   19453   REPLACE_SELECT=0;
   19454 
   19455 
   19456 
   19457 
   19458 
   19459 
   19460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
   19461 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
   19462 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
   19463   $as_echo_n "(cached) " >&6
   19464 else
   19465 
   19466                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19467 /* end confdefs.h.  */
   19468 #include <sys/select.h>
   19469 int
   19470 main ()
   19471 {
   19472 struct timeval b;
   19473   ;
   19474   return 0;
   19475 }
   19476 _ACEOF
   19477 if ac_fn_c_try_compile "$LINENO"; then :
   19478   gl_cv_header_sys_select_h_selfcontained=yes
   19479 else
   19480   gl_cv_header_sys_select_h_selfcontained=no
   19481 fi
   19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19483                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
   19484         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19485 /* end confdefs.h.  */
   19486 #include <sys/select.h>
   19487 int
   19488 main ()
   19489 {
   19490 int memset; int bzero;
   19491   ;
   19492   return 0;
   19493 }
   19494 
   19495 _ACEOF
   19496 if ac_fn_c_try_compile "$LINENO"; then :
   19497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19498 /* end confdefs.h.  */
   19499 #include <sys/select.h>
   19500 int
   19501 main ()
   19502 {
   19503 
   19504                   #undef memset
   19505                   #define memset nonexistent_memset
   19506                   extern
   19507                   #ifdef __cplusplus
   19508                   "C"
   19509                   #endif
   19510                   void *memset (void *, int, unsigned long);
   19511                   #undef bzero
   19512                   #define bzero nonexistent_bzero
   19513                   extern
   19514                   #ifdef __cplusplus
   19515                   "C"
   19516                   #endif
   19517                   void bzero (void *, unsigned long);
   19518                   fd_set fds;
   19519                   FD_ZERO (&fds);
   19520 
   19521   ;
   19522   return 0;
   19523 }
   19524 
   19525 _ACEOF
   19526 if ac_fn_c_try_link "$LINENO"; then :
   19527 
   19528 else
   19529   gl_cv_header_sys_select_h_selfcontained=no
   19530 fi
   19531 rm -f core conftest.err conftest.$ac_objext \
   19532     conftest$ac_exeext conftest.$ac_ext
   19533 
   19534 fi
   19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19536       fi
   19537 
   19538 fi
   19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
   19540 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
   19541 
   19542 
   19543 
   19544 
   19545 
   19546 
   19547 
   19548 
   19549 
   19550      if test $gl_cv_have_include_next = yes; then
   19551        gl_cv_next_sys_select_h='<'sys/select.h'>'
   19552      else
   19553        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
   19554 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
   19555 if ${gl_cv_next_sys_select_h+:} false; then :
   19556   $as_echo_n "(cached) " >&6
   19557 else
   19558 
   19559              if test $ac_cv_header_sys_select_h = yes; then
   19560 
   19561 
   19562 
   19563 
   19564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19565 /* end confdefs.h.  */
   19566 #include <sys/select.h>
   19567 _ACEOF
   19568                 case "$host_os" in
   19569     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   19570     *)    gl_absname_cpp="$ac_cpp" ;;
   19571   esac
   19572 
   19573   case "$host_os" in
   19574     mingw*)
   19575                                           gl_dirsep_regex='[/\\]'
   19576       ;;
   19577     *)
   19578       gl_dirsep_regex='\/'
   19579       ;;
   19580   esac
   19581       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   19582   gl_header_literal_regex=`echo 'sys/select.h' \
   19583                            | sed -e "$gl_make_literal_regex_sed"`
   19584   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   19585       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   19586       s|^/[^/]|//&|
   19587       p
   19588       q
   19589     }'
   19590 
   19591         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   19592   sed -n "$gl_absolute_header_sed"`
   19593 
   19594           gl_header=$gl_cv_absolute_sys_select_h
   19595           gl_cv_next_sys_select_h='"'$gl_header'"'
   19596           else
   19597                gl_cv_next_sys_select_h='<'sys/select.h'>'
   19598              fi
   19599 
   19600 
   19601 fi
   19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
   19603 $as_echo "$gl_cv_next_sys_select_h" >&6; }
   19604      fi
   19605      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
   19606 
   19607      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   19608        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   19609        gl_next_as_first_directive='<'sys/select.h'>'
   19610      else
   19611        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   19612        gl_next_as_first_directive=$gl_cv_next_sys_select_h
   19613      fi
   19614      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
   19615 
   19616 
   19617 
   19618 
   19619   if test $ac_cv_header_sys_select_h = yes; then
   19620     HAVE_SYS_SELECT_H=1
   19621   else
   19622     HAVE_SYS_SELECT_H=0
   19623   fi
   19624 
   19625 
   19626 
   19627 
   19628 
   19629   if test $ac_cv_header_sys_socket_h != yes; then
   19630                     for ac_header in winsock2.h
   19631 do :
   19632   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   19633 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   19634   cat >>confdefs.h <<_ACEOF
   19635 #define HAVE_WINSOCK2_H 1
   19636 _ACEOF
   19637 
   19638 fi
   19639 
   19640 done
   19641 
   19642   fi
   19643   if test "$ac_cv_header_winsock2_h" = yes; then
   19644     HAVE_WINSOCK2_H=1
   19645     UNISTD_H_HAVE_WINSOCK2_H=1
   19646     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   19647   else
   19648     HAVE_WINSOCK2_H=0
   19649   fi
   19650 
   19651 
   19652 
   19653 
   19654 
   19655 
   19656 
   19657 
   19658 
   19659 
   19660 
   19661 
   19662   if test $ac_cv_header_sys_socket_h != yes; then
   19663                     for ac_header in winsock2.h
   19664 do :
   19665   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   19666 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   19667   cat >>confdefs.h <<_ACEOF
   19668 #define HAVE_WINSOCK2_H 1
   19669 _ACEOF
   19670 
   19671 fi
   19672 
   19673 done
   19674 
   19675   fi
   19676   if test "$ac_cv_header_winsock2_h" = yes; then
   19677     HAVE_WINSOCK2_H=1
   19678     UNISTD_H_HAVE_WINSOCK2_H=1
   19679     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   19680   else
   19681     HAVE_WINSOCK2_H=0
   19682   fi
   19683 
   19684    LIBSOCKET=
   19685   if test $HAVE_WINSOCK2_H = 1; then
   19686                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5
   19687 $as_echo_n "checking for WSAStartup... " >&6; }
   19688 if ${gl_cv_func_wsastartup+:} false; then :
   19689   $as_echo_n "(cached) " >&6
   19690 else
   19691 
   19692        gl_save_LIBS="$LIBS"
   19693        LIBS="$LIBS -lws2_32"
   19694        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19695 /* end confdefs.h.  */
   19696 
   19697 #ifdef HAVE_WINSOCK2_H
   19698 # include <winsock2.h>
   19699 #endif
   19700 int
   19701 main ()
   19702 {
   19703 
   19704             WORD wVersionRequested = MAKEWORD(1, 1);
   19705             WSADATA wsaData;
   19706             int err = WSAStartup(wVersionRequested, &wsaData);
   19707             WSACleanup ();
   19708 
   19709   ;
   19710   return 0;
   19711 }
   19712 
   19713 _ACEOF
   19714 if ac_fn_c_try_link "$LINENO"; then :
   19715   gl_cv_func_wsastartup=yes
   19716 else
   19717   gl_cv_func_wsastartup=no
   19718 fi
   19719 rm -f core conftest.err conftest.$ac_objext \
   19720     conftest$ac_exeext conftest.$ac_ext
   19721        LIBS="$gl_save_LIBS"
   19722 
   19723 fi
   19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
   19725 $as_echo "$gl_cv_func_wsastartup" >&6; }
   19726     if test "$gl_cv_func_wsastartup" = "yes"; then
   19727 
   19728 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
   19729 
   19730       LIBSOCKET='-lws2_32'
   19731     fi
   19732   else
   19733                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
   19734 $as_echo_n "checking for library containing setsockopt... " >&6; }
   19735 if ${gl_cv_lib_socket+:} false; then :
   19736   $as_echo_n "(cached) " >&6
   19737 else
   19738 
   19739       gl_cv_lib_socket=
   19740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19741 /* end confdefs.h.  */
   19742 extern
   19743 #ifdef __cplusplus
   19744 "C"
   19745 #endif
   19746 char setsockopt();
   19747 int
   19748 main ()
   19749 {
   19750 setsockopt();
   19751   ;
   19752   return 0;
   19753 }
   19754 _ACEOF
   19755 if ac_fn_c_try_link "$LINENO"; then :
   19756 
   19757 else
   19758   gl_save_LIBS="$LIBS"
   19759          LIBS="$gl_save_LIBS -lsocket"
   19760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19761 /* end confdefs.h.  */
   19762 extern
   19763 #ifdef __cplusplus
   19764 "C"
   19765 #endif
   19766 char setsockopt();
   19767 int
   19768 main ()
   19769 {
   19770 setsockopt();
   19771   ;
   19772   return 0;
   19773 }
   19774 _ACEOF
   19775 if ac_fn_c_try_link "$LINENO"; then :
   19776   gl_cv_lib_socket="-lsocket"
   19777 fi
   19778 rm -f core conftest.err conftest.$ac_objext \
   19779     conftest$ac_exeext conftest.$ac_ext
   19780          if test -z "$gl_cv_lib_socket"; then
   19781            LIBS="$gl_save_LIBS -lnetwork"
   19782            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19783 /* end confdefs.h.  */
   19784 extern
   19785 #ifdef __cplusplus
   19786 "C"
   19787 #endif
   19788 char setsockopt();
   19789 int
   19790 main ()
   19791 {
   19792 setsockopt();
   19793   ;
   19794   return 0;
   19795 }
   19796 _ACEOF
   19797 if ac_fn_c_try_link "$LINENO"; then :
   19798   gl_cv_lib_socket="-lnetwork"
   19799 fi
   19800 rm -f core conftest.err conftest.$ac_objext \
   19801     conftest$ac_exeext conftest.$ac_ext
   19802            if test -z "$gl_cv_lib_socket"; then
   19803              LIBS="$gl_save_LIBS -lnet"
   19804              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19805 /* end confdefs.h.  */
   19806 extern
   19807 #ifdef __cplusplus
   19808 "C"
   19809 #endif
   19810 char setsockopt();
   19811 int
   19812 main ()
   19813 {
   19814 setsockopt();
   19815   ;
   19816   return 0;
   19817 }
   19818 _ACEOF
   19819 if ac_fn_c_try_link "$LINENO"; then :
   19820   gl_cv_lib_socket="-lnet"
   19821 fi
   19822 rm -f core conftest.err conftest.$ac_objext \
   19823     conftest$ac_exeext conftest.$ac_ext
   19824            fi
   19825          fi
   19826          LIBS="$gl_save_LIBS"
   19827 
   19828 fi
   19829 rm -f core conftest.err conftest.$ac_objext \
   19830     conftest$ac_exeext conftest.$ac_ext
   19831       if test -z "$gl_cv_lib_socket"; then
   19832         gl_cv_lib_socket="none needed"
   19833       fi
   19834 
   19835 fi
   19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
   19837 $as_echo "$gl_cv_lib_socket" >&6; }
   19838     if test "$gl_cv_lib_socket" != "none needed"; then
   19839       LIBSOCKET="$gl_cv_lib_socket"
   19840     fi
   19841   fi
   19842 
   19843 
   19844 
   19845 
   19846 
   19847 
   19848   :
   19849 
   19850 
   19851 
   19852 
   19853   GL_GNULIB_PSELECT=0
   19854 
   19855 
   19856 
   19857   GL_GNULIB_SELECT=0
   19858 
   19859 
   19860 
   19861 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
   19862 if test "x$ac_cv_have_decl_setenv" = xyes; then :
   19863   ac_have_decl=1
   19864 else
   19865   ac_have_decl=0
   19866 fi
   19867 
   19868 cat >>confdefs.h <<_ACEOF
   19869 #define HAVE_DECL_SETENV $ac_have_decl
   19870 _ACEOF
   19871 
   19872 
   19873 
   19874 
   19875 
   19876 
   19877   if test $ac_cv_have_decl_setenv = no; then
   19878     HAVE_DECL_SETENV=0
   19879   fi
   19880 
   19881 
   19882 
   19883 
   19884 
   19885   for ac_header in search.h
   19886 do :
   19887   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
   19888 if test "x$ac_cv_header_search_h" = xyes; then :
   19889   cat >>confdefs.h <<_ACEOF
   19890 #define HAVE_SEARCH_H 1
   19891 _ACEOF
   19892 
   19893 fi
   19894 
   19895 done
   19896 
   19897   for ac_func in tsearch
   19898 do :
   19899   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
   19900 if test "x$ac_cv_func_tsearch" = xyes; then :
   19901   cat >>confdefs.h <<_ACEOF
   19902 #define HAVE_TSEARCH 1
   19903 _ACEOF
   19904 
   19905 fi
   19906 done
   19907 
   19908 
   19909 
   19910 
   19911     HAVE_POSIX_SIGNALBLOCKING=1;
   19912   HAVE_PTHREAD_SIGMASK=1;
   19913   HAVE_RAISE=1;
   19914   HAVE_SIGSET_T=1;
   19915   HAVE_SIGINFO_T=1;
   19916   HAVE_SIGACTION=1;
   19917   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
   19918 
   19919   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
   19920 
   19921   HAVE_SIGHANDLER_T=1;
   19922   REPLACE_PTHREAD_SIGMASK=0;
   19923   REPLACE_RAISE=0;
   19924 
   19925 
   19926   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
   19927       #include <signal.h>
   19928       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
   19929       #include <sys/types.h>
   19930 
   19931 "
   19932 if test "x$ac_cv_type_sigset_t" = xyes; then :
   19933 
   19934 cat >>confdefs.h <<_ACEOF
   19935 #define HAVE_SIGSET_T 1
   19936 _ACEOF
   19937 
   19938 gl_cv_type_sigset_t=yes
   19939 else
   19940   gl_cv_type_sigset_t=no
   19941 fi
   19942 
   19943   if test $gl_cv_type_sigset_t != yes; then
   19944     HAVE_SIGSET_T=0
   19945   fi
   19946 
   19947 
   19948 
   19949 
   19950 
   19951 
   19952 
   19953 
   19954 
   19955 
   19956 
   19957 
   19958      if test $gl_cv_have_include_next = yes; then
   19959        gl_cv_next_signal_h='<'signal.h'>'
   19960      else
   19961        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
   19962 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
   19963 if ${gl_cv_next_signal_h+:} false; then :
   19964   $as_echo_n "(cached) " >&6
   19965 else
   19966 
   19967 
   19968 
   19969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19970 /* end confdefs.h.  */
   19971 #include <signal.h>
   19972 _ACEOF
   19973                 case "$host_os" in
   19974     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   19975     *)    gl_absname_cpp="$ac_cpp" ;;
   19976   esac
   19977 
   19978   case "$host_os" in
   19979     mingw*)
   19980                                           gl_dirsep_regex='[/\\]'
   19981       ;;
   19982     *)
   19983       gl_dirsep_regex='\/'
   19984       ;;
   19985   esac
   19986       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   19987   gl_header_literal_regex=`echo 'signal.h' \
   19988                            | sed -e "$gl_make_literal_regex_sed"`
   19989   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   19990       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   19991       s|^/[^/]|//&|
   19992       p
   19993       q
   19994     }'
   19995 
   19996         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   19997   sed -n "$gl_absolute_header_sed"`
   19998 
   19999           gl_header=$gl_cv_absolute_signal_h
   20000           gl_cv_next_signal_h='"'$gl_header'"'
   20001 
   20002 
   20003 fi
   20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
   20005 $as_echo "$gl_cv_next_signal_h" >&6; }
   20006      fi
   20007      NEXT_SIGNAL_H=$gl_cv_next_signal_h
   20008 
   20009      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20010        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20011        gl_next_as_first_directive='<'signal.h'>'
   20012      else
   20013        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20014        gl_next_as_first_directive=$gl_cv_next_signal_h
   20015      fi
   20016      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
   20017 
   20018 
   20019 
   20020 
   20021 
   20022 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
   20023 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
   20024   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
   20025 #include <signal.h>
   20026 
   20027 "
   20028 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
   20029 
   20030 else
   20031   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
   20032 fi
   20033 
   20034 
   20035 
   20036 
   20037 
   20038 
   20039 
   20040   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
   20041 #include <signal.h>
   20042 
   20043 "
   20044 if test "x$ac_cv_type_sighandler_t" = xyes; then :
   20045 
   20046 else
   20047   HAVE_SIGHANDLER_T=0
   20048 fi
   20049 
   20050 
   20051 
   20052 
   20053 
   20054 
   20055 
   20056 
   20057 
   20058 
   20059   GL_GNULIB_PTHREAD_SIGMASK=0
   20060 
   20061 
   20062 
   20063   GL_GNULIB_RAISE=0
   20064 
   20065 
   20066 
   20067   GL_GNULIB_SIGNAL_H_SIGPIPE=0
   20068 
   20069 
   20070 
   20071   GL_GNULIB_SIGPROCMASK=0
   20072 
   20073 
   20074 
   20075   GL_GNULIB_SIGACTION=0
   20076 
   20077 
   20078 
   20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
   20080 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   20081 if ${ac_cv_header_stdbool_h+:} false; then :
   20082   $as_echo_n "(cached) " >&6
   20083 else
   20084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20085 /* end confdefs.h.  */
   20086 
   20087              #include <stdbool.h>
   20088 
   20089              #ifdef __cplusplus
   20090               typedef bool Bool;
   20091              #else
   20092               typedef _Bool Bool;
   20093               #ifndef bool
   20094                "error: bool is not defined"
   20095               #endif
   20096               #ifndef false
   20097                "error: false is not defined"
   20098               #endif
   20099               #if false
   20100                "error: false is not 0"
   20101               #endif
   20102               #ifndef true
   20103                "error: true is not defined"
   20104               #endif
   20105               #if true != 1
   20106                "error: true is not 1"
   20107               #endif
   20108              #endif
   20109 
   20110              #ifndef __bool_true_false_are_defined
   20111               "error: __bool_true_false_are_defined is not defined"
   20112              #endif
   20113 
   20114              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
   20115 
   20116              char a[true == 1 ? 1 : -1];
   20117              char b[false == 0 ? 1 : -1];
   20118              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   20119              char d[(bool) 0.5 == true ? 1 : -1];
   20120              /* See body of main program for 'e'.  */
   20121              char f[(Bool) 0.0 == false ? 1 : -1];
   20122              char g[true];
   20123              char h[sizeof (Bool)];
   20124              char i[sizeof s.t];
   20125              enum { j = false, k = true, l = false * true, m = true * 256 };
   20126              /* The following fails for
   20127                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
   20128              Bool n[m];
   20129              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   20130              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
   20131              /* Catch a bug in an HP-UX C compiler.  See
   20132                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
   20133                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
   20134               */
   20135              Bool q = true;
   20136              Bool *pq = &q;
   20137              bool *qq = &q;
   20138 
   20139 int
   20140 main ()
   20141 {
   20142 
   20143              bool e = &s;
   20144              *pq |= q; *pq |= ! q;
   20145              *qq |= q; *qq |= ! q;
   20146              /* Refer to every declared value, to avoid compiler optimizations.  */
   20147              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
   20148                      + !m + !n + !o + !p + !q + !pq + !qq);
   20149 
   20150   ;
   20151   return 0;
   20152 }
   20153 _ACEOF
   20154 if ac_fn_c_try_compile "$LINENO"; then :
   20155   ac_cv_header_stdbool_h=yes
   20156 else
   20157   ac_cv_header_stdbool_h=no
   20158 fi
   20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20160 fi
   20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
   20162 $as_echo "$ac_cv_header_stdbool_h" >&6; }
   20163    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
   20164 if test "x$ac_cv_type__Bool" = xyes; then :
   20165 
   20166 cat >>confdefs.h <<_ACEOF
   20167 #define HAVE__BOOL 1
   20168 _ACEOF
   20169 
   20170 
   20171 fi
   20172 
   20173 
   20174 
   20175 
   20176 ac_fn_c_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
   20177 if test "x$ac_cv_have_decl_fcloseall" = xyes; then :
   20178   ac_have_decl=1
   20179 else
   20180   ac_have_decl=0
   20181 fi
   20182 
   20183 cat >>confdefs.h <<_ACEOF
   20184 #define HAVE_DECL_FCLOSEALL $ac_have_decl
   20185 _ACEOF
   20186 
   20187 
   20188 
   20189 
   20190   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
   20191 
   20192 
   20193 
   20194 
   20195 
   20196 
   20197 
   20198 
   20199 
   20200      if test $gl_cv_have_include_next = yes; then
   20201        gl_cv_next_stdio_h='<'stdio.h'>'
   20202      else
   20203        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
   20204 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
   20205 if ${gl_cv_next_stdio_h+:} false; then :
   20206   $as_echo_n "(cached) " >&6
   20207 else
   20208 
   20209 
   20210 
   20211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20212 /* end confdefs.h.  */
   20213 #include <stdio.h>
   20214 _ACEOF
   20215                 case "$host_os" in
   20216     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20217     *)    gl_absname_cpp="$ac_cpp" ;;
   20218   esac
   20219 
   20220   case "$host_os" in
   20221     mingw*)
   20222                                           gl_dirsep_regex='[/\\]'
   20223       ;;
   20224     *)
   20225       gl_dirsep_regex='\/'
   20226       ;;
   20227   esac
   20228       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   20229   gl_header_literal_regex=`echo 'stdio.h' \
   20230                            | sed -e "$gl_make_literal_regex_sed"`
   20231   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20232       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20233       s|^/[^/]|//&|
   20234       p
   20235       q
   20236     }'
   20237 
   20238         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20239   sed -n "$gl_absolute_header_sed"`
   20240 
   20241           gl_header=$gl_cv_absolute_stdio_h
   20242           gl_cv_next_stdio_h='"'$gl_header'"'
   20243 
   20244 
   20245 fi
   20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
   20247 $as_echo "$gl_cv_next_stdio_h" >&6; }
   20248      fi
   20249      NEXT_STDIO_H=$gl_cv_next_stdio_h
   20250 
   20251      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20253        gl_next_as_first_directive='<'stdio.h'>'
   20254      else
   20255        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20256        gl_next_as_first_directive=$gl_cv_next_stdio_h
   20257      fi
   20258      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
   20259 
   20260 
   20261 
   20262 
   20263 
   20264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
   20265 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
   20266 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
   20267   $as_echo_n "(cached) " >&6
   20268 else
   20269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20270 /* end confdefs.h.  */
   20271 
   20272        #define __STDC_FORMAT_MACROS 1
   20273        #include <stdio.h>
   20274        #include <inttypes.h>
   20275        /* For non-mingw systems, compilation will trivially succeed.
   20276           For mingw, compilation will succeed for older mingw (system
   20277           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
   20278        #if (defined _WIN32 && ! defined __CYGWIN__) && \
   20279          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
   20280        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
   20281        #endif
   20282 
   20283 int
   20284 main ()
   20285 {
   20286 
   20287   ;
   20288   return 0;
   20289 }
   20290 _ACEOF
   20291 if ac_fn_c_try_compile "$LINENO"; then :
   20292   gl_cv_func_printf_attribute_flavor=system
   20293 else
   20294   gl_cv_func_printf_attribute_flavor=gnu
   20295 fi
   20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20297 fi
   20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
   20299 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
   20300   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
   20301 
   20302 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
   20303 
   20304   fi
   20305 
   20306 
   20307 
   20308 
   20309 
   20310 
   20311 
   20312 
   20313 
   20314 
   20315 
   20316 
   20317 
   20318   if test $ac_cv_have_decl_fcloseall = no; then
   20319     HAVE_DECL_FCLOSEALL=0
   20320   fi
   20321 
   20322 ac_fn_c_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
   20323 if test "x$ac_cv_have_decl_ecvt" = xyes; then :
   20324   ac_have_decl=1
   20325 else
   20326   ac_have_decl=0
   20327 fi
   20328 
   20329 cat >>confdefs.h <<_ACEOF
   20330 #define HAVE_DECL_ECVT $ac_have_decl
   20331 _ACEOF
   20332 
   20333 ac_fn_c_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
   20334 if test "x$ac_cv_have_decl_fcvt" = xyes; then :
   20335   ac_have_decl=1
   20336 else
   20337   ac_have_decl=0
   20338 fi
   20339 
   20340 cat >>confdefs.h <<_ACEOF
   20341 #define HAVE_DECL_FCVT $ac_have_decl
   20342 _ACEOF
   20343 
   20344 ac_fn_c_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
   20345 if test "x$ac_cv_have_decl_gcvt" = xyes; then :
   20346   ac_have_decl=1
   20347 else
   20348   ac_have_decl=0
   20349 fi
   20350 
   20351 cat >>confdefs.h <<_ACEOF
   20352 #define HAVE_DECL_GCVT $ac_have_decl
   20353 _ACEOF
   20354 
   20355 
   20356 
   20357 
   20358 
   20359 
   20360 
   20361 
   20362 
   20363 
   20364 
   20365      if test $gl_cv_have_include_next = yes; then
   20366        gl_cv_next_stdlib_h='<'stdlib.h'>'
   20367      else
   20368        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
   20369 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
   20370 if ${gl_cv_next_stdlib_h+:} false; then :
   20371   $as_echo_n "(cached) " >&6
   20372 else
   20373 
   20374 
   20375 
   20376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20377 /* end confdefs.h.  */
   20378 #include <stdlib.h>
   20379 _ACEOF
   20380                 case "$host_os" in
   20381     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20382     *)    gl_absname_cpp="$ac_cpp" ;;
   20383   esac
   20384 
   20385   case "$host_os" in
   20386     mingw*)
   20387                                           gl_dirsep_regex='[/\\]'
   20388       ;;
   20389     *)
   20390       gl_dirsep_regex='\/'
   20391       ;;
   20392   esac
   20393       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   20394   gl_header_literal_regex=`echo 'stdlib.h' \
   20395                            | sed -e "$gl_make_literal_regex_sed"`
   20396   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20397       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20398       s|^/[^/]|//&|
   20399       p
   20400       q
   20401     }'
   20402 
   20403         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20404   sed -n "$gl_absolute_header_sed"`
   20405 
   20406           gl_header=$gl_cv_absolute_stdlib_h
   20407           gl_cv_next_stdlib_h='"'$gl_header'"'
   20408 
   20409 
   20410 fi
   20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
   20412 $as_echo "$gl_cv_next_stdlib_h" >&6; }
   20413      fi
   20414      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
   20415 
   20416      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20417        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20418        gl_next_as_first_directive='<'stdlib.h'>'
   20419      else
   20420        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20421        gl_next_as_first_directive=$gl_cv_next_stdlib_h
   20422      fi
   20423      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
   20424 
   20425 
   20426 
   20427 
   20428 
   20429 
   20430 
   20431 
   20432 
   20433 
   20434 
   20435 
   20436   if test $ac_cv_have_decl_ecvt = no; then
   20437     HAVE_DECL_ECVT=0
   20438   fi
   20439 
   20440   if test $ac_cv_have_decl_fcvt = no; then
   20441     HAVE_DECL_FCVT=0
   20442   fi
   20443 
   20444   if test $ac_cv_have_decl_gcvt = no; then
   20445     HAVE_DECL_GCVT=0
   20446   fi
   20447 
   20448 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
   20449 if test "x$ac_cv_have_decl_strdup" = xyes; then :
   20450   ac_have_decl=1
   20451 else
   20452   ac_have_decl=0
   20453 fi
   20454 
   20455 cat >>confdefs.h <<_ACEOF
   20456 #define HAVE_DECL_STRDUP $ac_have_decl
   20457 _ACEOF
   20458 
   20459 
   20460      REPLACE_STRERROR_0=0
   20461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
   20462 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
   20463 if ${gl_cv_func_strerror_0_works+:} false; then :
   20464   $as_echo_n "(cached) " >&6
   20465 else
   20466   if test "$cross_compiling" = yes; then :
   20467   case "$host_os" in
   20468                         # Guess yes on glibc systems.
   20469          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
   20470                         # Guess yes on musl systems.
   20471          *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
   20472                         # Guess yes on native Windows.
   20473          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
   20474                         # If we don't know, obey --enable-cross-guesses.
   20475          *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
   20476        esac
   20477 
   20478 else
   20479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20480 /* end confdefs.h.  */
   20481 #include <string.h>
   20482            #include <errno.h>
   20483 
   20484 int
   20485 main ()
   20486 {
   20487 int result = 0;
   20488            char *str;
   20489            errno = 0;
   20490            str = strerror (0);
   20491            if (!*str) result |= 1;
   20492            if (errno) result |= 2;
   20493            if (strstr (str, "nknown") || strstr (str, "ndefined"))
   20494              result |= 4;
   20495            return result;
   20496   ;
   20497   return 0;
   20498 }
   20499 _ACEOF
   20500 if ac_fn_c_try_run "$LINENO"; then :
   20501   gl_cv_func_strerror_0_works=yes
   20502 else
   20503   gl_cv_func_strerror_0_works=no
   20504 fi
   20505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20506   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20507 fi
   20508 
   20509 
   20510 fi
   20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
   20512 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
   20513   case "$gl_cv_func_strerror_0_works" in
   20514     *yes) ;;
   20515     *)
   20516       REPLACE_STRERROR_0=1
   20517 
   20518 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
   20519 
   20520       ;;
   20521   esac
   20522 
   20523 
   20524 
   20525 
   20526 
   20527 
   20528 
   20529 
   20530 
   20531 
   20532 
   20533 
   20534 
   20535   if test $ac_cv_func_strerror_r = yes; then
   20536     if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
   20537                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
   20538 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
   20539 if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
   20540   $as_echo_n "(cached) " >&6
   20541 else
   20542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20543 /* end confdefs.h.  */
   20544 #include <string.h>
   20545                 int strerror_r (int, char *, size_t);
   20546 
   20547 int
   20548 main ()
   20549 {
   20550 
   20551   ;
   20552   return 0;
   20553 }
   20554 _ACEOF
   20555 if ac_fn_c_try_compile "$LINENO"; then :
   20556   gl_cv_func_strerror_r_posix_signature=yes
   20557 else
   20558   gl_cv_func_strerror_r_posix_signature=no
   20559 fi
   20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20561 
   20562 fi
   20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
   20564 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
   20565       if test $gl_cv_func_strerror_r_posix_signature = yes; then
   20566                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
   20567 $as_echo_n "checking whether strerror_r works... " >&6; }
   20568 if ${gl_cv_func_strerror_r_works+:} false; then :
   20569   $as_echo_n "(cached) " >&6
   20570 else
   20571   if test "$cross_compiling" = yes; then :
   20572 
   20573               case "$host_os" in
   20574                        # Guess no on AIX.
   20575                 aix*)  gl_cv_func_strerror_r_works="guessing no";;
   20576                        # Guess no on HP-UX.
   20577                 hpux*) gl_cv_func_strerror_r_works="guessing no";;
   20578                        # Guess no on BSD variants.
   20579                 *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
   20580                        # Guess yes otherwise.
   20581                 *)     gl_cv_func_strerror_r_works="guessing yes";;
   20582               esac
   20583 
   20584 else
   20585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20586 /* end confdefs.h.  */
   20587 #include <errno.h>
   20588                   #include <string.h>
   20589 
   20590 int
   20591 main ()
   20592 {
   20593 int result = 0;
   20594                   char buf[79];
   20595                   if (strerror_r (EACCES, buf, 0) < 0)
   20596                     result |= 1;
   20597                   errno = 0;
   20598                   if (strerror_r (EACCES, buf, sizeof buf) != 0)
   20599                     result |= 2;
   20600                   strcpy (buf, "Unknown");
   20601                   if (strerror_r (0, buf, sizeof buf) != 0)
   20602                     result |= 4;
   20603                   if (errno)
   20604                     result |= 8;
   20605                   if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
   20606                     result |= 0x10;
   20607                   errno = 0;
   20608                   *buf = 0;
   20609                   if (strerror_r (-3, buf, sizeof buf) < 0)
   20610                     result |= 0x20;
   20611                   if (errno)
   20612                     result |= 0x40;
   20613                   if (!*buf)
   20614                     result |= 0x80;
   20615                   return result;
   20616 
   20617   ;
   20618   return 0;
   20619 }
   20620 _ACEOF
   20621 if ac_fn_c_try_run "$LINENO"; then :
   20622   gl_cv_func_strerror_r_works=yes
   20623 else
   20624   gl_cv_func_strerror_r_works=no
   20625 fi
   20626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20627   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20628 fi
   20629 
   20630 
   20631 fi
   20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
   20633 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
   20634       else
   20635 
   20636                         if test $ac_cv_func___xpg_strerror_r = yes; then
   20637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
   20638 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
   20639 if ${gl_cv_func_strerror_r_works+:} false; then :
   20640   $as_echo_n "(cached) " >&6
   20641 else
   20642   if test "$cross_compiling" = yes; then :
   20643                                   gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
   20644 
   20645 else
   20646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20647 /* end confdefs.h.  */
   20648 #include <errno.h>
   20649                     #include <string.h>
   20650                     extern
   20651                     #ifdef __cplusplus
   20652                     "C"
   20653                     #endif
   20654                     int __xpg_strerror_r(int, char *, size_t);
   20655 
   20656 int
   20657 main ()
   20658 {
   20659 int result = 0;
   20660                     char buf[256] = "^";
   20661                     char copy[256];
   20662                     char *str = strerror (-1);
   20663                     strcpy (copy, str);
   20664                     if (__xpg_strerror_r (-2, buf, 1) == 0)
   20665                       result |= 1;
   20666                     if (*buf)
   20667                       result |= 2;
   20668                     __xpg_strerror_r (-2, buf, 256);
   20669                     if (strcmp (str, copy))
   20670                       result |= 4;
   20671                     return result;
   20672 
   20673   ;
   20674   return 0;
   20675 }
   20676 _ACEOF
   20677 if ac_fn_c_try_run "$LINENO"; then :
   20678   gl_cv_func_strerror_r_works=yes
   20679 else
   20680   gl_cv_func_strerror_r_works=no
   20681 fi
   20682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20683   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20684 fi
   20685 
   20686 
   20687 fi
   20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
   20689 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
   20690         fi
   20691       fi
   20692     fi
   20693   fi
   20694 
   20695 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
   20696 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
   20697   ac_have_decl=1
   20698 else
   20699   ac_have_decl=0
   20700 fi
   20701 
   20702 cat >>confdefs.h <<_ACEOF
   20703 #define HAVE_DECL_STRERROR_R $ac_have_decl
   20704 _ACEOF
   20705 
   20706 
   20707 
   20708 
   20709 
   20710 
   20711 
   20712 
   20713 
   20714 
   20715 
   20716 
   20717 
   20718 
   20719 
   20720      if test $gl_cv_have_include_next = yes; then
   20721        gl_cv_next_string_h='<'string.h'>'
   20722      else
   20723        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
   20724 $as_echo_n "checking absolute name of <string.h>... " >&6; }
   20725 if ${gl_cv_next_string_h+:} false; then :
   20726   $as_echo_n "(cached) " >&6
   20727 else
   20728 
   20729 
   20730 
   20731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20732 /* end confdefs.h.  */
   20733 #include <string.h>
   20734 _ACEOF
   20735                 case "$host_os" in
   20736     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20737     *)    gl_absname_cpp="$ac_cpp" ;;
   20738   esac
   20739 
   20740   case "$host_os" in
   20741     mingw*)
   20742                                           gl_dirsep_regex='[/\\]'
   20743       ;;
   20744     *)
   20745       gl_dirsep_regex='\/'
   20746       ;;
   20747   esac
   20748       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   20749   gl_header_literal_regex=`echo 'string.h' \
   20750                            | sed -e "$gl_make_literal_regex_sed"`
   20751   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20752       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20753       s|^/[^/]|//&|
   20754       p
   20755       q
   20756     }'
   20757 
   20758         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20759   sed -n "$gl_absolute_header_sed"`
   20760 
   20761           gl_header=$gl_cv_absolute_string_h
   20762           gl_cv_next_string_h='"'$gl_header'"'
   20763 
   20764 
   20765 fi
   20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
   20767 $as_echo "$gl_cv_next_string_h" >&6; }
   20768      fi
   20769      NEXT_STRING_H=$gl_cv_next_string_h
   20770 
   20771      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20772        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20773        gl_next_as_first_directive='<'string.h'>'
   20774      else
   20775        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20776        gl_next_as_first_directive=$gl_cv_next_string_h
   20777      fi
   20778      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
   20779 
   20780 
   20781 
   20782 
   20783 
   20784 
   20785 
   20786 
   20787 
   20788 
   20789 
   20790 
   20791 
   20792 
   20793 
   20794 
   20795 
   20796 
   20797 
   20798 
   20799 
   20800 
   20801 
   20802 
   20803 
   20804      if test $gl_cv_have_include_next = yes; then
   20805        gl_cv_next_strings_h='<'strings.h'>'
   20806      else
   20807        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
   20808 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
   20809 if ${gl_cv_next_strings_h+:} false; then :
   20810   $as_echo_n "(cached) " >&6
   20811 else
   20812 
   20813              if test $ac_cv_header_strings_h = yes; then
   20814 
   20815 
   20816 
   20817 
   20818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20819 /* end confdefs.h.  */
   20820 #include <strings.h>
   20821 _ACEOF
   20822                 case "$host_os" in
   20823     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   20824     *)    gl_absname_cpp="$ac_cpp" ;;
   20825   esac
   20826 
   20827   case "$host_os" in
   20828     mingw*)
   20829                                           gl_dirsep_regex='[/\\]'
   20830       ;;
   20831     *)
   20832       gl_dirsep_regex='\/'
   20833       ;;
   20834   esac
   20835       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   20836   gl_header_literal_regex=`echo 'strings.h' \
   20837                            | sed -e "$gl_make_literal_regex_sed"`
   20838   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   20839       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   20840       s|^/[^/]|//&|
   20841       p
   20842       q
   20843     }'
   20844 
   20845         gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   20846   sed -n "$gl_absolute_header_sed"`
   20847 
   20848           gl_header=$gl_cv_absolute_strings_h
   20849           gl_cv_next_strings_h='"'$gl_header'"'
   20850           else
   20851                gl_cv_next_strings_h='<'strings.h'>'
   20852              fi
   20853 
   20854 
   20855 fi
   20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
   20857 $as_echo "$gl_cv_next_strings_h" >&6; }
   20858      fi
   20859      NEXT_STRINGS_H=$gl_cv_next_strings_h
   20860 
   20861      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   20862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   20863        gl_next_as_first_directive='<'strings.h'>'
   20864      else
   20865        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   20866        gl_next_as_first_directive=$gl_cv_next_strings_h
   20867      fi
   20868      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
   20869 
   20870 
   20871 
   20872 
   20873   if test $ac_cv_header_strings_h = yes; then
   20874     HAVE_STRINGS_H=1
   20875   else
   20876     HAVE_STRINGS_H=0
   20877   fi
   20878 
   20879 
   20880 
   20881 
   20882 
   20883 
   20884 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
   20885 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
   20886   ac_have_decl=1
   20887 else
   20888   ac_have_decl=0
   20889 fi
   20890 
   20891 cat >>confdefs.h <<_ACEOF
   20892 #define HAVE_DECL_STRNLEN $ac_have_decl
   20893 _ACEOF
   20894 
   20895 
   20896 
   20897 
   20898   if test $REPLACE_MEMCHR = 1; then
   20899     REPLACE_STRSTR=1
   20900   else
   20901             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
   20902 $as_echo_n "checking whether strstr works... " >&6; }
   20903 if ${gl_cv_func_strstr_works_always+:} false; then :
   20904   $as_echo_n "(cached) " >&6
   20905 else
   20906   if test "$cross_compiling" = yes; then :
   20907                                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20908 /* end confdefs.h.  */
   20909 
   20910 #include <string.h> /* for __GNU_LIBRARY__ */
   20911 #ifdef __GNU_LIBRARY__
   20912  #include <features.h>
   20913  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
   20914      || defined __UCLIBC__
   20915   Lucky user
   20916  #endif
   20917 #elif defined __CYGWIN__
   20918  #include <cygwin/version.h>
   20919  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
   20920   Lucky user
   20921  #endif
   20922 #else
   20923   Lucky user
   20924 #endif
   20925 
   20926 _ACEOF
   20927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   20928   $EGREP "Lucky user" >/dev/null 2>&1; then :
   20929   gl_cv_func_strstr_works_always="guessing yes"
   20930 else
   20931   gl_cv_func_strstr_works_always="$gl_cross_guess_normal"
   20932 fi
   20933 rm -f conftest*
   20934 
   20935 
   20936 else
   20937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20938 /* end confdefs.h.  */
   20939 
   20940 #include <string.h> /* for __GNU_LIBRARY__, strstr */
   20941 #ifdef __GNU_LIBRARY__
   20942  #include <features.h>
   20943  #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
   20944   Unlucky user
   20945  #endif
   20946 #endif
   20947 #define P "_EF_BF_BD"
   20948 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
   20949 #define NEEDLE P P P P P
   20950 
   20951 int
   20952 main ()
   20953 {
   20954 return !!strstr (HAYSTACK, NEEDLE);
   20955 
   20956   ;
   20957   return 0;
   20958 }
   20959 _ACEOF
   20960 if ac_fn_c_try_run "$LINENO"; then :
   20961   gl_cv_func_strstr_works_always=yes
   20962 else
   20963   gl_cv_func_strstr_works_always=no
   20964 fi
   20965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20966   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20967 fi
   20968 
   20969 
   20970 fi
   20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
   20972 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
   20973     case "$gl_cv_func_strstr_works_always" in
   20974       *yes) ;;
   20975       *)
   20976         REPLACE_STRSTR=1
   20977         ;;
   20978     esac
   20979   fi
   20980 
   20981 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
   20982 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
   20983   ac_have_decl=1
   20984 else
   20985   ac_have_decl=0
   20986 fi
   20987 
   20988 cat >>confdefs.h <<_ACEOF
   20989 #define HAVE_DECL_STRTOK_R $ac_have_decl
   20990 _ACEOF
   20991 
   20992 
   20993 
   20994 
   20995 
   20996 
   20997 
   20998 
   20999 
   21000 
   21001 
   21002 
   21003 
   21004 
   21005      if test $gl_cv_have_include_next = yes; then
   21006        gl_cv_next_sys_random_h='<'sys/random.h'>'
   21007      else
   21008        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
   21009 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
   21010 if ${gl_cv_next_sys_random_h+:} false; then :
   21011   $as_echo_n "(cached) " >&6
   21012 else
   21013 
   21014              if test $ac_cv_header_sys_random_h = yes; then
   21015 
   21016 
   21017 
   21018 
   21019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21020 /* end confdefs.h.  */
   21021 #include <sys/random.h>
   21022 _ACEOF
   21023                 case "$host_os" in
   21024     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21025     *)    gl_absname_cpp="$ac_cpp" ;;
   21026   esac
   21027 
   21028   case "$host_os" in
   21029     mingw*)
   21030                                           gl_dirsep_regex='[/\\]'
   21031       ;;
   21032     *)
   21033       gl_dirsep_regex='\/'
   21034       ;;
   21035   esac
   21036       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21037   gl_header_literal_regex=`echo 'sys/random.h' \
   21038                            | sed -e "$gl_make_literal_regex_sed"`
   21039   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21040       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21041       s|^/[^/]|//&|
   21042       p
   21043       q
   21044     }'
   21045 
   21046         gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21047   sed -n "$gl_absolute_header_sed"`
   21048 
   21049           gl_header=$gl_cv_absolute_sys_random_h
   21050           gl_cv_next_sys_random_h='"'$gl_header'"'
   21051           else
   21052                gl_cv_next_sys_random_h='<'sys/random.h'>'
   21053              fi
   21054 
   21055 
   21056 fi
   21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
   21058 $as_echo "$gl_cv_next_sys_random_h" >&6; }
   21059      fi
   21060      NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
   21061 
   21062      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21063        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21064        gl_next_as_first_directive='<'sys/random.h'>'
   21065      else
   21066        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21067        gl_next_as_first_directive=$gl_cv_next_sys_random_h
   21068      fi
   21069      NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
   21070 
   21071 
   21072 
   21073 
   21074   if test $ac_cv_header_sys_random_h = yes; then
   21075     HAVE_SYS_RANDOM_H=1
   21076   else
   21077     HAVE_SYS_RANDOM_H=0
   21078   fi
   21079 
   21080 
   21081 
   21082   if test $ac_cv_header_sys_random_h = yes; then
   21083     UNISTD_H_HAVE_SYS_RANDOM_H=1
   21084   fi
   21085 
   21086 
   21087 
   21088 
   21089 
   21090 
   21091 
   21092 
   21093 
   21094 
   21095 
   21096 
   21097 
   21098 
   21099 
   21100 
   21101 
   21102 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
   21103 
   21104 
   21105 
   21106 
   21107 
   21108 
   21109 
   21110 
   21111 
   21112 
   21113      if test $gl_cv_have_include_next = yes; then
   21114        gl_cv_next_sys_types_h='<'sys/types.h'>'
   21115      else
   21116        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
   21117 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
   21118 if ${gl_cv_next_sys_types_h+:} false; then :
   21119   $as_echo_n "(cached) " >&6
   21120 else
   21121 
   21122 
   21123 
   21124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21125 /* end confdefs.h.  */
   21126 #include <sys/types.h>
   21127 _ACEOF
   21128                 case "$host_os" in
   21129     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21130     *)    gl_absname_cpp="$ac_cpp" ;;
   21131   esac
   21132 
   21133   case "$host_os" in
   21134     mingw*)
   21135                                           gl_dirsep_regex='[/\\]'
   21136       ;;
   21137     *)
   21138       gl_dirsep_regex='\/'
   21139       ;;
   21140   esac
   21141       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21142   gl_header_literal_regex=`echo 'sys/types.h' \
   21143                            | sed -e "$gl_make_literal_regex_sed"`
   21144   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21145       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21146       s|^/[^/]|//&|
   21147       p
   21148       q
   21149     }'
   21150 
   21151         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21152   sed -n "$gl_absolute_header_sed"`
   21153 
   21154           gl_header=$gl_cv_absolute_sys_types_h
   21155           gl_cv_next_sys_types_h='"'$gl_header'"'
   21156 
   21157 
   21158 fi
   21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
   21160 $as_echo "$gl_cv_next_sys_types_h" >&6; }
   21161      fi
   21162      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
   21163 
   21164      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21165        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21166        gl_next_as_first_directive='<'sys/types.h'>'
   21167      else
   21168        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21169        gl_next_as_first_directive=$gl_cv_next_sys_types_h
   21170      fi
   21171      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
   21172 
   21173 
   21174 
   21175 
   21176 
   21177 
   21178 
   21179 
   21180 
   21181 
   21182 
   21183 
   21184     WINDOWS_STAT_INODES=0
   21185 
   21186 
   21187 
   21188 
   21189 
   21190 
   21191 
   21192 
   21193 
   21194 
   21195 
   21196 
   21197 
   21198 
   21199 
   21200 
   21201 
   21202 
   21203 
   21204 
   21205      if test $gl_cv_have_include_next = yes; then
   21206        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
   21207      else
   21208        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
   21209 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
   21210 if ${gl_cv_next_sys_uio_h+:} false; then :
   21211   $as_echo_n "(cached) " >&6
   21212 else
   21213 
   21214              if test $ac_cv_header_sys_uio_h = yes; then
   21215 
   21216 
   21217 
   21218 
   21219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21220 /* end confdefs.h.  */
   21221 #include <sys/uio.h>
   21222 _ACEOF
   21223                 case "$host_os" in
   21224     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21225     *)    gl_absname_cpp="$ac_cpp" ;;
   21226   esac
   21227 
   21228   case "$host_os" in
   21229     mingw*)
   21230                                           gl_dirsep_regex='[/\\]'
   21231       ;;
   21232     *)
   21233       gl_dirsep_regex='\/'
   21234       ;;
   21235   esac
   21236       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21237   gl_header_literal_regex=`echo 'sys/uio.h' \
   21238                            | sed -e "$gl_make_literal_regex_sed"`
   21239   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21240       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21241       s|^/[^/]|//&|
   21242       p
   21243       q
   21244     }'
   21245 
   21246         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21247   sed -n "$gl_absolute_header_sed"`
   21248 
   21249           gl_header=$gl_cv_absolute_sys_uio_h
   21250           gl_cv_next_sys_uio_h='"'$gl_header'"'
   21251           else
   21252                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
   21253              fi
   21254 
   21255 
   21256 fi
   21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
   21258 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
   21259      fi
   21260      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
   21261 
   21262      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21263        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21264        gl_next_as_first_directive='<'sys/uio.h'>'
   21265      else
   21266        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21267        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
   21268      fi
   21269      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
   21270 
   21271 
   21272 
   21273 
   21274   if test $ac_cv_header_sys_uio_h = yes; then
   21275     HAVE_SYS_UIO_H=1
   21276   else
   21277     HAVE_SYS_UIO_H=0
   21278   fi
   21279 
   21280 
   21281 
   21282 
   21283 
   21284 
   21285 
   21286 
   21287 
   21288 
   21289 
   21290 
   21291 
   21292 
   21293 
   21294 
   21295 
   21296 
   21297 
   21298 
   21299      if test $gl_cv_have_include_next = yes; then
   21300        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
   21301      else
   21302        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
   21303 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
   21304 if ${gl_cv_next_sys_wait_h+:} false; then :
   21305   $as_echo_n "(cached) " >&6
   21306 else
   21307 
   21308              if test $ac_cv_header_sys_wait_h = yes; then
   21309 
   21310 
   21311 
   21312 
   21313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21314 /* end confdefs.h.  */
   21315 #include <sys/wait.h>
   21316 _ACEOF
   21317                 case "$host_os" in
   21318     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21319     *)    gl_absname_cpp="$ac_cpp" ;;
   21320   esac
   21321 
   21322   case "$host_os" in
   21323     mingw*)
   21324                                           gl_dirsep_regex='[/\\]'
   21325       ;;
   21326     *)
   21327       gl_dirsep_regex='\/'
   21328       ;;
   21329   esac
   21330       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21331   gl_header_literal_regex=`echo 'sys/wait.h' \
   21332                            | sed -e "$gl_make_literal_regex_sed"`
   21333   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21334       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21335       s|^/[^/]|//&|
   21336       p
   21337       q
   21338     }'
   21339 
   21340         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21341   sed -n "$gl_absolute_header_sed"`
   21342 
   21343           gl_header=$gl_cv_absolute_sys_wait_h
   21344           gl_cv_next_sys_wait_h='"'$gl_header'"'
   21345           else
   21346                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
   21347              fi
   21348 
   21349 
   21350 fi
   21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
   21352 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
   21353      fi
   21354      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
   21355 
   21356      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21357        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21358        gl_next_as_first_directive='<'sys/wait.h'>'
   21359      else
   21360        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21361        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
   21362      fi
   21363      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
   21364 
   21365 
   21366 
   21367 
   21368 
   21369 
   21370 
   21371 
   21372 
   21373 
   21374 
   21375 
   21376 
   21377   GL_GNULIB_WAITPID=0
   21378 
   21379 
   21380 
   21381 
   21382     HAVE_DECL_LOCALTIME_R=1;
   21383   HAVE_NANOSLEEP=1;
   21384   HAVE_STRPTIME=1;
   21385   HAVE_TIMEGM=1;
   21386   HAVE_TIMESPEC_GET=1;
   21387   HAVE_TIMESPEC_GETRES=1;
   21388     HAVE_TIMEZONE_T=0;
   21389         REPLACE_CTIME=GNULIB_PORTCHECK;
   21390   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
   21391   REPLACE_MKTIME=GNULIB_PORTCHECK;
   21392   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
   21393   REPLACE_STRFTIME=GNULIB_PORTCHECK;
   21394   REPLACE_TIMEGM=GNULIB_PORTCHECK;
   21395   REPLACE_TZSET=GNULIB_PORTCHECK;
   21396 
   21397       : ${GNULIB_GETTIMEOFDAY=0};
   21398         REPLACE_GMTIME=0;
   21399   REPLACE_LOCALTIME=0;
   21400 
   21401 
   21402 
   21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
   21404 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
   21405 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
   21406   $as_echo_n "(cached) " >&6
   21407 else
   21408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21409 /* end confdefs.h.  */
   21410 #include <time.h>
   21411 
   21412 int
   21413 main ()
   21414 {
   21415 static struct timespec x; x.tv_sec = x.tv_nsec;
   21416   ;
   21417   return 0;
   21418 }
   21419 _ACEOF
   21420 if ac_fn_c_try_compile "$LINENO"; then :
   21421   gl_cv_sys_struct_timespec_in_time_h=yes
   21422 else
   21423   gl_cv_sys_struct_timespec_in_time_h=no
   21424 fi
   21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21426 fi
   21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
   21428 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
   21429 
   21430   TIME_H_DEFINES_STRUCT_TIMESPEC=0
   21431   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
   21432   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
   21433   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
   21434   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
   21435     TIME_H_DEFINES_STRUCT_TIMESPEC=1
   21436   else
   21437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
   21438 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
   21439 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
   21440   $as_echo_n "(cached) " >&6
   21441 else
   21442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21443 /* end confdefs.h.  */
   21444 #include <sys/time.h>
   21445 
   21446 int
   21447 main ()
   21448 {
   21449 static struct timespec x; x.tv_sec = x.tv_nsec;
   21450   ;
   21451   return 0;
   21452 }
   21453 _ACEOF
   21454 if ac_fn_c_try_compile "$LINENO"; then :
   21455   gl_cv_sys_struct_timespec_in_sys_time_h=yes
   21456 else
   21457   gl_cv_sys_struct_timespec_in_sys_time_h=no
   21458 fi
   21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21460 fi
   21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
   21462 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
   21463     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
   21464       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
   21465     else
   21466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
   21467 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
   21468 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
   21469   $as_echo_n "(cached) " >&6
   21470 else
   21471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21472 /* end confdefs.h.  */
   21473 #include <pthread.h>
   21474 
   21475 int
   21476 main ()
   21477 {
   21478 static struct timespec x; x.tv_sec = x.tv_nsec;
   21479   ;
   21480   return 0;
   21481 }
   21482 _ACEOF
   21483 if ac_fn_c_try_compile "$LINENO"; then :
   21484   gl_cv_sys_struct_timespec_in_pthread_h=yes
   21485 else
   21486   gl_cv_sys_struct_timespec_in_pthread_h=no
   21487 fi
   21488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21489 fi
   21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
   21491 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
   21492       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
   21493         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
   21494       else
   21495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
   21496 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
   21497 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
   21498   $as_echo_n "(cached) " >&6
   21499 else
   21500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21501 /* end confdefs.h.  */
   21502 #include <unistd.h>
   21503 
   21504 int
   21505 main ()
   21506 {
   21507 static struct timespec x; x.tv_sec = x.tv_nsec;
   21508   ;
   21509   return 0;
   21510 }
   21511 _ACEOF
   21512 if ac_fn_c_try_compile "$LINENO"; then :
   21513   gl_cv_sys_struct_timespec_in_unistd_h=yes
   21514 else
   21515   gl_cv_sys_struct_timespec_in_unistd_h=no
   21516 fi
   21517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21518 fi
   21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
   21520 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
   21521         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
   21522           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
   21523         fi
   21524       fi
   21525     fi
   21526   fi
   21527 
   21528 
   21529 
   21530 
   21531 
   21532 
   21533 
   21534 
   21535 
   21536 
   21537 
   21538 
   21539 
   21540 
   21541 
   21542 
   21543      if test $gl_cv_have_include_next = yes; then
   21544        gl_cv_next_time_h='<'time.h'>'
   21545      else
   21546        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
   21547 $as_echo_n "checking absolute name of <time.h>... " >&6; }
   21548 if ${gl_cv_next_time_h+:} false; then :
   21549   $as_echo_n "(cached) " >&6
   21550 else
   21551 
   21552 
   21553 
   21554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21555 /* end confdefs.h.  */
   21556 #include <time.h>
   21557 _ACEOF
   21558                 case "$host_os" in
   21559     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21560     *)    gl_absname_cpp="$ac_cpp" ;;
   21561   esac
   21562 
   21563   case "$host_os" in
   21564     mingw*)
   21565                                           gl_dirsep_regex='[/\\]'
   21566       ;;
   21567     *)
   21568       gl_dirsep_regex='\/'
   21569       ;;
   21570   esac
   21571       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21572   gl_header_literal_regex=`echo 'time.h' \
   21573                            | sed -e "$gl_make_literal_regex_sed"`
   21574   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21575       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21576       s|^/[^/]|//&|
   21577       p
   21578       q
   21579     }'
   21580 
   21581         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21582   sed -n "$gl_absolute_header_sed"`
   21583 
   21584           gl_header=$gl_cv_absolute_time_h
   21585           gl_cv_next_time_h='"'$gl_header'"'
   21586 
   21587 
   21588 fi
   21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
   21590 $as_echo "$gl_cv_next_time_h" >&6; }
   21591      fi
   21592      NEXT_TIME_H=$gl_cv_next_time_h
   21593 
   21594      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21595        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21596        gl_next_as_first_directive='<'time.h'>'
   21597      else
   21598        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21599        gl_next_as_first_directive=$gl_cv_next_time_h
   21600      fi
   21601      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
   21602 
   21603 
   21604 
   21605 
   21606 
   21607 
   21608 
   21609 
   21610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
   21611 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
   21612 if ${gl_cv_time_h_has_TIME_UTC+:} false; then :
   21613   $as_echo_n "(cached) " >&6
   21614 else
   21615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21616 /* end confdefs.h.  */
   21617 #include <time.h>
   21618 
   21619 int
   21620 main ()
   21621 {
   21622 static int x = TIME_UTC; x++;
   21623   ;
   21624   return 0;
   21625 }
   21626 _ACEOF
   21627 if ac_fn_c_try_compile "$LINENO"; then :
   21628   gl_cv_time_h_has_TIME_UTC=yes
   21629 else
   21630   gl_cv_time_h_has_TIME_UTC=no
   21631 fi
   21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21633 fi
   21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
   21635 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
   21636   if test $gl_cv_time_h_has_TIME_UTC = yes; then
   21637     TIME_H_DEFINES_TIME_UTC=1
   21638   else
   21639     TIME_H_DEFINES_TIME_UTC=0
   21640   fi
   21641 
   21642 
   21643 
   21644 
   21645   GL_GNULIB_CTIME=0
   21646 
   21647 
   21648 
   21649   GL_GNULIB_MKTIME=0
   21650 
   21651 
   21652 
   21653   GL_GNULIB_LOCALTIME=0
   21654 
   21655 
   21656 
   21657   GL_GNULIB_NANOSLEEP=0
   21658 
   21659 
   21660 
   21661   GL_GNULIB_STRFTIME=0
   21662 
   21663 
   21664 
   21665   GL_GNULIB_STRPTIME=0
   21666 
   21667 
   21668 
   21669   GL_GNULIB_TIMEGM=0
   21670 
   21671 
   21672 
   21673   GL_GNULIB_TIMESPEC_GET=0
   21674 
   21675 
   21676 
   21677   GL_GNULIB_TIMESPEC_GETRES=0
   21678 
   21679 
   21680 
   21681   GL_GNULIB_TIME_R=0
   21682 
   21683 
   21684 
   21685   GL_GNULIB_TIME_RZ=0
   21686 
   21687 
   21688 
   21689   GL_GNULIB_TZSET=0
   21690 
   21691 
   21692 
   21693   GL_GNULIB_MDA_TZSET=1
   21694 
   21695 
   21696 
   21697 
   21698 
   21699 ac_fn_c_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
   21700 if test "x$ac_cv_have_decl_execvpe" = xyes; then :
   21701   ac_have_decl=1
   21702 else
   21703   ac_have_decl=0
   21704 fi
   21705 
   21706 cat >>confdefs.h <<_ACEOF
   21707 #define HAVE_DECL_EXECVPE $ac_have_decl
   21708 _ACEOF
   21709 
   21710 
   21711 
   21712 
   21713 
   21714 
   21715 
   21716 
   21717 
   21718 
   21719 
   21720 
   21721 
   21722      if test $gl_cv_have_include_next = yes; then
   21723        gl_cv_next_unistd_h='<'unistd.h'>'
   21724      else
   21725        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
   21726 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
   21727 if ${gl_cv_next_unistd_h+:} false; then :
   21728   $as_echo_n "(cached) " >&6
   21729 else
   21730 
   21731              if test $ac_cv_header_unistd_h = yes; then
   21732 
   21733 
   21734 
   21735 
   21736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21737 /* end confdefs.h.  */
   21738 #include <unistd.h>
   21739 _ACEOF
   21740                 case "$host_os" in
   21741     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21742     *)    gl_absname_cpp="$ac_cpp" ;;
   21743   esac
   21744 
   21745   case "$host_os" in
   21746     mingw*)
   21747                                           gl_dirsep_regex='[/\\]'
   21748       ;;
   21749     *)
   21750       gl_dirsep_regex='\/'
   21751       ;;
   21752   esac
   21753       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21754   gl_header_literal_regex=`echo 'unistd.h' \
   21755                            | sed -e "$gl_make_literal_regex_sed"`
   21756   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21757       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21758       s|^/[^/]|//&|
   21759       p
   21760       q
   21761     }'
   21762 
   21763         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21764   sed -n "$gl_absolute_header_sed"`
   21765 
   21766           gl_header=$gl_cv_absolute_unistd_h
   21767           gl_cv_next_unistd_h='"'$gl_header'"'
   21768           else
   21769                gl_cv_next_unistd_h='<'unistd.h'>'
   21770              fi
   21771 
   21772 
   21773 fi
   21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
   21775 $as_echo "$gl_cv_next_unistd_h" >&6; }
   21776      fi
   21777      NEXT_UNISTD_H=$gl_cv_next_unistd_h
   21778 
   21779      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21780        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21781        gl_next_as_first_directive='<'unistd.h'>'
   21782      else
   21783        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21784        gl_next_as_first_directive=$gl_cv_next_unistd_h
   21785      fi
   21786      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
   21787 
   21788 
   21789 
   21790 
   21791   if test $ac_cv_header_unistd_h = yes; then
   21792     HAVE_UNISTD_H=1
   21793   else
   21794     HAVE_UNISTD_H=0
   21795   fi
   21796 
   21797 
   21798 
   21799 
   21800 
   21801 
   21802 
   21803 
   21804 
   21805 
   21806 
   21807 
   21808 
   21809   if test $ac_cv_have_decl_execvpe = no; then
   21810     HAVE_DECL_EXECVPE=0
   21811   fi
   21812 
   21813 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
   21814 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
   21815   ac_have_decl=1
   21816 else
   21817   ac_have_decl=0
   21818 fi
   21819 
   21820 cat >>confdefs.h <<_ACEOF
   21821 #define HAVE_DECL_UNSETENV $ac_have_decl
   21822 _ACEOF
   21823 
   21824 
   21825 
   21826 
   21827 
   21828   if test $ac_cv_header_crtdefs_h = yes; then
   21829     HAVE_CRTDEFS_H=1
   21830   else
   21831     HAVE_CRTDEFS_H=0
   21832   fi
   21833 
   21834 
   21835 
   21836 
   21837 
   21838 
   21839 
   21840 
   21841 
   21842 
   21843 
   21844 
   21845 
   21846 
   21847      if test $gl_cv_have_include_next = yes; then
   21848        gl_cv_next_wchar_h='<'wchar.h'>'
   21849      else
   21850        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
   21851 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
   21852 if ${gl_cv_next_wchar_h+:} false; then :
   21853   $as_echo_n "(cached) " >&6
   21854 else
   21855 
   21856              if test $ac_cv_header_wchar_h = yes; then
   21857 
   21858 
   21859 
   21860 
   21861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21862 /* end confdefs.h.  */
   21863 #include <wchar.h>
   21864 _ACEOF
   21865                 case "$host_os" in
   21866     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   21867     *)    gl_absname_cpp="$ac_cpp" ;;
   21868   esac
   21869 
   21870   case "$host_os" in
   21871     mingw*)
   21872                                           gl_dirsep_regex='[/\\]'
   21873       ;;
   21874     *)
   21875       gl_dirsep_regex='\/'
   21876       ;;
   21877   esac
   21878       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   21879   gl_header_literal_regex=`echo 'wchar.h' \
   21880                            | sed -e "$gl_make_literal_regex_sed"`
   21881   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   21882       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   21883       s|^/[^/]|//&|
   21884       p
   21885       q
   21886     }'
   21887 
   21888         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   21889   sed -n "$gl_absolute_header_sed"`
   21890 
   21891           gl_header=$gl_cv_absolute_wchar_h
   21892           gl_cv_next_wchar_h='"'$gl_header'"'
   21893           else
   21894                gl_cv_next_wchar_h='<'wchar.h'>'
   21895              fi
   21896 
   21897 
   21898 fi
   21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
   21900 $as_echo "$gl_cv_next_wchar_h" >&6; }
   21901      fi
   21902      NEXT_WCHAR_H=$gl_cv_next_wchar_h
   21903 
   21904      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   21905        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   21906        gl_next_as_first_directive='<'wchar.h'>'
   21907      else
   21908        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   21909        gl_next_as_first_directive=$gl_cv_next_wchar_h
   21910      fi
   21911      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
   21912 
   21913 
   21914 
   21915 
   21916   if test $ac_cv_header_wchar_h = yes; then
   21917     HAVE_WCHAR_H=1
   21918   else
   21919     HAVE_WCHAR_H=0
   21920   fi
   21921 
   21922 
   21923 
   21924 
   21925 
   21926   if test $gt_cv_c_wint_t = yes; then
   21927     HAVE_WINT_T=1
   21928   else
   21929     HAVE_WINT_T=0
   21930   fi
   21931 
   21932 
   21933 
   21934 
   21935 
   21936 
   21937 
   21938 
   21939 
   21940 
   21941   ac_fn_c_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
   21942       #include <wchar.h>
   21943 
   21944 "
   21945 if test "x$ac_cv_have_decl_wcsdup" = xyes; then :
   21946   ac_have_decl=1
   21947 else
   21948   ac_have_decl=0
   21949 fi
   21950 
   21951 cat >>confdefs.h <<_ACEOF
   21952 #define HAVE_DECL_WCSDUP $ac_have_decl
   21953 _ACEOF
   21954 
   21955   if test $ac_cv_have_decl_wcsdup = no; then
   21956     HAVE_DECL_WCSDUP=0
   21957   fi
   21958 
   21959 
   21960     HAVE_ISWBLANK=1;
   21961   HAVE_WCTYPE_T=1;
   21962   HAVE_WCTRANS_T=1;
   21963   REPLACE_ISWBLANK=0;
   21964   REPLACE_ISWDIGIT=0;
   21965   REPLACE_ISWXDIGIT=0;
   21966 
   21967 
   21968 
   21969 
   21970 
   21971 
   21972 
   21973 
   21974 
   21975 
   21976   if test $ac_cv_func_iswcntrl = yes; then
   21977     HAVE_ISWCNTRL=1
   21978   else
   21979     HAVE_ISWCNTRL=0
   21980   fi
   21981 
   21982 
   21983 
   21984   if test $gt_cv_c_wint_t = yes; then
   21985     HAVE_WINT_T=1
   21986   else
   21987     HAVE_WINT_T=0
   21988   fi
   21989 
   21990 
   21991 
   21992 
   21993 
   21994 
   21995 
   21996 
   21997 
   21998 
   21999 
   22000 
   22001 
   22002      if test $gl_cv_have_include_next = yes; then
   22003        gl_cv_next_wctype_h='<'wctype.h'>'
   22004      else
   22005        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
   22006 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
   22007 if ${gl_cv_next_wctype_h+:} false; then :
   22008   $as_echo_n "(cached) " >&6
   22009 else
   22010 
   22011              if test $ac_cv_header_wctype_h = yes; then
   22012 
   22013 
   22014 
   22015 
   22016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22017 /* end confdefs.h.  */
   22018 #include <wctype.h>
   22019 _ACEOF
   22020                 case "$host_os" in
   22021     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   22022     *)    gl_absname_cpp="$ac_cpp" ;;
   22023   esac
   22024 
   22025   case "$host_os" in
   22026     mingw*)
   22027                                           gl_dirsep_regex='[/\\]'
   22028       ;;
   22029     *)
   22030       gl_dirsep_regex='\/'
   22031       ;;
   22032   esac
   22033       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   22034   gl_header_literal_regex=`echo 'wctype.h' \
   22035                            | sed -e "$gl_make_literal_regex_sed"`
   22036   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   22037       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   22038       s|^/[^/]|//&|
   22039       p
   22040       q
   22041     }'
   22042 
   22043         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   22044   sed -n "$gl_absolute_header_sed"`
   22045 
   22046           gl_header=$gl_cv_absolute_wctype_h
   22047           gl_cv_next_wctype_h='"'$gl_header'"'
   22048           else
   22049                gl_cv_next_wctype_h='<'wctype.h'>'
   22050              fi
   22051 
   22052 
   22053 fi
   22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
   22055 $as_echo "$gl_cv_next_wctype_h" >&6; }
   22056      fi
   22057      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
   22058 
   22059      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   22060        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   22061        gl_next_as_first_directive='<'wctype.h'>'
   22062      else
   22063        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   22064        gl_next_as_first_directive=$gl_cv_next_wctype_h
   22065      fi
   22066      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
   22067 
   22068 
   22069 
   22070 
   22071   if test $ac_cv_header_wctype_h = yes; then
   22072     if test $ac_cv_func_iswcntrl = yes; then
   22073                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
   22074 $as_echo_n "checking whether iswcntrl works... " >&6; }
   22075 if ${gl_cv_func_iswcntrl_works+:} false; then :
   22076   $as_echo_n "(cached) " >&6
   22077 else
   22078 
   22079           if test "$cross_compiling" = yes; then :
   22080                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22081 /* end confdefs.h.  */
   22082 #include <stdlib.h>
   22083                           #if __GNU_LIBRARY__ == 1
   22084                           Linux libc5 i18n is broken.
   22085                           #endif
   22086 int
   22087 main ()
   22088 {
   22089 
   22090   ;
   22091   return 0;
   22092 }
   22093 _ACEOF
   22094 if ac_fn_c_try_compile "$LINENO"; then :
   22095   gl_cv_func_iswcntrl_works="guessing yes"
   22096 else
   22097   gl_cv_func_iswcntrl_works="guessing no"
   22098 fi
   22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22100 
   22101 else
   22102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22103 /* end confdefs.h.  */
   22104 
   22105                #include <wchar.h>
   22106                #include <wctype.h>
   22107                int main () { return iswprint ('x') == 0; }
   22108 
   22109 _ACEOF
   22110 if ac_fn_c_try_run "$LINENO"; then :
   22111   gl_cv_func_iswcntrl_works=yes
   22112 else
   22113   gl_cv_func_iswcntrl_works=no
   22114 fi
   22115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22116   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22117 fi
   22118 
   22119 
   22120 fi
   22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
   22122 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
   22123     fi
   22124     HAVE_WCTYPE_H=1
   22125   else
   22126     HAVE_WCTYPE_H=0
   22127   fi
   22128 
   22129 
   22130   if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
   22131     REPLACE_ISWCNTRL=1
   22132   else
   22133     case "$gl_cv_func_iswcntrl_works" in
   22134       *yes) REPLACE_ISWCNTRL=0 ;;
   22135       *)    REPLACE_ISWCNTRL=1 ;;
   22136     esac
   22137   fi
   22138 
   22139 
   22140   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
   22141         :
   22142   fi
   22143 
   22144   if test $REPLACE_ISWCNTRL = 1; then
   22145     REPLACE_TOWLOWER=1
   22146   else
   22147     for ac_func in towlower
   22148 do :
   22149   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
   22150 if test "x$ac_cv_func_towlower" = xyes; then :
   22151   cat >>confdefs.h <<_ACEOF
   22152 #define HAVE_TOWLOWER 1
   22153 _ACEOF
   22154 
   22155 fi
   22156 done
   22157 
   22158     if test $ac_cv_func_towlower = yes; then
   22159       REPLACE_TOWLOWER=0
   22160     else
   22161       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
   22162           #if HAVE_WCTYPE_H
   22163           # include <wctype.h>
   22164           #endif
   22165 
   22166 "
   22167 if test "x$ac_cv_have_decl_towlower" = xyes; then :
   22168   ac_have_decl=1
   22169 else
   22170   ac_have_decl=0
   22171 fi
   22172 
   22173 cat >>confdefs.h <<_ACEOF
   22174 #define HAVE_DECL_TOWLOWER $ac_have_decl
   22175 _ACEOF
   22176 
   22177       if test $ac_cv_have_decl_towlower = yes; then
   22178                                 REPLACE_TOWLOWER=1
   22179       else
   22180         REPLACE_TOWLOWER=0
   22181       fi
   22182     fi
   22183   fi
   22184 
   22185 
   22186   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
   22187         :
   22188   fi
   22189 
   22190           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
   22191 $as_echo_n "checking for wctype_t... " >&6; }
   22192 if ${gl_cv_type_wctype_t+:} false; then :
   22193   $as_echo_n "(cached) " >&6
   22194 else
   22195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22196 /* end confdefs.h.  */
   22197 #include <wchar.h>
   22198             #if HAVE_WCTYPE_H
   22199             # include <wctype.h>
   22200             #endif
   22201             wctype_t a;
   22202 
   22203 int
   22204 main ()
   22205 {
   22206 
   22207   ;
   22208   return 0;
   22209 }
   22210 _ACEOF
   22211 if ac_fn_c_try_compile "$LINENO"; then :
   22212   gl_cv_type_wctype_t=yes
   22213 else
   22214   gl_cv_type_wctype_t=no
   22215 fi
   22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22217 
   22218 fi
   22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
   22220 $as_echo "$gl_cv_type_wctype_t" >&6; }
   22221   if test $gl_cv_type_wctype_t = no; then
   22222     HAVE_WCTYPE_T=0
   22223   fi
   22224 
   22225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
   22226 $as_echo_n "checking for wctrans_t... " >&6; }
   22227 if ${gl_cv_type_wctrans_t+:} false; then :
   22228   $as_echo_n "(cached) " >&6
   22229 else
   22230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22231 /* end confdefs.h.  */
   22232 #include <wchar.h>
   22233             #include <wctype.h>
   22234             wctrans_t a;
   22235 
   22236 int
   22237 main ()
   22238 {
   22239 
   22240   ;
   22241   return 0;
   22242 }
   22243 _ACEOF
   22244 if ac_fn_c_try_compile "$LINENO"; then :
   22245   gl_cv_type_wctrans_t=yes
   22246 else
   22247   gl_cv_type_wctrans_t=no
   22248 fi
   22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22250 
   22251 fi
   22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
   22253 $as_echo "$gl_cv_type_wctrans_t" >&6; }
   22254   if test $gl_cv_type_wctrans_t = no; then
   22255     HAVE_WCTRANS_T=0
   22256   fi
   22257 
   22258 
   22259 
   22260 
   22261 
   22262 
   22263 
   22264   GL_GNULIB_ISWBLANK=0
   22265 
   22266 
   22267 
   22268   GL_GNULIB_ISWDIGIT=0
   22269 
   22270 
   22271 
   22272   GL_GNULIB_ISWXDIGIT=0
   22273 
   22274 
   22275 
   22276   GL_GNULIB_WCTYPE=0
   22277 
   22278 
   22279 
   22280   GL_GNULIB_ISWCTYPE=0
   22281 
   22282 
   22283 
   22284   GL_GNULIB_WCTRANS=0
   22285 
   22286 
   22287 
   22288   GL_GNULIB_TOWCTRANS=0
   22289 
   22290 
   22291 
   22292 
   22293 
   22294 
   22295 
   22296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
   22297 $as_echo_n "checking for C compiler option to allow warnings... " >&6; }
   22298 if ${gl_cv_cc_wallow+:} false; then :
   22299   $as_echo_n "(cached) " >&6
   22300 else
   22301   rm -f conftest*
   22302      echo 'int dummy;' > conftest.c
   22303      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
   22304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22305   (eval $ac_try) 2>&5
   22306   ac_status=$?
   22307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22308   test $ac_status = 0; }; } >/dev/null
   22309      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
   22310   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22311   (eval $ac_try) 2>&5
   22312   ac_status=$?
   22313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22314   test $ac_status = 0; }; } >/dev/null
   22315                          if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
   22316        gl_cv_cc_wallow='-Wno-error'
   22317      else
   22318        gl_cv_cc_wallow=none
   22319      fi
   22320      rm -f conftest*
   22321 
   22322 fi
   22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
   22324 $as_echo "$gl_cv_cc_wallow" >&6; }
   22325   case "$gl_cv_cc_wallow" in
   22326     none) GL_CFLAG_ALLOW_WARNINGS='' ;;
   22327     *)    GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
   22328   esac
   22329 
   22330 
   22331 
   22332 
   22333       GL_CFLAG_GNULIB_WARNINGS=''
   22334   if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
   22335                                                                         cat > conftest.c <<\EOF
   22336       #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
   22337       -Wno-cast-qual
   22338       -Wno-conversion
   22339       -Wno-float-equal
   22340       -Wno-sign-compare
   22341       -Wno-undef
   22342       -Wno-unused-function
   22343       -Wno-unused-parameter
   22344       #endif
   22345       #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
   22346       -Wno-float-conversion
   22347       #endif
   22348       #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
   22349       -Wimplicit-fallthrough
   22350       #endif
   22351       #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
   22352       -Wno-pedantic
   22353       #endif
   22354       #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
   22355       -Wno-sign-conversion
   22356       -Wno-type-limits
   22357       #endif
   22358       #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
   22359       -Wno-unsuffixed-float-constants
   22360       #endif
   22361 EOF
   22362     gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
   22363     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
   22364   (eval $gl_command) 2>&5
   22365   ac_status=$?
   22366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22367   test $ac_status = 0; }; then
   22368       gl_options=`grep -v '#' conftest.out`
   22369       for word in $gl_options; do
   22370         GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
   22371       done
   22372     fi
   22373     rm -f conftest.c conftest.out
   22374   fi
   22375 
   22376 
   22377 
   22378 
   22379    if false; then
   22380   GL_COND_LIBTOOL_TRUE=
   22381   GL_COND_LIBTOOL_FALSE='#'
   22382 else
   22383   GL_COND_LIBTOOL_TRUE='#'
   22384   GL_COND_LIBTOOL_FALSE=
   22385 fi
   22386 
   22387   gl_cond_libtool=false
   22388   gl_libdeps=
   22389   gl_ltlibdeps=
   22390   gl_m4_base='import/m4'
   22391 
   22392 
   22393 
   22394 
   22395 
   22396 
   22397 
   22398 
   22399 
   22400 
   22401 
   22402 
   22403   gl_source_base='import'
   22404   gl_source_base_prefix=
   22405 
   22406 
   22407      if test "$ac_cv_header_winsock2_h" = yes; then
   22408   GL_COND_OBJ_ACCEPT_TRUE=
   22409   GL_COND_OBJ_ACCEPT_FALSE='#'
   22410 else
   22411   GL_COND_OBJ_ACCEPT_TRUE='#'
   22412   GL_COND_OBJ_ACCEPT_FALSE=
   22413 fi
   22414 :
   22415     if test -z "${GL_COND_OBJ_ACCEPT_TRUE}" && test -z "${GL_COND_OBJ_ACCEPT_FALSE}"; then
   22416     GL_COND_OBJ_ACCEPT_TRUE='#'
   22417     GL_COND_OBJ_ACCEPT_FALSE='#'
   22418   fi
   22419 
   22420 
   22421 
   22422 
   22423 
   22424 
   22425 
   22426 
   22427 
   22428 
   22429           GL_GNULIB_ACCEPT=1
   22430 
   22431 
   22432 
   22433 
   22434 
   22435 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
   22436 
   22437 
   22438 
   22439 
   22440 
   22441   if test $ac_cv_func_alloca_works = no; then
   22442     :
   22443   fi
   22444 
   22445   # Define an additional variable used in the Makefile substitution.
   22446   if test $ac_cv_working_alloca_h = yes; then
   22447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
   22448 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
   22449 if ${gl_cv_rpl_alloca+:} false; then :
   22450   $as_echo_n "(cached) " >&6
   22451 else
   22452 
   22453       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22454 /* end confdefs.h.  */
   22455 
   22456 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
   22457         Need own alloca
   22458 #endif
   22459 
   22460 _ACEOF
   22461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22462   $EGREP "Need own alloca" >/dev/null 2>&1; then :
   22463   gl_cv_rpl_alloca=yes
   22464 else
   22465   gl_cv_rpl_alloca=no
   22466 fi
   22467 rm -f conftest*
   22468 
   22469 
   22470 fi
   22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
   22472 $as_echo "$gl_cv_rpl_alloca" >&6; }
   22473     if test $gl_cv_rpl_alloca = yes; then
   22474 
   22475 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   22476 
   22477       GL_GENERATE_ALLOCA_H=true
   22478     else
   22479                   GL_GENERATE_ALLOCA_H=false
   22480     fi
   22481   else
   22482     GL_GENERATE_ALLOCA_H=true
   22483   fi
   22484 
   22485   if test $ac_cv_working_alloca_h = yes; then
   22486     HAVE_ALLOCA_H=1
   22487   else
   22488     HAVE_ALLOCA_H=0
   22489   fi
   22490 
   22491 
   22492 
   22493 
   22494 
   22495 
   22496   case "$GL_GENERATE_ALLOCA_H" in
   22497     false) ALLOCA_H='' ;;
   22498     true)
   22499                   if test -z "$ALLOCA_H"; then
   22500         ALLOCA_H="${gl_source_base_prefix}alloca.h"
   22501       fi
   22502       ;;
   22503     *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
   22504   esac
   22505 
   22506 
   22507      if $GL_GENERATE_ALLOCA_H; then
   22508   GL_GENERATE_ALLOCA_H_TRUE=
   22509   GL_GENERATE_ALLOCA_H_FALSE='#'
   22510 else
   22511   GL_GENERATE_ALLOCA_H_TRUE='#'
   22512   GL_GENERATE_ALLOCA_H_FALSE=
   22513 fi
   22514 :
   22515     if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
   22516     GL_GENERATE_ALLOCA_H_TRUE='#'
   22517     GL_GENERATE_ALLOCA_H_FALSE='#'
   22518   fi
   22519 
   22520 
   22521 
   22522 
   22523 
   22524 
   22525 
   22526 
   22527 
   22528 
   22529 
   22530 
   22531 
   22532 
   22533 
   22534 
   22535      if test "$ac_cv_header_winsock2_h" = yes; then
   22536   GL_COND_OBJ_BIND_TRUE=
   22537   GL_COND_OBJ_BIND_FALSE='#'
   22538 else
   22539   GL_COND_OBJ_BIND_TRUE='#'
   22540   GL_COND_OBJ_BIND_FALSE=
   22541 fi
   22542 :
   22543     if test -z "${GL_COND_OBJ_BIND_TRUE}" && test -z "${GL_COND_OBJ_BIND_FALSE}"; then
   22544     GL_COND_OBJ_BIND_TRUE='#'
   22545     GL_COND_OBJ_BIND_FALSE='#'
   22546   fi
   22547 
   22548 
   22549 
   22550 
   22551 
   22552 
   22553 
   22554 
   22555 
   22556 
   22557           GL_GNULIB_BIND=1
   22558 
   22559 
   22560 
   22561 
   22562 
   22563 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
   22564 
   22565 
   22566 
   22567 
   22568 
   22569 
   22570 
   22571 
   22572 
   22573   if test $ac_cv_func_btowc = no; then
   22574     HAVE_BTOWC=0
   22575   else
   22576 
   22577 
   22578 
   22579 
   22580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
   22581 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
   22582 if ${gl_cv_func_btowc_nul+:} false; then :
   22583   $as_echo_n "(cached) " >&6
   22584 else
   22585 
   22586         if test "$cross_compiling" = yes; then :
   22587 
   22588            case "$host_os" in
   22589                       # Guess no on Cygwin.
   22590              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
   22591                       # Guess yes on native Windows.
   22592              mingw*)  gl_cv_func_btowc_nul="guessing yes" ;;
   22593                       # Guess yes otherwise.
   22594              *)       gl_cv_func_btowc_nul="guessing yes" ;;
   22595            esac
   22596 
   22597 else
   22598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22599 /* end confdefs.h.  */
   22600 
   22601 #include <wchar.h>
   22602 int main ()
   22603 {
   22604   if (btowc ('\0') != 0)
   22605     return 1;
   22606   return 0;
   22607 }
   22608 _ACEOF
   22609 if ac_fn_c_try_run "$LINENO"; then :
   22610   gl_cv_func_btowc_nul=yes
   22611 else
   22612   gl_cv_func_btowc_nul=no
   22613 fi
   22614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22615   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22616 fi
   22617 
   22618 
   22619 fi
   22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
   22621 $as_echo "$gl_cv_func_btowc_nul" >&6; }
   22622 
   22623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
   22624 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
   22625 if ${gl_cv_func_btowc_eof+:} false; then :
   22626   $as_echo_n "(cached) " >&6
   22627 else
   22628 
   22629                         case "$host_os" in
   22630                   # Guess no on IRIX.
   22631           irix*)  gl_cv_func_btowc_eof="guessing no" ;;
   22632                   # Guess yes on native Windows.
   22633           mingw*) gl_cv_func_btowc_eof="guessing yes" ;;
   22634                   # Guess yes otherwise.
   22635           *)      gl_cv_func_btowc_eof="guessing yes" ;;
   22636         esac
   22637         if test $LOCALE_FR != none; then
   22638           if test "$cross_compiling" = yes; then :
   22639   :
   22640 else
   22641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22642 /* end confdefs.h.  */
   22643 
   22644 #include <locale.h>
   22645 #include <stdio.h>
   22646 #include <wchar.h>
   22647 int main ()
   22648 {
   22649   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
   22650     {
   22651       if (btowc (EOF) != WEOF)
   22652         return 1;
   22653     }
   22654   return 0;
   22655 }
   22656 _ACEOF
   22657 if ac_fn_c_try_run "$LINENO"; then :
   22658   gl_cv_func_btowc_eof=yes
   22659 else
   22660   gl_cv_func_btowc_eof=no
   22661 fi
   22662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22663   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22664 fi
   22665 
   22666         fi
   22667 
   22668 fi
   22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
   22670 $as_echo "$gl_cv_func_btowc_eof" >&6; }
   22671 
   22672     case "$gl_cv_func_btowc_nul" in
   22673       *yes) ;;
   22674       *) REPLACE_BTOWC=1 ;;
   22675     esac
   22676     case "$gl_cv_func_btowc_eof" in
   22677       *yes) ;;
   22678       *) REPLACE_BTOWC=1 ;;
   22679     esac
   22680   fi
   22681 
   22682 
   22683      if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
   22684   GL_COND_OBJ_BTOWC_TRUE=
   22685   GL_COND_OBJ_BTOWC_FALSE='#'
   22686 else
   22687   GL_COND_OBJ_BTOWC_TRUE='#'
   22688   GL_COND_OBJ_BTOWC_FALSE=
   22689 fi
   22690 :
   22691     if test -z "${GL_COND_OBJ_BTOWC_TRUE}" && test -z "${GL_COND_OBJ_BTOWC_FALSE}"; then
   22692     GL_COND_OBJ_BTOWC_TRUE='#'
   22693     GL_COND_OBJ_BTOWC_FALSE='#'
   22694   fi
   22695 
   22696   if test -z "$GL_COND_OBJ_BTOWC_TRUE"; then :
   22697 
   22698 
   22699   :
   22700 
   22701 
   22702 fi
   22703 
   22704 
   22705 
   22706 
   22707 
   22708 
   22709 
   22710 
   22711 
   22712 
   22713 
   22714 
   22715 
   22716 
   22717           GL_GNULIB_BTOWC=1
   22718 
   22719 
   22720 
   22721 
   22722 
   22723 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
   22724 
   22725 
   22726 
   22727 
   22728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
   22729 $as_echo_n "checking for __builtin_expect... " >&6; }
   22730 if ${gl_cv___builtin_expect+:} false; then :
   22731   $as_echo_n "(cached) " >&6
   22732 else
   22733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22734 /* end confdefs.h.  */
   22735 
   22736          int
   22737          main (int argc, char **argv)
   22738          {
   22739            argc = __builtin_expect (argc, 100);
   22740            return argv[argc != 100][0];
   22741          }
   22742 _ACEOF
   22743 if ac_fn_c_try_link "$LINENO"; then :
   22744   gl_cv___builtin_expect=yes
   22745 else
   22746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22747 /* end confdefs.h.  */
   22748 
   22749              #include <builtins.h>
   22750              int
   22751              main (int argc, char **argv)
   22752              {
   22753                argc = __builtin_expect (argc, 100);
   22754                return argv[argc != 100][0];
   22755              }
   22756 _ACEOF
   22757 if ac_fn_c_try_link "$LINENO"; then :
   22758   gl_cv___builtin_expect="in <builtins.h>"
   22759 else
   22760   gl_cv___builtin_expect=no
   22761 fi
   22762 rm -f core conftest.err conftest.$ac_objext \
   22763     conftest$ac_exeext conftest.$ac_ext
   22764 fi
   22765 rm -f core conftest.err conftest.$ac_objext \
   22766     conftest$ac_exeext conftest.$ac_ext
   22767 fi
   22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
   22769 $as_echo "$gl_cv___builtin_expect" >&6; }
   22770   if test "$gl_cv___builtin_expect" = yes; then
   22771     $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
   22772 
   22773   elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
   22774     $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
   22775 
   22776   fi
   22777 
   22778 
   22779 
   22780 
   22781 
   22782   if test $ac_cv_func_canonicalize_file_name = no; then
   22783     HAVE_CANONICALIZE_FILE_NAME=0
   22784     if test $ac_cv_func_realpath = no; then
   22785       HAVE_REALPATH=0
   22786     else
   22787       case "$gl_cv_func_realpath_works" in
   22788         *yes) ;;
   22789         *)    REPLACE_REALPATH=1 ;;
   22790       esac
   22791     fi
   22792   else
   22793     case "$gl_cv_func_realpath_works" in
   22794       *yes)
   22795         ;;
   22796       *)
   22797         REPLACE_CANONICALIZE_FILE_NAME=1
   22798         REPLACE_REALPATH=1
   22799         ;;
   22800     esac
   22801   fi
   22802 
   22803 
   22804      if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
   22805   GL_COND_OBJ_CANONICALIZE_LGPL_TRUE=
   22806   GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
   22807 else
   22808   GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
   22809   GL_COND_OBJ_CANONICALIZE_LGPL_FALSE=
   22810 fi
   22811 :
   22812     if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then
   22813     GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
   22814     GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
   22815   fi
   22816 
   22817 
   22818 
   22819 cat >>confdefs.h <<_ACEOF
   22820 #define GNULIB_CANONICALIZE_LGPL 1
   22821 _ACEOF
   22822 
   22823 
   22824 
   22825 
   22826 
   22827 
   22828 
   22829 
   22830 
   22831 
   22832 
   22833           GL_GNULIB_CANONICALIZE_FILE_NAME=1
   22834 
   22835 
   22836 
   22837 
   22838 
   22839 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
   22840 
   22841 
   22842 
   22843 
   22844 
   22845 
   22846 
   22847 
   22848 
   22849 
   22850 
   22851 
   22852           GL_GNULIB_REALPATH=1
   22853 
   22854 
   22855 
   22856 
   22857 
   22858 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
   22859 
   22860 
   22861 
   22862 
   22863 
   22864 
   22865 
   22866 
   22867 
   22868 
   22869 
   22870 
   22871           GL_GNULIB_CHDIR=1
   22872 
   22873 
   22874 
   22875 
   22876 
   22877 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
   22878 
   22879 
   22880 
   22881 
   22882 
   22883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
   22884 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
   22885 if ${gl_cv_have_unlimited_file_name_length+:} false; then :
   22886   $as_echo_n "(cached) " >&6
   22887 else
   22888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22889 /* end confdefs.h.  */
   22890 
   22891 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
   22892 #if HAVE_UNISTD_H
   22893 # include <unistd.h>
   22894 #endif
   22895 #include <limits.h>
   22896 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
   22897 # include <sys/param.h>
   22898 #endif
   22899 #if !defined PATH_MAX && defined MAXPATHLEN
   22900 # define PATH_MAX MAXPATHLEN
   22901 #endif
   22902 #ifdef __hpux
   22903 # undef PATH_MAX
   22904 # define PATH_MAX 1024
   22905 #endif
   22906 #if defined _WIN32 && ! defined __CYGWIN__
   22907 # undef PATH_MAX
   22908 # define PATH_MAX 260
   22909 #endif
   22910 
   22911 #ifdef PATH_MAX
   22912 have_arbitrary_file_name_length_limit
   22913 #endif
   22914 _ACEOF
   22915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   22916   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
   22917   gl_cv_have_unlimited_file_name_length=no
   22918 else
   22919   gl_cv_have_unlimited_file_name_length=yes
   22920 fi
   22921 rm -f conftest*
   22922 
   22923 fi
   22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
   22925 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
   22926 
   22927 
   22928      if test $gl_cv_have_unlimited_file_name_length = no; then
   22929   GL_COND_OBJ_CHDIR_LONG_TRUE=
   22930   GL_COND_OBJ_CHDIR_LONG_FALSE='#'
   22931 else
   22932   GL_COND_OBJ_CHDIR_LONG_TRUE='#'
   22933   GL_COND_OBJ_CHDIR_LONG_FALSE=
   22934 fi
   22935 :
   22936     if test -z "${GL_COND_OBJ_CHDIR_LONG_TRUE}" && test -z "${GL_COND_OBJ_CHDIR_LONG_FALSE}"; then
   22937     GL_COND_OBJ_CHDIR_LONG_TRUE='#'
   22938     GL_COND_OBJ_CHDIR_LONG_FALSE='#'
   22939   fi
   22940 
   22941   if test -z "$GL_COND_OBJ_CHDIR_LONG_TRUE"; then :
   22942 
   22943     :
   22944 
   22945 fi
   22946 
   22947 
   22948      if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
   22949   GL_COND_OBJ_CHOWN_TRUE=
   22950   GL_COND_OBJ_CHOWN_FALSE='#'
   22951 else
   22952   GL_COND_OBJ_CHOWN_TRUE='#'
   22953   GL_COND_OBJ_CHOWN_FALSE=
   22954 fi
   22955 :
   22956     if test -z "${GL_COND_OBJ_CHOWN_TRUE}" && test -z "${GL_COND_OBJ_CHOWN_FALSE}"; then
   22957     GL_COND_OBJ_CHOWN_TRUE='#'
   22958     GL_COND_OBJ_CHOWN_FALSE='#'
   22959   fi
   22960 
   22961 
   22962      if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
   22963   GL_COND_OBJ_FCHOWN_STUB_TRUE=
   22964   GL_COND_OBJ_FCHOWN_STUB_FALSE='#'
   22965 else
   22966   GL_COND_OBJ_FCHOWN_STUB_TRUE='#'
   22967   GL_COND_OBJ_FCHOWN_STUB_FALSE=
   22968 fi
   22969 :
   22970     if test -z "${GL_COND_OBJ_FCHOWN_STUB_TRUE}" && test -z "${GL_COND_OBJ_FCHOWN_STUB_FALSE}"; then
   22971     GL_COND_OBJ_FCHOWN_STUB_TRUE='#'
   22972     GL_COND_OBJ_FCHOWN_STUB_FALSE='#'
   22973   fi
   22974 
   22975 
   22976 
   22977 
   22978 
   22979 
   22980 
   22981 
   22982 
   22983 
   22984           GL_GNULIB_CHOWN=1
   22985 
   22986 
   22987 
   22988 
   22989 
   22990 $as_echo "#define GNULIB_TEST_CHOWN 1" >>confdefs.h
   22991 
   22992 
   22993 
   22994 
   22995 
   22996 
   22997   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
   22998   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
   22999 
   23000   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
   23001   # programs in the package would end up linked with that potentially-shared
   23002   # library, inducing unnecessary run-time overhead.
   23003   LIB_CLOCK_GETTIME=
   23004 
   23005   gl_saved_libs=$LIBS
   23006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   23007 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   23008 if ${ac_cv_search_clock_gettime+:} false; then :
   23009   $as_echo_n "(cached) " >&6
   23010 else
   23011   ac_func_search_save_LIBS=$LIBS
   23012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23013 /* end confdefs.h.  */
   23014 
   23015 /* Override any GCC internal prototype to avoid an error.
   23016    Use char because int might match the return type of a GCC
   23017    builtin and then its argument prototype would still apply.  */
   23018 #ifdef __cplusplus
   23019 extern "C"
   23020 #endif
   23021 char clock_gettime ();
   23022 int
   23023 main ()
   23024 {
   23025 return clock_gettime ();
   23026   ;
   23027   return 0;
   23028 }
   23029 _ACEOF
   23030 for ac_lib in '' rt posix4; do
   23031   if test -z "$ac_lib"; then
   23032     ac_res="none required"
   23033   else
   23034     ac_res=-l$ac_lib
   23035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   23036   fi
   23037   if ac_fn_c_try_link "$LINENO"; then :
   23038   ac_cv_search_clock_gettime=$ac_res
   23039 fi
   23040 rm -f core conftest.err conftest.$ac_objext \
   23041     conftest$ac_exeext
   23042   if ${ac_cv_search_clock_gettime+:} false; then :
   23043   break
   23044 fi
   23045 done
   23046 if ${ac_cv_search_clock_gettime+:} false; then :
   23047 
   23048 else
   23049   ac_cv_search_clock_gettime=no
   23050 fi
   23051 rm conftest.$ac_ext
   23052 LIBS=$ac_func_search_save_LIBS
   23053 fi
   23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   23055 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   23056 ac_res=$ac_cv_search_clock_gettime
   23057 if test "$ac_res" != no; then :
   23058   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   23059   test "$ac_cv_search_clock_gettime" = "none required" ||
   23060                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
   23061 fi
   23062 
   23063     for ac_func in clock_getres clock_gettime clock_settime
   23064 do :
   23065   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   23066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   23067 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   23068   cat >>confdefs.h <<_ACEOF
   23069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   23070 _ACEOF
   23071 
   23072 fi
   23073 done
   23074 
   23075   LIBS=$gl_saved_libs
   23076 
   23077 
   23078 
   23079 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
   23080 
   23081 
   23082 
   23083 
   23084 
   23085 
   23086     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   23087       REPLACE_CLOSE=1
   23088     fi
   23089 
   23090 
   23091 
   23092 
   23093 
   23094 
   23095   if test $ac_cv_header_sys_socket_h != yes; then
   23096                     for ac_header in winsock2.h
   23097 do :
   23098   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   23099 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   23100   cat >>confdefs.h <<_ACEOF
   23101 #define HAVE_WINSOCK2_H 1
   23102 _ACEOF
   23103 
   23104 fi
   23105 
   23106 done
   23107 
   23108   fi
   23109   if test "$ac_cv_header_winsock2_h" = yes; then
   23110     HAVE_WINSOCK2_H=1
   23111     UNISTD_H_HAVE_WINSOCK2_H=1
   23112     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   23113   else
   23114     HAVE_WINSOCK2_H=0
   23115   fi
   23116 
   23117 
   23118     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
   23119                         REPLACE_CLOSE=1
   23120     fi
   23121 
   23122 
   23123     if test $REPLACE_CLOSE = 0; then
   23124 
   23125 
   23126 
   23127   if test $ac_cv_func_fchdir = no; then
   23128     HAVE_FCHDIR=0
   23129   fi
   23130 
   23131       if test $HAVE_FCHDIR = 0; then
   23132         REPLACE_CLOSE=1
   23133       fi
   23134     fi
   23135 
   23136 
   23137 
   23138      if test $REPLACE_CLOSE = 1; then
   23139   GL_COND_OBJ_CLOSE_TRUE=
   23140   GL_COND_OBJ_CLOSE_FALSE='#'
   23141 else
   23142   GL_COND_OBJ_CLOSE_TRUE='#'
   23143   GL_COND_OBJ_CLOSE_FALSE=
   23144 fi
   23145 :
   23146     if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
   23147     GL_COND_OBJ_CLOSE_TRUE='#'
   23148     GL_COND_OBJ_CLOSE_FALSE='#'
   23149   fi
   23150 
   23151 
   23152 
   23153 
   23154 
   23155 
   23156 
   23157 
   23158 
   23159 
   23160           GL_GNULIB_CLOSE=1
   23161 
   23162 
   23163 
   23164 
   23165 
   23166 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
   23167 
   23168 
   23169 
   23170 
   23171 
   23172 
   23173   for ac_func in closedir
   23174 do :
   23175   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
   23176 if test "x$ac_cv_func_closedir" = xyes; then :
   23177   cat >>confdefs.h <<_ACEOF
   23178 #define HAVE_CLOSEDIR 1
   23179 _ACEOF
   23180 
   23181 fi
   23182 done
   23183 
   23184   if test $ac_cv_func_closedir = no; then
   23185     HAVE_CLOSEDIR=0
   23186   fi
   23187 
   23188 
   23189 
   23190 
   23191   if test $ac_cv_func_fchdir = no; then
   23192     HAVE_FCHDIR=0
   23193   fi
   23194 
   23195     if test $HAVE_FCHDIR = 0; then
   23196       if test $HAVE_CLOSEDIR = 1; then
   23197         REPLACE_CLOSEDIR=1
   23198       fi
   23199     fi
   23200 
   23201     case $host_os,$HAVE_CLOSEDIR in
   23202     os2*,1)
   23203       REPLACE_CLOSEDIR=1;;
   23204   esac
   23205 
   23206 
   23207      if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
   23208   GL_COND_OBJ_CLOSEDIR_TRUE=
   23209   GL_COND_OBJ_CLOSEDIR_FALSE='#'
   23210 else
   23211   GL_COND_OBJ_CLOSEDIR_TRUE='#'
   23212   GL_COND_OBJ_CLOSEDIR_FALSE=
   23213 fi
   23214 :
   23215     if test -z "${GL_COND_OBJ_CLOSEDIR_TRUE}" && test -z "${GL_COND_OBJ_CLOSEDIR_FALSE}"; then
   23216     GL_COND_OBJ_CLOSEDIR_TRUE='#'
   23217     GL_COND_OBJ_CLOSEDIR_FALSE='#'
   23218   fi
   23219 
   23220 
   23221 
   23222 
   23223 
   23224 
   23225 
   23226 
   23227 
   23228 
   23229           GL_GNULIB_CLOSEDIR=1
   23230 
   23231 
   23232 
   23233 
   23234 
   23235 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
   23236 
   23237 
   23238 
   23239 
   23240 
   23241      if test "$ac_cv_header_winsock2_h" = yes; then
   23242   GL_COND_OBJ_CONNECT_TRUE=
   23243   GL_COND_OBJ_CONNECT_FALSE='#'
   23244 else
   23245   GL_COND_OBJ_CONNECT_TRUE='#'
   23246   GL_COND_OBJ_CONNECT_FALSE=
   23247 fi
   23248 :
   23249     if test -z "${GL_COND_OBJ_CONNECT_TRUE}" && test -z "${GL_COND_OBJ_CONNECT_FALSE}"; then
   23250     GL_COND_OBJ_CONNECT_TRUE='#'
   23251     GL_COND_OBJ_CONNECT_FALSE='#'
   23252   fi
   23253 
   23254 
   23255 
   23256 
   23257 
   23258 
   23259 
   23260 
   23261 
   23262 
   23263           GL_GNULIB_CONNECT=1
   23264 
   23265 
   23266 
   23267 
   23268 
   23269 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
   23270 
   23271 
   23272 
   23273 
   23274 
   23275 
   23276 
   23277 
   23278 
   23279 
   23280       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
   23281 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
   23282 if ${gl_cv_struct_dirent_d_ino+:} false; then :
   23283   $as_echo_n "(cached) " >&6
   23284 else
   23285   if test "$cross_compiling" = yes; then :
   23286   case "$host_os" in
   23287                             # Guess yes on glibc systems with Linux kernel.
   23288               linux*-gnu*)  gl_cv_struct_dirent_d_ino="guessing yes" ;;
   23289                             # Guess yes on musl systems with Linux kernel.
   23290               linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
   23291                             # Guess no on native Windows.
   23292               mingw*)       gl_cv_struct_dirent_d_ino="guessing no" ;;
   23293                             # If we don't know, obey --enable-cross-guesses.
   23294               *)            gl_cv_struct_dirent_d_ino="$gl_cross_guess_normal" ;;
   23295             esac
   23296 
   23297 else
   23298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23299 /* end confdefs.h.  */
   23300 #include <sys/types.h>
   23301              #include <sys/stat.h>
   23302              #include <dirent.h>
   23303 
   23304 int
   23305 main ()
   23306 {
   23307 DIR *dp = opendir (".");
   23308              struct dirent *e;
   23309              struct stat st;
   23310              if (! dp)
   23311                return 1;
   23312              e = readdir (dp);
   23313              if (! e)
   23314                { closedir (dp); return 2; }
   23315              if (lstat (e->d_name, &st) != 0)
   23316                { closedir (dp); return 3; }
   23317              if (e->d_ino != st.st_ino)
   23318                { closedir (dp); return 4; }
   23319              closedir (dp);
   23320              return 0;
   23321 
   23322   ;
   23323   return 0;
   23324 }
   23325 _ACEOF
   23326 if ac_fn_c_try_run "$LINENO"; then :
   23327   gl_cv_struct_dirent_d_ino=yes
   23328 else
   23329   gl_cv_struct_dirent_d_ino=no
   23330 fi
   23331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23332   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23333 fi
   23334 
   23335 fi
   23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
   23337 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
   23338    case "$gl_cv_struct_dirent_d_ino" in
   23339      *yes)
   23340 
   23341 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
   23342 
   23343        ;;
   23344    esac
   23345 
   23346 
   23347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
   23348 $as_echo_n "checking for d_type member in directory struct... " >&6; }
   23349 if ${gl_cv_struct_dirent_d_type+:} false; then :
   23350   $as_echo_n "(cached) " >&6
   23351 else
   23352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23353 /* end confdefs.h.  */
   23354 
   23355 #include <sys/types.h>
   23356 #include <dirent.h>
   23357 
   23358 int
   23359 main ()
   23360 {
   23361 struct dirent dp; dp.d_type = 0;
   23362   ;
   23363   return 0;
   23364 }
   23365 _ACEOF
   23366 if ac_fn_c_try_link "$LINENO"; then :
   23367   gl_cv_struct_dirent_d_type=yes
   23368 else
   23369   gl_cv_struct_dirent_d_type=no
   23370 fi
   23371 rm -f core conftest.err conftest.$ac_objext \
   23372     conftest$ac_exeext conftest.$ac_ext
   23373 
   23374 
   23375 fi
   23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
   23377 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
   23378    if test $gl_cv_struct_dirent_d_type = yes; then
   23379 
   23380 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
   23381 
   23382    fi
   23383 
   23384 
   23385 
   23386 
   23387 
   23388 
   23389 
   23390 
   23391 
   23392 
   23393 
   23394 
   23395 
   23396 
   23397   for ac_func in dirfd
   23398 do :
   23399   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
   23400 if test "x$ac_cv_func_dirfd" = xyes; then :
   23401   cat >>confdefs.h <<_ACEOF
   23402 #define HAVE_DIRFD 1
   23403 _ACEOF
   23404 
   23405 fi
   23406 done
   23407 
   23408   ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
   23409       #include <dirent.h>
   23410 "
   23411 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
   23412   ac_have_decl=1
   23413 else
   23414   ac_have_decl=0
   23415 fi
   23416 
   23417 cat >>confdefs.h <<_ACEOF
   23418 #define HAVE_DECL_DIRFD $ac_have_decl
   23419 _ACEOF
   23420 
   23421   if test $ac_cv_have_decl_dirfd = no; then
   23422     HAVE_DECL_DIRFD=0
   23423   fi
   23424 
   23425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
   23426 $as_echo_n "checking whether dirfd is a macro... " >&6; }
   23427 if ${gl_cv_func_dirfd_macro+:} false; then :
   23428   $as_echo_n "(cached) " >&6
   23429 else
   23430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23431 /* end confdefs.h.  */
   23432 
   23433 #include <sys/types.h>
   23434 #include <dirent.h>
   23435 #ifdef dirfd
   23436  dirent_header_defines_dirfd
   23437 #endif
   23438 _ACEOF
   23439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   23440   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
   23441   gl_cv_func_dirfd_macro=yes
   23442 else
   23443   gl_cv_func_dirfd_macro=no
   23444 fi
   23445 rm -f conftest*
   23446 
   23447 fi
   23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
   23449 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
   23450 
   23451   # Use the replacement if we have no function or macro with that name,
   23452   # or if OS/2 kLIBC whose dirfd() does not work.
   23453   # Replace only if the system declares dirfd already.
   23454   case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
   23455     no,no,*,yes | *,*,os2*,yes)
   23456       REPLACE_DIRFD=1
   23457 
   23458 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
   23459 ;;
   23460   esac
   23461 
   23462 
   23463      if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1; then
   23464   GL_COND_OBJ_DIRFD_TRUE=
   23465   GL_COND_OBJ_DIRFD_FALSE='#'
   23466 else
   23467   GL_COND_OBJ_DIRFD_TRUE='#'
   23468   GL_COND_OBJ_DIRFD_FALSE=
   23469 fi
   23470 :
   23471     if test -z "${GL_COND_OBJ_DIRFD_TRUE}" && test -z "${GL_COND_OBJ_DIRFD_FALSE}"; then
   23472     GL_COND_OBJ_DIRFD_TRUE='#'
   23473     GL_COND_OBJ_DIRFD_FALSE='#'
   23474   fi
   23475 
   23476   if test -z "$GL_COND_OBJ_DIRFD_TRUE"; then :
   23477 
   23478 
   23479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
   23480 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
   23481 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
   23482   $as_echo_n "(cached) " >&6
   23483 else
   23484 
   23485       dirfd_save_CFLAGS=$CFLAGS
   23486       for ac_expr in d_fd dd_fd; do
   23487 
   23488         CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
   23489         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23490 /* end confdefs.h.  */
   23491 
   23492            #include <sys/types.h>
   23493            #include <dirent.h>
   23494 int
   23495 main ()
   23496 {
   23497 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
   23498   ;
   23499   return 0;
   23500 }
   23501 _ACEOF
   23502 if ac_fn_c_try_compile "$LINENO"; then :
   23503   dir_fd_found=yes
   23504 
   23505 fi
   23506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23507         CFLAGS=$dirfd_save_CFLAGS
   23508         test "$dir_fd_found" = yes && break
   23509       done
   23510       test "$dir_fd_found" = yes || ac_expr=no_such_member
   23511 
   23512       gl_cv_sys_dir_fd_member_name=$ac_expr
   23513 
   23514 
   23515 fi
   23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
   23517 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
   23518   if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
   23519 
   23520 cat >>confdefs.h <<_ACEOF
   23521 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
   23522 _ACEOF
   23523 
   23524   fi
   23525 
   23526 
   23527 
   23528 fi
   23529 
   23530 
   23531 
   23532 
   23533 
   23534 
   23535 
   23536 
   23537 
   23538           GL_GNULIB_DIRFD=1
   23539 
   23540 
   23541 
   23542 
   23543 
   23544 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
   23545 
   23546 
   23547 
   23548 
   23549 
   23550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
   23551 $as_echo_n "checking whether // is distinct from /... " >&6; }
   23552 if ${gl_cv_double_slash_root+:} false; then :
   23553   $as_echo_n "(cached) " >&6
   23554 else
   23555    if test x"$cross_compiling" = xyes ; then
   23556         # When cross-compiling, there is no way to tell whether // is special
   23557         # short of a list of hosts.  However, the only known hosts to date
   23558         # that have a distinct // are Apollo DomainOS (too old to port to),
   23559         # Cygwin, and z/OS.  If anyone knows of another system for which // has
   23560         # special semantics and is distinct from /, please report it to
   23561         # <bug-gnulib (at] gnu.org>.
   23562         case $host in
   23563           *-cygwin | i370-ibm-openedition)
   23564             gl_cv_double_slash_root=yes ;;
   23565           *)
   23566             # Be optimistic and assume that / and // are the same when we
   23567             # don't know.
   23568             gl_cv_double_slash_root='unknown, assuming no' ;;
   23569         esac
   23570       else
   23571         set x `ls -di / // 2>/dev/null`
   23572         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
   23573           gl_cv_double_slash_root=no
   23574         else
   23575           gl_cv_double_slash_root=yes
   23576         fi
   23577       fi
   23578 fi
   23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
   23580 $as_echo "$gl_cv_double_slash_root" >&6; }
   23581   if test "$gl_cv_double_slash_root" = yes; then
   23582 
   23583 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
   23584 
   23585   fi
   23586 
   23587 
   23588 
   23589 
   23590 
   23591     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   23592       REPLACE_DUP=1
   23593     fi
   23594 
   23595 
   23596 
   23597 
   23598 
   23599   if test $ac_cv_func_fchdir = no; then
   23600     HAVE_FCHDIR=0
   23601   fi
   23602 
   23603     if test $HAVE_FCHDIR = 0; then
   23604       REPLACE_DUP=1
   23605     fi
   23606 
   23607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
   23608 $as_echo_n "checking whether dup works... " >&6; }
   23609 if ${gl_cv_func_dup_works+:} false; then :
   23610   $as_echo_n "(cached) " >&6
   23611 else
   23612   if test "$cross_compiling" = yes; then :
   23613   case "$host_os" in
   23614                  # Guess no on native Windows.
   23615          mingw*) gl_cv_func_dup_works="guessing no" ;;
   23616          *)      gl_cv_func_dup_works="guessing yes" ;;
   23617        esac
   23618 
   23619 else
   23620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23621 /* end confdefs.h.  */
   23622 #include <unistd.h>
   23623                          #include <fcntl.h>
   23624                          #include <errno.h>
   23625 
   23626 
   23627 $gl_mda_defines
   23628 
   23629 int
   23630 main ()
   23631 {
   23632 /* On OS/2 kLIBC, dup does not work on a directory fd.  */
   23633            int fd = open (".", O_RDONLY);
   23634            return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
   23635 
   23636   ;
   23637   return 0;
   23638 }
   23639 
   23640 _ACEOF
   23641 if ac_fn_c_try_run "$LINENO"; then :
   23642   gl_cv_func_dup_works=yes
   23643 else
   23644   gl_cv_func_dup_works=no
   23645 fi
   23646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23647   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23648 fi
   23649 
   23650 
   23651 fi
   23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
   23653 $as_echo "$gl_cv_func_dup_works" >&6; }
   23654   case "$gl_cv_func_dup_works" in
   23655     *yes) ;;
   23656     *)
   23657       REPLACE_DUP=1
   23658       ;;
   23659   esac
   23660 
   23661 
   23662      if test $REPLACE_DUP = 1; then
   23663   GL_COND_OBJ_DUP_TRUE=
   23664   GL_COND_OBJ_DUP_FALSE='#'
   23665 else
   23666   GL_COND_OBJ_DUP_TRUE='#'
   23667   GL_COND_OBJ_DUP_FALSE=
   23668 fi
   23669 :
   23670     if test -z "${GL_COND_OBJ_DUP_TRUE}" && test -z "${GL_COND_OBJ_DUP_FALSE}"; then
   23671     GL_COND_OBJ_DUP_TRUE='#'
   23672     GL_COND_OBJ_DUP_FALSE='#'
   23673   fi
   23674 
   23675   if test -z "$GL_COND_OBJ_DUP_TRUE"; then :
   23676 
   23677     :
   23678 
   23679 fi
   23680 
   23681 
   23682 
   23683 
   23684 
   23685 
   23686 
   23687 
   23688 
   23689           GL_GNULIB_DUP=1
   23690 
   23691 
   23692 
   23693 
   23694 
   23695 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
   23696 
   23697 
   23698 
   23699 
   23700 
   23701 
   23702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
   23703 $as_echo_n "checking whether dup2 works... " >&6; }
   23704 if ${gl_cv_func_dup2_works+:} false; then :
   23705   $as_echo_n "(cached) " >&6
   23706 else
   23707   if test "$cross_compiling" = yes; then :
   23708   case "$host_os" in
   23709          mingw*) # on this platform, dup2 always returns 0 for success
   23710            gl_cv_func_dup2_works="guessing no" ;;
   23711          cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
   23712            gl_cv_func_dup2_works="guessing no" ;;
   23713          aix* | freebsd*)
   23714                  # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
   23715                  # not EBADF.
   23716            gl_cv_func_dup2_works="guessing no" ;;
   23717          haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
   23718            gl_cv_func_dup2_works="guessing no" ;;
   23719          *-android*) # implemented using dup3(), which fails if oldfd == newfd
   23720            gl_cv_func_dup2_works="guessing no" ;;
   23721          os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
   23722            gl_cv_func_dup2_works="guessing no" ;;
   23723          *) gl_cv_func_dup2_works="guessing yes" ;;
   23724        esac
   23725 else
   23726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23727 /* end confdefs.h.  */
   23728 
   23729        #include <errno.h>
   23730            #include <fcntl.h>
   23731            #include <limits.h>
   23732            #include <sys/resource.h>
   23733            #include <unistd.h>
   23734 
   23735 
   23736 $gl_mda_defines
   23737 
   23738            #ifndef RLIM_SAVED_CUR
   23739            # define RLIM_SAVED_CUR RLIM_INFINITY
   23740            #endif
   23741            #ifndef RLIM_SAVED_MAX
   23742            # define RLIM_SAVED_MAX RLIM_INFINITY
   23743            #endif
   23744 
   23745 int
   23746 main ()
   23747 {
   23748 int result = 0;
   23749            int bad_fd = INT_MAX;
   23750            struct rlimit rlim;
   23751            if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
   23752                && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
   23753                && rlim.rlim_cur != RLIM_INFINITY
   23754                && rlim.rlim_cur != RLIM_SAVED_MAX
   23755                && rlim.rlim_cur != RLIM_SAVED_CUR)
   23756              bad_fd = rlim.rlim_cur;
   23757            #ifdef FD_CLOEXEC
   23758              if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
   23759                result |= 1;
   23760            #endif
   23761            if (dup2 (1, 1) != 1)
   23762              result |= 2;
   23763            #ifdef FD_CLOEXEC
   23764              if (fcntl (1, F_GETFD) != FD_CLOEXEC)
   23765                result |= 4;
   23766            #endif
   23767            close (0);
   23768            if (dup2 (0, 0) != -1)
   23769              result |= 8;
   23770            /* Many gnulib modules require POSIX conformance of EBADF.  */
   23771            if (dup2 (2, bad_fd) == -1 && errno != EBADF)
   23772              result |= 16;
   23773            /* Flush out some cygwin core dumps.  */
   23774            if (dup2 (2, -1) != -1 || errno != EBADF)
   23775              result |= 32;
   23776            dup2 (2, 255);
   23777            dup2 (2, 256);
   23778            /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
   23779            {
   23780              int fd = open (".", O_RDONLY);
   23781              if (fd == -1)
   23782                result |= 64;
   23783              else if (dup2 (fd, fd + 1) == -1)
   23784                result |= 128;
   23785              close (fd);
   23786            }
   23787            return result;
   23788   ;
   23789   return 0;
   23790 }
   23791 
   23792 _ACEOF
   23793 if ac_fn_c_try_run "$LINENO"; then :
   23794   gl_cv_func_dup2_works=yes
   23795 else
   23796   gl_cv_func_dup2_works=no
   23797 fi
   23798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   23799   conftest.$ac_objext conftest.beam conftest.$ac_ext
   23800 fi
   23801 
   23802 
   23803 fi
   23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
   23805 $as_echo "$gl_cv_func_dup2_works" >&6; }
   23806   case "$gl_cv_func_dup2_works" in
   23807     *yes) ;;
   23808     *)
   23809       REPLACE_DUP2=1
   23810       for ac_func in setdtablesize
   23811 do :
   23812   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
   23813 if test "x$ac_cv_func_setdtablesize" = xyes; then :
   23814   cat >>confdefs.h <<_ACEOF
   23815 #define HAVE_SETDTABLESIZE 1
   23816 _ACEOF
   23817 
   23818 fi
   23819 done
   23820 
   23821       ;;
   23822   esac
   23823 
   23824 
   23825 
   23826 
   23827   if test $ac_cv_func_fchdir = no; then
   23828     HAVE_FCHDIR=0
   23829   fi
   23830 
   23831     if test $HAVE_FCHDIR = 0; then
   23832       REPLACE_DUP2=1
   23833     fi
   23834 
   23835 
   23836 
   23837      if test $REPLACE_DUP2 = 1; then
   23838   GL_COND_OBJ_DUP2_TRUE=
   23839   GL_COND_OBJ_DUP2_FALSE='#'
   23840 else
   23841   GL_COND_OBJ_DUP2_TRUE='#'
   23842   GL_COND_OBJ_DUP2_FALSE=
   23843 fi
   23844 :
   23845     if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
   23846     GL_COND_OBJ_DUP2_TRUE='#'
   23847     GL_COND_OBJ_DUP2_FALSE='#'
   23848   fi
   23849 
   23850   if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
   23851 
   23852 
   23853 
   23854 fi
   23855 
   23856 
   23857 
   23858 
   23859 
   23860 
   23861 
   23862 
   23863 
   23864           GL_GNULIB_DUP2=1
   23865 
   23866 
   23867 
   23868 
   23869 
   23870 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
   23871 
   23872 
   23873 
   23874 
   23875 
   23876 
   23877 
   23878 
   23879 
   23880 
   23881 
   23882 
   23883 
   23884           GL_GNULIB_ENVIRON=1
   23885 
   23886 
   23887 
   23888 
   23889 
   23890 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
   23891 
   23892 
   23893 
   23894 
   23895 
   23896 
   23897 
   23898 
   23899   case "$GL_GENERATE_ERRNO_H" in
   23900     false) ERRNO_H='' ;;
   23901     true)
   23902                   if test -z "$ERRNO_H"; then
   23903         ERRNO_H="${gl_source_base_prefix}errno.h"
   23904       fi
   23905       ;;
   23906     *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
   23907   esac
   23908 
   23909 
   23910      if $GL_GENERATE_ERRNO_H; then
   23911   GL_GENERATE_ERRNO_H_TRUE=
   23912   GL_GENERATE_ERRNO_H_FALSE='#'
   23913 else
   23914   GL_GENERATE_ERRNO_H_TRUE='#'
   23915   GL_GENERATE_ERRNO_H_FALSE=
   23916 fi
   23917 :
   23918     if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
   23919     GL_GENERATE_ERRNO_H_TRUE='#'
   23920     GL_GENERATE_ERRNO_H_FALSE='#'
   23921   fi
   23922 
   23923 
   23924 
   23925 
   23926 
   23927 
   23928 
   23929       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
   23930 $as_echo_n "checking for error_at_line... " >&6; }
   23931 if ${ac_cv_lib_error_at_line+:} false; then :
   23932   $as_echo_n "(cached) " >&6
   23933 else
   23934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23935 /* end confdefs.h.  */
   23936 #include <error.h>
   23937 int
   23938 main ()
   23939 {
   23940 error_at_line (0, 0, "", 0, "an error occurred");
   23941   ;
   23942   return 0;
   23943 }
   23944 _ACEOF
   23945 if ac_fn_c_try_link "$LINENO"; then :
   23946   ac_cv_lib_error_at_line=yes
   23947 else
   23948   ac_cv_lib_error_at_line=no
   23949 fi
   23950 rm -f core conftest.err conftest.$ac_objext \
   23951     conftest$ac_exeext conftest.$ac_ext
   23952 fi
   23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
   23954 $as_echo "$ac_cv_lib_error_at_line" >&6; }
   23955 
   23956 
   23957      if test "$ac_cv_lib_error_at_line" = no; then
   23958   GL_COND_OBJ_ERROR_TRUE=
   23959   GL_COND_OBJ_ERROR_FALSE='#'
   23960 else
   23961   GL_COND_OBJ_ERROR_TRUE='#'
   23962   GL_COND_OBJ_ERROR_FALSE=
   23963 fi
   23964 :
   23965     if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
   23966     GL_COND_OBJ_ERROR_TRUE='#'
   23967     GL_COND_OBJ_ERROR_FALSE='#'
   23968   fi
   23969 
   23970   if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
   23971 
   23972 
   23973 
   23974 
   23975 
   23976   :
   23977 
   23978 
   23979 fi
   23980 
   23981 
   23982 
   23983 
   23984 
   23985 
   23986 
   23987   if test $ac_cv_have_decl_fchdir = no; then
   23988     HAVE_DECL_FCHDIR=0
   23989   fi
   23990 
   23991 
   23992   if test $HAVE_FCHDIR = 0; then
   23993 
   23994 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
   23995 
   23996                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
   23997 $as_echo_n "checking whether open can visit directories... " >&6; }
   23998 if ${gl_cv_func_open_directory_works+:} false; then :
   23999   $as_echo_n "(cached) " >&6
   24000 else
   24001   if test "$cross_compiling" = yes; then :
   24002   case "$host_os" in
   24003                              # Guess yes on Linux systems.
   24004             linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
   24005                              # Guess yes on glibc systems.
   24006             *-gnu* | gnu*)   gl_cv_func_open_directory_works="guessing yes" ;;
   24007                              # Guess no on native Windows.
   24008             mingw*)          gl_cv_func_open_directory_works="guessing no" ;;
   24009                              # If we don't know, obey --enable-cross-guesses.
   24010             *)               gl_cv_func_open_directory_works="$gl_cross_guess_normal" ;;
   24011           esac
   24012 
   24013 else
   24014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24015 /* end confdefs.h.  */
   24016 #include <fcntl.h>
   24017 
   24018 
   24019 $gl_mda_defines
   24020 
   24021 int
   24022 main ()
   24023 {
   24024 return open(".", O_RDONLY) < 0;
   24025   ;
   24026   return 0;
   24027 }
   24028 _ACEOF
   24029 if ac_fn_c_try_run "$LINENO"; then :
   24030   gl_cv_func_open_directory_works=yes
   24031 else
   24032   gl_cv_func_open_directory_works=no
   24033 fi
   24034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24035   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24036 fi
   24037 
   24038 fi
   24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
   24040 $as_echo "$gl_cv_func_open_directory_works" >&6; }
   24041     case "$gl_cv_func_open_directory_works" in
   24042       *yes) ;;
   24043       *)
   24044 
   24045 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
   24046 
   24047         ;;
   24048     esac
   24049   fi
   24050 
   24051 
   24052      if test $HAVE_FCHDIR = 0; then
   24053   GL_COND_OBJ_FCHDIR_TRUE=
   24054   GL_COND_OBJ_FCHDIR_FALSE='#'
   24055 else
   24056   GL_COND_OBJ_FCHDIR_TRUE='#'
   24057   GL_COND_OBJ_FCHDIR_FALSE=
   24058 fi
   24059 :
   24060     if test -z "${GL_COND_OBJ_FCHDIR_TRUE}" && test -z "${GL_COND_OBJ_FCHDIR_FALSE}"; then
   24061     GL_COND_OBJ_FCHDIR_TRUE='#'
   24062     GL_COND_OBJ_FCHDIR_FALSE='#'
   24063   fi
   24064 
   24065   if test -z "$GL_COND_OBJ_FCHDIR_TRUE"; then :
   24066 
   24067     :
   24068 
   24069 fi
   24070 
   24071 
   24072 
   24073 
   24074 
   24075 
   24076 
   24077 
   24078 
   24079           GL_GNULIB_FCHDIR=1
   24080 
   24081 
   24082 
   24083 
   24084 
   24085 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
   24086 
   24087 
   24088 
   24089 
   24090 
   24091 
   24092 
   24093 
   24094   if test $ac_cv_func_fcntl = no; then
   24095 
   24096 
   24097 
   24098   if test $ac_cv_func_fcntl = no; then
   24099     HAVE_FCNTL=0
   24100   else
   24101     REPLACE_FCNTL=1
   24102   fi
   24103 
   24104   else
   24105             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
   24106 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
   24107 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
   24108   $as_echo_n "(cached) " >&6
   24109 else
   24110   if test "$cross_compiling" = yes; then :
   24111   case $host_os in
   24112             aix* | cygwin* | haiku*)
   24113                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
   24114             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
   24115           esac
   24116 else
   24117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24118 /* end confdefs.h.  */
   24119 #include <errno.h>
   24120               #include <fcntl.h>
   24121               #include <limits.h>
   24122               #include <sys/resource.h>
   24123               #include <unistd.h>
   24124 
   24125 
   24126 $gl_mda_defines
   24127 
   24128               #ifndef RLIM_SAVED_CUR
   24129               # define RLIM_SAVED_CUR RLIM_INFINITY
   24130               #endif
   24131               #ifndef RLIM_SAVED_MAX
   24132               # define RLIM_SAVED_MAX RLIM_INFINITY
   24133               #endif
   24134 
   24135 int
   24136 main ()
   24137 {
   24138 int result = 0;
   24139               int bad_fd = INT_MAX;
   24140               struct rlimit rlim;
   24141               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
   24142                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
   24143                   && rlim.rlim_cur != RLIM_INFINITY
   24144                   && rlim.rlim_cur != RLIM_SAVED_MAX
   24145                   && rlim.rlim_cur != RLIM_SAVED_CUR)
   24146                 bad_fd = rlim.rlim_cur;
   24147               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
   24148               if (errno != EINVAL) result |= 2;
   24149               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
   24150               if (errno != EINVAL) result |= 8;
   24151               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
   24152               {
   24153                 int fd;
   24154                 fd = open (".", O_RDONLY);
   24155                 if (fd == -1)
   24156                   result |= 16;
   24157                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
   24158                   result |= 32;
   24159 
   24160                 close (fd);
   24161               }
   24162               return result;
   24163   ;
   24164   return 0;
   24165 }
   24166 _ACEOF
   24167 if ac_fn_c_try_run "$LINENO"; then :
   24168   gl_cv_func_fcntl_f_dupfd_works=yes
   24169 else
   24170   gl_cv_func_fcntl_f_dupfd_works=no
   24171 fi
   24172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24173   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24174 fi
   24175 
   24176 fi
   24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
   24178 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
   24179     case $gl_cv_func_fcntl_f_dupfd_works in
   24180       *yes) ;;
   24181       *)
   24182 
   24183 
   24184   if test $ac_cv_func_fcntl = no; then
   24185     HAVE_FCNTL=0
   24186   else
   24187     REPLACE_FCNTL=1
   24188   fi
   24189 
   24190 
   24191 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
   24192  ;;
   24193     esac
   24194 
   24195             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
   24196 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
   24197 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
   24198   $as_echo_n "(cached) " >&6
   24199 else
   24200   if test "$cross_compiling" = yes; then :
   24201   case "$host_os" in
   24202                      # Guess no on NetBSD.
   24203             netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
   24204             *)       gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
   24205           esac
   24206 
   24207 else
   24208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24209 /* end confdefs.h.  */
   24210 #include <fcntl.h>
   24211               #include <unistd.h>
   24212               int main (int argc, char *argv[])
   24213               {
   24214                 if (argc == 1)
   24215                   /* parent process */
   24216                   {
   24217                     if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
   24218                       return 1;
   24219                     return execl ("./conftest", "./conftest", "child", NULL);
   24220                   }
   24221                 else
   24222                   /* child process */
   24223                   return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
   24224               }
   24225 
   24226 
   24227 _ACEOF
   24228 if ac_fn_c_try_run "$LINENO"; then :
   24229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24230 /* end confdefs.h.  */
   24231 
   24232 #ifdef __linux__
   24233 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
   24234    it to support the semantics on older kernels that failed with EINVAL.  */
   24235 choke me
   24236 #endif
   24237 
   24238 int
   24239 main ()
   24240 {
   24241 
   24242   ;
   24243   return 0;
   24244 }
   24245 _ACEOF
   24246 if ac_fn_c_try_compile "$LINENO"; then :
   24247   gl_cv_func_fcntl_f_dupfd_cloexec=yes
   24248 else
   24249   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
   24250 fi
   24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24252 
   24253 else
   24254   gl_cv_func_fcntl_f_dupfd_cloexec=no
   24255 fi
   24256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24257   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24258 fi
   24259 
   24260 
   24261 fi
   24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
   24263 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
   24264     case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
   24265       *yes) ;;
   24266       *)
   24267 
   24268 
   24269   if test $ac_cv_func_fcntl = no; then
   24270     HAVE_FCNTL=0
   24271   else
   24272     REPLACE_FCNTL=1
   24273   fi
   24274 
   24275                         ;;
   24276     esac
   24277   fi
   24278 
   24279 
   24280 
   24281 
   24282   if test $ac_cv_func_fchdir = no; then
   24283     HAVE_FCHDIR=0
   24284   fi
   24285 
   24286     if test $HAVE_FCHDIR = 0; then
   24287 
   24288 
   24289 
   24290   if test $ac_cv_func_fcntl = no; then
   24291     HAVE_FCNTL=0
   24292   else
   24293     REPLACE_FCNTL=1
   24294   fi
   24295 
   24296     fi
   24297 
   24298 
   24299 
   24300      if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
   24301   GL_COND_OBJ_FCNTL_TRUE=
   24302   GL_COND_OBJ_FCNTL_FALSE='#'
   24303 else
   24304   GL_COND_OBJ_FCNTL_TRUE='#'
   24305   GL_COND_OBJ_FCNTL_FALSE=
   24306 fi
   24307 :
   24308     if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
   24309     GL_COND_OBJ_FCNTL_TRUE='#'
   24310     GL_COND_OBJ_FCNTL_FALSE='#'
   24311   fi
   24312 
   24313 
   24314 
   24315 
   24316 
   24317 
   24318 
   24319 
   24320 
   24321 
   24322           GL_GNULIB_FCNTL=1
   24323 
   24324 
   24325 
   24326 
   24327 
   24328 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
   24329 
   24330 
   24331 
   24332 
   24333 
   24334 
   24335 
   24336 
   24337 
   24338 
   24339 
   24340 
   24341 cat >>confdefs.h <<_ACEOF
   24342 #define GNULIB_FD_SAFER_FLAG 1
   24343 _ACEOF
   24344 
   24345 
   24346 
   24347 
   24348 
   24349 
   24350 
   24351     ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
   24352 #include <dirent.h>
   24353 
   24354 "
   24355 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
   24356   ac_have_decl=1
   24357 else
   24358   ac_have_decl=0
   24359 fi
   24360 
   24361 cat >>confdefs.h <<_ACEOF
   24362 #define HAVE_DECL_FDOPENDIR $ac_have_decl
   24363 _ACEOF
   24364 if test $ac_have_decl = 1; then :
   24365 
   24366 else
   24367   HAVE_DECL_FDOPENDIR=0
   24368 fi
   24369 
   24370 
   24371   if test $ac_cv_func_fdopendir = no; then
   24372     HAVE_FDOPENDIR=0
   24373   else
   24374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
   24375 $as_echo_n "checking whether fdopendir works... " >&6; }
   24376 if ${gl_cv_func_fdopendir_works+:} false; then :
   24377   $as_echo_n "(cached) " >&6
   24378 else
   24379   if test "$cross_compiling" = yes; then :
   24380   case "$host_os" in
   24381                      # Guess yes on glibc systems.
   24382             *-gnu*)  gl_cv_func_fdopendir_works="guessing yes" ;;
   24383                      # Guess yes on musl systems.
   24384             *-musl*) gl_cv_func_fdopendir_works="guessing yes" ;;
   24385                      # If we don't know, obey --enable-cross-guesses.
   24386             *)       gl_cv_func_fdopendir_works="$gl_cross_guess_normal" ;;
   24387           esac
   24388 
   24389 else
   24390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24391 /* end confdefs.h.  */
   24392 
   24393 #include <dirent.h>
   24394 #include <fcntl.h>
   24395 #include <unistd.h>
   24396 
   24397 
   24398 $gl_mda_defines
   24399 
   24400 #if !HAVE_DECL_FDOPENDIR
   24401 extern
   24402 # ifdef __cplusplus
   24403 "C"
   24404 # endif
   24405 DIR *fdopendir (int);
   24406 #endif
   24407 
   24408 int
   24409 main ()
   24410 {
   24411 int result = 0;
   24412               int fd = open ("conftest.c", O_RDONLY);
   24413               if (fd < 0) result |= 1;
   24414               if (fdopendir (fd)) result |= 2;
   24415               if (close (fd)) result |= 4;
   24416               return result;
   24417 
   24418   ;
   24419   return 0;
   24420 }
   24421 _ACEOF
   24422 if ac_fn_c_try_run "$LINENO"; then :
   24423   gl_cv_func_fdopendir_works=yes
   24424 else
   24425   gl_cv_func_fdopendir_works=no
   24426 fi
   24427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24428   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24429 fi
   24430 
   24431 fi
   24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
   24433 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
   24434     case "$gl_cv_func_fdopendir_works" in
   24435       *yes) ;;
   24436       *)
   24437         REPLACE_FDOPENDIR=1
   24438         ;;
   24439     esac
   24440   fi
   24441 
   24442 
   24443      if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
   24444   GL_COND_OBJ_FDOPENDIR_TRUE=
   24445   GL_COND_OBJ_FDOPENDIR_FALSE='#'
   24446 else
   24447   GL_COND_OBJ_FDOPENDIR_TRUE='#'
   24448   GL_COND_OBJ_FDOPENDIR_FALSE=
   24449 fi
   24450 :
   24451     if test -z "${GL_COND_OBJ_FDOPENDIR_TRUE}" && test -z "${GL_COND_OBJ_FDOPENDIR_FALSE}"; then
   24452     GL_COND_OBJ_FDOPENDIR_TRUE='#'
   24453     GL_COND_OBJ_FDOPENDIR_FALSE='#'
   24454   fi
   24455 
   24456 
   24457 
   24458 
   24459 
   24460 
   24461 
   24462 
   24463 
   24464 
   24465           GL_GNULIB_FDOPENDIR=1
   24466 
   24467 
   24468 
   24469 
   24470 
   24471 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
   24472 
   24473 
   24474 
   24475 
   24476 
   24477 cat >>confdefs.h <<_ACEOF
   24478 #define GNULIB_FDOPENDIR 1
   24479 _ACEOF
   24480 
   24481 
   24482 
   24483 
   24484 
   24485             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffs" >&5
   24486 $as_echo_n "checking for ffs... " >&6; }
   24487 if ${gl_cv_func_ffs+:} false; then :
   24488   $as_echo_n "(cached) " >&6
   24489 else
   24490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24491 /* end confdefs.h.  */
   24492 #include <strings.h>
   24493             int x;
   24494 
   24495 int
   24496 main ()
   24497 {
   24498 int (*func) (int) = ffs;
   24499             return func (x);
   24500 
   24501   ;
   24502   return 0;
   24503 }
   24504 
   24505 _ACEOF
   24506 if ac_fn_c_try_link "$LINENO"; then :
   24507   gl_cv_func_ffs=yes
   24508 else
   24509   gl_cv_func_ffs=no
   24510 fi
   24511 rm -f core conftest.err conftest.$ac_objext \
   24512     conftest$ac_exeext conftest.$ac_ext
   24513 
   24514 fi
   24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ffs" >&5
   24516 $as_echo "$gl_cv_func_ffs" >&6; }
   24517   if test $gl_cv_func_ffs = no; then
   24518     HAVE_FFS=0
   24519   fi
   24520 
   24521 
   24522      if test $HAVE_FFS = 0; then
   24523   GL_COND_OBJ_FFS_TRUE=
   24524   GL_COND_OBJ_FFS_FALSE='#'
   24525 else
   24526   GL_COND_OBJ_FFS_TRUE='#'
   24527   GL_COND_OBJ_FFS_FALSE=
   24528 fi
   24529 :
   24530     if test -z "${GL_COND_OBJ_FFS_TRUE}" && test -z "${GL_COND_OBJ_FFS_FALSE}"; then
   24531     GL_COND_OBJ_FFS_TRUE='#'
   24532     GL_COND_OBJ_FFS_FALSE='#'
   24533   fi
   24534 
   24535 
   24536 
   24537 
   24538 
   24539 
   24540 
   24541 
   24542 
   24543 
   24544           GL_GNULIB_FFS=1
   24545 
   24546 
   24547 
   24548 
   24549 
   24550 
   24551 
   24552 
   24553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
   24554 $as_echo_n "checking for flexible array member... " >&6; }
   24555 if ${ac_cv_c_flexmember+:} false; then :
   24556   $as_echo_n "(cached) " >&6
   24557 else
   24558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24559 /* end confdefs.h.  */
   24560 #include <stdlib.h>
   24561             #include <stdio.h>
   24562             #include <stddef.h>
   24563             struct m { struct m *next, **list; char name[]; };
   24564             struct s { struct s *p; struct m *m; int n; double d[]; };
   24565 int
   24566 main ()
   24567 {
   24568 int m = getchar ();
   24569             size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
   24570             nbytes += sizeof (struct s) - 1;
   24571             nbytes -= nbytes % sizeof (struct s);
   24572             struct s *p = malloc (nbytes);
   24573             p->p = p;
   24574             p->m = NULL;
   24575             p->d[0] = 0.0;
   24576             return p->d != (double *) NULL;
   24577   ;
   24578   return 0;
   24579 }
   24580 _ACEOF
   24581 if ac_fn_c_try_compile "$LINENO"; then :
   24582   ac_cv_c_flexmember=yes
   24583 else
   24584   ac_cv_c_flexmember=no
   24585 fi
   24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24587 fi
   24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   24589 $as_echo "$ac_cv_c_flexmember" >&6; }
   24590   if test $ac_cv_c_flexmember = yes; then
   24591 
   24592 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   24593 
   24594   else
   24595     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   24596 
   24597   fi
   24598 
   24599 
   24600 
   24601 
   24602   GL_GENERATE_FLOAT_H=false
   24603   REPLACE_FLOAT_LDBL=0
   24604   case "$host_os" in
   24605     aix* | beos* | openbsd* | mirbsd* | irix*)
   24606       GL_GENERATE_FLOAT_H=true
   24607       ;;
   24608     freebsd* | dragonfly*)
   24609       case "$host_cpu" in
   24610         i[34567]86 )
   24611           GL_GENERATE_FLOAT_H=true
   24612           ;;
   24613         x86_64 )
   24614           # On x86_64 systems, the C compiler may still be generating
   24615           # 32-bit code.
   24616           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24617 /* end confdefs.h.  */
   24618 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
   24619                   int ok;
   24620                  #else
   24621                   error fail
   24622                  #endif
   24623 
   24624 _ACEOF
   24625 if ac_fn_c_try_compile "$LINENO"; then :
   24626 
   24627 else
   24628   GL_GENERATE_FLOAT_H=true
   24629 fi
   24630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24631           ;;
   24632       esac
   24633       ;;
   24634     linux*)
   24635       case "$host_cpu" in
   24636         powerpc*)
   24637           GL_GENERATE_FLOAT_H=true
   24638           ;;
   24639       esac
   24640       ;;
   24641   esac
   24642   case "$host_os" in
   24643     aix* | freebsd* | dragonfly* | linux*)
   24644       if $GL_GENERATE_FLOAT_H; then
   24645         REPLACE_FLOAT_LDBL=1
   24646       fi
   24647       ;;
   24648   esac
   24649 
   24650     REPLACE_ITOLD=0
   24651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
   24652 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
   24653 if ${gl_cv_func_itold_works+:} false; then :
   24654   $as_echo_n "(cached) " >&6
   24655 else
   24656 
   24657       if test "$cross_compiling" = yes; then :
   24658   case "$host" in
   24659            sparc*-*-linux*)
   24660              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24661 /* end confdefs.h.  */
   24662 #if defined __LP64__ || defined __arch64__
   24663                     int ok;
   24664                    #else
   24665                     error fail
   24666                    #endif
   24667 
   24668 _ACEOF
   24669 if ac_fn_c_try_compile "$LINENO"; then :
   24670   gl_cv_func_itold_works="guessing no"
   24671 else
   24672   gl_cv_func_itold_works="guessing yes"
   24673 fi
   24674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24675              ;;
   24676                    # Guess yes on native Windows.
   24677            mingw*) gl_cv_func_itold_works="guessing yes" ;;
   24678            *)      gl_cv_func_itold_works="guessing yes" ;;
   24679          esac
   24680 
   24681 else
   24682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24683 /* end confdefs.h.  */
   24684 
   24685 int i = -1;
   24686 volatile long double ld;
   24687 int main ()
   24688 {
   24689   ld += i * 1.0L;
   24690   if (ld > 0)
   24691     return 1;
   24692   return 0;
   24693 }
   24694 _ACEOF
   24695 if ac_fn_c_try_run "$LINENO"; then :
   24696   gl_cv_func_itold_works=yes
   24697 else
   24698   gl_cv_func_itold_works=no
   24699 fi
   24700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24701   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24702 fi
   24703 
   24704 
   24705 fi
   24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
   24707 $as_echo "$gl_cv_func_itold_works" >&6; }
   24708   case "$gl_cv_func_itold_works" in
   24709     *no)
   24710       REPLACE_ITOLD=1
   24711                   GL_GENERATE_FLOAT_H=true
   24712       ;;
   24713   esac
   24714 
   24715   if $GL_GENERATE_FLOAT_H; then
   24716 
   24717 
   24718 
   24719 
   24720 
   24721 
   24722 
   24723 
   24724      if test $gl_cv_have_include_next = yes; then
   24725        gl_cv_next_float_h='<'float.h'>'
   24726      else
   24727        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
   24728 $as_echo_n "checking absolute name of <float.h>... " >&6; }
   24729 if ${gl_cv_next_float_h+:} false; then :
   24730   $as_echo_n "(cached) " >&6
   24731 else
   24732 
   24733 
   24734 
   24735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24736 /* end confdefs.h.  */
   24737 #include <float.h>
   24738 _ACEOF
   24739                 case "$host_os" in
   24740     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   24741     *)    gl_absname_cpp="$ac_cpp" ;;
   24742   esac
   24743 
   24744   case "$host_os" in
   24745     mingw*)
   24746                                           gl_dirsep_regex='[/\\]'
   24747       ;;
   24748     *)
   24749       gl_dirsep_regex='\/'
   24750       ;;
   24751   esac
   24752       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   24753   gl_header_literal_regex=`echo 'float.h' \
   24754                            | sed -e "$gl_make_literal_regex_sed"`
   24755   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   24756       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   24757       s|^/[^/]|//&|
   24758       p
   24759       q
   24760     }'
   24761 
   24762         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   24763   sed -n "$gl_absolute_header_sed"`
   24764 
   24765           gl_header=$gl_cv_absolute_float_h
   24766           gl_cv_next_float_h='"'$gl_header'"'
   24767 
   24768 
   24769 fi
   24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
   24771 $as_echo "$gl_cv_next_float_h" >&6; }
   24772      fi
   24773      NEXT_FLOAT_H=$gl_cv_next_float_h
   24774 
   24775      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   24776        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   24777        gl_next_as_first_directive='<'float.h'>'
   24778      else
   24779        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   24780        gl_next_as_first_directive=$gl_cv_next_float_h
   24781      fi
   24782      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
   24783 
   24784 
   24785 
   24786 
   24787   fi
   24788 
   24789 
   24790 
   24791 
   24792 
   24793 
   24794   case "$GL_GENERATE_FLOAT_H" in
   24795     false) FLOAT_H='' ;;
   24796     true)
   24797                   if test -z "$FLOAT_H"; then
   24798         FLOAT_H="${gl_source_base_prefix}float.h"
   24799       fi
   24800       ;;
   24801     *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
   24802   esac
   24803 
   24804 
   24805      if $GL_GENERATE_FLOAT_H; then
   24806   GL_GENERATE_FLOAT_H_TRUE=
   24807   GL_GENERATE_FLOAT_H_FALSE='#'
   24808 else
   24809   GL_GENERATE_FLOAT_H_TRUE='#'
   24810   GL_GENERATE_FLOAT_H_FALSE=
   24811 fi
   24812 :
   24813     if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
   24814     GL_GENERATE_FLOAT_H_TRUE='#'
   24815     GL_GENERATE_FLOAT_H_FALSE='#'
   24816   fi
   24817 
   24818 
   24819 
   24820 
   24821 
   24822 
   24823 
   24824      if test $REPLACE_FLOAT_LDBL = 1; then
   24825   GL_COND_OBJ_FLOAT_TRUE=
   24826   GL_COND_OBJ_FLOAT_FALSE='#'
   24827 else
   24828   GL_COND_OBJ_FLOAT_TRUE='#'
   24829   GL_COND_OBJ_FLOAT_FALSE=
   24830 fi
   24831 :
   24832     if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
   24833     GL_COND_OBJ_FLOAT_TRUE='#'
   24834     GL_COND_OBJ_FLOAT_FALSE='#'
   24835   fi
   24836 
   24837 
   24838      if test $REPLACE_ITOLD = 1; then
   24839   GL_COND_OBJ_ITOLD_TRUE=
   24840   GL_COND_OBJ_ITOLD_FALSE='#'
   24841 else
   24842   GL_COND_OBJ_ITOLD_TRUE='#'
   24843   GL_COND_OBJ_ITOLD_FALSE=
   24844 fi
   24845 :
   24846     if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
   24847     GL_COND_OBJ_ITOLD_TRUE='#'
   24848     GL_COND_OBJ_ITOLD_FALSE='#'
   24849   fi
   24850 
   24851 
   24852 
   24853 
   24854 
   24855      gl_fnmatch_required_lowercase=`
   24856     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
   24857   `
   24858 
   24859   if test $ac_cv_func_fnmatch = no; then
   24860     HAVE_FNMATCH=0
   24861   else
   24862     gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
   24863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
   24864 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
   24865 if eval \${$gl_fnmatch_cache_var+:} false; then :
   24866   $as_echo_n "(cached) " >&6
   24867 else
   24868                                      if test $gl_fnmatch_required = GNU; then
   24869          gl_fnmatch_gnu_start=
   24870          gl_fnmatch_gnu_end=
   24871        else
   24872          gl_fnmatch_gnu_start='#if 0'
   24873          gl_fnmatch_gnu_end='#endif'
   24874        fi
   24875        if test "$cross_compiling" = yes; then :
   24876   case "$host_os" in
   24877                      # Guess yes on musl systems.
   24878             *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
   24879                      # Guess no otherwise, even on glibc systems.
   24880             *)       eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
   24881           esac
   24882 
   24883 else
   24884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24885 /* end confdefs.h.  */
   24886 #include <fnmatch.h>
   24887               static int
   24888               y (char const *pattern, char const *string, int flags)
   24889               {
   24890                 return fnmatch (pattern, string, flags) == 0;
   24891               }
   24892               static int
   24893               n (char const *pattern, char const *string, int flags)
   24894               {
   24895                 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
   24896               }
   24897 
   24898 int
   24899 main ()
   24900 {
   24901 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
   24902               char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
   24903               static char const A_1[] = { 'A' - 1, 0 };
   24904               static char const A01[] = { 'A' + 1, 0 };
   24905               static char const a_1[] = { 'a' - 1, 0 };
   24906               static char const a01[] = { 'a' + 1, 0 };
   24907               static char const bs_1[] = { '\\\\' - 1, 0 };
   24908               static char const bs01[] = { '\\\\' + 1, 0 };
   24909               int result = 0;
   24910               if (!n ("a*", "", 0))
   24911                 return 1;
   24912               if (!y ("a*", "abc", 0))
   24913                 return 1;
   24914               if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
   24915                 return 1;
   24916               if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
   24917                 return 2;
   24918               if (!y ("a\\\\bc", "abc", 0))
   24919                 return 3;
   24920               if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
   24921                 return 3;
   24922               if (!y ("*x", ".x", 0))
   24923                 return 4;
   24924               if (!n ("*x", ".x", FNM_PERIOD))
   24925                 return 4;
   24926               if (!y (Apat, "\\\\", 0))
   24927                 return 5;
   24928               if (!y (Apat, "A", 0))
   24929                 return 5;
   24930               if (!y (apat, "\\\\", 0))
   24931                 return 5;
   24932               if (!y (apat, "a", 0))
   24933                 return 5;
   24934               if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
   24935                 return 5;
   24936               if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
   24937                 return 5;
   24938               if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
   24939                 return 5;
   24940               if (!(y (apat, a01, 0) == ('a' < '\\\\')))
   24941                 return 5;
   24942               if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
   24943                 return 5;
   24944               if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
   24945                 return 5;
   24946               if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
   24947                 return 5;
   24948               if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
   24949                 return 5;
   24950               $gl_fnmatch_gnu_start
   24951               if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
   24952                 result |= 8;
   24953               if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
   24954                 result |= 16;
   24955               if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
   24956                 result |= 32;
   24957               if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
   24958                 result |= 64;
   24959               if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
   24960                 result |= 64;
   24961               if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
   24962                 result |= 64;
   24963               $gl_fnmatch_gnu_end
   24964               return result;
   24965 
   24966   ;
   24967   return 0;
   24968 }
   24969 _ACEOF
   24970 if ac_fn_c_try_run "$LINENO"; then :
   24971   eval "$gl_fnmatch_cache_var=yes"
   24972 else
   24973   eval "$gl_fnmatch_cache_var=no"
   24974 fi
   24975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24976   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24977 fi
   24978 
   24979 
   24980 fi
   24981 eval ac_res=\$$gl_fnmatch_cache_var
   24982 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   24983 $as_echo "$ac_res" >&6; }
   24984     eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
   24985     case "$gl_fnmatch_result" in
   24986       *yes) ;;
   24987       *) REPLACE_FNMATCH=1 ;;
   24988     esac
   24989   fi
   24990   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
   24991 
   24992 
   24993 
   24994 
   24995 
   24996 
   24997   GL_GENERATE_FNMATCH_H=true
   24998 
   24999   fi
   25000 
   25001 
   25002 
   25003 
   25004 
   25005   case "$GL_GENERATE_FNMATCH_H" in
   25006     false) FNMATCH_H='' ;;
   25007     true)
   25008                   if test -z "$FNMATCH_H"; then
   25009         FNMATCH_H="${gl_source_base_prefix}fnmatch.h"
   25010       fi
   25011       ;;
   25012     *) echo "*** GL_GENERATE_FNMATCH_H is not set correctly" 1>&2; exit 1 ;;
   25013   esac
   25014 
   25015 
   25016      if $GL_GENERATE_FNMATCH_H; then
   25017   GL_GENERATE_FNMATCH_H_TRUE=
   25018   GL_GENERATE_FNMATCH_H_FALSE='#'
   25019 else
   25020   GL_GENERATE_FNMATCH_H_TRUE='#'
   25021   GL_GENERATE_FNMATCH_H_FALSE=
   25022 fi
   25023 :
   25024     if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
   25025     GL_GENERATE_FNMATCH_H_TRUE='#'
   25026     GL_GENERATE_FNMATCH_H_FALSE='#'
   25027   fi
   25028 
   25029 
   25030 
   25031 
   25032 
   25033   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
   25034 
   25035 
   25036 
   25037 
   25038 
   25039 
   25040 
   25041 
   25042   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
   25043 
   25044 
   25045 
   25046 
   25047 
   25048   fi
   25049 
   25050 
   25051 
   25052 
   25053 
   25054 
   25055 
   25056 
   25057 
   25058           GL_GNULIB_FNMATCH=1
   25059 
   25060 
   25061 
   25062 
   25063 
   25064 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
   25065 
   25066 
   25067 
   25068 
   25069 
   25070 
   25071 
   25072 
   25073   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
   25074 
   25075 
   25076 
   25077 
   25078 
   25079 
   25080 
   25081 
   25082   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
   25083 
   25084 
   25085 
   25086 
   25087 
   25088   fi
   25089 
   25090 
   25091 cat >>confdefs.h <<_ACEOF
   25092 #define GNULIB_FNMATCH_GNU 1
   25093 _ACEOF
   25094 
   25095 
   25096 
   25097 
   25098 
   25099 
   25100 
   25101 
   25102 
   25103 
   25104 
   25105 
   25106   case "$GL_GENERATE_FNMATCH_H" in
   25107     false) FNMATCH_H='' ;;
   25108     true)
   25109                   if test -z "$FNMATCH_H"; then
   25110         FNMATCH_H="${gl_source_base_prefix}fnmatch.h"
   25111       fi
   25112       ;;
   25113     *) echo "*** GL_GENERATE_FNMATCH_H is not set correctly" 1>&2; exit 1 ;;
   25114   esac
   25115 
   25116 
   25117      if $GL_GENERATE_FNMATCH_H; then
   25118   GL_GENERATE_FNMATCH_H_TRUE=
   25119   GL_GENERATE_FNMATCH_H_FALSE='#'
   25120 else
   25121   GL_GENERATE_FNMATCH_H_TRUE='#'
   25122   GL_GENERATE_FNMATCH_H_FALSE=
   25123 fi
   25124 :
   25125     if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
   25126     GL_GENERATE_FNMATCH_H_TRUE='#'
   25127     GL_GENERATE_FNMATCH_H_FALSE='#'
   25128   fi
   25129 
   25130 
   25131 
   25132 
   25133 
   25134 
   25135 
   25136 
   25137 
   25138                           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
   25139 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
   25140 if ${gl_cv_func_free_preserves_errno+:} false; then :
   25141   $as_echo_n "(cached) " >&6
   25142 else
   25143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25144 /* end confdefs.h.  */
   25145 #include <stdlib.h>
   25146 
   25147 int
   25148 main ()
   25149 {
   25150 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
   25151             #elif defined __OpenBSD__
   25152             #elif defined __sun
   25153             #else
   25154               #error "'free' is not known to preserve errno"
   25155             #endif
   25156 
   25157   ;
   25158   return 0;
   25159 }
   25160 _ACEOF
   25161 if ac_fn_c_try_compile "$LINENO"; then :
   25162   gl_cv_func_free_preserves_errno=yes
   25163 else
   25164   gl_cv_func_free_preserves_errno=no
   25165 fi
   25166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25167 
   25168 fi
   25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
   25170 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
   25171 
   25172   case $gl_cv_func_free_preserves_errno in
   25173    *yes)
   25174 
   25175 $as_echo "#define HAVE_FREE_POSIX 1" >>confdefs.h
   25176 
   25177     ;;
   25178    *) REPLACE_FREE=1 ;;
   25179   esac
   25180 
   25181 
   25182      if test $REPLACE_FREE = 1; then
   25183   GL_COND_OBJ_FREE_TRUE=
   25184   GL_COND_OBJ_FREE_FALSE='#'
   25185 else
   25186   GL_COND_OBJ_FREE_TRUE='#'
   25187   GL_COND_OBJ_FREE_FALSE=
   25188 fi
   25189 :
   25190     if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
   25191     GL_COND_OBJ_FREE_TRUE='#'
   25192     GL_COND_OBJ_FREE_FALSE='#'
   25193   fi
   25194 
   25195   if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
   25196 
   25197     :
   25198 
   25199 fi
   25200 
   25201 
   25202 
   25203 
   25204 
   25205 
   25206 
   25207 
   25208 
   25209           GL_GNULIB_FREE_POSIX=1
   25210 
   25211 
   25212 
   25213 
   25214 
   25215 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
   25216 
   25217 
   25218 
   25219 
   25220   if test $gl_func_frexp != yes; then
   25221 
   25222 
   25223 
   25224 
   25225 
   25226 
   25227 
   25228 
   25229   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
   25230 
   25231   fi
   25232 
   25233 
   25234 
   25235 
   25236 
   25237 
   25238 
   25239 
   25240 
   25241           GL_GNULIB_FREXP=1
   25242 
   25243 
   25244 
   25245 
   25246 
   25247 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
   25248 
   25249 
   25250 
   25251 
   25252   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
   25253 
   25254 
   25255 
   25256 
   25257 
   25258 
   25259 
   25260 
   25261   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
   25262 
   25263   fi
   25264 
   25265 
   25266 
   25267 
   25268 
   25269 
   25270 
   25271 
   25272 
   25273           GL_GNULIB_FREXPL=1
   25274 
   25275 
   25276 
   25277 
   25278 
   25279 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
   25280 
   25281 
   25282 
   25283 
   25284 
   25285 
   25286 
   25287   case "$host_os" in
   25288     mingw* | solaris*)
   25289                         REPLACE_FSTAT=1
   25290       ;;
   25291   esac
   25292 
   25293 
   25294 
   25295 
   25296 
   25297   if test $ac_cv_func_fchdir = no; then
   25298     HAVE_FCHDIR=0
   25299   fi
   25300 
   25301     if test $HAVE_FCHDIR = 0; then
   25302       case "$gl_cv_func_open_directory_works" in
   25303         *yes) ;;
   25304         *)
   25305           REPLACE_FSTAT=1
   25306           ;;
   25307       esac
   25308     fi
   25309 
   25310 
   25311 
   25312      if test $REPLACE_FSTAT = 1; then
   25313   GL_COND_OBJ_FSTAT_TRUE=
   25314   GL_COND_OBJ_FSTAT_FALSE='#'
   25315 else
   25316   GL_COND_OBJ_FSTAT_TRUE='#'
   25317   GL_COND_OBJ_FSTAT_FALSE=
   25318 fi
   25319 :
   25320     if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
   25321     GL_COND_OBJ_FSTAT_TRUE='#'
   25322     GL_COND_OBJ_FSTAT_FALSE='#'
   25323   fi
   25324 
   25325   if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
   25326 
   25327     case "$host_os" in
   25328       mingw*)
   25329 
   25330 
   25331 
   25332 
   25333 
   25334 
   25335 
   25336 
   25337   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
   25338 
   25339         ;;
   25340     esac
   25341 
   25342 
   25343 
   25344   :
   25345 
   25346 
   25347 fi
   25348 
   25349 
   25350 
   25351 
   25352 
   25353 
   25354 
   25355 
   25356 
   25357           GL_GNULIB_FSTAT=1
   25358 
   25359 
   25360 
   25361 
   25362 
   25363 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
   25364 
   25365 
   25366 
   25367 
   25368 
   25369 
   25370 
   25371 
   25372 
   25373 
   25374   if test $ac_cv_func_fstatat = no; then
   25375     HAVE_FSTATAT=0
   25376   else
   25377             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
   25378 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
   25379 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
   25380   $as_echo_n "(cached) " >&6
   25381 else
   25382   if test "$cross_compiling" = yes; then :
   25383   case "$host_os" in
   25384             aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
   25385             *)    gl_cv_func_fstatat_zero_flag="guessing yes";;
   25386           esac
   25387 
   25388 else
   25389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25390 /* end confdefs.h.  */
   25391 
   25392               #include <fcntl.h>
   25393               #include <sys/stat.h>
   25394               int
   25395               main (void)
   25396               {
   25397                 struct stat a;
   25398                 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
   25399               }
   25400 
   25401 _ACEOF
   25402 if ac_fn_c_try_run "$LINENO"; then :
   25403   gl_cv_func_fstatat_zero_flag=yes
   25404 else
   25405   gl_cv_func_fstatat_zero_flag=no
   25406 fi
   25407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25408   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25409 fi
   25410 
   25411 
   25412 fi
   25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
   25414 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
   25415 
   25416     case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
   25417     *yes+*yes) ;;
   25418     *) REPLACE_FSTATAT=1 ;;
   25419     esac
   25420 
   25421     case $host_os in
   25422       solaris*)
   25423         REPLACE_FSTATAT=1 ;;
   25424     esac
   25425 
   25426     case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
   25427       1,*yes)
   25428 
   25429 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
   25430 
   25431          ;;
   25432     esac
   25433   fi
   25434 
   25435 
   25436      if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
   25437   GL_COND_OBJ_FSTATAT_TRUE=
   25438   GL_COND_OBJ_FSTATAT_FALSE='#'
   25439 else
   25440   GL_COND_OBJ_FSTATAT_TRUE='#'
   25441   GL_COND_OBJ_FSTATAT_FALSE=
   25442 fi
   25443 :
   25444     if test -z "${GL_COND_OBJ_FSTATAT_TRUE}" && test -z "${GL_COND_OBJ_FSTATAT_FALSE}"; then
   25445     GL_COND_OBJ_FSTATAT_TRUE='#'
   25446     GL_COND_OBJ_FSTATAT_FALSE='#'
   25447   fi
   25448 
   25449 
   25450 
   25451 
   25452 
   25453 
   25454 
   25455 
   25456 
   25457 
   25458           GL_GNULIB_FSTATAT=1
   25459 
   25460 
   25461 
   25462 
   25463 
   25464 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
   25465 
   25466 
   25467 
   25468 
   25469 
   25470 
   25471 
   25472 
   25473   gl_abort_bug=no
   25474   case "$host_os" in
   25475     mingw*)
   25476       gl_cv_func_getcwd_path_max=yes
   25477       ;;
   25478     *)
   25479 
   25480 
   25481 
   25482 
   25483 
   25484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
   25485 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
   25486 if ${gl_cv_func_getcwd_path_max+:} false; then :
   25487   $as_echo_n "(cached) " >&6
   25488 else
   25489   # Arrange for deletion of the temporary directory this test creates.
   25490      ac_clean_files="$ac_clean_files confdir3"
   25491           if test "$cross_compiling" = yes; then :
   25492   # Cross-compilation guesses:
   25493         case "$host_os" in
   25494           aix*) # On AIX, it has the AIX bug.
   25495             gl_cv_func_getcwd_path_max='guessing no, it has the AIX bug' ;;
   25496           gnu*) # On Hurd, it is 'yes'.
   25497             gl_cv_func_getcwd_path_max='guessing yes' ;;
   25498           linux* | kfreebsd*)
   25499             # On older Linux+glibc it's 'no, but it is partly working',
   25500             # on newer Linux+glibc it's 'yes'.
   25501             # On Linux+musl libc, it's 'no, but it is partly working'.
   25502             # On kFreeBSD+glibc, it's 'no, but it is partly working'.
   25503             gl_cv_func_getcwd_path_max='guessing no, but it is partly working' ;;
   25504           *) # If we don't know, obey --enable-cross-guesses.
   25505             gl_cv_func_getcwd_path_max="$gl_cross_guess_normal" ;;
   25506         esac
   25507 
   25508 else
   25509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25510 /* end confdefs.h.  */
   25511 
   25512 #include <errno.h>
   25513 #include <stdlib.h>
   25514 #if HAVE_UNISTD_H
   25515 # include <unistd.h>
   25516 #else
   25517 # include <direct.h>
   25518 #endif
   25519 #include <string.h>
   25520 #include <limits.h>
   25521 #include <sys/stat.h>
   25522 #include <sys/types.h>
   25523 #include <fcntl.h>
   25524 
   25525 
   25526 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
   25527 #if HAVE_UNISTD_H
   25528 # include <unistd.h>
   25529 #endif
   25530 #include <limits.h>
   25531 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
   25532 # include <sys/param.h>
   25533 #endif
   25534 #if !defined PATH_MAX && defined MAXPATHLEN
   25535 # define PATH_MAX MAXPATHLEN
   25536 #endif
   25537 #ifdef __hpux
   25538 # undef PATH_MAX
   25539 # define PATH_MAX 1024
   25540 #endif
   25541 #if defined _WIN32 && ! defined __CYGWIN__
   25542 # undef PATH_MAX
   25543 # define PATH_MAX 260
   25544 #endif
   25545 
   25546 
   25547 #ifndef AT_FDCWD
   25548 # define AT_FDCWD 0
   25549 #endif
   25550 #ifdef ENAMETOOLONG
   25551 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
   25552 #else
   25553 # define is_ENAMETOOLONG(x) 0
   25554 #endif
   25555 
   25556 /* Use the getcwd function, not any macro.  */
   25557 #undef getcwd
   25558 
   25559 
   25560 
   25561 $gl_mda_defines
   25562 
   25563 
   25564 #ifndef S_IRWXU
   25565 # define S_IRWXU 0700
   25566 #endif
   25567 
   25568 /* The length of this name must be 8.  */
   25569 #define DIR_NAME "confdir3"
   25570 #define DIR_NAME_LEN 8
   25571 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
   25572 
   25573 /* The length of "../".  */
   25574 #define DOTDOTSLASH_LEN 3
   25575 
   25576 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
   25577 #define BUF_SLOP 20
   25578 
   25579 int
   25580 main ()
   25581 {
   25582 #ifndef PATH_MAX
   25583   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
   25584      at least not on a local file system.  And if we were to start worrying
   25585      about remote file systems, we'd have to enable the wrapper function
   25586      all of the time, just to be safe.  That's not worth the cost.  */
   25587   exit (0);
   25588 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
   25589         - DIR_NAME_SIZE - BUF_SLOP) \
   25590        <= PATH_MAX)
   25591   /* FIXME: Assuming there's a system for which this is true,
   25592      this should be done in a compile test.  */
   25593   exit (0);
   25594 #else
   25595   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
   25596            + DIR_NAME_SIZE + BUF_SLOP];
   25597   char *cwd = getcwd (buf, PATH_MAX);
   25598   size_t initial_cwd_len;
   25599   size_t cwd_len;
   25600   int fail = 0;
   25601   size_t n_chdirs = 0;
   25602 
   25603   if (cwd == NULL)
   25604     exit (10);
   25605 
   25606   cwd_len = initial_cwd_len = strlen (cwd);
   25607 
   25608   while (1)
   25609     {
   25610       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
   25611       char *c = NULL;
   25612 
   25613       cwd_len += DIR_NAME_SIZE;
   25614       /* If mkdir or chdir fails, it could be that this system cannot create
   25615          any file with an absolute name longer than PATH_MAX, such as cygwin.
   25616          If so, leave fail as 0, because the current working directory can't
   25617          be too long for getcwd if it can't even be created.  On Linux with
   25618          the 9p file system, mkdir fails with error EINVAL when cwd_len gets
   25619          too long; ignore this failure because the getcwd() system call
   25620          produces good results whereas the gnulib substitute calls getdents64
   25621          which fails with error EPROTO.
   25622          For other errors, be pessimistic and consider that as a failure,
   25623          too.  */
   25624       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
   25625         {
   25626           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
   25627             #ifdef __linux__
   25628             if (! (errno == EINVAL))
   25629             #endif
   25630               fail = 20;
   25631           break;
   25632         }
   25633 
   25634       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
   25635         {
   25636           struct stat sb;
   25637 
   25638           c = getcwd (buf, PATH_MAX);
   25639           if (!c && errno == ENOENT)
   25640             {
   25641               fail = 11;
   25642               break;
   25643             }
   25644           if (c)
   25645             {
   25646               fail = 31;
   25647               break;
   25648             }
   25649           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
   25650             {
   25651               fail = 21;
   25652               break;
   25653             }
   25654 
   25655           /* Our replacement needs to be able to stat() long ../../paths,
   25656              so generate a path larger than PATH_MAX to check,
   25657              avoiding the replacement if we can't stat().  */
   25658           c = getcwd (buf, cwd_len + 1);
   25659           if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
   25660             {
   25661               fail = 32;
   25662               break;
   25663             }
   25664         }
   25665 
   25666       if (dotdot_max <= cwd_len - initial_cwd_len)
   25667         {
   25668           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
   25669             break;
   25670           c = getcwd (buf, cwd_len + 1);
   25671           if (!c)
   25672             {
   25673               if (! (errno == ERANGE || errno == ENOENT
   25674                      || is_ENAMETOOLONG (errno)))
   25675                 {
   25676                   fail = 22;
   25677                   break;
   25678                 }
   25679               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
   25680                 {
   25681                   fail = 12;
   25682                   break;
   25683                 }
   25684             }
   25685         }
   25686 
   25687       if (c && strlen (c) != cwd_len)
   25688         {
   25689           fail = 23;
   25690           break;
   25691         }
   25692       ++n_chdirs;
   25693     }
   25694 
   25695   /* Leaving behind such a deep directory is not polite.
   25696      So clean up here, right away, even though the driving
   25697      shell script would also clean up.  */
   25698   {
   25699     size_t i;
   25700 
   25701     /* Try rmdir first, in case the chdir failed.  */
   25702     rmdir (DIR_NAME);
   25703     for (i = 0; i <= n_chdirs; i++)
   25704       {
   25705         if (chdir ("..") < 0)
   25706           break;
   25707         if (rmdir (DIR_NAME) != 0)
   25708           break;
   25709       }
   25710   }
   25711 
   25712   exit (fail);
   25713 #endif
   25714 }
   25715 
   25716 _ACEOF
   25717 if ac_fn_c_try_run "$LINENO"; then :
   25718   gl_cv_func_getcwd_path_max=yes
   25719 else
   25720   case $? in
   25721         10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
   25722         31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
   25723         32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
   25724         *) gl_cv_func_getcwd_path_max=no;;
   25725         esac
   25726 fi
   25727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25728   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25729 fi
   25730 
   25731 
   25732 fi
   25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
   25734 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
   25735 
   25736       case "$gl_cv_func_getcwd_null" in
   25737         *yes)
   25738 
   25739 
   25740 
   25741 
   25742 
   25743 
   25744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
   25745 $as_echo_n "checking for getpagesize... " >&6; }
   25746 if ${gl_cv_func_getpagesize+:} false; then :
   25747   $as_echo_n "(cached) " >&6
   25748 else
   25749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25750 /* end confdefs.h.  */
   25751 #include <unistd.h>
   25752 int
   25753 main ()
   25754 {
   25755 return getpagesize();
   25756   ;
   25757   return 0;
   25758 }
   25759 
   25760 _ACEOF
   25761 if ac_fn_c_try_link "$LINENO"; then :
   25762   gl_cv_func_getpagesize=yes
   25763 else
   25764   gl_cv_func_getpagesize=no
   25765 fi
   25766 rm -f core conftest.err conftest.$ac_objext \
   25767     conftest$ac_exeext conftest.$ac_ext
   25768 
   25769 fi
   25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
   25771 $as_echo "$gl_cv_func_getpagesize" >&6; }
   25772 
   25773   if test $gl_cv_func_getpagesize = yes; then
   25774 
   25775 cat >>confdefs.h <<_ACEOF
   25776 #define HAVE_GETPAGESIZE 1
   25777 _ACEOF
   25778 
   25779   fi
   25780 
   25781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
   25782 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
   25783 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false; then :
   25784   $as_echo_n "(cached) " >&6
   25785 else
   25786   # Remove any remnants of a previous test.
   25787      rm -rf confdir-14B---
   25788      # Arrange for deletion of the temporary directory this test creates.
   25789      ac_clean_files="$ac_clean_files confdir-14B---"
   25790           if test "$cross_compiling" = yes; then :
   25791   case "$host_os" in
   25792              # Guess no otherwise, even on glibc systems and musl systems.
   25793           *) gl_cv_func_getcwd_succeeds_beyond_4k="guessing no"
   25794         esac
   25795 
   25796 else
   25797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25798 /* end confdefs.h.  */
   25799 
   25800 #include <errno.h>
   25801 #include <stdlib.h>
   25802 #if HAVE_UNISTD_H
   25803 # include <unistd.h>
   25804 #else /* on Windows with MSVC */
   25805 # include <direct.h>
   25806 #endif
   25807 #include <string.h>
   25808 #include <sys/stat.h>
   25809 
   25810 
   25811 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
   25812 #if HAVE_UNISTD_H
   25813 # include <unistd.h>
   25814 #endif
   25815 #include <limits.h>
   25816 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
   25817 # include <sys/param.h>
   25818 #endif
   25819 #if !defined PATH_MAX && defined MAXPATHLEN
   25820 # define PATH_MAX MAXPATHLEN
   25821 #endif
   25822 #ifdef __hpux
   25823 # undef PATH_MAX
   25824 # define PATH_MAX 1024
   25825 #endif
   25826 #if defined _WIN32 && ! defined __CYGWIN__
   25827 # undef PATH_MAX
   25828 # define PATH_MAX 260
   25829 #endif
   25830 
   25831 
   25832 
   25833 $gl_mda_defines
   25834 
   25835 
   25836 #ifndef S_IRWXU
   25837 # define S_IRWXU 0700
   25838 #endif
   25839 
   25840 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
   25841 #if ! HAVE_GETPAGESIZE
   25842 # define getpagesize() 0
   25843 #endif
   25844 
   25845 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
   25846    the 16kB pagesize on ia64 linux.  Those conditions make the code below
   25847    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
   25848 #define TARGET_LEN (5 * 1024)
   25849 
   25850 int
   25851 main ()
   25852 {
   25853   char *cwd;
   25854   size_t initial_cwd_len;
   25855   int fail = 0;
   25856 
   25857   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
   25858      this relatively expensive and invasive test if that's not true.  */
   25859 #ifdef PATH_MAX
   25860   int bug_possible = PATH_MAX < getpagesize ();
   25861 #else
   25862   int bug_possible = 0;
   25863 #endif
   25864   if (! bug_possible)
   25865     return 0;
   25866 
   25867   cwd = getcwd (NULL, 0);
   25868   if (cwd == NULL)
   25869     return 2;
   25870 
   25871   initial_cwd_len = strlen (cwd);
   25872   free (cwd);
   25873 
   25874   if (1)
   25875     {
   25876       static char const dir_name[] = "confdir-14B---";
   25877       size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
   25878                               / sizeof dir_name);
   25879       size_t d;
   25880       for (d = 0; d < desired_depth; d++)
   25881         {
   25882           if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
   25883             {
   25884               if (! (errno == ERANGE || errno == ENAMETOOLONG
   25885                      || errno == ENOENT))
   25886                 fail = 3; /* Unable to construct deep hierarchy.  */
   25887               break;
   25888             }
   25889         }
   25890 
   25891       /* If libc has the bug in question, this invocation of getcwd
   25892          results in a failed assertion.  */
   25893       cwd = getcwd (NULL, 0);
   25894       if (cwd == NULL)
   25895         fail = 4; /* getcwd didn't assert, but it failed for a long name
   25896                      where the answer could have been learned.  */
   25897       free (cwd);
   25898 
   25899       /* Call rmdir first, in case the above chdir failed.  */
   25900       rmdir (dir_name);
   25901       while (0 < d--)
   25902         {
   25903           if (chdir ("..") < 0)
   25904             {
   25905               fail = 5;
   25906               break;
   25907             }
   25908           rmdir (dir_name);
   25909         }
   25910     }
   25911 
   25912   return fail;
   25913 }
   25914 
   25915 _ACEOF
   25916 if ac_fn_c_try_run "$LINENO"; then :
   25917   gl_cv_func_getcwd_succeeds_beyond_4k=yes
   25918 else
   25919                                                           ret=$?
   25920         if test $ret -ge 128 || test $ret = 4; then
   25921           gl_cv_func_getcwd_succeeds_beyond_4k=no
   25922         else
   25923           gl_cv_func_getcwd_succeeds_beyond_4k=yes
   25924         fi
   25925 
   25926 fi
   25927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   25928   conftest.$ac_objext conftest.beam conftest.$ac_ext
   25929 fi
   25930 
   25931 
   25932 fi
   25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
   25934 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
   25935   case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
   25936     *no)
   25937       gl_abort_bug=yes
   25938       ;;
   25939     *)
   25940 
   25941       ;;
   25942   esac
   25943 
   25944           ;;
   25945       esac
   25946       ;;
   25947   esac
   25948       case "$gl_cv_func_getcwd_path_max" in
   25949     *"no" | *"no, it has the AIX bug") ;;
   25950     *)
   25951 
   25952 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
   25953 
   25954       ;;
   25955   esac
   25956   case "$gl_cv_func_getcwd_path_max" in
   25957     *"no, but it is partly working")
   25958 
   25959 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
   25960 
   25961       ;;
   25962     *"yes, but with shorter paths")
   25963 
   25964 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
   25965 
   25966       ;;
   25967   esac
   25968 
   25969   if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
   25970      || test $gl_cv_func_getcwd_posix_signature != yes \
   25971      || { case "$gl_cv_func_getcwd_path_max" in *yes*) false;; *) true;; esac; } \
   25972      || test $gl_abort_bug = yes; then
   25973     REPLACE_GETCWD=1
   25974   fi
   25975 
   25976 
   25977      if test $REPLACE_GETCWD = 1; then
   25978   GL_COND_OBJ_GETCWD_TRUE=
   25979   GL_COND_OBJ_GETCWD_FALSE='#'
   25980 else
   25981   GL_COND_OBJ_GETCWD_TRUE='#'
   25982   GL_COND_OBJ_GETCWD_FALSE=
   25983 fi
   25984 :
   25985     if test -z "${GL_COND_OBJ_GETCWD_TRUE}" && test -z "${GL_COND_OBJ_GETCWD_FALSE}"; then
   25986     GL_COND_OBJ_GETCWD_TRUE='#'
   25987     GL_COND_OBJ_GETCWD_FALSE='#'
   25988   fi
   25989 
   25990   if test -z "$GL_COND_OBJ_GETCWD_TRUE"; then :
   25991 
   25992 
   25993 
   25994 
   25995   :
   25996 
   25997 
   25998 fi
   25999 
   26000 
   26001 cat >>confdefs.h <<_ACEOF
   26002 #define GNULIB_GETCWD 1
   26003 _ACEOF
   26004 
   26005 
   26006 
   26007 
   26008 
   26009 
   26010 
   26011 
   26012 
   26013 
   26014 
   26015           GL_GNULIB_GETCWD=1
   26016 
   26017 
   26018 
   26019 
   26020 
   26021 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
   26022 
   26023 
   26024 
   26025 
   26026 
   26027 
   26028 
   26029 
   26030   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
   26031   *yes,yes) ;;
   26032   *)
   26033         REPLACE_GETCWD=1
   26034     ;;
   26035   esac
   26036 
   26037 
   26038      if test $REPLACE_GETCWD = 1; then
   26039   GL_COND_OBJ_GETCWD_LGPL_TRUE=
   26040   GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
   26041 else
   26042   GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
   26043   GL_COND_OBJ_GETCWD_LGPL_FALSE=
   26044 fi
   26045 :
   26046     if test -z "${GL_COND_OBJ_GETCWD_LGPL_TRUE}" && test -z "${GL_COND_OBJ_GETCWD_LGPL_FALSE}"; then
   26047     GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
   26048     GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
   26049   fi
   26050 
   26051 
   26052 
   26053 
   26054 
   26055 
   26056 
   26057 
   26058 
   26059 
   26060           GL_GNULIB_GETCWD=1
   26061 
   26062 
   26063 
   26064 
   26065 
   26066 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
   26067 
   26068 
   26069 
   26070 
   26071 
   26072 
   26073 
   26074 
   26075 
   26076 
   26077 
   26078   if test $ac_cv_func_getdelim = yes; then
   26079     HAVE_GETDELIM=1
   26080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
   26081 $as_echo_n "checking for working getdelim function... " >&6; }
   26082 if ${gl_cv_func_working_getdelim+:} false; then :
   26083   $as_echo_n "(cached) " >&6
   26084 else
   26085   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
   26086        if test "$cross_compiling" = yes; then :
   26087                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26088 /* end confdefs.h.  */
   26089 
   26090 #include <features.h>
   26091 #ifdef __GNU_LIBRARY__
   26092  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   26093   Lucky GNU user
   26094  #endif
   26095 #endif
   26096 
   26097 _ACEOF
   26098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   26099   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
   26100   gl_cv_func_working_getdelim="guessing yes"
   26101 else
   26102   case "$host_os" in
   26103                *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
   26104                *)       gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
   26105              esac
   26106 
   26107 fi
   26108 rm -f conftest*
   26109 
   26110 
   26111 else
   26112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26113 /* end confdefs.h.  */
   26114 
   26115 #    include <stdio.h>
   26116 #    include <stdlib.h>
   26117 #    include <string.h>
   26118     int main ()
   26119     {
   26120       FILE *in = fopen ("./conftest.data", "r");
   26121       if (!in)
   26122         return 1;
   26123       {
   26124         /* Test result for a NULL buffer and a zero size.
   26125            Based on a test program from Karl Heuer.  */
   26126         char *line = NULL;
   26127         size_t siz = 0;
   26128         int len = getdelim (&line, &siz, '\n', in);
   26129         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
   26130           { free (line); fclose (in); return 2; }
   26131         free (line);
   26132       }
   26133       {
   26134         /* Test result for a NULL buffer and a non-zero size.
   26135            This crashes on FreeBSD 8.0.  */
   26136         char *line = NULL;
   26137         size_t siz = (size_t)(~0) / 4;
   26138         if (getdelim (&line, &siz, '\n', in) == -1)
   26139           { fclose (in); return 3; }
   26140         free (line);
   26141       }
   26142       fclose (in);
   26143       return 0;
   26144     }
   26145 
   26146 _ACEOF
   26147 if ac_fn_c_try_run "$LINENO"; then :
   26148   gl_cv_func_working_getdelim=yes
   26149 else
   26150   gl_cv_func_working_getdelim=no
   26151 fi
   26152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26153   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26154 fi
   26155 
   26156 
   26157 fi
   26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
   26159 $as_echo "$gl_cv_func_working_getdelim" >&6; }
   26160     case "$gl_cv_func_working_getdelim" in
   26161       *yes) ;;
   26162       *) REPLACE_GETDELIM=1 ;;
   26163     esac
   26164   else
   26165     HAVE_GETDELIM=0
   26166   fi
   26167 
   26168   if test $ac_cv_have_decl_getdelim = no; then
   26169     HAVE_DECL_GETDELIM=0
   26170   fi
   26171 
   26172 
   26173      if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
   26174   GL_COND_OBJ_GETDELIM_TRUE=
   26175   GL_COND_OBJ_GETDELIM_FALSE='#'
   26176 else
   26177   GL_COND_OBJ_GETDELIM_TRUE='#'
   26178   GL_COND_OBJ_GETDELIM_FALSE=
   26179 fi
   26180 :
   26181     if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then
   26182     GL_COND_OBJ_GETDELIM_TRUE='#'
   26183     GL_COND_OBJ_GETDELIM_FALSE='#'
   26184   fi
   26185 
   26186   if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then :
   26187 
   26188 
   26189   for ac_func in flockfile funlockfile
   26190 do :
   26191   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   26193 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   26194   cat >>confdefs.h <<_ACEOF
   26195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26196 _ACEOF
   26197 
   26198 fi
   26199 done
   26200 
   26201   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
   26202 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
   26203   ac_have_decl=1
   26204 else
   26205   ac_have_decl=0
   26206 fi
   26207 
   26208 cat >>confdefs.h <<_ACEOF
   26209 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
   26210 _ACEOF
   26211 
   26212 
   26213 
   26214 fi
   26215 
   26216 
   26217 
   26218 
   26219 
   26220 
   26221 
   26222 
   26223 
   26224           GL_GNULIB_GETDELIM=1
   26225 
   26226 
   26227 
   26228 
   26229 
   26230 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
   26231 
   26232 
   26233 
   26234 
   26235 
   26236 
   26237 
   26238 
   26239   if test $ac_cv_func_getdtablesize = yes &&
   26240      test $ac_cv_have_decl_getdtablesize = yes; then
   26241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
   26242 $as_echo_n "checking whether getdtablesize works... " >&6; }
   26243 if ${gl_cv_func_getdtablesize_works+:} false; then :
   26244   $as_echo_n "(cached) " >&6
   26245 else
   26246                                                    case "$host_os" in
   26247          vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
   26248          *)
   26249                                                        if test "$cross_compiling" = yes; then :
   26250   case "$host_os" in
   26251                 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
   26252                   gl_cv_func_getdtablesize_works="guessing no" ;;
   26253                 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
   26254               esac
   26255 
   26256 else
   26257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26258 /* end confdefs.h.  */
   26259 
   26260              #include <unistd.h>
   26261 
   26262 
   26263 $gl_mda_defines
   26264 
   26265 
   26266 int
   26267 main ()
   26268 {
   26269 int size = getdtablesize();
   26270                  if (dup2 (0, getdtablesize()) != -1)
   26271                    return 1;
   26272                  if (size != getdtablesize())
   26273                    return 2;
   26274 
   26275   ;
   26276   return 0;
   26277 }
   26278 _ACEOF
   26279 if ac_fn_c_try_run "$LINENO"; then :
   26280   gl_cv_func_getdtablesize_works=yes
   26281 else
   26282   gl_cv_func_getdtablesize_works=no
   26283 fi
   26284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26285   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26286 fi
   26287 
   26288            ;;
   26289        esac
   26290 
   26291 fi
   26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
   26293 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
   26294     case "$gl_cv_func_getdtablesize_works" in
   26295       *yes | "no (limitation)") ;;
   26296       *) REPLACE_GETDTABLESIZE=1 ;;
   26297     esac
   26298   else
   26299     HAVE_GETDTABLESIZE=0
   26300   fi
   26301 
   26302 
   26303      if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
   26304   GL_COND_OBJ_GETDTABLESIZE_TRUE=
   26305   GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
   26306 else
   26307   GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
   26308   GL_COND_OBJ_GETDTABLESIZE_FALSE=
   26309 fi
   26310 :
   26311     if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
   26312     GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
   26313     GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
   26314   fi
   26315 
   26316   if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
   26317 
   26318     :
   26319 
   26320 fi
   26321 
   26322 
   26323 
   26324 
   26325 
   26326 
   26327 
   26328 
   26329 
   26330           GL_GNULIB_GETDTABLESIZE=1
   26331 
   26332 
   26333 
   26334 
   26335 
   26336 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
   26337 
   26338 
   26339 
   26340 
   26341 
   26342 
   26343 
   26344 
   26345 
   26346 
   26347   gl_getline_needs_run_time_check=no
   26348   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
   26349 if test "x$ac_cv_func_getline" = xyes; then :
   26350                    gl_getline_needs_run_time_check=yes
   26351 else
   26352   am_cv_func_working_getline=no
   26353 fi
   26354 
   26355   if test $gl_getline_needs_run_time_check = yes; then
   26356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
   26357 $as_echo_n "checking for working getline function... " >&6; }
   26358 if ${am_cv_func_working_getline+:} false; then :
   26359   $as_echo_n "(cached) " >&6
   26360 else
   26361   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
   26362        if test "$cross_compiling" = yes; then :
   26363                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26364 /* end confdefs.h.  */
   26365 
   26366 #include <features.h>
   26367 #ifdef __GNU_LIBRARY__
   26368  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   26369   Lucky GNU user
   26370  #endif
   26371 #endif
   26372 
   26373 _ACEOF
   26374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   26375   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
   26376   am_cv_func_working_getline="guessing yes"
   26377 else
   26378   case "$host_os" in
   26379                *-musl*) am_cv_func_working_getline="guessing yes" ;;
   26380                *)       am_cv_func_working_getline="$gl_cross_guess_normal" ;;
   26381              esac
   26382 
   26383 fi
   26384 rm -f conftest*
   26385 
   26386 
   26387 else
   26388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26389 /* end confdefs.h.  */
   26390 
   26391 #    include <stdio.h>
   26392 #    include <stdlib.h>
   26393 #    include <string.h>
   26394     int main ()
   26395     {
   26396       FILE *in = fopen ("./conftest.data", "r");
   26397       if (!in)
   26398         return 1;
   26399       {
   26400         /* Test result for a NULL buffer and a zero size.
   26401            Based on a test program from Karl Heuer.  */
   26402         char *line = NULL;
   26403         size_t siz = 0;
   26404         int len = getline (&line, &siz, in);
   26405         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
   26406           { free (line); fclose (in); return 2; }
   26407         free (line);
   26408       }
   26409       {
   26410         /* Test result for a NULL buffer and a non-zero size.
   26411            This crashes on FreeBSD 8.0.  */
   26412         char *line = NULL;
   26413         size_t siz = (size_t)(~0) / 4;
   26414         if (getline (&line, &siz, in) == -1)
   26415           { fclose (in); return 3; }
   26416         free (line);
   26417       }
   26418       fclose (in);
   26419       return 0;
   26420     }
   26421 
   26422 _ACEOF
   26423 if ac_fn_c_try_run "$LINENO"; then :
   26424   am_cv_func_working_getline=yes
   26425 else
   26426   am_cv_func_working_getline=no
   26427 fi
   26428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26429   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26430 fi
   26431 
   26432 
   26433 fi
   26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
   26435 $as_echo "$am_cv_func_working_getline" >&6; }
   26436   fi
   26437 
   26438   if test $ac_cv_have_decl_getline = no; then
   26439     HAVE_DECL_GETLINE=0
   26440   fi
   26441 
   26442   case "$am_cv_func_working_getline" in
   26443     *yes) ;;
   26444     *)
   26445                         REPLACE_GETLINE=1
   26446       ;;
   26447   esac
   26448 
   26449 
   26450      if test $REPLACE_GETLINE = 1; then
   26451   GL_COND_OBJ_GETLINE_TRUE=
   26452   GL_COND_OBJ_GETLINE_FALSE='#'
   26453 else
   26454   GL_COND_OBJ_GETLINE_TRUE='#'
   26455   GL_COND_OBJ_GETLINE_FALSE=
   26456 fi
   26457 :
   26458     if test -z "${GL_COND_OBJ_GETLINE_TRUE}" && test -z "${GL_COND_OBJ_GETLINE_FALSE}"; then
   26459     GL_COND_OBJ_GETLINE_TRUE='#'
   26460     GL_COND_OBJ_GETLINE_FALSE='#'
   26461   fi
   26462 
   26463   if test -z "$GL_COND_OBJ_GETLINE_TRUE"; then :
   26464 
   26465 
   26466   :
   26467 
   26468 
   26469 fi
   26470 
   26471 
   26472 
   26473 
   26474 
   26475 
   26476 
   26477 
   26478 
   26479           GL_GNULIB_GETLINE=1
   26480 
   26481 
   26482 
   26483 
   26484 
   26485 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
   26486 
   26487 
   26488 
   26489 
   26490 
   26491 
   26492 
   26493 
   26494 
   26495   if test $ac_cv_have_decl_getlogin_r = no; then
   26496     HAVE_DECL_GETLOGIN_R=0
   26497   fi
   26498 
   26499 
   26500   if test $ac_cv_func_getlogin_r = no; then
   26501     HAVE_GETLOGIN_R=0
   26502   else
   26503     HAVE_GETLOGIN_R=1
   26504 
   26505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
   26506 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
   26507 if ${gl_cv_func_getlogin_r_works+:} false; then :
   26508   $as_echo_n "(cached) " >&6
   26509 else
   26510 
   26511                 case "$host_os" in
   26512                           # Guess no on Mac OS X, OSF/1.
   26513           darwin* | osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
   26514                           # Guess yes otherwise.
   26515           *)              gl_cv_func_getlogin_r_works="guessing yes" ;;
   26516         esac
   26517         if test "$cross_compiling" = yes; then :
   26518   :
   26519 else
   26520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26521 /* end confdefs.h.  */
   26522 
   26523 #include <stddef.h>
   26524 #include <string.h>
   26525 #include <unistd.h>
   26526 #if !HAVE_DECL_GETLOGIN_R
   26527 extern
   26528 # ifdef __cplusplus
   26529 "C"
   26530 # endif
   26531 int getlogin_r (char *, size_t);
   26532 #endif
   26533 int
   26534 main (void)
   26535 {
   26536   int result = 0;
   26537   char buf[100];
   26538 
   26539   if (getlogin_r (buf, 0) == 0)
   26540     result |= 1;
   26541   if (getlogin_r (buf, 1) == 0)
   26542     result |= 2;
   26543   if (getlogin_r (buf, 100) == 0)
   26544     {
   26545       size_t n = strlen (buf);
   26546       if (getlogin_r (buf, n) == 0)
   26547         result |= 4;
   26548     }
   26549   return result;
   26550 }
   26551 _ACEOF
   26552 if ac_fn_c_try_run "$LINENO"; then :
   26553   gl_cv_func_getlogin_r_works=yes
   26554 else
   26555   gl_cv_func_getlogin_r_works=no
   26556 fi
   26557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   26558   conftest.$ac_objext conftest.beam conftest.$ac_ext
   26559 fi
   26560 
   26561 
   26562 fi
   26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
   26564 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
   26565     case "$gl_cv_func_getlogin_r_works" in
   26566       *yes) ;;
   26567       *) REPLACE_GETLOGIN_R=1 ;;
   26568     esac
   26569   fi
   26570 
   26571 
   26572      if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
   26573   GL_COND_OBJ_GETLOGIN_R_TRUE=
   26574   GL_COND_OBJ_GETLOGIN_R_FALSE='#'
   26575 else
   26576   GL_COND_OBJ_GETLOGIN_R_TRUE='#'
   26577   GL_COND_OBJ_GETLOGIN_R_FALSE=
   26578 fi
   26579 :
   26580     if test -z "${GL_COND_OBJ_GETLOGIN_R_TRUE}" && test -z "${GL_COND_OBJ_GETLOGIN_R_FALSE}"; then
   26581     GL_COND_OBJ_GETLOGIN_R_TRUE='#'
   26582     GL_COND_OBJ_GETLOGIN_R_FALSE='#'
   26583   fi
   26584 
   26585   if test -z "$GL_COND_OBJ_GETLOGIN_R_TRUE"; then :
   26586 
   26587 
   26588 
   26589 
   26590 
   26591 fi
   26592 
   26593 
   26594 
   26595 
   26596 
   26597 
   26598 
   26599 
   26600 
   26601           GL_GNULIB_GETLOGIN_R=1
   26602 
   26603 
   26604 
   26605 
   26606 
   26607 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
   26608 
   26609 
   26610 
   26611 
   26612 
   26613 
   26614 
   26615   ac_found=0
   26616   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
   26617 "
   26618 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
   26619   ac_have_decl=1
   26620 else
   26621   ac_have_decl=0
   26622 fi
   26623 
   26624 cat >>confdefs.h <<_ACEOF
   26625 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
   26626 _ACEOF
   26627 if test $ac_have_decl = 1; then :
   26628   ac_found=1
   26629 fi
   26630 
   26631   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
   26632 "
   26633 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
   26634   ac_have_decl=1
   26635 else
   26636   ac_have_decl=0
   26637 fi
   26638 
   26639 cat >>confdefs.h <<_ACEOF
   26640 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
   26641 _ACEOF
   26642 if test $ac_have_decl = 1; then :
   26643   ac_found=1
   26644 fi
   26645 
   26646   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
   26647 "
   26648 if test "x$ac_cv_have_decl___argv" = xyes; then :
   26649   ac_have_decl=1
   26650 else
   26651   ac_have_decl=0
   26652 fi
   26653 
   26654 cat >>confdefs.h <<_ACEOF
   26655 #define HAVE_DECL___ARGV $ac_have_decl
   26656 _ACEOF
   26657 if test $ac_have_decl = 1; then :
   26658   ac_found=1
   26659 fi
   26660 
   26661 
   26662   # Incur the cost of this test only if none of the above worked.
   26663   if test $ac_found = 0; then
   26664     # On OpenBSD 5.1, using the global __progname variable appears to be
   26665     # the only way to implement getprogname.
   26666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
   26667 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
   26668 if ${gl_cv_var___progname+:} false; then :
   26669   $as_echo_n "(cached) " >&6
   26670 else
   26671 
   26672         gl_cv_var___progname=
   26673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26674 /* end confdefs.h.  */
   26675 extern char *__progname;
   26676 int
   26677 main ()
   26678 {
   26679 return *__progname;
   26680 
   26681   ;
   26682   return 0;
   26683 }
   26684 _ACEOF
   26685 if ac_fn_c_try_link "$LINENO"; then :
   26686   gl_cv_var___progname=yes
   26687 
   26688 fi
   26689 rm -f core conftest.err conftest.$ac_objext \
   26690     conftest$ac_exeext conftest.$ac_ext
   26691 
   26692 
   26693 fi
   26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
   26695 $as_echo "$gl_cv_var___progname" >&6; }
   26696     if test "$gl_cv_var___progname" = yes; then
   26697 
   26698 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
   26699 
   26700     fi
   26701   fi
   26702 
   26703 
   26704 
   26705 
   26706 
   26707   if test "$ac_cv_func_getrandom" != yes; then
   26708     HAVE_GETRANDOM=0
   26709   else
   26710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
   26711 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
   26712 if ${gl_cv_func_getrandom_ok+:} false; then :
   26713   $as_echo_n "(cached) " >&6
   26714 else
   26715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26716 /* end confdefs.h.  */
   26717 /* Additional includes are needed before <sys/random.h> on uClibc
   26718                  and Mac OS X.  */
   26719               #include <sys/types.h>
   26720               #include <stdlib.h>
   26721               #include <sys/random.h>
   26722               ssize_t getrandom (void *, size_t, unsigned int);
   26723 
   26724 int
   26725 main ()
   26726 {
   26727 
   26728   ;
   26729   return 0;
   26730 }
   26731 
   26732 _ACEOF
   26733 if ac_fn_c_try_compile "$LINENO"; then :
   26734   gl_cv_func_getrandom_ok=yes
   26735 else
   26736   gl_cv_func_getrandom_ok=no
   26737 fi
   26738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26739 
   26740 fi
   26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
   26742 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
   26743     if test $gl_cv_func_getrandom_ok = no; then
   26744       REPLACE_GETRANDOM=1
   26745     fi
   26746   fi
   26747 
   26748   case "$host_os" in
   26749     mingw*)
   26750       for ac_header in bcrypt.h
   26751 do :
   26752   ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
   26753 
   26754 "
   26755 if test "x$ac_cv_header_bcrypt_h" = xyes; then :
   26756   cat >>confdefs.h <<_ACEOF
   26757 #define HAVE_BCRYPT_H 1
   26758 _ACEOF
   26759 
   26760 fi
   26761 
   26762 done
   26763 
   26764       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
   26765 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
   26766 if ${gl_cv_lib_assume_bcrypt+:} false; then :
   26767   $as_echo_n "(cached) " >&6
   26768 else
   26769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26770 /* end confdefs.h.  */
   26771 #include <windows.h>
   26772 int
   26773 main ()
   26774 {
   26775 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
   26776                   cannot assume it
   26777                 #endif
   26778 
   26779   ;
   26780   return 0;
   26781 }
   26782 
   26783 _ACEOF
   26784 if ac_fn_c_try_compile "$LINENO"; then :
   26785   gl_cv_lib_assume_bcrypt=yes
   26786 else
   26787   gl_cv_lib_assume_bcrypt=no
   26788 fi
   26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26790 
   26791 fi
   26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
   26793 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
   26794       if test $gl_cv_lib_assume_bcrypt = yes; then
   26795 
   26796 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
   26797 
   26798         LIB_GETRANDOM='-lbcrypt'
   26799       else
   26800         LIB_GETRANDOM='-ladvapi32'
   26801       fi
   26802       ;;
   26803     *)
   26804       LIB_GETRANDOM= ;;
   26805   esac
   26806 
   26807 
   26808 
   26809      if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
   26810   GL_COND_OBJ_GETRANDOM_TRUE=
   26811   GL_COND_OBJ_GETRANDOM_FALSE='#'
   26812 else
   26813   GL_COND_OBJ_GETRANDOM_TRUE='#'
   26814   GL_COND_OBJ_GETRANDOM_FALSE=
   26815 fi
   26816 :
   26817     if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then
   26818     GL_COND_OBJ_GETRANDOM_TRUE='#'
   26819     GL_COND_OBJ_GETRANDOM_FALSE='#'
   26820   fi
   26821 
   26822 
   26823 
   26824 
   26825 
   26826 
   26827 
   26828 
   26829 
   26830 
   26831           GL_GNULIB_GETRANDOM=1
   26832 
   26833 
   26834 
   26835 
   26836 
   26837 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
   26838 
   26839 
   26840 
   26841 
   26842 
   26843 
   26844 
   26845 
   26846 
   26847 
   26848 
   26849 
   26850   gl_gettimeofday_timezone=void
   26851   if test $ac_cv_func_gettimeofday != yes; then
   26852     HAVE_GETTIMEOFDAY=0
   26853   else
   26854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
   26855 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
   26856 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
   26857   $as_echo_n "(cached) " >&6
   26858 else
   26859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26860 /* end confdefs.h.  */
   26861 #include <sys/time.h>
   26862               struct timeval c;
   26863               int gettimeofday (struct timeval *restrict, void *restrict);
   26864 
   26865 int
   26866 main ()
   26867 {
   26868 /* glibc uses struct timezone * rather than the POSIX void *
   26869                  if _GNU_SOURCE is defined.  However, since the only portable
   26870                  use of gettimeofday uses NULL as the second parameter, and
   26871                  since the glibc definition is actually more typesafe, it is
   26872                  not worth wrapping this to get a compliant signature.  */
   26873               int (*f) (struct timeval *restrict, void *restrict)
   26874                 = gettimeofday;
   26875               int x = f (&c, 0);
   26876               return !(x | c.tv_sec | c.tv_usec);
   26877 
   26878   ;
   26879   return 0;
   26880 }
   26881 _ACEOF
   26882 if ac_fn_c_try_compile "$LINENO"; then :
   26883   gl_cv_func_gettimeofday_posix_signature=yes
   26884 else
   26885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26886 /* end confdefs.h.  */
   26887 #include <sys/time.h>
   26888 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
   26889 
   26890 int
   26891 main ()
   26892 {
   26893 
   26894   ;
   26895   return 0;
   26896 }
   26897 _ACEOF
   26898 if ac_fn_c_try_compile "$LINENO"; then :
   26899   gl_cv_func_gettimeofday_posix_signature=almost
   26900 else
   26901   gl_cv_func_gettimeofday_posix_signature=no
   26902 fi
   26903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26904 fi
   26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26906 fi
   26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
   26908 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
   26909     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
   26910       gl_gettimeofday_timezone='struct timezone'
   26911     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
   26912       REPLACE_GETTIMEOFDAY=1
   26913     fi
   26914         if test $REPLACE_STRUCT_TIMEVAL = 1; then
   26915       REPLACE_GETTIMEOFDAY=1
   26916     fi
   26917             case "$host_os" in
   26918       mingw*) REPLACE_GETTIMEOFDAY=1 ;;
   26919     esac
   26920   fi
   26921 
   26922 cat >>confdefs.h <<_ACEOF
   26923 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
   26924 _ACEOF
   26925 
   26926 
   26927 
   26928      if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
   26929   GL_COND_OBJ_GETTIMEOFDAY_TRUE=
   26930   GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
   26931 else
   26932   GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
   26933   GL_COND_OBJ_GETTIMEOFDAY_FALSE=
   26934 fi
   26935 :
   26936     if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then
   26937     GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
   26938     GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
   26939   fi
   26940 
   26941   if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then :
   26942 
   26943     :
   26944 
   26945 fi
   26946 
   26947 
   26948 
   26949 
   26950 
   26951 
   26952 
   26953 
   26954 
   26955           GL_GNULIB_GETTIMEOFDAY=1
   26956 
   26957 
   26958 
   26959 
   26960 
   26961 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
   26962 
   26963 
   26964 
   26965 
   26966 
   26967 
   26968 
   26969   if test $ac_cv_func_glob = no; then
   26970     HAVE_GLOB=0
   26971   else
   26972 
   26973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
   26974 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
   26975 if ${gl_cv_gnu_glob_interface_version_1_2+:} false; then :
   26976   $as_echo_n "(cached) " >&6
   26977 else
   26978        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   26979 /* end confdefs.h.  */
   26980 #include <gnu-versions.h>
   26981 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
   26982 _ACEOF
   26983 if ac_fn_c_try_compile "$LINENO"; then :
   26984   gl_cv_gnu_glob_interface_version_1_2=yes
   26985 else
   26986   gl_cv_gnu_glob_interface_version_1_2=no
   26987 fi
   26988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26989 fi
   26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
   26991 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
   26992     if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
   26993       REPLACE_GLOB=1
   26994     fi
   26995 
   26996     if test $REPLACE_GLOB = 0; then
   26997       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
   26998 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
   26999 if ${gl_cv_glob_lists_symlinks+:} false; then :
   27000   $as_echo_n "(cached) " >&6
   27001 else
   27002   if test $cross_compiling != yes; then
   27003            if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
   27004              gl_cv_glob_lists_symlinks=maybe
   27005            else
   27006              # If we can't make a symlink, then we cannot test this issue.  Be
   27007              # pessimistic about this.
   27008              gl_cv_glob_lists_symlinks=no
   27009            fi
   27010            if test $gl_cv_glob_lists_symlinks = maybe; then
   27011              if test "$cross_compiling" = yes; then :
   27012                   :
   27013 
   27014 else
   27015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27016 /* end confdefs.h.  */
   27017 #include <stddef.h>
   27018                     #include <glob.h>
   27019 int
   27020 main ()
   27021 {
   27022 glob_t found;
   27023                     if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
   27024                       return 1;
   27025                     globfree (&found);
   27026 
   27027   ;
   27028   return 0;
   27029 }
   27030 _ACEOF
   27031 if ac_fn_c_try_run "$LINENO"; then :
   27032   gl_cv_glob_lists_symlinks=yes
   27033 else
   27034   gl_cv_glob_lists_symlinks=no
   27035 fi
   27036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27037   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27038 fi
   27039 
   27040            fi
   27041            rm -f conf$$-globtest
   27042          else
   27043            gl_cv_glob_lists_symlinks="$gl_cross_guess_normal"
   27044          fi
   27045 
   27046 fi
   27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
   27048 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
   27049       case "$gl_cv_glob_lists_symlinks" in
   27050         *yes) ;;
   27051         *) REPLACE_GLOB=1 ;;
   27052       esac
   27053     fi
   27054 
   27055     if test $REPLACE_GLOB = 0; then
   27056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob NOTDIR*/ omits symlink to nondir" >&5
   27057 $as_echo_n "checking whether glob NOTDIR*/ omits symlink to nondir... " >&6; }
   27058 if ${gl_cv_glob_omit_nondir_symlinks+:} false; then :
   27059   $as_echo_n "(cached) " >&6
   27060 else
   27061   if test $cross_compiling != yes; then
   27062            if ln -s conf$$-file conf$$-globtest 2>/dev/null && touch conf$$-file
   27063            then
   27064              gl_cv_glob_omit_nondir_symlinks=maybe
   27065            else
   27066              # If we can't make a symlink, then we cannot test this issue.  Be
   27067              # pessimistic about this.
   27068              gl_cv_glob_omit_nondir_symlinks=no
   27069            fi
   27070            if test $gl_cv_glob_omit_nondir_symlinks = maybe; then
   27071              if test "$cross_compiling" = yes; then :
   27072                   :
   27073 
   27074 else
   27075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27076 /* end confdefs.h.  */
   27077 #include <stddef.h>
   27078                     #include <glob.h>
   27079 int
   27080 main ()
   27081 {
   27082 glob_t found;
   27083                     if (glob ("conf*-globtest/", 0, NULL, &found) != GLOB_NOMATCH)
   27084                       return 1;
   27085                     globfree (&found);
   27086 
   27087   ;
   27088   return 0;
   27089 }
   27090 _ACEOF
   27091 if ac_fn_c_try_run "$LINENO"; then :
   27092   gl_cv_glob_omit_nondir_symlinks=yes
   27093 else
   27094   gl_cv_glob_omit_nondir_symlinks=no
   27095 fi
   27096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27097   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27098 fi
   27099 
   27100            fi
   27101            rm -f conf$$-file conf$$-globtest
   27102          else
   27103            gl_cv_glob_omit_nondir_symlinks="$gl_cross_guess_normal"
   27104          fi
   27105 
   27106 fi
   27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_omit_nondir_symlinks" >&5
   27108 $as_echo "$gl_cv_glob_omit_nondir_symlinks" >&6; }
   27109       case "$gl_cv_glob_omit_nondir_symlinks" in
   27110         *yes) ;;
   27111         *) REPLACE_GLOB=1 ;;
   27112       esac
   27113     fi
   27114 
   27115   fi
   27116 
   27117   if test $ac_cv_func_glob_pattern_p = no; then
   27118     HAVE_GLOB_PATTERN_P=0
   27119   else
   27120     if test $REPLACE_GLOB = 1; then
   27121       REPLACE_GLOB_PATTERN_P=1
   27122     fi
   27123   fi
   27124 
   27125   if test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1; then
   27126 
   27127 
   27128 
   27129 
   27130 
   27131 
   27132   GL_GENERATE_GLOB_H=true
   27133 
   27134   fi
   27135 
   27136 
   27137 
   27138 
   27139 
   27140   case "$GL_GENERATE_GLOB_H" in
   27141     false) GLOB_H='' ;;
   27142     true)
   27143                   if test -z "$GLOB_H"; then
   27144         GLOB_H="${gl_source_base_prefix}glob.h"
   27145       fi
   27146       ;;
   27147     *) echo "*** GL_GENERATE_GLOB_H is not set correctly" 1>&2; exit 1 ;;
   27148   esac
   27149 
   27150 
   27151      if $GL_GENERATE_GLOB_H; then
   27152   GL_GENERATE_GLOB_H_TRUE=
   27153   GL_GENERATE_GLOB_H_FALSE='#'
   27154 else
   27155   GL_GENERATE_GLOB_H_TRUE='#'
   27156   GL_GENERATE_GLOB_H_FALSE=
   27157 fi
   27158 :
   27159     if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
   27160     GL_GENERATE_GLOB_H_TRUE='#'
   27161     GL_GENERATE_GLOB_H_FALSE='#'
   27162   fi
   27163 
   27164 
   27165 
   27166 
   27167 
   27168 
   27169      if test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1; then
   27170   GL_COND_OBJ_GLOB_TRUE=
   27171   GL_COND_OBJ_GLOB_FALSE='#'
   27172 else
   27173   GL_COND_OBJ_GLOB_TRUE='#'
   27174   GL_COND_OBJ_GLOB_FALSE=
   27175 fi
   27176 :
   27177     if test -z "${GL_COND_OBJ_GLOB_TRUE}" && test -z "${GL_COND_OBJ_GLOB_FALSE}"; then
   27178     GL_COND_OBJ_GLOB_TRUE='#'
   27179     GL_COND_OBJ_GLOB_FALSE='#'
   27180   fi
   27181 
   27182   if test -z "$GL_COND_OBJ_GLOB_TRUE"; then :
   27183 
   27184 
   27185 
   27186 
   27187 
   27188 
   27189 
   27190 fi
   27191 
   27192      if test $HAVE_GLOB_PATTERN_P = 0 || test $REPLACE_GLOB_PATTERN_P = 1; then
   27193   GL_COND_OBJ_GLOB_PATTERN_P_TRUE=
   27194   GL_COND_OBJ_GLOB_PATTERN_P_FALSE='#'
   27195 else
   27196   GL_COND_OBJ_GLOB_PATTERN_P_TRUE='#'
   27197   GL_COND_OBJ_GLOB_PATTERN_P_FALSE=
   27198 fi
   27199 :
   27200     if test -z "${GL_COND_OBJ_GLOB_PATTERN_P_TRUE}" && test -z "${GL_COND_OBJ_GLOB_PATTERN_P_FALSE}"; then
   27201     GL_COND_OBJ_GLOB_PATTERN_P_TRUE='#'
   27202     GL_COND_OBJ_GLOB_PATTERN_P_FALSE='#'
   27203   fi
   27204 
   27205 
   27206 
   27207 
   27208 
   27209 
   27210 
   27211 
   27212 
   27213 
   27214           GL_GNULIB_GLOB=1
   27215 
   27216 
   27217 
   27218 
   27219 
   27220 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
   27221 
   27222 
   27223 
   27224 
   27225 
   27226 
   27227 
   27228 
   27229 
   27230 
   27231 
   27232 
   27233 
   27234   case "$GL_GENERATE_GLOB_H" in
   27235     false) GLOB_H='' ;;
   27236     true)
   27237                   if test -z "$GLOB_H"; then
   27238         GLOB_H="${gl_source_base_prefix}glob.h"
   27239       fi
   27240       ;;
   27241     *) echo "*** GL_GENERATE_GLOB_H is not set correctly" 1>&2; exit 1 ;;
   27242   esac
   27243 
   27244 
   27245      if $GL_GENERATE_GLOB_H; then
   27246   GL_GENERATE_GLOB_H_TRUE=
   27247   GL_GENERATE_GLOB_H_FALSE='#'
   27248 else
   27249   GL_GENERATE_GLOB_H_TRUE='#'
   27250   GL_GENERATE_GLOB_H_FALSE=
   27251 fi
   27252 :
   27253     if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
   27254     GL_GENERATE_GLOB_H_TRUE='#'
   27255     GL_GENERATE_GLOB_H_FALSE='#'
   27256   fi
   27257 
   27258 
   27259 
   27260 
   27261 
   27262 
   27263 
   27264   LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
   27265 
   27266 
   27267 
   27268 
   27269 
   27270 
   27271 
   27272 
   27273                 HAVE_INET_NTOP=1
   27274   INET_NTOP_LIB=
   27275 
   27276 
   27277 
   27278 
   27279   if test $ac_cv_header_sys_socket_h != yes; then
   27280                     for ac_header in winsock2.h
   27281 do :
   27282   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   27283 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   27284   cat >>confdefs.h <<_ACEOF
   27285 #define HAVE_WINSOCK2_H 1
   27286 _ACEOF
   27287 
   27288 fi
   27289 
   27290 done
   27291 
   27292   fi
   27293   if test "$ac_cv_header_winsock2_h" = yes; then
   27294     HAVE_WINSOCK2_H=1
   27295     UNISTD_H_HAVE_WINSOCK2_H=1
   27296     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   27297   else
   27298     HAVE_WINSOCK2_H=0
   27299   fi
   27300 
   27301 
   27302   if test $HAVE_WINSOCK2_H = 1; then
   27303                     REPLACE_INET_NTOP=1
   27304     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
   27305 "
   27306 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
   27307   ac_have_decl=1
   27308 else
   27309   ac_have_decl=0
   27310 fi
   27311 
   27312 cat >>confdefs.h <<_ACEOF
   27313 #define HAVE_DECL_INET_NTOP $ac_have_decl
   27314 _ACEOF
   27315 
   27316     if test $ac_cv_have_decl_inet_ntop = yes; then
   27317       INET_NTOP_LIB="-lws2_32"
   27318     else
   27319       HAVE_DECL_INET_NTOP=0
   27320     fi
   27321   else
   27322     gl_save_LIBS=$LIBS
   27323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
   27324 $as_echo_n "checking for library containing inet_ntop... " >&6; }
   27325 if ${ac_cv_search_inet_ntop+:} false; then :
   27326   $as_echo_n "(cached) " >&6
   27327 else
   27328   ac_func_search_save_LIBS=$LIBS
   27329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27330 /* end confdefs.h.  */
   27331 
   27332 /* Override any GCC internal prototype to avoid an error.
   27333    Use char because int might match the return type of a GCC
   27334    builtin and then its argument prototype would still apply.  */
   27335 #ifdef __cplusplus
   27336 extern "C"
   27337 #endif
   27338 char inet_ntop ();
   27339 int
   27340 main ()
   27341 {
   27342 return inet_ntop ();
   27343   ;
   27344   return 0;
   27345 }
   27346 _ACEOF
   27347 for ac_lib in '' nsl resolv network; do
   27348   if test -z "$ac_lib"; then
   27349     ac_res="none required"
   27350   else
   27351     ac_res=-l$ac_lib
   27352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   27353   fi
   27354   if ac_fn_c_try_link "$LINENO"; then :
   27355   ac_cv_search_inet_ntop=$ac_res
   27356 fi
   27357 rm -f core conftest.err conftest.$ac_objext \
   27358     conftest$ac_exeext
   27359   if ${ac_cv_search_inet_ntop+:} false; then :
   27360   break
   27361 fi
   27362 done
   27363 if ${ac_cv_search_inet_ntop+:} false; then :
   27364 
   27365 else
   27366   ac_cv_search_inet_ntop=no
   27367 fi
   27368 rm conftest.$ac_ext
   27369 LIBS=$ac_func_search_save_LIBS
   27370 fi
   27371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
   27372 $as_echo "$ac_cv_search_inet_ntop" >&6; }
   27373 ac_res=$ac_cv_search_inet_ntop
   27374 if test "$ac_res" != no; then :
   27375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   27376 
   27377 else
   27378   for ac_func in inet_ntop
   27379 do :
   27380   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   27381 if test "x$ac_cv_func_inet_ntop" = xyes; then :
   27382   cat >>confdefs.h <<_ACEOF
   27383 #define HAVE_INET_NTOP 1
   27384 _ACEOF
   27385 
   27386 fi
   27387 done
   27388 
   27389        if test $ac_cv_func_inet_ntop = no; then
   27390          HAVE_INET_NTOP=0
   27391        fi
   27392 
   27393 fi
   27394 
   27395     LIBS=$gl_save_LIBS
   27396 
   27397     if test "$ac_cv_search_inet_ntop" != "no" \
   27398        && test "$ac_cv_search_inet_ntop" != "none required"; then
   27399       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
   27400     fi
   27401 
   27402 
   27403     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
   27404         #if HAVE_NETDB_H
   27405         # include <netdb.h>
   27406         #endif
   27407 
   27408 "
   27409 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
   27410   ac_have_decl=1
   27411 else
   27412   ac_have_decl=0
   27413 fi
   27414 
   27415 cat >>confdefs.h <<_ACEOF
   27416 #define HAVE_DECL_INET_NTOP $ac_have_decl
   27417 _ACEOF
   27418 
   27419     if test $ac_cv_have_decl_inet_ntop = no; then
   27420       HAVE_DECL_INET_NTOP=0
   27421     fi
   27422   fi
   27423 
   27424 
   27425 
   27426      if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
   27427   GL_COND_OBJ_INET_NTOP_TRUE=
   27428   GL_COND_OBJ_INET_NTOP_FALSE='#'
   27429 else
   27430   GL_COND_OBJ_INET_NTOP_TRUE='#'
   27431   GL_COND_OBJ_INET_NTOP_FALSE=
   27432 fi
   27433 :
   27434     if test -z "${GL_COND_OBJ_INET_NTOP_TRUE}" && test -z "${GL_COND_OBJ_INET_NTOP_FALSE}"; then
   27435     GL_COND_OBJ_INET_NTOP_TRUE='#'
   27436     GL_COND_OBJ_INET_NTOP_FALSE='#'
   27437   fi
   27438 
   27439   if test -z "$GL_COND_OBJ_INET_NTOP_TRUE"; then :
   27440 
   27441 
   27442 
   27443 
   27444 
   27445 fi
   27446 
   27447 
   27448 
   27449 
   27450 
   27451 
   27452 
   27453 
   27454 
   27455           GL_GNULIB_INET_NTOP=1
   27456 
   27457 
   27458 
   27459 
   27460 
   27461 
   27462 
   27463 
   27464 
   27465 
   27466 
   27467 
   27468 
   27469 
   27470 
   27471 
   27472 
   27473   if test $ac_cv_func_isblank = no; then
   27474     HAVE_ISBLANK=0
   27475   fi
   27476 
   27477 
   27478      if test $HAVE_ISBLANK = 0; then
   27479   GL_COND_OBJ_ISBLANK_TRUE=
   27480   GL_COND_OBJ_ISBLANK_FALSE='#'
   27481 else
   27482   GL_COND_OBJ_ISBLANK_TRUE='#'
   27483   GL_COND_OBJ_ISBLANK_FALSE=
   27484 fi
   27485 :
   27486     if test -z "${GL_COND_OBJ_ISBLANK_TRUE}" && test -z "${GL_COND_OBJ_ISBLANK_FALSE}"; then
   27487     GL_COND_OBJ_ISBLANK_TRUE='#'
   27488     GL_COND_OBJ_ISBLANK_FALSE='#'
   27489   fi
   27490 
   27491 
   27492 
   27493 cat >>confdefs.h <<_ACEOF
   27494 #define GNULIB_ISBLANK 1
   27495 _ACEOF
   27496 
   27497 
   27498 
   27499 
   27500 
   27501 
   27502 
   27503 
   27504 
   27505 
   27506 
   27507           GL_GNULIB_ISBLANK=1
   27508 
   27509 
   27510 
   27511 
   27512 
   27513 
   27514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
   27515 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
   27516 if ${gl_cv_func_isnand_no_libm+:} false; then :
   27517   $as_echo_n "(cached) " >&6
   27518 else
   27519 
   27520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27521 /* end confdefs.h.  */
   27522 #include <math.h>
   27523              #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
   27524              # undef isnand
   27525              # define isnand(x) __builtin_isnan ((double)(x))
   27526              #else
   27527              # undef isnand
   27528              # define isnand(x) isnan ((double)(x))
   27529              #endif
   27530              double x;
   27531 int
   27532 main ()
   27533 {
   27534 return isnand (x);
   27535   ;
   27536   return 0;
   27537 }
   27538 _ACEOF
   27539 if ac_fn_c_try_link "$LINENO"; then :
   27540   gl_cv_func_isnand_no_libm=yes
   27541 else
   27542   gl_cv_func_isnand_no_libm=no
   27543 fi
   27544 rm -f core conftest.err conftest.$ac_objext \
   27545     conftest$ac_exeext conftest.$ac_ext
   27546 
   27547 fi
   27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
   27549 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
   27550 
   27551   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
   27552   if test $gl_cv_func_isnand_no_libm = yes; then
   27553 
   27554 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
   27555 
   27556   fi
   27557 
   27558   if test $gl_func_isnand_no_libm != yes; then
   27559 
   27560 
   27561 
   27562 
   27563 
   27564 
   27565 
   27566 
   27567   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
   27568 
   27569 
   27570 
   27571 
   27572   fi
   27573 
   27574 
   27575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
   27576 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
   27577 if ${gl_cv_func_isnanl_no_libm+:} false; then :
   27578   $as_echo_n "(cached) " >&6
   27579 else
   27580 
   27581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27582 /* end confdefs.h.  */
   27583 #include <math.h>
   27584              #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
   27585              # undef isnanl
   27586              # define isnanl(x) __builtin_isnan ((long double)(x))
   27587              #elif defined isnan
   27588              # undef isnanl
   27589              # define isnanl(x) isnan ((long double)(x))
   27590              #endif
   27591              long double x;
   27592 int
   27593 main ()
   27594 {
   27595 return isnanl (x);
   27596   ;
   27597   return 0;
   27598 }
   27599 _ACEOF
   27600 if ac_fn_c_try_link "$LINENO"; then :
   27601   gl_cv_func_isnanl_no_libm=yes
   27602 else
   27603   gl_cv_func_isnanl_no_libm=no
   27604 fi
   27605 rm -f core conftest.err conftest.$ac_objext \
   27606     conftest$ac_exeext conftest.$ac_ext
   27607 
   27608 fi
   27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
   27610 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
   27611 
   27612   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
   27613   if test $gl_func_isnanl_no_libm = yes; then
   27614 
   27615 
   27616 
   27617 
   27618      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
   27619 $as_echo_n "checking whether isnanl works... " >&6; }
   27620 if ${gl_cv_func_isnanl_works+:} false; then :
   27621   $as_echo_n "(cached) " >&6
   27622 else
   27623 
   27624       if test "$cross_compiling" = yes; then :
   27625   case "$host_os" in
   27626            mingw*) # Guess yes on mingw, no on MSVC.
   27627              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27628 /* end confdefs.h.  */
   27629 
   27630 #ifdef __MINGW32__
   27631  Known
   27632 #endif
   27633 
   27634 _ACEOF
   27635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   27636   $EGREP "Known" >/dev/null 2>&1; then :
   27637   gl_cv_func_isnanl_works="guessing yes"
   27638 else
   27639   gl_cv_func_isnanl_works="guessing no"
   27640 fi
   27641 rm -f conftest*
   27642 
   27643              ;;
   27644            *) gl_cv_func_isnanl_works="guessing yes" ;;
   27645          esac
   27646 
   27647 else
   27648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27649 /* end confdefs.h.  */
   27650 
   27651 #include <float.h>
   27652 #include <limits.h>
   27653 #include <math.h>
   27654 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
   27655 # undef isnanl
   27656 # define isnanl(x) __builtin_isnan ((long double)(x))
   27657 #elif defined isnan
   27658 # undef isnanl
   27659 # define isnanl(x) isnan ((long double)(x))
   27660 #endif
   27661 #define NWORDS \
   27662   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   27663 typedef union { unsigned int word[NWORDS]; long double value; }
   27664         memory_long_double;
   27665 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
   27666    runtime type conversion.  */
   27667 #ifdef __sgi
   27668 static long double NaNl ()
   27669 {
   27670   double zero = 0.0;
   27671   return zero / zero;
   27672 }
   27673 #else
   27674 # define NaNl() (0.0L / 0.0L)
   27675 #endif
   27676 int main ()
   27677 {
   27678   int result = 0;
   27679 
   27680   if (!isnanl (NaNl ()))
   27681     result |= 1;
   27682 
   27683   {
   27684     memory_long_double m;
   27685     unsigned int i;
   27686 
   27687     /* The isnanl function should be immune against changes in the sign bit and
   27688        in the mantissa bits.  The xor operation twiddles a bit that can only be
   27689        a sign bit or a mantissa bit (since the exponent never extends to
   27690        bit 31).  */
   27691     m.value = NaNl ();
   27692     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
   27693     for (i = 0; i < NWORDS; i++)
   27694       m.word[i] |= 1;
   27695     if (!isnanl (m.value))
   27696       result |= 1;
   27697   }
   27698 
   27699 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
   27700 /* Representation of an 80-bit 'long double' as an initializer for a sequence
   27701    of 'unsigned int' words.  */
   27702 # ifdef WORDS_BIGENDIAN
   27703 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   27704      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
   27705        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
   27706        (unsigned int) (mantlo) << 16                                        \
   27707      }
   27708 # else
   27709 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
   27710      { mantlo, manthi, exponent }
   27711 # endif
   27712   { /* Quiet NaN.  */
   27713     static memory_long_double x =
   27714       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
   27715     if (!isnanl (x.value))
   27716       result |= 2;
   27717   }
   27718   {
   27719     /* Signalling NaN.  */
   27720     static memory_long_double x =
   27721       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
   27722     if (!isnanl (x.value))
   27723       result |= 2;
   27724   }
   27725   /* isnanl should return something even for noncanonical values.  */
   27726   { /* Pseudo-NaN.  */
   27727     static memory_long_double x =
   27728       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
   27729     if (isnanl (x.value) && !isnanl (x.value))
   27730       result |= 4;
   27731   }
   27732   { /* Pseudo-Infinity.  */
   27733     static memory_long_double x =
   27734       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
   27735     if (isnanl (x.value) && !isnanl (x.value))
   27736       result |= 8;
   27737   }
   27738   { /* Pseudo-Zero.  */
   27739     static memory_long_double x =
   27740       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
   27741     if (isnanl (x.value) && !isnanl (x.value))
   27742       result |= 16;
   27743   }
   27744   { /* Unnormalized number.  */
   27745     static memory_long_double x =
   27746       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
   27747     if (isnanl (x.value) && !isnanl (x.value))
   27748       result |= 32;
   27749   }
   27750   { /* Pseudo-Denormal.  */
   27751     static memory_long_double x =
   27752       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
   27753     if (isnanl (x.value) && !isnanl (x.value))
   27754       result |= 64;
   27755   }
   27756 #endif
   27757 
   27758   return result;
   27759 }
   27760 _ACEOF
   27761 if ac_fn_c_try_run "$LINENO"; then :
   27762   gl_cv_func_isnanl_works=yes
   27763 else
   27764   gl_cv_func_isnanl_works=no
   27765 fi
   27766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27767   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27768 fi
   27769 
   27770 
   27771 fi
   27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
   27773 $as_echo "$gl_cv_func_isnanl_works" >&6; }
   27774 
   27775     case "$gl_cv_func_isnanl_works" in
   27776       *yes) ;;
   27777       *)    gl_func_isnanl_no_libm=no ;;
   27778     esac
   27779   fi
   27780   if test $gl_func_isnanl_no_libm = yes; then
   27781 
   27782 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
   27783 
   27784   fi
   27785 
   27786   if test $gl_func_isnanl_no_libm != yes; then
   27787 
   27788 
   27789 
   27790 
   27791 
   27792 
   27793 
   27794 
   27795   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
   27796 
   27797 
   27798 
   27799 
   27800      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
   27801 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
   27802 if ${gl_cv_cc_long_double_expbit0+:} false; then :
   27803   $as_echo_n "(cached) " >&6
   27804 else
   27805 
   27806       if test "$cross_compiling" = yes; then :
   27807 
   27808                               gl_cv_cc_long_double_expbit0="unknown"
   27809           case "$host_os" in
   27810             mingw*) # On native Windows (little-endian), we know the result
   27811                     # in two cases: mingw, MSVC.
   27812               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27813 /* end confdefs.h.  */
   27814 
   27815 #ifdef __MINGW32__
   27816  Known
   27817 #endif
   27818 
   27819 _ACEOF
   27820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   27821   $EGREP "Known" >/dev/null 2>&1; then :
   27822   gl_cv_cc_long_double_expbit0="word 2 bit 0"
   27823 fi
   27824 rm -f conftest*
   27825 
   27826               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27827 /* end confdefs.h.  */
   27828 
   27829 #ifdef _MSC_VER
   27830  Known
   27831 #endif
   27832 
   27833 _ACEOF
   27834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   27835   $EGREP "Known" >/dev/null 2>&1; then :
   27836   gl_cv_cc_long_double_expbit0="word 1 bit 20"
   27837 fi
   27838 rm -f conftest*
   27839 
   27840               ;;
   27841           esac
   27842 
   27843 else
   27844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27845 /* end confdefs.h.  */
   27846 
   27847 #include <float.h>
   27848 #include <stddef.h>
   27849 #include <stdio.h>
   27850 #include <string.h>
   27851 #define NWORDS \
   27852   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   27853 typedef union { long double value; unsigned int word[NWORDS]; }
   27854         memory_long_double;
   27855 static unsigned int ored_words[NWORDS];
   27856 static unsigned int anded_words[NWORDS];
   27857 static void add_to_ored_words (long double *x)
   27858 {
   27859   memory_long_double m;
   27860   size_t i;
   27861   /* Clear it first, in case
   27862      sizeof (long double) < sizeof (memory_long_double).  */
   27863   memset (&m, 0, sizeof (memory_long_double));
   27864   m.value = *x;
   27865   for (i = 0; i < NWORDS; i++)
   27866     {
   27867       ored_words[i] |= m.word[i];
   27868       anded_words[i] &= m.word[i];
   27869     }
   27870 }
   27871 int main ()
   27872 {
   27873   static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
   27874   size_t j;
   27875   FILE *fp = fopen ("conftest.out", "w");
   27876   if (fp == NULL)
   27877     return 1;
   27878   for (j = 0; j < NWORDS; j++)
   27879     anded_words[j] = ~ (unsigned int) 0;
   27880   for (j = 0; j < 5; j++)
   27881     add_to_ored_words (&samples[j]);
   27882   /* Remove bits that are common (e.g. if representation of the first mantissa
   27883      bit is explicit).  */
   27884   for (j = 0; j < NWORDS; j++)
   27885     ored_words[j] &= ~anded_words[j];
   27886   /* Now find the nonzero word.  */
   27887   for (j = 0; j < NWORDS; j++)
   27888     if (ored_words[j] != 0)
   27889       break;
   27890   if (j < NWORDS)
   27891     {
   27892       size_t i;
   27893       for (i = j + 1; i < NWORDS; i++)
   27894         if (ored_words[i] != 0)
   27895           {
   27896             fprintf (fp, "unknown");
   27897             return (fclose (fp) != 0);
   27898           }
   27899       for (i = 0; ; i++)
   27900         if ((ored_words[j] >> i) & 1)
   27901           {
   27902             fprintf (fp, "word %d bit %d", (int) j, (int) i);
   27903             return (fclose (fp) != 0);
   27904           }
   27905     }
   27906   fprintf (fp, "unknown");
   27907   return (fclose (fp) != 0);
   27908 }
   27909 
   27910 _ACEOF
   27911 if ac_fn_c_try_run "$LINENO"; then :
   27912   gl_cv_cc_long_double_expbit0=`cat conftest.out`
   27913 else
   27914   gl_cv_cc_long_double_expbit0="unknown"
   27915 fi
   27916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   27917   conftest.$ac_objext conftest.beam conftest.$ac_ext
   27918 fi
   27919 
   27920       rm -f conftest.out
   27921 
   27922 fi
   27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
   27924 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
   27925   case "$gl_cv_cc_long_double_expbit0" in
   27926     word*bit*)
   27927       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
   27928       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
   27929 
   27930 cat >>confdefs.h <<_ACEOF
   27931 #define LDBL_EXPBIT0_WORD $word
   27932 _ACEOF
   27933 
   27934 
   27935 cat >>confdefs.h <<_ACEOF
   27936 #define LDBL_EXPBIT0_BIT $bit
   27937 _ACEOF
   27938 
   27939       ;;
   27940   esac
   27941 
   27942 
   27943 
   27944   fi
   27945 
   27946 
   27947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
   27948 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
   27949 if ${gl_cv_c___inline+:} false; then :
   27950   $as_echo_n "(cached) " >&6
   27951 else
   27952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27953 /* end confdefs.h.  */
   27954 typedef int foo_t;
   27955            static __inline foo_t foo (void) { return 0; }
   27956 int
   27957 main ()
   27958 {
   27959 return foo ();
   27960   ;
   27961   return 0;
   27962 }
   27963 _ACEOF
   27964 if ac_fn_c_try_compile "$LINENO"; then :
   27965   gl_cv_c___inline=yes
   27966 else
   27967   gl_cv_c___inline=no
   27968 fi
   27969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27970 fi
   27971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
   27972 $as_echo "$gl_cv_c___inline" >&6; }
   27973   if test $gl_cv_c___inline = yes; then
   27974 
   27975 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
   27976 
   27977   fi
   27978 
   27979 
   27980 
   27981 
   27982 
   27983 
   27984   case "$GL_GENERATE_LIMITS_H" in
   27985     false) LIMITS_H='' ;;
   27986     true)
   27987                   if test -z "$LIMITS_H"; then
   27988         LIMITS_H="${gl_source_base_prefix}limits.h"
   27989       fi
   27990       ;;
   27991     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
   27992   esac
   27993 
   27994 
   27995      if $GL_GENERATE_LIMITS_H; then
   27996   GL_GENERATE_LIMITS_H_TRUE=
   27997   GL_GENERATE_LIMITS_H_FALSE='#'
   27998 else
   27999   GL_GENERATE_LIMITS_H_TRUE='#'
   28000   GL_GENERATE_LIMITS_H_FALSE=
   28001 fi
   28002 :
   28003     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
   28004     GL_GENERATE_LIMITS_H_TRUE='#'
   28005     GL_GENERATE_LIMITS_H_FALSE='#'
   28006   fi
   28007 
   28008 
   28009 
   28010 
   28011 
   28012 
   28013 
   28014 
   28015      if test "$ac_cv_header_winsock2_h" = yes; then
   28016   GL_COND_OBJ_LISTEN_TRUE=
   28017   GL_COND_OBJ_LISTEN_FALSE='#'
   28018 else
   28019   GL_COND_OBJ_LISTEN_TRUE='#'
   28020   GL_COND_OBJ_LISTEN_FALSE=
   28021 fi
   28022 :
   28023     if test -z "${GL_COND_OBJ_LISTEN_TRUE}" && test -z "${GL_COND_OBJ_LISTEN_FALSE}"; then
   28024     GL_COND_OBJ_LISTEN_TRUE='#'
   28025     GL_COND_OBJ_LISTEN_FALSE='#'
   28026   fi
   28027 
   28028 
   28029 
   28030 
   28031 
   28032 
   28033 
   28034 
   28035 
   28036 
   28037           GL_GNULIB_LISTEN=1
   28038 
   28039 
   28040 
   28041 
   28042 
   28043 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
   28044 
   28045 
   28046 
   28047 
   28048 
   28049 
   28050     LOCALCHARSET_TESTS_ENVIRONMENT=
   28051 
   28052 
   28053 
   28054 
   28055 
   28056 
   28057 
   28058 
   28059 
   28060 
   28061   if test "$gl_threads_api" = posix; then
   28062     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
   28063     # pthread_rwlock_* functions.
   28064     has_rwlock=false
   28065     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
   28066 "
   28067 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
   28068   has_rwlock=true
   28069 
   28070 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
   28071 
   28072 fi
   28073 
   28074     if $has_rwlock; then
   28075 
   28076 
   28077      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
   28078 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
   28079 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
   28080   $as_echo_n "(cached) " >&6
   28081 else
   28082   save_LIBS="$LIBS"
   28083      LIBS="$LIBS $LIBMULTITHREAD"
   28084      if test "$cross_compiling" = yes; then :
   28085   case "$host_os" in
   28086                          # Guess no on glibc systems.
   28087           *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
   28088                          # Guess no on musl systems.
   28089           *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
   28090                          # Guess no on bionic systems.
   28091           *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
   28092                          # Guess yes on native Windows with the mingw-w64 winpthreads library.
   28093                          # Guess no on native Windows with the gnulib windows-rwlock module.
   28094           mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
   28095                            gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
   28096                          else
   28097                            gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
   28098                          fi
   28099                          ;;
   28100                          # If we don't know, obey --enable-cross-guesses.
   28101           *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
   28102          esac
   28103 
   28104 else
   28105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28106 /* end confdefs.h.  */
   28107 
   28108 #include <errno.h>
   28109 #include <pthread.h>
   28110 #include <stdlib.h>
   28111 #include <unistd.h>
   28112 
   28113 #define SUCCEED() exit (0)
   28114 #define FAILURE() exit (1)
   28115 #define UNEXPECTED(n) (exit (10 + (n)))
   28116 
   28117 /* The main thread creates the waiting writer and the requesting reader threads
   28118    in the default way; this guarantees that they have the same priority.
   28119    We can reuse the main thread as first reader thread.  */
   28120 
   28121 static pthread_rwlock_t lock;
   28122 static pthread_t reader1;
   28123 static pthread_t writer;
   28124 static pthread_t reader2;
   28125 static pthread_t timer;
   28126 /* Used to pass control from writer to reader2 and from reader2 to timer,
   28127    as in a relay race.
   28128    Passing control from one running thread to another running thread
   28129    is most likely faster than to create the second thread.  */
   28130 static pthread_mutex_t baton;
   28131 
   28132 static void *
   28133 timer_func (void *ignored)
   28134 {
   28135   /* Step 13 (can be before or after step 12):
   28136      The timer thread takes the baton, then waits a moment to make sure
   28137      it can tell whether the second reader thread is blocked at step 12.  */
   28138   if (pthread_mutex_lock (&baton))
   28139     UNEXPECTED (13);
   28140   usleep (100000);
   28141   /* By the time we get here, it's clear that the second reader thread is
   28142      blocked at step 12.  This is the desired behaviour.  */
   28143   SUCCEED ();
   28144 }
   28145 
   28146 static void *
   28147 reader2_func (void *ignored)
   28148 {
   28149   int err;
   28150 
   28151   /* Step 8 (can be before or after step 7):
   28152      The second reader thread takes the baton, then waits a moment to make sure
   28153      the writer thread has reached step 7.  */
   28154   if (pthread_mutex_lock (&baton))
   28155     UNEXPECTED (8);
   28156   usleep (100000);
   28157   /* Step 9: The second reader thread requests the lock.  */
   28158   err = pthread_rwlock_tryrdlock (&lock);
   28159   if (err == 0)
   28160     FAILURE ();
   28161   else if (err != EBUSY)
   28162     UNEXPECTED (9);
   28163   /* Step 10: Launch a timer, to test whether the next call blocks.  */
   28164   if (pthread_create (&timer, NULL, timer_func, NULL))
   28165     UNEXPECTED (10);
   28166   /* Step 11: Release the baton.  */
   28167   if (pthread_mutex_unlock (&baton))
   28168     UNEXPECTED (11);
   28169   /* Step 12: The second reader thread requests the lock.  */
   28170   err = pthread_rwlock_rdlock (&lock);
   28171   if (err == 0)
   28172     FAILURE ();
   28173   else
   28174     UNEXPECTED (12);
   28175 }
   28176 
   28177 static void *
   28178 writer_func (void *ignored)
   28179 {
   28180   /* Step 4: Take the baton, so that the second reader thread does not go ahead
   28181      too early.  */
   28182   if (pthread_mutex_lock (&baton))
   28183     UNEXPECTED (4);
   28184   /* Step 5: Create the second reader thread.  */
   28185   if (pthread_create (&reader2, NULL, reader2_func, NULL))
   28186     UNEXPECTED (5);
   28187   /* Step 6: Release the baton.  */
   28188   if (pthread_mutex_unlock (&baton))
   28189     UNEXPECTED (6);
   28190   /* Step 7: The writer thread requests the lock.  */
   28191   if (pthread_rwlock_wrlock (&lock))
   28192     UNEXPECTED (7);
   28193   return NULL;
   28194 }
   28195 
   28196 int
   28197 main ()
   28198 {
   28199   reader1 = pthread_self ();
   28200 
   28201   /* Step 1: The main thread initializes the lock and the baton.  */
   28202   if (pthread_rwlock_init (&lock, NULL))
   28203     UNEXPECTED (1);
   28204   if (pthread_mutex_init (&baton, NULL))
   28205     UNEXPECTED (1);
   28206   /* Step 2: The main thread acquires the lock as a reader.  */
   28207   if (pthread_rwlock_rdlock (&lock))
   28208     UNEXPECTED (2);
   28209   /* Step 3: Create the writer thread.  */
   28210   if (pthread_create (&writer, NULL, writer_func, NULL))
   28211     UNEXPECTED (3);
   28212   /* Job done.  Go to sleep.  */
   28213   for (;;)
   28214     {
   28215       sleep (1);
   28216     }
   28217 }
   28218 
   28219 _ACEOF
   28220 if ac_fn_c_try_run "$LINENO"; then :
   28221   gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
   28222 else
   28223   gl_cv_pthread_rwlock_rdlock_prefer_writer=no
   28224 fi
   28225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28226   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28227 fi
   28228 
   28229      LIBS="$save_LIBS"
   28230 
   28231 fi
   28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
   28233 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
   28234   case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
   28235     *yes)
   28236 
   28237 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
   28238 
   28239       ;;
   28240   esac
   28241 
   28242     fi
   28243     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
   28244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28245 /* end confdefs.h.  */
   28246 
   28247       #include <pthread.h>
   28248 int
   28249 main ()
   28250 {
   28251 
   28252 #if __FreeBSD__ == 4
   28253 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
   28254 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
   28255        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
   28256 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
   28257 #else
   28258 int x = (int)PTHREAD_MUTEX_RECURSIVE;
   28259 return !x;
   28260 #endif
   28261 
   28262   ;
   28263   return 0;
   28264 }
   28265 _ACEOF
   28266 if ac_fn_c_try_compile "$LINENO"; then :
   28267 
   28268 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
   28269 
   28270 fi
   28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28272   fi
   28273   :
   28274 
   28275 
   28276 
   28277 cat >>confdefs.h <<_ACEOF
   28278 #define GNULIB_LOCK 1
   28279 _ACEOF
   28280 
   28281 
   28282 
   28283 
   28284 
   28285 
   28286   if test $ac_cv_func_lstat = yes; then
   28287 
   28288     case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
   28289       solaris* | *no)
   28290         REPLACE_LSTAT=1
   28291         ;;
   28292     esac
   28293   else
   28294     HAVE_LSTAT=0
   28295   fi
   28296 
   28297 
   28298      if test $REPLACE_LSTAT = 1; then
   28299   GL_COND_OBJ_LSTAT_TRUE=
   28300   GL_COND_OBJ_LSTAT_FALSE='#'
   28301 else
   28302   GL_COND_OBJ_LSTAT_TRUE='#'
   28303   GL_COND_OBJ_LSTAT_FALSE=
   28304 fi
   28305 :
   28306     if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
   28307     GL_COND_OBJ_LSTAT_TRUE='#'
   28308     GL_COND_OBJ_LSTAT_FALSE='#'
   28309   fi
   28310 
   28311   if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
   28312 
   28313     :
   28314 
   28315 fi
   28316 
   28317 
   28318 
   28319 
   28320 
   28321 
   28322 
   28323 
   28324 
   28325           GL_GNULIB_LSTAT=1
   28326 
   28327 
   28328 
   28329 
   28330 
   28331 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
   28332 
   28333 
   28334 
   28335 
   28336   if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
   28337 
   28338 
   28339 
   28340 
   28341 
   28342 
   28343 
   28344 
   28345   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
   28346 
   28347   fi
   28348 
   28349 
   28350 
   28351 
   28352 
   28353 
   28354 
   28355 
   28356 
   28357           GL_GNULIB_MALLOC_POSIX=1
   28358 
   28359 
   28360 
   28361 
   28362 
   28363 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
   28364 
   28365 
   28366 
   28367 
   28368 
   28369 
   28370 
   28371 
   28372 
   28373 
   28374 
   28375 
   28376 
   28377 
   28378 
   28379 
   28380 
   28381 
   28382 
   28383 
   28384 
   28385 
   28386 
   28387 
   28388 
   28389 
   28390         if case "$host_os" in
   28391        mingw*) true ;;
   28392        *) test $ac_cv_func_mbsinit = yes ;;
   28393      esac \
   28394     && test $ac_cv_func_mbrtowc = yes; then
   28395 
   28396 
   28397 
   28398 
   28399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
   28400 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   28401 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
   28402   $as_echo_n "(cached) " >&6
   28403 else
   28404 
   28405                   case "$host_os" in
   28406                      # Guess no on AIX and OSF/1.
   28407         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   28408                      # Guess yes otherwise.
   28409         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   28410       esac
   28411       if test $LOCALE_JA != none; then
   28412         if test "$cross_compiling" = yes; then :
   28413   :
   28414 else
   28415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28416 /* end confdefs.h.  */
   28417 
   28418 #include <locale.h>
   28419 #include <string.h>
   28420 #include <wchar.h>
   28421 int main ()
   28422 {
   28423   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   28424     {
   28425       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   28426       mbstate_t state;
   28427       wchar_t wc;
   28428 
   28429       memset (&state, '\0', sizeof (mbstate_t));
   28430       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   28431         if (mbsinit (&state))
   28432           return 2;
   28433     }
   28434   return 0;
   28435 }
   28436 _ACEOF
   28437 if ac_fn_c_try_run "$LINENO"; then :
   28438   gl_cv_func_mbrtowc_incomplete_state=yes
   28439 else
   28440   gl_cv_func_mbrtowc_incomplete_state=no
   28441 fi
   28442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28443   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28444 fi
   28445 
   28446       else
   28447         if test $LOCALE_FR_UTF8 != none; then
   28448           if test "$cross_compiling" = yes; then :
   28449   :
   28450 else
   28451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28452 /* end confdefs.h.  */
   28453 
   28454 #include <locale.h>
   28455 #include <string.h>
   28456 #include <wchar.h>
   28457 int main ()
   28458 {
   28459   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   28460     {
   28461       const char input[] = "B\303\274\303\237er"; /* "Ber" */
   28462       mbstate_t state;
   28463       wchar_t wc;
   28464 
   28465       memset (&state, '\0', sizeof (mbstate_t));
   28466       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   28467         if (mbsinit (&state))
   28468           return 2;
   28469     }
   28470   return 0;
   28471 }
   28472 _ACEOF
   28473 if ac_fn_c_try_run "$LINENO"; then :
   28474   gl_cv_func_mbrtowc_incomplete_state=yes
   28475 else
   28476   gl_cv_func_mbrtowc_incomplete_state=no
   28477 fi
   28478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28479   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28480 fi
   28481 
   28482         fi
   28483       fi
   28484 
   28485 fi
   28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   28487 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   28488 
   28489 
   28490 
   28491 
   28492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
   28493 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   28494 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
   28495   $as_echo_n "(cached) " >&6
   28496 else
   28497 
   28498                   case "$host_os" in
   28499                     # Guess no on Solaris 8.
   28500         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   28501                     # Guess yes otherwise.
   28502         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   28503       esac
   28504       if test $LOCALE_ZH_CN != none; then
   28505         if test "$cross_compiling" = yes; then :
   28506   :
   28507 else
   28508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28509 /* end confdefs.h.  */
   28510 
   28511 #include <locale.h>
   28512 #include <stdlib.h>
   28513 #include <string.h>
   28514 #include <wchar.h>
   28515 int main ()
   28516 {
   28517   /* This fails on Solaris 8:
   28518      mbrtowc returns 2, and sets wc to 0x00F0.
   28519      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   28520   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   28521     {
   28522       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   28523       mbstate_t state;
   28524       wchar_t wc;
   28525 
   28526       memset (&state, '\0', sizeof (mbstate_t));
   28527       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   28528           && mbtowc (&wc, input + 3, 6) == 4)
   28529         return 2;
   28530     }
   28531   return 0;
   28532 }
   28533 _ACEOF
   28534 if ac_fn_c_try_run "$LINENO"; then :
   28535   gl_cv_func_mbrtowc_sanitycheck=yes
   28536 else
   28537   gl_cv_func_mbrtowc_sanitycheck=no
   28538 fi
   28539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28540   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28541 fi
   28542 
   28543       fi
   28544 
   28545 fi
   28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   28547 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   28548 
   28549     REPLACE_MBSTATE_T=0
   28550     case "$gl_cv_func_mbrtowc_incomplete_state" in
   28551       *yes) ;;
   28552       *) REPLACE_MBSTATE_T=1 ;;
   28553     esac
   28554     case "$gl_cv_func_mbrtowc_sanitycheck" in
   28555       *yes) ;;
   28556       *) REPLACE_MBSTATE_T=1 ;;
   28557     esac
   28558   else
   28559     REPLACE_MBSTATE_T=1
   28560   fi
   28561 
   28562 
   28563 
   28564   if test $ac_cv_func_mbrtowc = no; then
   28565     HAVE_MBRTOWC=0
   28566     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
   28567       #include <wchar.h>
   28568 
   28569 "
   28570 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
   28571   ac_have_decl=1
   28572 else
   28573   ac_have_decl=0
   28574 fi
   28575 
   28576 cat >>confdefs.h <<_ACEOF
   28577 #define HAVE_DECL_MBRTOWC $ac_have_decl
   28578 _ACEOF
   28579 
   28580     if test $ac_cv_have_decl_mbrtowc = yes; then
   28581                         REPLACE_MBRTOWC=1
   28582     fi
   28583   else
   28584     if test $REPLACE_MBSTATE_T = 1; then
   28585       REPLACE_MBRTOWC=1
   28586     else
   28587 
   28588 
   28589 
   28590      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
   28591 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
   28592 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
   28593   $as_echo_n "(cached) " >&6
   28594 else
   28595 
   28596                   case "$host_os" in
   28597                   # Guess no on Solaris.
   28598         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
   28599                   # Guess yes otherwise.
   28600         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
   28601       esac
   28602       if test $LOCALE_FR_UTF8 != none; then
   28603         if test "$cross_compiling" = yes; then :
   28604   :
   28605 else
   28606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28607 /* end confdefs.h.  */
   28608 
   28609 #include <locale.h>
   28610 #include <stdlib.h>
   28611 #include <string.h>
   28612 #include <wchar.h>
   28613 int main ()
   28614 {
   28615   int result = 0;
   28616 
   28617   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   28618     {
   28619       char input[] = "\303\237er";
   28620       mbstate_t state;
   28621       wchar_t wc;
   28622       size_t ret;
   28623 
   28624       memset (&state, '\0', sizeof (mbstate_t));
   28625       wc = (wchar_t) 0xBADFACE;
   28626       ret = mbrtowc (&wc, input, 5, &state);
   28627       if (ret != 2)
   28628         result |= 1;
   28629       if (!mbsinit (&state))
   28630         result |= 2;
   28631 
   28632       memset (&state, '\0', sizeof (mbstate_t));
   28633       ret = mbrtowc (NULL, input, 5, &state);
   28634       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
   28635         result |= 4;
   28636       if (!mbsinit (&state))
   28637         result |= 8;
   28638     }
   28639   return result;
   28640 }
   28641 _ACEOF
   28642 if ac_fn_c_try_run "$LINENO"; then :
   28643   gl_cv_func_mbrtowc_null_arg1=yes
   28644 else
   28645   gl_cv_func_mbrtowc_null_arg1=no
   28646 fi
   28647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28648   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28649 fi
   28650 
   28651       fi
   28652 
   28653 fi
   28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
   28655 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
   28656 
   28657 
   28658 
   28659 
   28660      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
   28661 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
   28662 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
   28663   $as_echo_n "(cached) " >&6
   28664 else
   28665 
   28666                   case "$host_os" in
   28667               # Guess no on OSF/1.
   28668         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
   28669               # Guess yes otherwise.
   28670         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
   28671       esac
   28672       if test $LOCALE_FR_UTF8 != none; then
   28673         if test "$cross_compiling" = yes; then :
   28674   :
   28675 else
   28676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28677 /* end confdefs.h.  */
   28678 
   28679 #include <locale.h>
   28680 #include <string.h>
   28681 #include <wchar.h>
   28682 int main ()
   28683 {
   28684   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   28685     {
   28686       mbstate_t state;
   28687       wchar_t wc;
   28688       int ret;
   28689 
   28690       memset (&state, '\0', sizeof (mbstate_t));
   28691       wc = (wchar_t) 0xBADFACE;
   28692       mbrtowc (&wc, NULL, 5, &state);
   28693       /* Check that wc was not modified.  */
   28694       if (wc != (wchar_t) 0xBADFACE)
   28695         return 2;
   28696     }
   28697   return 0;
   28698 }
   28699 _ACEOF
   28700 if ac_fn_c_try_run "$LINENO"; then :
   28701   gl_cv_func_mbrtowc_null_arg2=yes
   28702 else
   28703   gl_cv_func_mbrtowc_null_arg2=no
   28704 fi
   28705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28706   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28707 fi
   28708 
   28709       fi
   28710 
   28711 fi
   28712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
   28713 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
   28714 
   28715 
   28716 
   28717 
   28718 
   28719 
   28720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
   28721 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
   28722 if ${gl_cv_func_mbrtowc_retval+:} false; then :
   28723   $as_echo_n "(cached) " >&6
   28724 else
   28725 
   28726                   case "$host_os" in
   28727                                    # Guess no on HP-UX, Solaris, native Windows.
   28728         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
   28729                                    # Guess yes otherwise.
   28730         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
   28731       esac
   28732       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
   28733          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
   28734         if test "$cross_compiling" = yes; then :
   28735   :
   28736 else
   28737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28738 /* end confdefs.h.  */
   28739 
   28740 #include <locale.h>
   28741 #include <string.h>
   28742 #include <wchar.h>
   28743 int main ()
   28744 {
   28745   int result = 0;
   28746   int found_some_locale = 0;
   28747   /* This fails on Solaris.  */
   28748   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   28749     {
   28750       char input[] = "B\303\274\303\237er"; /* "Ber" */
   28751       mbstate_t state;
   28752       wchar_t wc;
   28753 
   28754       memset (&state, '\0', sizeof (mbstate_t));
   28755       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   28756         {
   28757           input[1] = '\0';
   28758           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
   28759             result |= 1;
   28760         }
   28761       found_some_locale = 1;
   28762     }
   28763   /* This fails on HP-UX 11.11.  */
   28764   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   28765     {
   28766       char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   28767       mbstate_t state;
   28768       wchar_t wc;
   28769 
   28770       memset (&state, '\0', sizeof (mbstate_t));
   28771       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   28772         {
   28773           input[1] = '\0';
   28774           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
   28775             result |= 2;
   28776         }
   28777       found_some_locale = 1;
   28778     }
   28779   /* This fails on native Windows.  */
   28780   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
   28781     {
   28782       char input[] = "<\223\372\226\173\214\352>"; /* "<>" */
   28783       mbstate_t state;
   28784       wchar_t wc;
   28785 
   28786       memset (&state, '\0', sizeof (mbstate_t));
   28787       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   28788         {
   28789           input[3] = '\0';
   28790           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   28791             result |= 4;
   28792         }
   28793       found_some_locale = 1;
   28794     }
   28795   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
   28796     {
   28797       char input[] = "<\244\351\245\273\273\171>"; /* "<>" */
   28798       mbstate_t state;
   28799       wchar_t wc;
   28800 
   28801       memset (&state, '\0', sizeof (mbstate_t));
   28802       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   28803         {
   28804           input[3] = '\0';
   28805           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   28806             result |= 8;
   28807         }
   28808       found_some_locale = 1;
   28809     }
   28810   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
   28811     {
   28812       char input[] = "<\310\325\261\276\325\132>"; /* "<>" */
   28813       mbstate_t state;
   28814       wchar_t wc;
   28815 
   28816       memset (&state, '\0', sizeof (mbstate_t));
   28817       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
   28818         {
   28819           input[3] = '\0';
   28820           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
   28821             result |= 16;
   28822         }
   28823       found_some_locale = 1;
   28824     }
   28825   return (found_some_locale ? result : 77);
   28826 }
   28827 _ACEOF
   28828 if ac_fn_c_try_run "$LINENO"; then :
   28829   gl_cv_func_mbrtowc_retval=yes
   28830 else
   28831   if test $? != 77; then
   28832              gl_cv_func_mbrtowc_retval=no
   28833            fi
   28834 
   28835 fi
   28836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28837   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28838 fi
   28839 
   28840       fi
   28841 
   28842 fi
   28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
   28844 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
   28845 
   28846 
   28847 
   28848 
   28849      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
   28850 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
   28851 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
   28852   $as_echo_n "(cached) " >&6
   28853 else
   28854 
   28855                   case "$host_os" in
   28856                        # Guess no on Solaris 8 and 9.
   28857         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
   28858                        # Guess yes otherwise.
   28859         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
   28860       esac
   28861       if test $LOCALE_ZH_CN != none; then
   28862         if test "$cross_compiling" = yes; then :
   28863   :
   28864 else
   28865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28866 /* end confdefs.h.  */
   28867 
   28868 #include <locale.h>
   28869 #include <string.h>
   28870 #include <wchar.h>
   28871 int main ()
   28872 {
   28873   /* This fails on Solaris 8 and 9.  */
   28874   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   28875     {
   28876       mbstate_t state;
   28877       wchar_t wc;
   28878 
   28879       memset (&state, '\0', sizeof (mbstate_t));
   28880       if (mbrtowc (&wc, "", 1, &state) != 0)
   28881         return 2;
   28882     }
   28883   return 0;
   28884 }
   28885 _ACEOF
   28886 if ac_fn_c_try_run "$LINENO"; then :
   28887   gl_cv_func_mbrtowc_nul_retval=yes
   28888 else
   28889   gl_cv_func_mbrtowc_nul_retval=no
   28890 fi
   28891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28892   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28893 fi
   28894 
   28895       fi
   28896 
   28897 fi
   28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
   28899 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
   28900 
   28901 
   28902 
   28903      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
   28904 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
   28905 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false; then :
   28906   $as_echo_n "(cached) " >&6
   28907 else
   28908 
   28909                case "$host_os" in
   28910                # Guess yes on native Windows.
   28911        mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
   28912        *)      gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
   28913      esac
   28914      case "$host_os" in
   28915        mingw*)
   28916          if test "$cross_compiling" = yes; then :
   28917   :
   28918 else
   28919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28920 /* end confdefs.h.  */
   28921 
   28922 #include <locale.h>
   28923 #include <string.h>
   28924 #include <wchar.h>
   28925 int main ()
   28926 {
   28927   int result = 0;
   28928   if (setlocale (LC_ALL, "French_France.65001") != NULL)
   28929     {
   28930       wchar_t wc = (wchar_t) 0xBADFACE;
   28931       mbstate_t state;
   28932 
   28933       memset (&state, '\0', sizeof (mbstate_t));
   28934       if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
   28935           && wc != (wchar_t) 0xBADFACE)
   28936         result |= 1;
   28937     }
   28938   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
   28939     {
   28940       wchar_t wc = (wchar_t) 0xBADFACE;
   28941       mbstate_t state;
   28942 
   28943       memset (&state, '\0', sizeof (mbstate_t));
   28944       if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
   28945           && wc != (wchar_t) 0xBADFACE)
   28946         result |= 2;
   28947     }
   28948   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
   28949     {
   28950       wchar_t wc = (wchar_t) 0xBADFACE;
   28951       mbstate_t state;
   28952 
   28953       memset (&state, '\0', sizeof (mbstate_t));
   28954       if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
   28955           && wc != (wchar_t) 0xBADFACE)
   28956         result |= 4;
   28957     }
   28958   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
   28959     {
   28960       wchar_t wc = (wchar_t) 0xBADFACE;
   28961       mbstate_t state;
   28962 
   28963       memset (&state, '\0', sizeof (mbstate_t));
   28964       if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
   28965           && wc != (wchar_t) 0xBADFACE)
   28966         result |= 8;
   28967     }
   28968   return result;
   28969 }
   28970 _ACEOF
   28971 if ac_fn_c_try_run "$LINENO"; then :
   28972   gl_cv_func_mbrtowc_stores_incomplete=no
   28973 else
   28974   gl_cv_func_mbrtowc_stores_incomplete=yes
   28975 fi
   28976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   28977   conftest.$ac_objext conftest.beam conftest.$ac_ext
   28978 fi
   28979 
   28980          ;;
   28981        *)
   28982 
   28983          if test $LOCALE_FR_UTF8 != none; then
   28984            if test "$cross_compiling" = yes; then :
   28985   :
   28986 else
   28987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   28988 /* end confdefs.h.  */
   28989 
   28990 #include <locale.h>
   28991 #include <string.h>
   28992 #include <wchar.h>
   28993 int main ()
   28994 {
   28995   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   28996     {
   28997       wchar_t wc = (wchar_t) 0xBADFACE;
   28998       mbstate_t state;
   28999 
   29000       memset (&state, '\0', sizeof (mbstate_t));
   29001       if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
   29002           && wc != (wchar_t) 0xBADFACE)
   29003         return 1;
   29004     }
   29005   return 0;
   29006 }
   29007 _ACEOF
   29008 if ac_fn_c_try_run "$LINENO"; then :
   29009   gl_cv_func_mbrtowc_stores_incomplete=no
   29010 else
   29011   gl_cv_func_mbrtowc_stores_incomplete=yes
   29012 fi
   29013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29014   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29015 fi
   29016 
   29017          fi
   29018          ;;
   29019      esac
   29020 
   29021 fi
   29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
   29023 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
   29024 
   29025 
   29026 
   29027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
   29028 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
   29029 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
   29030   $as_echo_n "(cached) " >&6
   29031 else
   29032 
   29033                   case "$host_os" in
   29034                               # Guess no on AIX and glibc systems.
   29035         aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
   29036                               # Guess yes on native Windows.
   29037         mingw*)               gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
   29038         *)                    gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
   29039       esac
   29040       if test "$cross_compiling" = yes; then :
   29041   :
   29042 else
   29043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29044 /* end confdefs.h.  */
   29045 
   29046            #include <wchar.h>
   29047            static wchar_t wc;
   29048            static mbstate_t mbs;
   29049            int
   29050            main (void)
   29051            {
   29052              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
   29053            }
   29054 _ACEOF
   29055 if ac_fn_c_try_run "$LINENO"; then :
   29056   gl_cv_func_mbrtowc_empty_input=yes
   29057 else
   29058   gl_cv_func_mbrtowc_empty_input=no
   29059 fi
   29060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29061   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29062 fi
   29063 
   29064 
   29065 fi
   29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
   29067 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
   29068 
   29069 
   29070      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
   29071 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
   29072 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false; then :
   29073   $as_echo_n "(cached) " >&6
   29074 else
   29075 
   29076                gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
   29077 
   29078      if test "$cross_compiling" = yes; then :
   29079   case "$host_os" in
   29080                  # Guess yes on native Windows.
   29081          mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
   29082        esac
   29083 
   29084 else
   29085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29086 /* end confdefs.h.  */
   29087 #include <limits.h>
   29088             #include <locale.h>
   29089             #include <wchar.h>
   29090 
   29091 int
   29092 main ()
   29093 {
   29094 
   29095             int i;
   29096             char *locale = setlocale (LC_ALL, "C");
   29097             if (! locale)
   29098               return 2;
   29099             for (i = CHAR_MIN; i <= CHAR_MAX; i++)
   29100               {
   29101                 char c = i;
   29102                 wchar_t wc;
   29103                 mbstate_t mbs = { 0, };
   29104                 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
   29105                 if (1 < ss)
   29106                   return 3;
   29107               }
   29108             return 0;
   29109 
   29110   ;
   29111   return 0;
   29112 }
   29113 _ACEOF
   29114 if ac_fn_c_try_run "$LINENO"; then :
   29115   gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
   29116 else
   29117   gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no
   29118 fi
   29119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29120   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29121 fi
   29122 
   29123 
   29124 fi
   29125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
   29126 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
   29127 
   29128       case "$gl_cv_func_mbrtowc_null_arg1" in
   29129         *yes) ;;
   29130         *)
   29131 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
   29132 
   29133            REPLACE_MBRTOWC=1
   29134            ;;
   29135       esac
   29136       case "$gl_cv_func_mbrtowc_null_arg2" in
   29137         *yes) ;;
   29138         *)
   29139 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
   29140 
   29141            REPLACE_MBRTOWC=1
   29142            ;;
   29143       esac
   29144       case "$gl_cv_func_mbrtowc_retval" in
   29145         *yes) ;;
   29146         *)
   29147 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
   29148 
   29149            REPLACE_MBRTOWC=1
   29150            ;;
   29151       esac
   29152       case "$gl_cv_func_mbrtowc_nul_retval" in
   29153         *yes) ;;
   29154         *)
   29155 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
   29156 
   29157            REPLACE_MBRTOWC=1
   29158            ;;
   29159       esac
   29160       case "$gl_cv_func_mbrtowc_stores_incomplete" in
   29161         *no) ;;
   29162         *)
   29163 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
   29164 
   29165            REPLACE_MBRTOWC=1
   29166            ;;
   29167       esac
   29168       case "$gl_cv_func_mbrtowc_empty_input" in
   29169         *yes) ;;
   29170         *)
   29171 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
   29172 
   29173            REPLACE_MBRTOWC=1
   29174            ;;
   29175       esac
   29176       case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
   29177         *yes) ;;
   29178         *)
   29179 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
   29180 
   29181            REPLACE_MBRTOWC=1
   29182            ;;
   29183       esac
   29184     fi
   29185   fi
   29186   if test $REPLACE_MBSTATE_T = 1; then
   29187     case "$host_os" in
   29188       mingw*) LIB_MBRTOWC= ;;
   29189       *)
   29190 
   29191 
   29192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
   29193 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
   29194 if ${gl_cv_have_weak+:} false; then :
   29195   $as_echo_n "(cached) " >&6
   29196 else
   29197   case "$host_os" in
   29198        cygwin*)
   29199                                     gl_cv_have_weak="guessing no"
   29200          ;;
   29201        *)
   29202          gl_cv_have_weak=no
   29203                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29204 /* end confdefs.h.  */
   29205 extern void xyzzy ();
   29206 #pragma weak xyzzy
   29207 int
   29208 main ()
   29209 {
   29210 xyzzy();
   29211   ;
   29212   return 0;
   29213 }
   29214 _ACEOF
   29215 if ac_fn_c_try_link "$LINENO"; then :
   29216   gl_cv_have_weak=maybe
   29217 fi
   29218 rm -f core conftest.err conftest.$ac_objext \
   29219     conftest$ac_exeext conftest.$ac_ext
   29220          if test $gl_cv_have_weak = maybe; then
   29221                                  if test "$cross_compiling" = yes; then :
   29222                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29223 /* end confdefs.h.  */
   29224 #ifdef __ELF__
   29225                  Extensible Linking Format
   29226                  #endif
   29227 
   29228 _ACEOF
   29229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   29230   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
   29231   gl_cv_have_weak="guessing yes"
   29232 else
   29233   gl_cv_have_weak="guessing no"
   29234 fi
   29235 rm -f conftest*
   29236 
   29237 
   29238 else
   29239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29240 /* end confdefs.h.  */
   29241 
   29242 #include <stdio.h>
   29243 #pragma weak fputs
   29244 int main ()
   29245 {
   29246   return (fputs == NULL);
   29247 }
   29248 _ACEOF
   29249 if ac_fn_c_try_run "$LINENO"; then :
   29250   gl_cv_have_weak=yes
   29251 else
   29252   gl_cv_have_weak=no
   29253 fi
   29254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29255   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29256 fi
   29257 
   29258          fi
   29259          ;;
   29260      esac
   29261           case " $LDFLAGS " in
   29262        *" -static "*) gl_cv_have_weak=no ;;
   29263      esac
   29264                     case "$gl_cv_have_weak" in
   29265        *yes)
   29266          case "$host_os" in
   29267            freebsd* | dragonfly* | midnightbsd*)
   29268              : > conftest1.c
   29269              $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
   29270              cat <<EOF > conftest2.c
   29271 #include <pthread.h>
   29272 #pragma weak pthread_mutexattr_gettype
   29273 int main ()
   29274 {
   29275   return (pthread_mutexattr_gettype != NULL);
   29276 }
   29277 EOF
   29278              $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
   29279                || gl_cv_have_weak=no
   29280              rm -f conftest1.c libempty.so conftest2.c conftest
   29281              ;;
   29282          esac
   29283          ;;
   29284      esac
   29285 
   29286 fi
   29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
   29288 $as_echo "$gl_cv_have_weak" >&6; }
   29289   case "$gl_cv_have_weak" in
   29290     *yes)
   29291 
   29292 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
   29293 
   29294       ;;
   29295   esac
   29296 
   29297         case "$gl_cv_have_weak" in
   29298           *yes) LIB_MBRTOWC= ;;
   29299           *)    LIB_MBRTOWC="$LIBPTHREAD" ;;
   29300         esac
   29301         ;;
   29302     esac
   29303   else
   29304     LIB_MBRTOWC=
   29305   fi
   29306 
   29307 
   29308 
   29309      if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
   29310   GL_COND_OBJ_MBRTOWC_TRUE=
   29311   GL_COND_OBJ_MBRTOWC_FALSE='#'
   29312 else
   29313   GL_COND_OBJ_MBRTOWC_TRUE='#'
   29314   GL_COND_OBJ_MBRTOWC_FALSE=
   29315 fi
   29316 :
   29317     if test -z "${GL_COND_OBJ_MBRTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBRTOWC_FALSE}"; then
   29318     GL_COND_OBJ_MBRTOWC_TRUE='#'
   29319     GL_COND_OBJ_MBRTOWC_FALSE='#'
   29320   fi
   29321 
   29322   if test -z "$GL_COND_OBJ_MBRTOWC_TRUE"; then :
   29323 
   29324     if test $REPLACE_MBSTATE_T = 1; then
   29325 
   29326 
   29327 
   29328 
   29329 
   29330 
   29331 
   29332 
   29333   gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
   29334 
   29335 
   29336 
   29337 
   29338 
   29339 
   29340 
   29341 
   29342 
   29343   gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext"
   29344 
   29345 
   29346 
   29347 
   29348   CFLAG_VISIBILITY=
   29349   HAVE_VISIBILITY=0
   29350   if test -n "$GCC"; then
   29351                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
   29352 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
   29353 if ${gl_cv_cc_vis_werror+:} false; then :
   29354   $as_echo_n "(cached) " >&6
   29355 else
   29356   gl_save_CFLAGS="$CFLAGS"
   29357        CFLAGS="$CFLAGS -Werror"
   29358        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29359 /* end confdefs.h.  */
   29360 
   29361 int
   29362 main ()
   29363 {
   29364 
   29365   ;
   29366   return 0;
   29367 }
   29368 _ACEOF
   29369 if ac_fn_c_try_compile "$LINENO"; then :
   29370   gl_cv_cc_vis_werror=yes
   29371 else
   29372   gl_cv_cc_vis_werror=no
   29373 fi
   29374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29375        CFLAGS="$gl_save_CFLAGS"
   29376 
   29377 fi
   29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
   29379 $as_echo "$gl_cv_cc_vis_werror" >&6; }
   29380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
   29381 $as_echo_n "checking for simple visibility declarations... " >&6; }
   29382 if ${gl_cv_cc_visibility+:} false; then :
   29383   $as_echo_n "(cached) " >&6
   29384 else
   29385   gl_save_CFLAGS="$CFLAGS"
   29386        CFLAGS="$CFLAGS -fvisibility=hidden"
   29387                                           if test $gl_cv_cc_vis_werror = yes; then
   29388          CFLAGS="$CFLAGS -Werror"
   29389        fi
   29390        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29391 /* end confdefs.h.  */
   29392 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
   29393               extern __attribute__((__visibility__("default"))) int exportedvar;
   29394               extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
   29395               extern __attribute__((__visibility__("default"))) int exportedfunc (void);
   29396               void dummyfunc (void);
   29397               int hiddenvar;
   29398               int exportedvar;
   29399               int hiddenfunc (void) { return 51; }
   29400               int exportedfunc (void) { return 1225736919; }
   29401               void dummyfunc (void) {}
   29402 
   29403 int
   29404 main ()
   29405 {
   29406 
   29407   ;
   29408   return 0;
   29409 }
   29410 _ACEOF
   29411 if ac_fn_c_try_compile "$LINENO"; then :
   29412   gl_cv_cc_visibility=yes
   29413 else
   29414   gl_cv_cc_visibility=no
   29415 fi
   29416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29417        CFLAGS="$gl_save_CFLAGS"
   29418 
   29419 fi
   29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
   29421 $as_echo "$gl_cv_cc_visibility" >&6; }
   29422     if test $gl_cv_cc_visibility = yes; then
   29423       CFLAG_VISIBILITY="-fvisibility=hidden"
   29424       HAVE_VISIBILITY=1
   29425     fi
   29426   fi
   29427 
   29428 
   29429 
   29430 cat >>confdefs.h <<_ACEOF
   29431 #define HAVE_VISIBILITY $HAVE_VISIBILITY
   29432 _ACEOF
   29433 
   29434 
   29435 
   29436     fi
   29437 
   29438 
   29439   :
   29440 
   29441 
   29442 fi
   29443 
   29444 
   29445 
   29446 
   29447 
   29448 
   29449 
   29450 
   29451 
   29452 
   29453 
   29454 
   29455 
   29456 
   29457           GL_GNULIB_MBRTOWC=1
   29458 
   29459 
   29460 
   29461 
   29462 
   29463 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
   29464 
   29465 
   29466 
   29467 
   29468 
   29469 
   29470 
   29471 
   29472 
   29473 
   29474 
   29475 
   29476 
   29477 
   29478 
   29479         if case "$host_os" in
   29480        mingw*) true ;;
   29481        *) test $ac_cv_func_mbsinit = yes ;;
   29482      esac \
   29483     && test $ac_cv_func_mbrtowc = yes; then
   29484 
   29485 
   29486 
   29487 
   29488      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
   29489 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   29490 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
   29491   $as_echo_n "(cached) " >&6
   29492 else
   29493 
   29494                   case "$host_os" in
   29495                      # Guess no on AIX and OSF/1.
   29496         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   29497                      # Guess yes otherwise.
   29498         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   29499       esac
   29500       if test $LOCALE_JA != none; then
   29501         if test "$cross_compiling" = yes; then :
   29502   :
   29503 else
   29504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29505 /* end confdefs.h.  */
   29506 
   29507 #include <locale.h>
   29508 #include <string.h>
   29509 #include <wchar.h>
   29510 int main ()
   29511 {
   29512   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   29513     {
   29514       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   29515       mbstate_t state;
   29516       wchar_t wc;
   29517 
   29518       memset (&state, '\0', sizeof (mbstate_t));
   29519       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   29520         if (mbsinit (&state))
   29521           return 2;
   29522     }
   29523   return 0;
   29524 }
   29525 _ACEOF
   29526 if ac_fn_c_try_run "$LINENO"; then :
   29527   gl_cv_func_mbrtowc_incomplete_state=yes
   29528 else
   29529   gl_cv_func_mbrtowc_incomplete_state=no
   29530 fi
   29531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29532   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29533 fi
   29534 
   29535       else
   29536         if test $LOCALE_FR_UTF8 != none; then
   29537           if test "$cross_compiling" = yes; then :
   29538   :
   29539 else
   29540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29541 /* end confdefs.h.  */
   29542 
   29543 #include <locale.h>
   29544 #include <string.h>
   29545 #include <wchar.h>
   29546 int main ()
   29547 {
   29548   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   29549     {
   29550       const char input[] = "B\303\274\303\237er"; /* "Ber" */
   29551       mbstate_t state;
   29552       wchar_t wc;
   29553 
   29554       memset (&state, '\0', sizeof (mbstate_t));
   29555       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   29556         if (mbsinit (&state))
   29557           return 2;
   29558     }
   29559   return 0;
   29560 }
   29561 _ACEOF
   29562 if ac_fn_c_try_run "$LINENO"; then :
   29563   gl_cv_func_mbrtowc_incomplete_state=yes
   29564 else
   29565   gl_cv_func_mbrtowc_incomplete_state=no
   29566 fi
   29567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29568   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29569 fi
   29570 
   29571         fi
   29572       fi
   29573 
   29574 fi
   29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   29576 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   29577 
   29578 
   29579 
   29580 
   29581      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
   29582 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   29583 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
   29584   $as_echo_n "(cached) " >&6
   29585 else
   29586 
   29587                   case "$host_os" in
   29588                     # Guess no on Solaris 8.
   29589         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   29590                     # Guess yes otherwise.
   29591         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   29592       esac
   29593       if test $LOCALE_ZH_CN != none; then
   29594         if test "$cross_compiling" = yes; then :
   29595   :
   29596 else
   29597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29598 /* end confdefs.h.  */
   29599 
   29600 #include <locale.h>
   29601 #include <stdlib.h>
   29602 #include <string.h>
   29603 #include <wchar.h>
   29604 int main ()
   29605 {
   29606   /* This fails on Solaris 8:
   29607      mbrtowc returns 2, and sets wc to 0x00F0.
   29608      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   29609   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   29610     {
   29611       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   29612       mbstate_t state;
   29613       wchar_t wc;
   29614 
   29615       memset (&state, '\0', sizeof (mbstate_t));
   29616       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   29617           && mbtowc (&wc, input + 3, 6) == 4)
   29618         return 2;
   29619     }
   29620   return 0;
   29621 }
   29622 _ACEOF
   29623 if ac_fn_c_try_run "$LINENO"; then :
   29624   gl_cv_func_mbrtowc_sanitycheck=yes
   29625 else
   29626   gl_cv_func_mbrtowc_sanitycheck=no
   29627 fi
   29628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29629   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29630 fi
   29631 
   29632       fi
   29633 
   29634 fi
   29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   29636 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   29637 
   29638     REPLACE_MBSTATE_T=0
   29639     case "$gl_cv_func_mbrtowc_incomplete_state" in
   29640       *yes) ;;
   29641       *) REPLACE_MBSTATE_T=1 ;;
   29642     esac
   29643     case "$gl_cv_func_mbrtowc_sanitycheck" in
   29644       *yes) ;;
   29645       *) REPLACE_MBSTATE_T=1 ;;
   29646     esac
   29647   else
   29648     REPLACE_MBSTATE_T=1
   29649   fi
   29650 
   29651 
   29652 
   29653   if test $ac_cv_func_mbsinit = no; then
   29654     HAVE_MBSINIT=0
   29655     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
   29656       #include <wchar.h>
   29657 
   29658 "
   29659 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
   29660   ac_have_decl=1
   29661 else
   29662   ac_have_decl=0
   29663 fi
   29664 
   29665 cat >>confdefs.h <<_ACEOF
   29666 #define HAVE_DECL_MBSINIT $ac_have_decl
   29667 _ACEOF
   29668 
   29669     if test $ac_cv_have_decl_mbsinit = yes; then
   29670                         REPLACE_MBSINIT=1
   29671     fi
   29672   else
   29673     if test $REPLACE_MBSTATE_T = 1; then
   29674       REPLACE_MBSINIT=1
   29675     else
   29676                         case "$host_os" in
   29677         mingw*) REPLACE_MBSINIT=1 ;;
   29678       esac
   29679     fi
   29680   fi
   29681 
   29682 
   29683      if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
   29684   GL_COND_OBJ_MBSINIT_TRUE=
   29685   GL_COND_OBJ_MBSINIT_FALSE='#'
   29686 else
   29687   GL_COND_OBJ_MBSINIT_TRUE='#'
   29688   GL_COND_OBJ_MBSINIT_FALSE=
   29689 fi
   29690 :
   29691     if test -z "${GL_COND_OBJ_MBSINIT_TRUE}" && test -z "${GL_COND_OBJ_MBSINIT_FALSE}"; then
   29692     GL_COND_OBJ_MBSINIT_TRUE='#'
   29693     GL_COND_OBJ_MBSINIT_FALSE='#'
   29694   fi
   29695 
   29696   if test -z "$GL_COND_OBJ_MBSINIT_TRUE"; then :
   29697 
   29698 
   29699   :
   29700 
   29701 
   29702 fi
   29703 
   29704 
   29705 
   29706 
   29707 
   29708 
   29709 
   29710 
   29711 
   29712 
   29713 
   29714 
   29715 
   29716 
   29717           GL_GNULIB_MBSINIT=1
   29718 
   29719 
   29720 
   29721 
   29722 
   29723 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
   29724 
   29725 
   29726 
   29727 
   29728 
   29729 
   29730 
   29731 
   29732 
   29733 
   29734 
   29735 
   29736 
   29737 
   29738         if case "$host_os" in
   29739        mingw*) true ;;
   29740        *) test $ac_cv_func_mbsinit = yes ;;
   29741      esac \
   29742     && test $ac_cv_func_mbrtowc = yes; then
   29743 
   29744 
   29745 
   29746 
   29747      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
   29748 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
   29749 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
   29750   $as_echo_n "(cached) " >&6
   29751 else
   29752 
   29753                   case "$host_os" in
   29754                      # Guess no on AIX and OSF/1.
   29755         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
   29756                      # Guess yes otherwise.
   29757         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
   29758       esac
   29759       if test $LOCALE_JA != none; then
   29760         if test "$cross_compiling" = yes; then :
   29761   :
   29762 else
   29763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29764 /* end confdefs.h.  */
   29765 
   29766 #include <locale.h>
   29767 #include <string.h>
   29768 #include <wchar.h>
   29769 int main ()
   29770 {
   29771   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   29772     {
   29773       const char input[] = "B\217\253\344\217\251\316er"; /* "Ber" */
   29774       mbstate_t state;
   29775       wchar_t wc;
   29776 
   29777       memset (&state, '\0', sizeof (mbstate_t));
   29778       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   29779         if (mbsinit (&state))
   29780           return 2;
   29781     }
   29782   return 0;
   29783 }
   29784 _ACEOF
   29785 if ac_fn_c_try_run "$LINENO"; then :
   29786   gl_cv_func_mbrtowc_incomplete_state=yes
   29787 else
   29788   gl_cv_func_mbrtowc_incomplete_state=no
   29789 fi
   29790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29791   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29792 fi
   29793 
   29794       else
   29795         if test $LOCALE_FR_UTF8 != none; then
   29796           if test "$cross_compiling" = yes; then :
   29797   :
   29798 else
   29799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29800 /* end confdefs.h.  */
   29801 
   29802 #include <locale.h>
   29803 #include <string.h>
   29804 #include <wchar.h>
   29805 int main ()
   29806 {
   29807   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   29808     {
   29809       const char input[] = "B\303\274\303\237er"; /* "Ber" */
   29810       mbstate_t state;
   29811       wchar_t wc;
   29812 
   29813       memset (&state, '\0', sizeof (mbstate_t));
   29814       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
   29815         if (mbsinit (&state))
   29816           return 2;
   29817     }
   29818   return 0;
   29819 }
   29820 _ACEOF
   29821 if ac_fn_c_try_run "$LINENO"; then :
   29822   gl_cv_func_mbrtowc_incomplete_state=yes
   29823 else
   29824   gl_cv_func_mbrtowc_incomplete_state=no
   29825 fi
   29826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29827   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29828 fi
   29829 
   29830         fi
   29831       fi
   29832 
   29833 fi
   29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
   29835 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
   29836 
   29837 
   29838 
   29839 
   29840      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
   29841 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
   29842 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
   29843   $as_echo_n "(cached) " >&6
   29844 else
   29845 
   29846                   case "$host_os" in
   29847                     # Guess no on Solaris 8.
   29848         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
   29849                     # Guess yes otherwise.
   29850         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
   29851       esac
   29852       if test $LOCALE_ZH_CN != none; then
   29853         if test "$cross_compiling" = yes; then :
   29854   :
   29855 else
   29856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29857 /* end confdefs.h.  */
   29858 
   29859 #include <locale.h>
   29860 #include <stdlib.h>
   29861 #include <string.h>
   29862 #include <wchar.h>
   29863 int main ()
   29864 {
   29865   /* This fails on Solaris 8:
   29866      mbrtowc returns 2, and sets wc to 0x00F0.
   29867      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
   29868   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   29869     {
   29870       char input[] = "B\250\271\201\060\211\070er"; /* "Ber" */
   29871       mbstate_t state;
   29872       wchar_t wc;
   29873 
   29874       memset (&state, '\0', sizeof (mbstate_t));
   29875       if (mbrtowc (&wc, input + 3, 6, &state) != 4
   29876           && mbtowc (&wc, input + 3, 6) == 4)
   29877         return 2;
   29878     }
   29879   return 0;
   29880 }
   29881 _ACEOF
   29882 if ac_fn_c_try_run "$LINENO"; then :
   29883   gl_cv_func_mbrtowc_sanitycheck=yes
   29884 else
   29885   gl_cv_func_mbrtowc_sanitycheck=no
   29886 fi
   29887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   29888   conftest.$ac_objext conftest.beam conftest.$ac_ext
   29889 fi
   29890 
   29891       fi
   29892 
   29893 fi
   29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
   29895 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
   29896 
   29897     REPLACE_MBSTATE_T=0
   29898     case "$gl_cv_func_mbrtowc_incomplete_state" in
   29899       *yes) ;;
   29900       *) REPLACE_MBSTATE_T=1 ;;
   29901     esac
   29902     case "$gl_cv_func_mbrtowc_sanitycheck" in
   29903       *yes) ;;
   29904       *) REPLACE_MBSTATE_T=1 ;;
   29905     esac
   29906   else
   29907     REPLACE_MBSTATE_T=1
   29908   fi
   29909 
   29910 
   29911 
   29912   if test $ac_cv_func_mbsrtowcs = no; then
   29913     HAVE_MBSRTOWCS=0
   29914     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
   29915       #include <wchar.h>
   29916 
   29917 "
   29918 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
   29919   ac_have_decl=1
   29920 else
   29921   ac_have_decl=0
   29922 fi
   29923 
   29924 cat >>confdefs.h <<_ACEOF
   29925 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
   29926 _ACEOF
   29927 
   29928     if test $ac_cv_have_decl_mbsrtowcs = yes; then
   29929                         REPLACE_MBSRTOWCS=1
   29930     fi
   29931   else
   29932     if test $REPLACE_MBSTATE_T = 1; then
   29933       REPLACE_MBSRTOWCS=1
   29934     else
   29935 
   29936 
   29937 
   29938 
   29939 
   29940 
   29941      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
   29942 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
   29943 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
   29944   $as_echo_n "(cached) " >&6
   29945 else
   29946 
   29947                   case "$host_os" in
   29948                                    # Guess no on HP-UX, Solaris, mingw.
   29949         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
   29950                                    # Guess yes otherwise.
   29951         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
   29952       esac
   29953       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
   29954         if test "$cross_compiling" = yes; then :
   29955   :
   29956 else
   29957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   29958 /* end confdefs.h.  */
   29959 
   29960 #include <locale.h>
   29961 #include <string.h>
   29962 #include <wchar.h>
   29963 int main ()
   29964 {
   29965   int result = 0;
   29966   /* Test whether the function supports a NULL destination argument.
   29967      This fails on native Windows.  */
   29968   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
   29969     {
   29970       const char input[] = "\337er";
   29971       const char *src = input;
   29972       mbstate_t state;
   29973 
   29974       memset (&state, '\0', sizeof (mbstate_t));
   29975       if (mbsrtowcs (NULL, &src, 1, &state) != 3
   29976           || src != input)
   29977         result |= 1;
   29978     }
   29979   /* Test whether the function works when started with a conversion state
   29980      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
   29981   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
   29982     {
   29983       const char input[] = "B\303\274\303\237er";
   29984       mbstate_t state;
   29985 
   29986       memset (&state, '\0', sizeof (mbstate_t));
   29987       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
   29988         if (!mbsinit (&state))
   29989           {
   29990             const char *src = input + 2;
   29991             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
   29992               result |= 2;
   29993           }
   29994     }
   29995   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
   29996     {
   29997       const char input[] = "<\306\374\313\334\270\354>";
   29998       mbstate_t state;
   29999 
   30000       memset (&state, '\0', sizeof (mbstate_t));
   30001       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
   30002         if (!mbsinit (&state))
   30003           {
   30004             const char *src = input + 4;
   30005             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
   30006               result |= 4;
   30007           }
   30008     }
   30009   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
   30010     {
   30011       const char input[] = "B\250\271\201\060\211\070er";
   30012       mbstate_t state;
   30013 
   30014       memset (&state, '\0', sizeof (mbstate_t));
   30015       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
   30016         if (!mbsinit (&state))
   30017           {
   30018             const char *src = input + 2;
   30019             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
   30020               result |= 8;
   30021           }
   30022     }
   30023   return result;
   30024 }
   30025 _ACEOF
   30026 if ac_fn_c_try_run "$LINENO"; then :
   30027   gl_cv_func_mbsrtowcs_works=yes
   30028 else
   30029   gl_cv_func_mbsrtowcs_works=no
   30030 fi
   30031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30032   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30033 fi
   30034 
   30035       fi
   30036 
   30037 fi
   30038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
   30039 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
   30040 
   30041       case "$gl_cv_func_mbsrtowcs_works" in
   30042         *yes) ;;
   30043         *) REPLACE_MBSRTOWCS=1 ;;
   30044       esac
   30045     fi
   30046   fi
   30047 
   30048 
   30049      if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
   30050   GL_COND_OBJ_MBSRTOWCS_TRUE=
   30051   GL_COND_OBJ_MBSRTOWCS_FALSE='#'
   30052 else
   30053   GL_COND_OBJ_MBSRTOWCS_TRUE='#'
   30054   GL_COND_OBJ_MBSRTOWCS_FALSE=
   30055 fi
   30056 :
   30057     if test -z "${GL_COND_OBJ_MBSRTOWCS_TRUE}" && test -z "${GL_COND_OBJ_MBSRTOWCS_FALSE}"; then
   30058     GL_COND_OBJ_MBSRTOWCS_TRUE='#'
   30059     GL_COND_OBJ_MBSRTOWCS_FALSE='#'
   30060   fi
   30061 
   30062   if test -z "$GL_COND_OBJ_MBSRTOWCS_TRUE"; then :
   30063 
   30064 
   30065 
   30066 
   30067 
   30068 
   30069 
   30070 
   30071 
   30072   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
   30073 
   30074 
   30075   :
   30076 
   30077 
   30078 fi
   30079 
   30080 
   30081 
   30082 
   30083 
   30084 
   30085 
   30086 
   30087 
   30088 
   30089 
   30090 
   30091 
   30092 
   30093           GL_GNULIB_MBSRTOWCS=1
   30094 
   30095 
   30096 
   30097 
   30098 
   30099 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
   30100 
   30101 
   30102 
   30103 
   30104 
   30105 
   30106   for ac_func in mbtowc
   30107 do :
   30108   ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc"
   30109 if test "x$ac_cv_func_mbtowc" = xyes; then :
   30110   cat >>confdefs.h <<_ACEOF
   30111 #define HAVE_MBTOWC 1
   30112 _ACEOF
   30113 
   30114 fi
   30115 done
   30116 
   30117   if test $ac_cv_func_mbtowc = no; then
   30118     HAVE_MBTOWC=0
   30119   else
   30120     if false; then
   30121       REPLACE_MBTOWC=1
   30122     fi
   30123   fi
   30124 
   30125 
   30126      if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
   30127   GL_COND_OBJ_MBTOWC_TRUE=
   30128   GL_COND_OBJ_MBTOWC_FALSE='#'
   30129 else
   30130   GL_COND_OBJ_MBTOWC_TRUE='#'
   30131   GL_COND_OBJ_MBTOWC_FALSE=
   30132 fi
   30133 :
   30134     if test -z "${GL_COND_OBJ_MBTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBTOWC_FALSE}"; then
   30135     GL_COND_OBJ_MBTOWC_TRUE='#'
   30136     GL_COND_OBJ_MBTOWC_FALSE='#'
   30137   fi
   30138 
   30139   if test -z "$GL_COND_OBJ_MBTOWC_TRUE"; then :
   30140 
   30141 
   30142   :
   30143 
   30144 
   30145 fi
   30146 
   30147 
   30148 
   30149 
   30150 
   30151 
   30152 
   30153 
   30154 
   30155           GL_GNULIB_MBTOWC=1
   30156 
   30157 
   30158 
   30159 
   30160 
   30161 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
   30162 
   30163 
   30164 
   30165 
   30166 
   30167      if test $REPLACE_MEMCHR = 1; then
   30168   GL_COND_OBJ_MEMCHR_TRUE=
   30169   GL_COND_OBJ_MEMCHR_FALSE='#'
   30170 else
   30171   GL_COND_OBJ_MEMCHR_TRUE='#'
   30172   GL_COND_OBJ_MEMCHR_FALSE=
   30173 fi
   30174 :
   30175     if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
   30176     GL_COND_OBJ_MEMCHR_TRUE='#'
   30177     GL_COND_OBJ_MEMCHR_FALSE='#'
   30178   fi
   30179 
   30180   if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
   30181 
   30182 
   30183   for ac_header in bp-sym.h
   30184 do :
   30185   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
   30186 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
   30187   cat >>confdefs.h <<_ACEOF
   30188 #define HAVE_BP_SYM_H 1
   30189 _ACEOF
   30190 
   30191 fi
   30192 
   30193 done
   30194 
   30195 
   30196 
   30197 fi
   30198 
   30199 
   30200 
   30201 
   30202 
   30203 
   30204 
   30205 
   30206 
   30207 
   30208 
   30209 
   30210 
   30211 
   30212           GL_GNULIB_MEMCHR=1
   30213 
   30214 
   30215 
   30216 
   30217 
   30218 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
   30219 
   30220 
   30221 
   30222 
   30223 
   30224   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
   30225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
   30226 $as_echo_n "checking whether memmem works in linear time... " >&6; }
   30227 if ${gl_cv_func_memmem_works_fast+:} false; then :
   30228   $as_echo_n "(cached) " >&6
   30229 else
   30230   if test "$cross_compiling" = yes; then :
   30231                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30232 /* end confdefs.h.  */
   30233 
   30234 #include <features.h>
   30235 #ifdef __GNU_LIBRARY__
   30236  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
   30237      && !defined __UCLIBC__
   30238   Lucky user
   30239  #endif
   30240 #endif
   30241 #ifdef __CYGWIN__
   30242  #include <cygwin/version.h>
   30243  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
   30244   Lucky user
   30245  #endif
   30246 #endif
   30247 
   30248 _ACEOF
   30249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   30250   $EGREP "Lucky user" >/dev/null 2>&1; then :
   30251   gl_cv_func_memmem_works_fast="guessing yes"
   30252 else
   30253   gl_cv_func_memmem_works_fast="$gl_cross_guess_normal"
   30254 fi
   30255 rm -f conftest*
   30256 
   30257 
   30258 else
   30259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30260 /* end confdefs.h.  */
   30261 
   30262 #include <signal.h> /* for signal */
   30263 #include <string.h> /* for memmem */
   30264 #include <stdlib.h> /* for malloc */
   30265 #include <unistd.h> /* for alarm */
   30266 static void quit (int sig) { _exit (sig + 128); }
   30267 
   30268 int
   30269 main ()
   30270 {
   30271 
   30272     int result = 0;
   30273     size_t m = 1000000;
   30274     char *haystack = (char *) malloc (2 * m + 1);
   30275     char *needle = (char *) malloc (m + 1);
   30276     /* Failure to compile this test due to missing alarm is okay,
   30277        since all such platforms (mingw) also lack memmem.  */
   30278     signal (SIGALRM, quit);
   30279     alarm (5);
   30280     /* Check for quadratic performance.  */
   30281     if (haystack && needle)
   30282       {
   30283         memset (haystack, 'A', 2 * m);
   30284         haystack[2 * m] = 'B';
   30285         memset (needle, 'A', m);
   30286         needle[m] = 'B';
   30287         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
   30288           result |= 1;
   30289       }
   30290     /* Free allocated memory, in case some sanitizer is watching.  */
   30291     free (haystack);
   30292     free (needle);
   30293     return result;
   30294 
   30295   ;
   30296   return 0;
   30297 }
   30298 _ACEOF
   30299 if ac_fn_c_try_run "$LINENO"; then :
   30300   gl_cv_func_memmem_works_fast=yes
   30301 else
   30302   gl_cv_func_memmem_works_fast=no
   30303 fi
   30304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30305   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30306 fi
   30307 
   30308 
   30309 fi
   30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
   30311 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
   30312     case "$gl_cv_func_memmem_works_fast" in
   30313       *yes) ;;
   30314       *)
   30315         REPLACE_MEMMEM=1
   30316         ;;
   30317     esac
   30318   fi
   30319 
   30320   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
   30321 
   30322 
   30323 
   30324 
   30325 
   30326 
   30327 
   30328 
   30329   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
   30330 
   30331   fi
   30332 
   30333 
   30334 
   30335 
   30336   for ac_func in memmem
   30337 do :
   30338   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
   30339 if test "x$ac_cv_func_memmem" = xyes; then :
   30340   cat >>confdefs.h <<_ACEOF
   30341 #define HAVE_MEMMEM 1
   30342 _ACEOF
   30343 
   30344 fi
   30345 done
   30346 
   30347   if test $ac_cv_func_memmem = yes; then
   30348     HAVE_MEMMEM=1
   30349   else
   30350     HAVE_MEMMEM=0
   30351   fi
   30352 
   30353   if test $ac_cv_have_decl_memmem = no; then
   30354     HAVE_DECL_MEMMEM=0
   30355   else
   30356             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
   30357 $as_echo_n "checking whether memmem works... " >&6; }
   30358 if ${gl_cv_func_memmem_works_always+:} false; then :
   30359   $as_echo_n "(cached) " >&6
   30360 else
   30361   if test "$cross_compiling" = yes; then :
   30362                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30363 /* end confdefs.h.  */
   30364 
   30365 #include <string.h> /* for __GNU_LIBRARY__ */
   30366 #ifdef __GNU_LIBRARY__
   30367  #include <features.h>
   30368  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
   30369                           || __GLIBC_MINOR__ > 12)) \
   30370       || (__GLIBC__ > 2)) \
   30371      || defined __UCLIBC__
   30372   Lucky user
   30373  #endif
   30374 #elif defined __CYGWIN__
   30375  #include <cygwin/version.h>
   30376  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
   30377   Lucky user
   30378  #endif
   30379 #else
   30380   Lucky user
   30381 #endif
   30382 
   30383 _ACEOF
   30384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   30385   $EGREP "Lucky user" >/dev/null 2>&1; then :
   30386   gl_cv_func_memmem_works_always="guessing yes"
   30387 else
   30388   gl_cv_func_memmem_works_always="$gl_cross_guess_normal"
   30389 fi
   30390 rm -f conftest*
   30391 
   30392 
   30393 else
   30394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30395 /* end confdefs.h.  */
   30396 
   30397 #include <string.h> /* for memmem */
   30398 #define P "_EF_BF_BD"
   30399 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
   30400 #define NEEDLE P P P P P
   30401 
   30402 int
   30403 main ()
   30404 {
   30405 
   30406     int result = 0;
   30407     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
   30408       result |= 1;
   30409     /* Check for empty needle behavior.  */
   30410     {
   30411       const char *haystack = "AAA";
   30412       if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
   30413         result |= 2;
   30414     }
   30415     return result;
   30416 
   30417   ;
   30418   return 0;
   30419 }
   30420 _ACEOF
   30421 if ac_fn_c_try_run "$LINENO"; then :
   30422   gl_cv_func_memmem_works_always=yes
   30423 else
   30424   gl_cv_func_memmem_works_always=no
   30425 fi
   30426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30427   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30428 fi
   30429 
   30430 
   30431 fi
   30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
   30433 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
   30434     case "$gl_cv_func_memmem_works_always" in
   30435       *yes) ;;
   30436       *)
   30437         REPLACE_MEMMEM=1
   30438         ;;
   30439     esac
   30440   fi
   30441   :
   30442 
   30443   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
   30444 
   30445 
   30446 
   30447 
   30448 
   30449 
   30450 
   30451 
   30452   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
   30453 
   30454   fi
   30455 
   30456 
   30457 
   30458 
   30459 
   30460 
   30461 
   30462 
   30463 
   30464 
   30465 
   30466 
   30467 
   30468 
   30469           GL_GNULIB_MEMMEM=1
   30470 
   30471 
   30472 
   30473 
   30474 
   30475 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
   30476 
   30477 
   30478 
   30479 
   30480 
   30481 
   30482 
   30483 
   30484 
   30485   for ac_func in mempcpy
   30486 do :
   30487   ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
   30488 if test "x$ac_cv_func_mempcpy" = xyes; then :
   30489   cat >>confdefs.h <<_ACEOF
   30490 #define HAVE_MEMPCPY 1
   30491 _ACEOF
   30492 
   30493 fi
   30494 done
   30495 
   30496   if test $ac_cv_func_mempcpy = no; then
   30497     HAVE_MEMPCPY=0
   30498   fi
   30499 
   30500 
   30501      if test $HAVE_MEMPCPY = 0; then
   30502   GL_COND_OBJ_MEMPCPY_TRUE=
   30503   GL_COND_OBJ_MEMPCPY_FALSE='#'
   30504 else
   30505   GL_COND_OBJ_MEMPCPY_TRUE='#'
   30506   GL_COND_OBJ_MEMPCPY_FALSE=
   30507 fi
   30508 :
   30509     if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then
   30510     GL_COND_OBJ_MEMPCPY_TRUE='#'
   30511     GL_COND_OBJ_MEMPCPY_FALSE='#'
   30512   fi
   30513 
   30514   if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then :
   30515 
   30516 
   30517   :
   30518 
   30519 
   30520 fi
   30521 
   30522 
   30523 
   30524 
   30525 
   30526 
   30527 
   30528 
   30529 
   30530 
   30531 
   30532 
   30533 
   30534 
   30535           GL_GNULIB_MEMPCPY=1
   30536 
   30537 
   30538 
   30539 
   30540 
   30541 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
   30542 
   30543 
   30544 
   30545 
   30546 
   30547 
   30548 
   30549 
   30550   if test $ac_cv_have_decl_memrchr = no; then
   30551     HAVE_DECL_MEMRCHR=0
   30552   fi
   30553 
   30554   for ac_func in memrchr
   30555 do :
   30556   ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
   30557 if test "x$ac_cv_func_memrchr" = xyes; then :
   30558   cat >>confdefs.h <<_ACEOF
   30559 #define HAVE_MEMRCHR 1
   30560 _ACEOF
   30561 
   30562 fi
   30563 done
   30564 
   30565 
   30566 
   30567      if test $ac_cv_func_memrchr = no; then
   30568   GL_COND_OBJ_MEMRCHR_TRUE=
   30569   GL_COND_OBJ_MEMRCHR_FALSE='#'
   30570 else
   30571   GL_COND_OBJ_MEMRCHR_TRUE='#'
   30572   GL_COND_OBJ_MEMRCHR_FALSE=
   30573 fi
   30574 :
   30575     if test -z "${GL_COND_OBJ_MEMRCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMRCHR_FALSE}"; then
   30576     GL_COND_OBJ_MEMRCHR_TRUE='#'
   30577     GL_COND_OBJ_MEMRCHR_FALSE='#'
   30578   fi
   30579 
   30580   if test -z "$GL_COND_OBJ_MEMRCHR_TRUE"; then :
   30581 
   30582     :
   30583 
   30584 fi
   30585 
   30586 
   30587 
   30588 
   30589 
   30590 
   30591 
   30592 
   30593 
   30594 
   30595 
   30596 
   30597 
   30598 
   30599           GL_GNULIB_MEMRCHR=1
   30600 
   30601 
   30602 
   30603 
   30604 
   30605 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
   30606 
   30607 
   30608 
   30609 
   30610 
   30611 
   30612 
   30613 
   30614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
   30615 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
   30616 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
   30617   $as_echo_n "(cached) " >&6
   30618 else
   30619   rm -rf conftest.dir
   30620      if test "$cross_compiling" = yes; then :
   30621   case "$host_os" in
   30622                            # Guess yes on Linux systems.
   30623           linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
   30624                            # Guess yes on glibc systems.
   30625           *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
   30626                            # Guess yes on MSVC, no on mingw.
   30627           mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30628 /* end confdefs.h.  */
   30629 
   30630 #ifdef _MSC_VER
   30631  Known
   30632 #endif
   30633 
   30634 _ACEOF
   30635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   30636   $EGREP "Known" >/dev/null 2>&1; then :
   30637   gl_cv_func_mkdir_trailing_slash_works="guessing yes"
   30638 else
   30639   gl_cv_func_mkdir_trailing_slash_works="guessing no"
   30640 fi
   30641 rm -f conftest*
   30642 
   30643                            ;;
   30644                            # If we don't know, obey --enable-cross-guesses.
   30645           *)               gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
   30646         esac
   30647 
   30648 else
   30649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30650 /* end confdefs.h.  */
   30651 
   30652           #include <sys/types.h>
   30653           #include <sys/stat.h>
   30654 
   30655 
   30656 $gl_mda_defines
   30657 
   30658 int
   30659 main ()
   30660 {
   30661 return mkdir ("conftest.dir/", 0700);
   30662   ;
   30663   return 0;
   30664 }
   30665 _ACEOF
   30666 if ac_fn_c_try_run "$LINENO"; then :
   30667   gl_cv_func_mkdir_trailing_slash_works=yes
   30668 else
   30669   gl_cv_func_mkdir_trailing_slash_works=no
   30670 fi
   30671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30672   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30673 fi
   30674 
   30675      rm -rf conftest.dir
   30676 
   30677 fi
   30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
   30679 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
   30680   case "$gl_cv_func_mkdir_trailing_slash_works" in
   30681     *yes) ;;
   30682     *)
   30683       REPLACE_MKDIR=1
   30684       ;;
   30685   esac
   30686 
   30687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
   30688 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
   30689 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
   30690   $as_echo_n "(cached) " >&6
   30691 else
   30692   rm -rf conftest.dir
   30693      if test "$cross_compiling" = yes; then :
   30694   case "$host_os" in
   30695                          # Guess yes on glibc systems.
   30696           *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
   30697                          # Guess yes on musl systems.
   30698           *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
   30699                          # Guess no on native Windows.
   30700           mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
   30701                          # If we don't know, obey --enable-cross-guesses.
   30702           *)             gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
   30703         esac
   30704 
   30705 else
   30706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30707 /* end confdefs.h.  */
   30708 
   30709           #include <sys/types.h>
   30710           #include <sys/stat.h>
   30711 
   30712 
   30713 $gl_mda_defines
   30714 
   30715 int
   30716 main ()
   30717 {
   30718 return !mkdir ("conftest.dir/./", 0700);
   30719   ;
   30720   return 0;
   30721 }
   30722 _ACEOF
   30723 if ac_fn_c_try_run "$LINENO"; then :
   30724   gl_cv_func_mkdir_trailing_dot_works=yes
   30725 else
   30726   gl_cv_func_mkdir_trailing_dot_works=no
   30727 fi
   30728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   30729   conftest.$ac_objext conftest.beam conftest.$ac_ext
   30730 fi
   30731 
   30732      rm -rf conftest.dir
   30733 
   30734 
   30735 fi
   30736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
   30737 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
   30738   case "$gl_cv_func_mkdir_trailing_dot_works" in
   30739     *yes) ;;
   30740     *)
   30741       REPLACE_MKDIR=1
   30742 
   30743 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
   30744 
   30745       ;;
   30746   esac
   30747 
   30748 
   30749      if test $REPLACE_MKDIR = 1; then
   30750   GL_COND_OBJ_MKDIR_TRUE=
   30751   GL_COND_OBJ_MKDIR_FALSE='#'
   30752 else
   30753   GL_COND_OBJ_MKDIR_TRUE='#'
   30754   GL_COND_OBJ_MKDIR_FALSE=
   30755 fi
   30756 :
   30757     if test -z "${GL_COND_OBJ_MKDIR_TRUE}" && test -z "${GL_COND_OBJ_MKDIR_FALSE}"; then
   30758     GL_COND_OBJ_MKDIR_TRUE='#'
   30759     GL_COND_OBJ_MKDIR_FALSE='#'
   30760   fi
   30761 
   30762 
   30763 
   30764 
   30765 
   30766 
   30767 
   30768 
   30769 
   30770 
   30771           GL_GNULIB_MKDIR=1
   30772 
   30773 
   30774 
   30775 
   30776 
   30777 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
   30778 
   30779 
   30780 
   30781 
   30782 
   30783   for ac_func in mkdtemp
   30784 do :
   30785   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
   30786 if test "x$ac_cv_func_mkdtemp" = xyes; then :
   30787   cat >>confdefs.h <<_ACEOF
   30788 #define HAVE_MKDTEMP 1
   30789 _ACEOF
   30790 
   30791 fi
   30792 done
   30793 
   30794   if test $ac_cv_func_mkdtemp = no; then
   30795     HAVE_MKDTEMP=0
   30796   fi
   30797 
   30798 
   30799      if test $HAVE_MKDTEMP = 0; then
   30800   GL_COND_OBJ_MKDTEMP_TRUE=
   30801   GL_COND_OBJ_MKDTEMP_FALSE='#'
   30802 else
   30803   GL_COND_OBJ_MKDTEMP_TRUE='#'
   30804   GL_COND_OBJ_MKDTEMP_FALSE=
   30805 fi
   30806 :
   30807     if test -z "${GL_COND_OBJ_MKDTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKDTEMP_FALSE}"; then
   30808     GL_COND_OBJ_MKDTEMP_TRUE='#'
   30809     GL_COND_OBJ_MKDTEMP_FALSE='#'
   30810   fi
   30811 
   30812   if test -z "$GL_COND_OBJ_MKDTEMP_TRUE"; then :
   30813 
   30814     :
   30815 
   30816 
   30817 fi
   30818 
   30819 
   30820 
   30821 
   30822 
   30823 
   30824 
   30825 
   30826 
   30827           GL_GNULIB_MKDTEMP=1
   30828 
   30829 
   30830 
   30831 
   30832 
   30833 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
   30834 
   30835 
   30836 
   30837 
   30838 
   30839 
   30840 
   30841 
   30842 
   30843   if test $ac_cv_func_mkostemp != yes; then
   30844     HAVE_MKOSTEMP=0
   30845   fi
   30846 
   30847 
   30848      if test $HAVE_MKOSTEMP = 0; then
   30849   GL_COND_OBJ_MKOSTEMP_TRUE=
   30850   GL_COND_OBJ_MKOSTEMP_FALSE='#'
   30851 else
   30852   GL_COND_OBJ_MKOSTEMP_TRUE='#'
   30853   GL_COND_OBJ_MKOSTEMP_FALSE=
   30854 fi
   30855 :
   30856     if test -z "${GL_COND_OBJ_MKOSTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKOSTEMP_FALSE}"; then
   30857     GL_COND_OBJ_MKOSTEMP_TRUE='#'
   30858     GL_COND_OBJ_MKOSTEMP_FALSE='#'
   30859   fi
   30860 
   30861   if test -z "$GL_COND_OBJ_MKOSTEMP_TRUE"; then :
   30862 
   30863 
   30864 
   30865 
   30866 fi
   30867 
   30868 
   30869 cat >>confdefs.h <<_ACEOF
   30870 #define GNULIB_MKOSTEMP 1
   30871 _ACEOF
   30872 
   30873 
   30874 
   30875 
   30876 
   30877 
   30878 
   30879 
   30880 
   30881 
   30882 
   30883           GL_GNULIB_MKOSTEMP=1
   30884 
   30885 
   30886 
   30887 
   30888 
   30889 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
   30890 
   30891 
   30892 
   30893 
   30894 
   30895      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   30896   GL_COND_OBJ_MSVC_INVAL_TRUE=
   30897   GL_COND_OBJ_MSVC_INVAL_FALSE='#'
   30898 else
   30899   GL_COND_OBJ_MSVC_INVAL_TRUE='#'
   30900   GL_COND_OBJ_MSVC_INVAL_FALSE=
   30901 fi
   30902 :
   30903     if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
   30904     GL_COND_OBJ_MSVC_INVAL_TRUE='#'
   30905     GL_COND_OBJ_MSVC_INVAL_FALSE='#'
   30906   fi
   30907 
   30908 
   30909 
   30910      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
   30911   GL_COND_OBJ_MSVC_NOTHROW_TRUE=
   30912   GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
   30913 else
   30914   GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
   30915   GL_COND_OBJ_MSVC_NOTHROW_FALSE=
   30916 fi
   30917 :
   30918     if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
   30919     GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
   30920     GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
   30921   fi
   30922 
   30923 
   30924 
   30925 cat >>confdefs.h <<_ACEOF
   30926 #define GNULIB_MSVC_NOTHROW 1
   30927 _ACEOF
   30928 
   30929 
   30930 
   30931 
   30932 
   30933 
   30934 
   30935 
   30936 
   30937 
   30938 
   30939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
   30940 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
   30941 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
   30942   $as_echo_n "(cached) " >&6
   30943 else
   30944 
   30945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   30946 /* end confdefs.h.  */
   30947 #include <netinet/in.h>
   30948 int
   30949 main ()
   30950 {
   30951 
   30952   ;
   30953   return 0;
   30954 }
   30955 _ACEOF
   30956 if ac_fn_c_try_compile "$LINENO"; then :
   30957   gl_cv_header_netinet_in_h_selfcontained=yes
   30958 else
   30959   gl_cv_header_netinet_in_h_selfcontained=no
   30960 fi
   30961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30962 
   30963 fi
   30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
   30965 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
   30966   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
   30967     GL_GENERATE_NETINET_IN_H=false
   30968   else
   30969     GL_GENERATE_NETINET_IN_H=true
   30970     for ac_header in netinet/in.h
   30971 do :
   30972   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
   30973 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
   30974   cat >>confdefs.h <<_ACEOF
   30975 #define HAVE_NETINET_IN_H 1
   30976 _ACEOF
   30977 
   30978 fi
   30979 
   30980 done
   30981 
   30982 
   30983 
   30984 
   30985 
   30986 
   30987 
   30988 
   30989 
   30990 
   30991      if test $gl_cv_have_include_next = yes; then
   30992        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
   30993      else
   30994        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
   30995 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
   30996 if ${gl_cv_next_netinet_in_h+:} false; then :
   30997   $as_echo_n "(cached) " >&6
   30998 else
   30999 
   31000              if test $ac_cv_header_netinet_in_h = yes; then
   31001 
   31002 
   31003 
   31004 
   31005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31006 /* end confdefs.h.  */
   31007 #include <netinet/in.h>
   31008 _ACEOF
   31009                 case "$host_os" in
   31010     aix*) gl_absname_cpp="$ac_cpp -C" ;;
   31011     *)    gl_absname_cpp="$ac_cpp" ;;
   31012   esac
   31013 
   31014   case "$host_os" in
   31015     mingw*)
   31016                                           gl_dirsep_regex='[/\\]'
   31017       ;;
   31018     *)
   31019       gl_dirsep_regex='\/'
   31020       ;;
   31021   esac
   31022       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
   31023   gl_header_literal_regex=`echo 'netinet/in.h' \
   31024                            | sed -e "$gl_make_literal_regex_sed"`
   31025   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
   31026       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
   31027       s|^/[^/]|//&|
   31028       p
   31029       q
   31030     }'
   31031 
   31032         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
   31033   sed -n "$gl_absolute_header_sed"`
   31034 
   31035           gl_header=$gl_cv_absolute_netinet_in_h
   31036           gl_cv_next_netinet_in_h='"'$gl_header'"'
   31037           else
   31038                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
   31039              fi
   31040 
   31041 
   31042 fi
   31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
   31044 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
   31045      fi
   31046      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
   31047 
   31048      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
   31049        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
   31050        gl_next_as_first_directive='<'netinet/in.h'>'
   31051      else
   31052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
   31053        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
   31054      fi
   31055      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
   31056 
   31057 
   31058 
   31059 
   31060     if test $ac_cv_header_netinet_in_h = yes; then
   31061       HAVE_NETINET_IN_H=1
   31062     else
   31063       HAVE_NETINET_IN_H=0
   31064     fi
   31065 
   31066   fi
   31067 
   31068 
   31069 
   31070 
   31071 
   31072   case "$GL_GENERATE_NETINET_IN_H" in
   31073     false) NETINET_IN_H='' ;;
   31074     true)
   31075                   if test -z "$NETINET_IN_H"; then
   31076         NETINET_IN_H="${gl_source_base_prefix}netinet/in.h"
   31077       fi
   31078       ;;
   31079     *) echo "*** GL_GENERATE_NETINET_IN_H is not set correctly" 1>&2; exit 1 ;;
   31080   esac
   31081 
   31082 
   31083      if $GL_GENERATE_NETINET_IN_H; then
   31084   GL_GENERATE_NETINET_IN_H_TRUE=
   31085   GL_GENERATE_NETINET_IN_H_FALSE='#'
   31086 else
   31087   GL_GENERATE_NETINET_IN_H_TRUE='#'
   31088   GL_GENERATE_NETINET_IN_H_FALSE=
   31089 fi
   31090 :
   31091     if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
   31092     GL_GENERATE_NETINET_IN_H_TRUE='#'
   31093     GL_GENERATE_NETINET_IN_H_FALSE='#'
   31094   fi
   31095 
   31096 
   31097 
   31098 
   31099 
   31100 
   31101 
   31102 
   31103 
   31104   case "$host_os" in
   31105     mingw* | pw*)
   31106       REPLACE_OPEN=1
   31107       ;;
   31108     *)
   31109 
   31110       if test "$gl_cv_macro_O_CLOEXEC" != yes; then
   31111         REPLACE_OPEN=1
   31112       fi
   31113 
   31114 
   31115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
   31116 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
   31117 if ${gl_cv_func_open_slash+:} false; then :
   31118   $as_echo_n "(cached) " >&6
   31119 else
   31120   # Assume that if we have lstat, we can also check symlinks.
   31121      if test $ac_cv_func_lstat = yes; then
   31122        touch conftest.tmp
   31123        ln -s conftest.tmp conftest.lnk
   31124      fi
   31125      if test "$cross_compiling" = yes; then :
   31126 
   31127         case "$host_os" in
   31128           freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
   31129             gl_cv_func_open_slash="guessing no" ;;
   31130           *)
   31131             gl_cv_func_open_slash="guessing yes" ;;
   31132         esac
   31133 
   31134 else
   31135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31136 /* end confdefs.h.  */
   31137 
   31138 #include <fcntl.h>
   31139 #if HAVE_UNISTD_H
   31140 # include <unistd.h>
   31141 #endif
   31142 
   31143 
   31144 $gl_mda_defines
   31145 
   31146 int main ()
   31147 {
   31148   int result = 0;
   31149 #if HAVE_LSTAT
   31150   if (open ("conftest.lnk/", O_RDONLY) != -1)
   31151     result |= 1;
   31152 #endif
   31153   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
   31154     result |= 2;
   31155   return result;
   31156 }
   31157 _ACEOF
   31158 if ac_fn_c_try_run "$LINENO"; then :
   31159   gl_cv_func_open_slash=yes
   31160 else
   31161   gl_cv_func_open_slash=no
   31162 fi
   31163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31164   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31165 fi
   31166 
   31167      rm -f conftest.sl conftest.tmp conftest.lnk
   31168 
   31169 fi
   31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
   31171 $as_echo "$gl_cv_func_open_slash" >&6; }
   31172   case "$gl_cv_func_open_slash" in
   31173     *no)
   31174 
   31175 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
   31176 
   31177       ;;
   31178   esac
   31179 
   31180       case "$gl_cv_func_open_slash" in
   31181         *no)
   31182           REPLACE_OPEN=1
   31183           ;;
   31184       esac
   31185       ;;
   31186   esac
   31187 
   31188     if test $REPLACE_OPEN = 0; then
   31189 
   31190 
   31191 
   31192   if test $ac_cv_func_fchdir = no; then
   31193     HAVE_FCHDIR=0
   31194   fi
   31195 
   31196       if test $HAVE_FCHDIR = 0; then
   31197         REPLACE_OPEN=1
   31198       fi
   31199     fi
   31200 
   31201 
   31202 
   31203 
   31204      if test $REPLACE_OPEN = 1; then
   31205   GL_COND_OBJ_OPEN_TRUE=
   31206   GL_COND_OBJ_OPEN_FALSE='#'
   31207 else
   31208   GL_COND_OBJ_OPEN_TRUE='#'
   31209   GL_COND_OBJ_OPEN_FALSE=
   31210 fi
   31211 :
   31212     if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
   31213     GL_COND_OBJ_OPEN_TRUE='#'
   31214     GL_COND_OBJ_OPEN_FALSE='#'
   31215   fi
   31216 
   31217   if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
   31218 
   31219 
   31220 
   31221   :
   31222 
   31223 
   31224 fi
   31225 
   31226 
   31227 
   31228 
   31229 
   31230 
   31231 
   31232 
   31233 
   31234           GL_GNULIB_OPEN=1
   31235 
   31236 
   31237 
   31238 
   31239 
   31240 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
   31241 
   31242 
   31243 
   31244 
   31245 
   31246 
   31247 
   31248 
   31249 
   31250   case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
   31251   yes+*yes+yes)
   31252     ;;
   31253   yes+*)
   31254     # Solaris 10 lacks O_CLOEXEC.
   31255     # Solaris 9 has *at functions, but uniformly mishandles trailing
   31256     # slash in all of them.
   31257     REPLACE_OPENAT=1
   31258     ;;
   31259   *)
   31260     HAVE_OPENAT=0
   31261     ;;
   31262   esac
   31263 
   31264 
   31265      if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
   31266   GL_COND_OBJ_OPENAT_TRUE=
   31267   GL_COND_OBJ_OPENAT_FALSE='#'
   31268 else
   31269   GL_COND_OBJ_OPENAT_TRUE='#'
   31270   GL_COND_OBJ_OPENAT_FALSE=
   31271 fi
   31272 :
   31273     if test -z "${GL_COND_OBJ_OPENAT_TRUE}" && test -z "${GL_COND_OBJ_OPENAT_FALSE}"; then
   31274     GL_COND_OBJ_OPENAT_TRUE='#'
   31275     GL_COND_OBJ_OPENAT_FALSE='#'
   31276   fi
   31277 
   31278   if test -z "$GL_COND_OBJ_OPENAT_TRUE"; then :
   31279 
   31280 
   31281 
   31282   :
   31283 
   31284 
   31285 fi
   31286 
   31287 
   31288 cat >>confdefs.h <<_ACEOF
   31289 #define GNULIB_OPENAT 1
   31290 _ACEOF
   31291 
   31292 
   31293 
   31294 
   31295 
   31296 
   31297 
   31298 
   31299 
   31300 
   31301           GL_GNULIB_OPENAT=1
   31302 
   31303 
   31304 
   31305 
   31306 
   31307 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
   31308 
   31309 
   31310 
   31311 
   31312 
   31313 
   31314   for ac_func in opendir
   31315 do :
   31316   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
   31317 if test "x$ac_cv_func_opendir" = xyes; then :
   31318   cat >>confdefs.h <<_ACEOF
   31319 #define HAVE_OPENDIR 1
   31320 _ACEOF
   31321 
   31322 fi
   31323 done
   31324 
   31325   if test $ac_cv_func_opendir = no; then
   31326     HAVE_OPENDIR=0
   31327   fi
   31328 
   31329 
   31330 
   31331 
   31332   if test $ac_cv_func_fchdir = no; then
   31333     HAVE_FCHDIR=0
   31334   fi
   31335 
   31336     if test $HAVE_FCHDIR = 0; then
   31337       if test $HAVE_OPENDIR = 1; then
   31338         REPLACE_OPENDIR=1
   31339       fi
   31340     fi
   31341 
   31342       case $host_os,$HAVE_OPENDIR in
   31343     os2*,1)
   31344       REPLACE_OPENDIR=1;;
   31345   esac
   31346 
   31347 
   31348      if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
   31349   GL_COND_OBJ_OPENDIR_TRUE=
   31350   GL_COND_OBJ_OPENDIR_FALSE='#'
   31351 else
   31352   GL_COND_OBJ_OPENDIR_TRUE='#'
   31353   GL_COND_OBJ_OPENDIR_FALSE=
   31354 fi
   31355 :
   31356     if test -z "${GL_COND_OBJ_OPENDIR_TRUE}" && test -z "${GL_COND_OBJ_OPENDIR_FALSE}"; then
   31357     GL_COND_OBJ_OPENDIR_TRUE='#'
   31358     GL_COND_OBJ_OPENDIR_FALSE='#'
   31359   fi
   31360 
   31361 
   31362 
   31363 
   31364 
   31365 
   31366 
   31367 
   31368 
   31369 
   31370           GL_GNULIB_OPENDIR=1
   31371 
   31372 
   31373 
   31374 
   31375 
   31376 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
   31377 
   31378 
   31379 
   31380 
   31381 
   31382 
   31383 
   31384 
   31385 
   31386 
   31387   if test $ac_cv_func_pipe != yes; then
   31388     HAVE_PIPE=0
   31389   fi
   31390 
   31391 
   31392      if test $HAVE_PIPE = 0; then
   31393   GL_COND_OBJ_PIPE_TRUE=
   31394   GL_COND_OBJ_PIPE_FALSE='#'
   31395 else
   31396   GL_COND_OBJ_PIPE_TRUE='#'
   31397   GL_COND_OBJ_PIPE_FALSE=
   31398 fi
   31399 :
   31400     if test -z "${GL_COND_OBJ_PIPE_TRUE}" && test -z "${GL_COND_OBJ_PIPE_FALSE}"; then
   31401     GL_COND_OBJ_PIPE_TRUE='#'
   31402     GL_COND_OBJ_PIPE_FALSE='#'
   31403   fi
   31404 
   31405 
   31406 
   31407 
   31408 
   31409 
   31410 
   31411 
   31412 
   31413 
   31414           GL_GNULIB_PIPE=1
   31415 
   31416 
   31417 
   31418 
   31419 
   31420 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
   31421 
   31422 
   31423 
   31424 
   31425 
   31426 
   31427 
   31428   for ac_func in rawmemchr
   31429 do :
   31430   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
   31431 if test "x$ac_cv_func_rawmemchr" = xyes; then :
   31432   cat >>confdefs.h <<_ACEOF
   31433 #define HAVE_RAWMEMCHR 1
   31434 _ACEOF
   31435 
   31436 fi
   31437 done
   31438 
   31439   if test $ac_cv_func_rawmemchr = no; then
   31440     HAVE_RAWMEMCHR=0
   31441   fi
   31442 
   31443 
   31444      if test $HAVE_RAWMEMCHR = 0; then
   31445   GL_COND_OBJ_RAWMEMCHR_TRUE=
   31446   GL_COND_OBJ_RAWMEMCHR_FALSE='#'
   31447 else
   31448   GL_COND_OBJ_RAWMEMCHR_TRUE='#'
   31449   GL_COND_OBJ_RAWMEMCHR_FALSE=
   31450 fi
   31451 :
   31452     if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then
   31453     GL_COND_OBJ_RAWMEMCHR_TRUE='#'
   31454     GL_COND_OBJ_RAWMEMCHR_FALSE='#'
   31455   fi
   31456 
   31457   if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then :
   31458 
   31459     :
   31460 
   31461 fi
   31462 
   31463 
   31464 
   31465 
   31466 
   31467 
   31468 
   31469 
   31470 
   31471 
   31472 
   31473 
   31474 
   31475 
   31476           GL_GNULIB_RAWMEMCHR=1
   31477 
   31478 
   31479 
   31480 
   31481 
   31482 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
   31483 
   31484 
   31485 
   31486 
   31487 
   31488 
   31489   for ac_func in readdir
   31490 do :
   31491   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
   31492 if test "x$ac_cv_func_readdir" = xyes; then :
   31493   cat >>confdefs.h <<_ACEOF
   31494 #define HAVE_READDIR 1
   31495 _ACEOF
   31496 
   31497 fi
   31498 done
   31499 
   31500   if test $ac_cv_func_readdir = no; then
   31501     HAVE_READDIR=0
   31502   fi
   31503 
   31504 
   31505      if test $HAVE_READDIR = 0; then
   31506   GL_COND_OBJ_READDIR_TRUE=
   31507   GL_COND_OBJ_READDIR_FALSE='#'
   31508 else
   31509   GL_COND_OBJ_READDIR_TRUE='#'
   31510   GL_COND_OBJ_READDIR_FALSE=
   31511 fi
   31512 :
   31513     if test -z "${GL_COND_OBJ_READDIR_TRUE}" && test -z "${GL_COND_OBJ_READDIR_FALSE}"; then
   31514     GL_COND_OBJ_READDIR_TRUE='#'
   31515     GL_COND_OBJ_READDIR_FALSE='#'
   31516   fi
   31517 
   31518 
   31519 
   31520 
   31521 
   31522 
   31523 
   31524 
   31525 
   31526 
   31527           GL_GNULIB_READDIR=1
   31528 
   31529 
   31530 
   31531 
   31532 
   31533 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
   31534 
   31535 
   31536 
   31537 
   31538 
   31539 
   31540   if test $ac_cv_func_readlink = no; then
   31541     HAVE_READLINK=0
   31542   else
   31543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
   31544 $as_echo_n "checking whether readlink signature is correct... " >&6; }
   31545 if ${gl_cv_decl_readlink_works+:} false; then :
   31546   $as_echo_n "(cached) " >&6
   31547 else
   31548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31549 /* end confdefs.h.  */
   31550 #include <unistd.h>
   31551       /* Cause compilation failure if original declaration has wrong type.  */
   31552       ssize_t readlink (const char *, char *, size_t);
   31553 int
   31554 main ()
   31555 {
   31556 
   31557   ;
   31558   return 0;
   31559 }
   31560 _ACEOF
   31561 if ac_fn_c_try_compile "$LINENO"; then :
   31562   gl_cv_decl_readlink_works=yes
   31563 else
   31564   gl_cv_decl_readlink_works=no
   31565 fi
   31566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31567 fi
   31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
   31569 $as_echo "$gl_cv_decl_readlink_works" >&6; }
   31570             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
   31571 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
   31572 if ${gl_cv_func_readlink_trailing_slash+:} false; then :
   31573   $as_echo_n "(cached) " >&6
   31574 else
   31575   # We have readlink, so assume ln -s works.
   31576        ln -s conftest.no-such conftest.link
   31577        ln -s conftest.link conftest.lnk2
   31578        if test "$cross_compiling" = yes; then :
   31579   case "$host_os" in
   31580             # Guess yes on Linux or glibc systems.
   31581             linux-* | linux | *-gnu* | gnu*)
   31582               gl_cv_func_readlink_trailing_slash="guessing yes" ;;
   31583             # Guess no on AIX or HP-UX.
   31584             aix* | hpux*)
   31585               gl_cv_func_readlink_trailing_slash="guessing no" ;;
   31586             # If we don't know, obey --enable-cross-guesses.
   31587             *)
   31588               gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
   31589           esac
   31590 
   31591 else
   31592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31593 /* end confdefs.h.  */
   31594 #include <unistd.h>
   31595 
   31596 int
   31597 main ()
   31598 {
   31599 char buf[20];
   31600       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
   31601   ;
   31602   return 0;
   31603 }
   31604 _ACEOF
   31605 if ac_fn_c_try_run "$LINENO"; then :
   31606   gl_cv_func_readlink_trailing_slash=yes
   31607 else
   31608   gl_cv_func_readlink_trailing_slash=no
   31609 fi
   31610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31611   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31612 fi
   31613 
   31614       rm -f conftest.link conftest.lnk2
   31615 fi
   31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
   31617 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
   31618     case "$gl_cv_func_readlink_trailing_slash" in
   31619       *yes)
   31620         if test "$gl_cv_decl_readlink_works" != yes; then
   31621           REPLACE_READLINK=1
   31622         fi
   31623         ;;
   31624       *)
   31625 
   31626 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
   31627 
   31628         REPLACE_READLINK=1
   31629         ;;
   31630     esac
   31631 
   31632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
   31633 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
   31634 if ${gl_cv_func_readlink_truncate+:} false; then :
   31635   $as_echo_n "(cached) " >&6
   31636 else
   31637   # We have readlink, so assume ln -s works.
   31638        ln -s ab conftest.link
   31639        if test "$cross_compiling" = yes; then :
   31640   case "$host_os" in
   31641             # Guess yes on Linux or glibc systems.
   31642             linux-* | linux | *-gnu* | gnu*)
   31643               gl_cv_func_readlink_truncate="guessing yes" ;;
   31644             # Guess no on AIX or HP-UX.
   31645             aix* | hpux*)
   31646               gl_cv_func_readlink_truncate="guessing no" ;;
   31647             # If we don't know, obey --enable-cross-guesses.
   31648             *)
   31649               gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
   31650           esac
   31651 
   31652 else
   31653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31654 /* end confdefs.h.  */
   31655 #include <unistd.h>
   31656 
   31657 int
   31658 main ()
   31659 {
   31660 char c;
   31661       return readlink ("conftest.link", &c, 1) != 1;
   31662   ;
   31663   return 0;
   31664 }
   31665 _ACEOF
   31666 if ac_fn_c_try_run "$LINENO"; then :
   31667   gl_cv_func_readlink_truncate=yes
   31668 else
   31669   gl_cv_func_readlink_truncate=no
   31670 fi
   31671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31672   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31673 fi
   31674 
   31675       rm -f conftest.link conftest.lnk2
   31676 fi
   31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
   31678 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
   31679     case $gl_cv_func_readlink_truncate in
   31680       *yes)
   31681         if test "$gl_cv_decl_readlink_works" != yes; then
   31682           REPLACE_READLINK=1
   31683         fi
   31684         ;;
   31685       *)
   31686 
   31687 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
   31688 
   31689         REPLACE_READLINK=1
   31690         ;;
   31691     esac
   31692   fi
   31693 
   31694 
   31695      if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
   31696   GL_COND_OBJ_READLINK_TRUE=
   31697   GL_COND_OBJ_READLINK_FALSE='#'
   31698 else
   31699   GL_COND_OBJ_READLINK_TRUE='#'
   31700   GL_COND_OBJ_READLINK_FALSE=
   31701 fi
   31702 :
   31703     if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then
   31704     GL_COND_OBJ_READLINK_TRUE='#'
   31705     GL_COND_OBJ_READLINK_FALSE='#'
   31706   fi
   31707 
   31708   if test -z "$GL_COND_OBJ_READLINK_TRUE"; then :
   31709 
   31710 
   31711   :
   31712 
   31713 
   31714 fi
   31715 
   31716 
   31717 
   31718 
   31719 
   31720 
   31721 
   31722 
   31723 
   31724           GL_GNULIB_READLINK=1
   31725 
   31726 
   31727 
   31728 
   31729 
   31730 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
   31731 
   31732 
   31733 
   31734 
   31735 
   31736 
   31737   if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
   31738     REPLACE_REALLOC_FOR_REALLOC_POSIX=1
   31739   fi
   31740 
   31741   if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
   31742 
   31743 
   31744 
   31745 
   31746 
   31747 
   31748 
   31749 
   31750   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
   31751 
   31752   fi
   31753 
   31754 
   31755 
   31756 
   31757 
   31758 
   31759 
   31760 
   31761 
   31762           GL_GNULIB_REALLOC_POSIX=1
   31763 
   31764 
   31765 
   31766 
   31767 
   31768 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
   31769 
   31770 
   31771 
   31772 
   31773 
   31774 
   31775 
   31776 
   31777                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
   31778 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
   31779 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
   31780   $as_echo_n "(cached) " >&6
   31781 else
   31782   rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
   31783     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
   31784       as_fn_error $? "cannot create temporary files" "$LINENO" 5
   31785     # Assume that if we have lstat, we can also check symlinks.
   31786     if test $ac_cv_func_lstat = yes; then
   31787       ln -s conftest.f conftest.lnk
   31788     fi
   31789     if test "$cross_compiling" = yes; then :
   31790         case "$host_os" in
   31791                           # Guess yes on Linux systems.
   31792          linux-* | linux) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
   31793                           # Guess yes on glibc systems.
   31794          *-gnu*)          gl_cv_func_rename_slash_dst_works="guessing yes" ;;
   31795                           # Guess no on native Windows.
   31796          mingw*)          gl_cv_func_rename_slash_dst_works="guessing no" ;;
   31797                           # If we don't know, obey --enable-cross-guesses.
   31798          *)               gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
   31799        esac
   31800 
   31801 else
   31802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31803 /* end confdefs.h.  */
   31804 
   31805 #        include <stdio.h>
   31806 #        include <stdlib.h>
   31807 
   31808 int
   31809 main ()
   31810 {
   31811 int result = 0;
   31812            if (rename ("conftest.f1", "conftest.f2/") == 0)
   31813              result |= 1;
   31814            if (rename ("conftest.d1", "conftest.d2/") != 0)
   31815              result |= 2;
   31816 #if HAVE_LSTAT
   31817            if (rename ("conftest.f", "conftest.lnk/") == 0)
   31818              result |= 4;
   31819 #endif
   31820            return result;
   31821 
   31822   ;
   31823   return 0;
   31824 }
   31825 _ACEOF
   31826 if ac_fn_c_try_run "$LINENO"; then :
   31827   gl_cv_func_rename_slash_dst_works=yes
   31828 else
   31829   gl_cv_func_rename_slash_dst_works=no
   31830 fi
   31831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31832   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31833 fi
   31834 
   31835     rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
   31836 
   31837 fi
   31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
   31839 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
   31840   case "$gl_cv_func_rename_slash_dst_works" in
   31841     *yes) ;;
   31842     *)
   31843       REPLACE_RENAME=1
   31844 
   31845 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
   31846 
   31847       ;;
   31848   esac
   31849 
   31850             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
   31851 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
   31852 if ${gl_cv_func_rename_slash_src_works+:} false; then :
   31853   $as_echo_n "(cached) " >&6
   31854 else
   31855   rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
   31856     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
   31857       as_fn_error $? "cannot create temporary files" "$LINENO" 5
   31858     # Assume that if we have lstat, we can also check symlinks.
   31859     if test $ac_cv_func_lstat = yes; then
   31860       ln -s conftest.f conftest.lnk
   31861     fi
   31862     if test "$cross_compiling" = yes; then :
   31863         case "$host_os" in
   31864                           # Guess yes on Linux systems.
   31865          linux-* | linux) gl_cv_func_rename_slash_src_works="guessing yes" ;;
   31866                           # Guess yes on glibc systems.
   31867          *-gnu*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
   31868                           # Guess yes on native Windows.
   31869          mingw*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
   31870                           # If we don't know, obey --enable-cross-guesses.
   31871          *)               gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
   31872        esac
   31873 
   31874 else
   31875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31876 /* end confdefs.h.  */
   31877 
   31878 #        include <stdio.h>
   31879 #        include <stdlib.h>
   31880 
   31881 int
   31882 main ()
   31883 {
   31884 int result = 0;
   31885            if (rename ("conftest.f1/", "conftest.d3") == 0)
   31886              result |= 1;
   31887            if (rename ("conftest.d1/", "conftest.d2") != 0)
   31888              result |= 2;
   31889 #if HAVE_LSTAT
   31890            if (rename ("conftest.lnk/", "conftest.f") == 0)
   31891              result |= 4;
   31892 #endif
   31893            return result;
   31894 
   31895   ;
   31896   return 0;
   31897 }
   31898 _ACEOF
   31899 if ac_fn_c_try_run "$LINENO"; then :
   31900   gl_cv_func_rename_slash_src_works=yes
   31901 else
   31902   gl_cv_func_rename_slash_src_works=no
   31903 fi
   31904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31905   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31906 fi
   31907 
   31908     rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
   31909 
   31910 fi
   31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
   31912 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
   31913   case "$gl_cv_func_rename_slash_src_works" in
   31914     *yes) ;;
   31915     *)
   31916       REPLACE_RENAME=1
   31917 
   31918 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
   31919 
   31920       ;;
   31921   esac
   31922 
   31923 
   31924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
   31925 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
   31926 if ${gl_cv_func_rename_link_works+:} false; then :
   31927   $as_echo_n "(cached) " >&6
   31928 else
   31929   if test $ac_cv_func_link = yes; then
   31930        if test $cross_compiling != yes; then
   31931          rm -rf conftest.f conftest.f1 conftest.f2
   31932          if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
   31933              set x `ls -i conftest.f conftest.f1` && test "" = ""; then
   31934            if test "$cross_compiling" = yes; then :
   31935                 :
   31936 
   31937 else
   31938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   31939 /* end confdefs.h.  */
   31940 
   31941 #               include <errno.h>
   31942 #               include <stdio.h>
   31943 #               include <stdlib.h>
   31944 #               include <unistd.h>
   31945 
   31946 
   31947 $gl_mda_defines
   31948 
   31949 int
   31950 main ()
   31951 {
   31952 int result = 0;
   31953                   if (rename ("conftest.f", "conftest.f1"))
   31954                     result |= 1;
   31955                   if (unlink ("conftest.f1"))
   31956                     result |= 2;
   31957 
   31958                   /* Allow either the POSIX-required behavior, where the
   31959                      previous rename kept conftest.f, or the (better) NetBSD
   31960                      behavior, where it removed conftest.f.  */
   31961                   if (rename ("conftest.f", "conftest.f") != 0
   31962                       && errno != ENOENT)
   31963                     result |= 4;
   31964 
   31965                   if (rename ("conftest.f1", "conftest.f1") == 0)
   31966                     result |= 8;
   31967                   if (rename ("conftest.f2", "conftest.f2") != 0)
   31968                     result |= 16;
   31969                   return result;
   31970 
   31971   ;
   31972   return 0;
   31973 }
   31974 _ACEOF
   31975 if ac_fn_c_try_run "$LINENO"; then :
   31976   gl_cv_func_rename_link_works=yes
   31977 else
   31978   gl_cv_func_rename_link_works=no
   31979 fi
   31980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   31981   conftest.$ac_objext conftest.beam conftest.$ac_ext
   31982 fi
   31983 
   31984          else
   31985            gl_cv_func_rename_link_works="guessing no"
   31986          fi
   31987          rm -rf conftest.f conftest.f1 conftest.f2
   31988        else
   31989                   case "$host_os" in
   31990                             # Guess yes on Linux systems.
   31991            linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
   31992                             # Guess yes on glibc systems.
   31993            *-gnu*)          gl_cv_func_rename_link_works="guessing yes" ;;
   31994                             # Guess yes on native Windows.
   31995            mingw*)          gl_cv_func_rename_link_works="guessing yes" ;;
   31996                             # If we don't know, obey --enable-cross-guesses.
   31997            *)               gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
   31998          esac
   31999        fi
   32000      else
   32001        gl_cv_func_rename_link_works=yes
   32002      fi
   32003 
   32004 fi
   32005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
   32006 $as_echo "$gl_cv_func_rename_link_works" >&6; }
   32007   case "$gl_cv_func_rename_link_works" in
   32008     *yes) ;;
   32009     *)
   32010       REPLACE_RENAME=1
   32011 
   32012 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
   32013 
   32014       ;;
   32015   esac
   32016 
   32017           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
   32018 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
   32019 if ${gl_cv_func_rename_dest_works+:} false; then :
   32020   $as_echo_n "(cached) " >&6
   32021 else
   32022   rm -rf conftest.f conftest.d1 conftest.d2
   32023     touch conftest.f && mkdir conftest.d1 conftest.d2 ||
   32024       as_fn_error $? "cannot create temporary files" "$LINENO" 5
   32025     if test "$cross_compiling" = yes; then :
   32026         case "$host_os" in
   32027                           # Guess yes on Linux systems.
   32028          linux-* | linux) gl_cv_func_rename_dest_works="guessing yes" ;;
   32029                           # Guess yes on glibc systems.
   32030          *-gnu*)          gl_cv_func_rename_dest_works="guessing yes" ;;
   32031                           # Guess no on native Windows.
   32032          mingw*)          gl_cv_func_rename_dest_works="guessing no" ;;
   32033                           # If we don't know, obey --enable-cross-guesses.
   32034          *)               gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
   32035        esac
   32036 
   32037 else
   32038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32039 /* end confdefs.h.  */
   32040 
   32041 #        include <stdio.h>
   32042 #        include <stdlib.h>
   32043 
   32044 int
   32045 main ()
   32046 {
   32047 int result = 0;
   32048            if (rename ("conftest.d1", "conftest.d2") != 0)
   32049              result |= 1;
   32050            if (rename ("conftest.d2", "conftest.f") == 0)
   32051              result |= 2;
   32052            return result;
   32053 
   32054   ;
   32055   return 0;
   32056 }
   32057 _ACEOF
   32058 if ac_fn_c_try_run "$LINENO"; then :
   32059   gl_cv_func_rename_dest_works=yes
   32060 else
   32061   gl_cv_func_rename_dest_works=no
   32062 fi
   32063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32064   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32065 fi
   32066 
   32067     rm -rf conftest.f conftest.d1 conftest.d2
   32068 
   32069 fi
   32070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
   32071 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
   32072   case "$gl_cv_func_rename_dest_works" in
   32073     *yes) ;;
   32074     *)
   32075       REPLACE_RENAME=1
   32076 
   32077 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
   32078 
   32079       ;;
   32080   esac
   32081 
   32082 
   32083      if test $REPLACE_RENAME = 1; then
   32084   GL_COND_OBJ_RENAME_TRUE=
   32085   GL_COND_OBJ_RENAME_FALSE='#'
   32086 else
   32087   GL_COND_OBJ_RENAME_TRUE='#'
   32088   GL_COND_OBJ_RENAME_FALSE=
   32089 fi
   32090 :
   32091     if test -z "${GL_COND_OBJ_RENAME_TRUE}" && test -z "${GL_COND_OBJ_RENAME_FALSE}"; then
   32092     GL_COND_OBJ_RENAME_TRUE='#'
   32093     GL_COND_OBJ_RENAME_FALSE='#'
   32094   fi
   32095 
   32096 
   32097 
   32098 
   32099 
   32100 
   32101 
   32102 
   32103 
   32104 
   32105           GL_GNULIB_RENAME=1
   32106 
   32107 
   32108 
   32109 
   32110 
   32111 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
   32112 
   32113 
   32114 
   32115 
   32116 
   32117 
   32118   for ac_func in rewinddir
   32119 do :
   32120   ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
   32121 if test "x$ac_cv_func_rewinddir" = xyes; then :
   32122   cat >>confdefs.h <<_ACEOF
   32123 #define HAVE_REWINDDIR 1
   32124 _ACEOF
   32125 
   32126 fi
   32127 done
   32128 
   32129   if test $ac_cv_func_rewinddir = no; then
   32130     HAVE_REWINDDIR=0
   32131   fi
   32132 
   32133 
   32134      if test $HAVE_REWINDDIR = 0; then
   32135   GL_COND_OBJ_REWINDDIR_TRUE=
   32136   GL_COND_OBJ_REWINDDIR_FALSE='#'
   32137 else
   32138   GL_COND_OBJ_REWINDDIR_TRUE='#'
   32139   GL_COND_OBJ_REWINDDIR_FALSE=
   32140 fi
   32141 :
   32142     if test -z "${GL_COND_OBJ_REWINDDIR_TRUE}" && test -z "${GL_COND_OBJ_REWINDDIR_FALSE}"; then
   32143     GL_COND_OBJ_REWINDDIR_TRUE='#'
   32144     GL_COND_OBJ_REWINDDIR_FALSE='#'
   32145   fi
   32146 
   32147 
   32148 
   32149 
   32150 
   32151 
   32152 
   32153 
   32154 
   32155 
   32156           GL_GNULIB_REWINDDIR=1
   32157 
   32158 
   32159 
   32160 
   32161 
   32162 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
   32163 
   32164 
   32165 
   32166 
   32167 
   32168 
   32169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
   32170 $as_echo_n "checking whether rmdir works... " >&6; }
   32171 if ${gl_cv_func_rmdir_works+:} false; then :
   32172   $as_echo_n "(cached) " >&6
   32173 else
   32174   mkdir conftest.dir
   32175      touch conftest.file
   32176      if test "$cross_compiling" = yes; then :
   32177   case "$host_os" in
   32178                            # Guess yes on Linux systems.
   32179           linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
   32180                            # Guess yes on glibc systems.
   32181           *-gnu* | gnu*)   gl_cv_func_rmdir_works="guessing yes" ;;
   32182                            # Guess no on native Windows.
   32183           mingw*)          gl_cv_func_rmdir_works="guessing no" ;;
   32184                            # If we don't know, obey --enable-cross-guesses.
   32185           *)               gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
   32186         esac
   32187 
   32188 else
   32189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32190 /* end confdefs.h.  */
   32191 #include <stdio.h>
   32192            #include <errno.h>
   32193            #if HAVE_UNISTD_H
   32194            # include <unistd.h>
   32195            #else /* on Windows with MSVC */
   32196            # include <direct.h>
   32197            #endif
   32198 
   32199 
   32200 $gl_mda_defines
   32201 
   32202 int
   32203 main ()
   32204 {
   32205 int result = 0;
   32206            if (!rmdir ("conftest.file/"))
   32207              result |= 1;
   32208            else if (errno != ENOTDIR)
   32209              result |= 2;
   32210            if (!rmdir ("conftest.dir/./"))
   32211              result |= 4;
   32212            return result;
   32213 
   32214   ;
   32215   return 0;
   32216 }
   32217 _ACEOF
   32218 if ac_fn_c_try_run "$LINENO"; then :
   32219   gl_cv_func_rmdir_works=yes
   32220 else
   32221   gl_cv_func_rmdir_works=no
   32222 fi
   32223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32224   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32225 fi
   32226 
   32227      rm -rf conftest.dir conftest.file
   32228 fi
   32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
   32230 $as_echo "$gl_cv_func_rmdir_works" >&6; }
   32231   case "$gl_cv_func_rmdir_works" in
   32232     *yes) ;;
   32233     *)
   32234       REPLACE_RMDIR=1
   32235       ;;
   32236   esac
   32237 
   32238 
   32239      if test $REPLACE_RMDIR = 1; then
   32240   GL_COND_OBJ_RMDIR_TRUE=
   32241   GL_COND_OBJ_RMDIR_FALSE='#'
   32242 else
   32243   GL_COND_OBJ_RMDIR_TRUE='#'
   32244   GL_COND_OBJ_RMDIR_FALSE=
   32245 fi
   32246 :
   32247     if test -z "${GL_COND_OBJ_RMDIR_TRUE}" && test -z "${GL_COND_OBJ_RMDIR_FALSE}"; then
   32248     GL_COND_OBJ_RMDIR_TRUE='#'
   32249     GL_COND_OBJ_RMDIR_FALSE='#'
   32250   fi
   32251 
   32252 
   32253 
   32254 
   32255 
   32256 
   32257 
   32258 
   32259 
   32260 
   32261           GL_GNULIB_RMDIR=1
   32262 
   32263 
   32264 
   32265 
   32266 
   32267 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
   32268 
   32269 
   32270 
   32271 
   32272 
   32273 
   32274 
   32275 
   32276 
   32277 
   32278 
   32279   if test "$ac_cv_header_winsock2_h" = yes; then
   32280     REPLACE_SELECT=1
   32281   else
   32282 
   32283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
   32284 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
   32285 if ${gl_cv_func_select_supports0+:} false; then :
   32286   $as_echo_n "(cached) " >&6
   32287 else
   32288 
   32289         if test "$cross_compiling" = yes; then :
   32290 
   32291            case "$host_os" in
   32292                        # Guess no on Interix.
   32293              interix*) gl_cv_func_select_supports0="guessing no";;
   32294                        # Guess yes otherwise.
   32295              *)        gl_cv_func_select_supports0="guessing yes";;
   32296            esac
   32297 
   32298 else
   32299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32300 /* end confdefs.h.  */
   32301 
   32302 #include <sys/types.h>
   32303 #include <sys/time.h>
   32304 #if HAVE_SYS_SELECT_H
   32305 #include <sys/select.h>
   32306 #endif
   32307 int main ()
   32308 {
   32309   struct timeval timeout;
   32310   timeout.tv_sec = 0;
   32311   timeout.tv_usec = 5;
   32312   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
   32313 }
   32314 _ACEOF
   32315 if ac_fn_c_try_run "$LINENO"; then :
   32316   gl_cv_func_select_supports0=yes
   32317 else
   32318   gl_cv_func_select_supports0=no
   32319 fi
   32320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32321   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32322 fi
   32323 
   32324 
   32325 fi
   32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
   32327 $as_echo "$gl_cv_func_select_supports0" >&6; }
   32328     case "$gl_cv_func_select_supports0" in
   32329       *yes) ;;
   32330       *) REPLACE_SELECT=1 ;;
   32331     esac
   32332 
   32333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
   32334 $as_echo_n "checking whether select detects invalid fds... " >&6; }
   32335 if ${gl_cv_func_select_detects_ebadf+:} false; then :
   32336   $as_echo_n "(cached) " >&6
   32337 else
   32338 
   32339         if test "$cross_compiling" = yes; then :
   32340 
   32341            case "$host_os" in
   32342                              # Guess yes on Linux systems.
   32343             linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
   32344                              # Guess yes on glibc systems.
   32345             *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
   32346                              # If we don't know, obey --enable-cross-guesses.
   32347             *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
   32348            esac
   32349 
   32350 else
   32351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32352 /* end confdefs.h.  */
   32353 
   32354 #include <sys/types.h>
   32355 #include <sys/time.h>
   32356 #if HAVE_SYS_SELECT_H
   32357 # include <sys/select.h>
   32358 #endif
   32359 #include <unistd.h>
   32360 #include <errno.h>
   32361 
   32362 
   32363 $gl_mda_defines
   32364 
   32365 int
   32366 main ()
   32367 {
   32368 
   32369   fd_set set;
   32370   dup2(0, 16);
   32371   FD_ZERO(&set);
   32372   FD_SET(16, &set);
   32373   close(16);
   32374   struct timeval timeout;
   32375   timeout.tv_sec = 0;
   32376   timeout.tv_usec = 5;
   32377   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
   32378 
   32379   ;
   32380   return 0;
   32381 }
   32382 _ACEOF
   32383 if ac_fn_c_try_run "$LINENO"; then :
   32384   gl_cv_func_select_detects_ebadf=yes
   32385 else
   32386   gl_cv_func_select_detects_ebadf=no
   32387 fi
   32388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32389   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32390 fi
   32391 
   32392 
   32393 fi
   32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
   32395 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
   32396     case $gl_cv_func_select_detects_ebadf in
   32397       *yes) ;;
   32398       *) REPLACE_SELECT=1 ;;
   32399     esac
   32400   fi
   32401 
   32402     LIB_SELECT="$LIBSOCKET"
   32403   if test $REPLACE_SELECT = 1; then
   32404     case "$host_os" in
   32405       mingw*)
   32406                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32407 /* end confdefs.h.  */
   32408 
   32409 #define WIN32_LEAN_AND_MEAN
   32410 #include <windows.h>
   32411 int
   32412 main ()
   32413 {
   32414   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
   32415   return 0;
   32416 }
   32417 _ACEOF
   32418 if ac_fn_c_try_link "$LINENO"; then :
   32419 
   32420 else
   32421   LIB_SELECT="$LIB_SELECT -luser32"
   32422 fi
   32423 rm -f core conftest.err conftest.$ac_objext \
   32424     conftest$ac_exeext conftest.$ac_ext
   32425         ;;
   32426     esac
   32427   fi
   32428 
   32429 
   32430 
   32431      if test $REPLACE_SELECT = 1; then
   32432   GL_COND_OBJ_SELECT_TRUE=
   32433   GL_COND_OBJ_SELECT_FALSE='#'
   32434 else
   32435   GL_COND_OBJ_SELECT_TRUE='#'
   32436   GL_COND_OBJ_SELECT_FALSE=
   32437 fi
   32438 :
   32439     if test -z "${GL_COND_OBJ_SELECT_TRUE}" && test -z "${GL_COND_OBJ_SELECT_FALSE}"; then
   32440     GL_COND_OBJ_SELECT_TRUE='#'
   32441     GL_COND_OBJ_SELECT_FALSE='#'
   32442   fi
   32443 
   32444 
   32445 
   32446 
   32447 
   32448 
   32449 
   32450 
   32451 
   32452 
   32453           GL_GNULIB_SELECT=1
   32454 
   32455 
   32456 
   32457 
   32458 
   32459 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
   32460 
   32461 
   32462 
   32463 
   32464 
   32465      if test $ac_cv_func_setenv = no; then
   32466     HAVE_SETENV=0
   32467   else
   32468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
   32469 $as_echo_n "checking whether setenv validates arguments... " >&6; }
   32470 if ${gl_cv_func_setenv_works+:} false; then :
   32471   $as_echo_n "(cached) " >&6
   32472 else
   32473   if test "$cross_compiling" = yes; then :
   32474   case "$host_os" in
   32475                         # Guess yes on glibc systems.
   32476          *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
   32477                         # Guess yes on musl systems.
   32478          *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
   32479                         # If we don't know, obey --enable-cross-guesses.
   32480          *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
   32481        esac
   32482 
   32483 else
   32484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32485 /* end confdefs.h.  */
   32486 
   32487        #include <stdlib.h>
   32488        #include <errno.h>
   32489        #include <string.h>
   32490 
   32491 int
   32492 main ()
   32493 {
   32494 
   32495        int result = 0;
   32496        {
   32497          if (setenv ("", "", 0) != -1)
   32498            result |= 1;
   32499          else if (errno != EINVAL)
   32500            result |= 2;
   32501        }
   32502        {
   32503          if (setenv ("a", "=", 1) != 0)
   32504            result |= 4;
   32505          else if (strcmp (getenv ("a"), "=") != 0)
   32506            result |= 8;
   32507        }
   32508        return result;
   32509 
   32510   ;
   32511   return 0;
   32512 }
   32513 _ACEOF
   32514 if ac_fn_c_try_run "$LINENO"; then :
   32515   gl_cv_func_setenv_works=yes
   32516 else
   32517   gl_cv_func_setenv_works=no
   32518 fi
   32519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32520   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32521 fi
   32522 
   32523 fi
   32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
   32525 $as_echo "$gl_cv_func_setenv_works" >&6; }
   32526     case "$gl_cv_func_setenv_works" in
   32527       *yes) ;;
   32528       *)
   32529         REPLACE_SETENV=1
   32530         ;;
   32531     esac
   32532   fi
   32533 
   32534 
   32535      if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
   32536   GL_COND_OBJ_SETENV_TRUE=
   32537   GL_COND_OBJ_SETENV_FALSE='#'
   32538 else
   32539   GL_COND_OBJ_SETENV_TRUE='#'
   32540   GL_COND_OBJ_SETENV_FALSE=
   32541 fi
   32542 :
   32543     if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then
   32544     GL_COND_OBJ_SETENV_TRUE='#'
   32545     GL_COND_OBJ_SETENV_FALSE='#'
   32546   fi
   32547 
   32548 
   32549 
   32550 
   32551 
   32552 
   32553 
   32554 
   32555 
   32556 
   32557           GL_GNULIB_SETENV=1
   32558 
   32559 
   32560 
   32561 
   32562 
   32563 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
   32564 
   32565 
   32566 
   32567 
   32568 
   32569 
   32570 
   32571 
   32572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
   32573 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
   32574 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
   32575   $as_echo_n "(cached) " >&6
   32576 else
   32577   case "$host_os" in
   32578        # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
   32579        *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
   32580          gl_cv_func_setlocale_null_all_mtsafe=no ;;
   32581        # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
   32582        *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
   32583          gl_cv_func_setlocale_null_all_mtsafe=yes ;;
   32584        # If we don't know, obey --enable-cross-guesses.
   32585        *)
   32586          gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
   32587      esac
   32588 
   32589 fi
   32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
   32591 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
   32592     case "$host_os" in
   32593     mingw*) ;;
   32594     *)
   32595       if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
   32596         gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
   32597       fi
   32598       ;;
   32599   esac
   32600   case "$gl_cv_func_setlocale_null_all_mtsafe" in
   32601     *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
   32602     *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
   32603   esac
   32604 
   32605 cat >>confdefs.h <<_ACEOF
   32606 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
   32607 _ACEOF
   32608 
   32609 
   32610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
   32611 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
   32612 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
   32613   $as_echo_n "(cached) " >&6
   32614 else
   32615   case "$host_os" in
   32616        # Guess no on OpenBSD, AIX.
   32617        openbsd* | aix*)
   32618          gl_cv_func_setlocale_null_one_mtsafe=no ;;
   32619        # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
   32620        *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
   32621          gl_cv_func_setlocale_null_one_mtsafe=yes ;;
   32622        # If we don't know, obey --enable-cross-guesses.
   32623        *)
   32624          gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
   32625      esac
   32626 
   32627 fi
   32628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
   32629 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
   32630     case "$host_os" in
   32631     mingw*) ;;
   32632     *)
   32633       if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
   32634         gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
   32635       fi
   32636       ;;
   32637   esac
   32638   case "$gl_cv_func_setlocale_null_one_mtsafe" in
   32639     *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
   32640     *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
   32641   esac
   32642 
   32643 cat >>confdefs.h <<_ACEOF
   32644 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
   32645 _ACEOF
   32646 
   32647 
   32648     if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
   32649     case "$host_os" in
   32650       mingw*) LIB_SETLOCALE_NULL= ;;
   32651       *)
   32652 
   32653 
   32654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
   32655 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
   32656 if ${gl_cv_have_weak+:} false; then :
   32657   $as_echo_n "(cached) " >&6
   32658 else
   32659   case "$host_os" in
   32660        cygwin*)
   32661                                     gl_cv_have_weak="guessing no"
   32662          ;;
   32663        *)
   32664          gl_cv_have_weak=no
   32665                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32666 /* end confdefs.h.  */
   32667 extern void xyzzy ();
   32668 #pragma weak xyzzy
   32669 int
   32670 main ()
   32671 {
   32672 xyzzy();
   32673   ;
   32674   return 0;
   32675 }
   32676 _ACEOF
   32677 if ac_fn_c_try_link "$LINENO"; then :
   32678   gl_cv_have_weak=maybe
   32679 fi
   32680 rm -f core conftest.err conftest.$ac_objext \
   32681     conftest$ac_exeext conftest.$ac_ext
   32682          if test $gl_cv_have_weak = maybe; then
   32683                                  if test "$cross_compiling" = yes; then :
   32684                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32685 /* end confdefs.h.  */
   32686 #ifdef __ELF__
   32687                  Extensible Linking Format
   32688                  #endif
   32689 
   32690 _ACEOF
   32691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   32692   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
   32693   gl_cv_have_weak="guessing yes"
   32694 else
   32695   gl_cv_have_weak="guessing no"
   32696 fi
   32697 rm -f conftest*
   32698 
   32699 
   32700 else
   32701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32702 /* end confdefs.h.  */
   32703 
   32704 #include <stdio.h>
   32705 #pragma weak fputs
   32706 int main ()
   32707 {
   32708   return (fputs == NULL);
   32709 }
   32710 _ACEOF
   32711 if ac_fn_c_try_run "$LINENO"; then :
   32712   gl_cv_have_weak=yes
   32713 else
   32714   gl_cv_have_weak=no
   32715 fi
   32716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   32717   conftest.$ac_objext conftest.beam conftest.$ac_ext
   32718 fi
   32719 
   32720          fi
   32721          ;;
   32722      esac
   32723           case " $LDFLAGS " in
   32724        *" -static "*) gl_cv_have_weak=no ;;
   32725      esac
   32726                     case "$gl_cv_have_weak" in
   32727        *yes)
   32728          case "$host_os" in
   32729            freebsd* | dragonfly* | midnightbsd*)
   32730              : > conftest1.c
   32731              $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
   32732              cat <<EOF > conftest2.c
   32733 #include <pthread.h>
   32734 #pragma weak pthread_mutexattr_gettype
   32735 int main ()
   32736 {
   32737   return (pthread_mutexattr_gettype != NULL);
   32738 }
   32739 EOF
   32740              $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
   32741                || gl_cv_have_weak=no
   32742              rm -f conftest1.c libempty.so conftest2.c conftest
   32743              ;;
   32744          esac
   32745          ;;
   32746      esac
   32747 
   32748 fi
   32749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
   32750 $as_echo "$gl_cv_have_weak" >&6; }
   32751   case "$gl_cv_have_weak" in
   32752     *yes)
   32753 
   32754 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
   32755 
   32756       ;;
   32757   esac
   32758 
   32759         case "$gl_cv_have_weak" in
   32760           *yes) LIB_SETLOCALE_NULL= ;;
   32761           *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
   32762         esac
   32763         ;;
   32764     esac
   32765   else
   32766     LIB_SETLOCALE_NULL=
   32767   fi
   32768 
   32769 
   32770 
   32771      if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
   32772   GL_COND_OBJ_SETLOCALE_LOCK_TRUE=
   32773   GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
   32774 else
   32775   GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
   32776   GL_COND_OBJ_SETLOCALE_LOCK_FALSE=
   32777 fi
   32778 :
   32779     if test -z "${GL_COND_OBJ_SETLOCALE_LOCK_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_LOCK_FALSE}"; then
   32780     GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
   32781     GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
   32782   fi
   32783 
   32784   if test -z "$GL_COND_OBJ_SETLOCALE_LOCK_TRUE"; then :
   32785 
   32786 
   32787 
   32788 
   32789   CFLAG_VISIBILITY=
   32790   HAVE_VISIBILITY=0
   32791   if test -n "$GCC"; then
   32792                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
   32793 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
   32794 if ${gl_cv_cc_vis_werror+:} false; then :
   32795   $as_echo_n "(cached) " >&6
   32796 else
   32797   gl_save_CFLAGS="$CFLAGS"
   32798        CFLAGS="$CFLAGS -Werror"
   32799        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32800 /* end confdefs.h.  */
   32801 
   32802 int
   32803 main ()
   32804 {
   32805 
   32806   ;
   32807   return 0;
   32808 }
   32809 _ACEOF
   32810 if ac_fn_c_try_compile "$LINENO"; then :
   32811   gl_cv_cc_vis_werror=yes
   32812 else
   32813   gl_cv_cc_vis_werror=no
   32814 fi
   32815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32816        CFLAGS="$gl_save_CFLAGS"
   32817 
   32818 fi
   32819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
   32820 $as_echo "$gl_cv_cc_vis_werror" >&6; }
   32821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
   32822 $as_echo_n "checking for simple visibility declarations... " >&6; }
   32823 if ${gl_cv_cc_visibility+:} false; then :
   32824   $as_echo_n "(cached) " >&6
   32825 else
   32826   gl_save_CFLAGS="$CFLAGS"
   32827        CFLAGS="$CFLAGS -fvisibility=hidden"
   32828                                           if test $gl_cv_cc_vis_werror = yes; then
   32829          CFLAGS="$CFLAGS -Werror"
   32830        fi
   32831        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   32832 /* end confdefs.h.  */
   32833 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
   32834               extern __attribute__((__visibility__("default"))) int exportedvar;
   32835               extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
   32836               extern __attribute__((__visibility__("default"))) int exportedfunc (void);
   32837               void dummyfunc (void);
   32838               int hiddenvar;
   32839               int exportedvar;
   32840               int hiddenfunc (void) { return 51; }
   32841               int exportedfunc (void) { return 1225736919; }
   32842               void dummyfunc (void) {}
   32843 
   32844 int
   32845 main ()
   32846 {
   32847 
   32848   ;
   32849   return 0;
   32850 }
   32851 _ACEOF
   32852 if ac_fn_c_try_compile "$LINENO"; then :
   32853   gl_cv_cc_visibility=yes
   32854 else
   32855   gl_cv_cc_visibility=no
   32856 fi
   32857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32858        CFLAGS="$gl_save_CFLAGS"
   32859 
   32860 fi
   32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
   32862 $as_echo "$gl_cv_cc_visibility" >&6; }
   32863     if test $gl_cv_cc_visibility = yes; then
   32864       CFLAG_VISIBILITY="-fvisibility=hidden"
   32865       HAVE_VISIBILITY=1
   32866     fi
   32867   fi
   32868 
   32869 
   32870 
   32871 cat >>confdefs.h <<_ACEOF
   32872 #define HAVE_VISIBILITY $HAVE_VISIBILITY
   32873 _ACEOF
   32874 
   32875 
   32876 
   32877 
   32878 fi
   32879 
   32880 
   32881 
   32882 
   32883 
   32884 
   32885 
   32886 
   32887 
   32888           GL_GNULIB_SETLOCALE_NULL=1
   32889 
   32890 
   32891 
   32892 
   32893 
   32894 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
   32895 
   32896 
   32897 
   32898 
   32899 
   32900      if test "$ac_cv_header_winsock2_h" = yes; then
   32901   GL_COND_OBJ_SETSOCKOPT_TRUE=
   32902   GL_COND_OBJ_SETSOCKOPT_FALSE='#'
   32903 else
   32904   GL_COND_OBJ_SETSOCKOPT_TRUE='#'
   32905   GL_COND_OBJ_SETSOCKOPT_FALSE=
   32906 fi
   32907 :
   32908     if test -z "${GL_COND_OBJ_SETSOCKOPT_TRUE}" && test -z "${GL_COND_OBJ_SETSOCKOPT_FALSE}"; then
   32909     GL_COND_OBJ_SETSOCKOPT_TRUE='#'
   32910     GL_COND_OBJ_SETSOCKOPT_FALSE='#'
   32911   fi
   32912 
   32913 
   32914 
   32915 
   32916 
   32917 
   32918 
   32919 
   32920 
   32921 
   32922           GL_GNULIB_SETSOCKOPT=1
   32923 
   32924 
   32925 
   32926 
   32927 
   32928 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
   32929 
   32930 
   32931 
   32932 
   32933 
   32934 
   32935 
   32936 
   32937 
   32938 
   32939 
   32940 
   32941      if test "$ac_cv_header_winsock2_h" = yes; then
   32942   GL_COND_OBJ_SOCKET_TRUE=
   32943   GL_COND_OBJ_SOCKET_FALSE='#'
   32944 else
   32945   GL_COND_OBJ_SOCKET_TRUE='#'
   32946   GL_COND_OBJ_SOCKET_FALSE=
   32947 fi
   32948 :
   32949     if test -z "${GL_COND_OBJ_SOCKET_TRUE}" && test -z "${GL_COND_OBJ_SOCKET_FALSE}"; then
   32950     GL_COND_OBJ_SOCKET_TRUE='#'
   32951     GL_COND_OBJ_SOCKET_FALSE='#'
   32952   fi
   32953 
   32954   # When this module is used, sockets may actually occur as file descriptors,
   32955   # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
   32956 
   32957 
   32958 
   32959 
   32960 
   32961 
   32962 
   32963   if test "$ac_cv_header_winsock2_h" = yes; then
   32964     UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
   32965     SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
   32966   fi
   32967 
   32968 
   32969 
   32970 
   32971 
   32972 
   32973 
   32974 
   32975 
   32976           GL_GNULIB_SOCKET=1
   32977 
   32978 
   32979 
   32980 
   32981 
   32982 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
   32983 
   32984 
   32985 
   32986 
   32987 
   32988      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   32989 /* <sys/types.h> is not needed according to POSIX, but the
   32990    <sys/socket.h> in i386-unknown-freebsd4.10 and
   32991    powerpc-apple-darwin5.5 required it. */
   32992 #include <sys/types.h>
   32993 #if HAVE_SYS_SOCKET_H
   32994 # include <sys/socket.h>
   32995 #elif HAVE_WS2TCPIP_H
   32996 # include <ws2tcpip.h>
   32997 #endif
   32998 
   32999 "
   33000 if test "x$ac_cv_type_socklen_t" = xyes; then :
   33001 
   33002 else
   33003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
   33004 $as_echo_n "checking for socklen_t equivalent... " >&6; }
   33005 if ${gl_cv_socklen_t_equiv+:} false; then :
   33006   $as_echo_n "(cached) " >&6
   33007 else
   33008   # Systems have either "struct sockaddr *" or
   33009          # "void *" as the second argument to getpeername
   33010          gl_cv_socklen_t_equiv=
   33011          for arg2 in "struct sockaddr" void; do
   33012            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
   33013              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33014 /* end confdefs.h.  */
   33015 #include <sys/types.h>
   33016                    #include <sys/socket.h>
   33017 
   33018                    int getpeername (int, $arg2 *, $t *);
   33019 int
   33020 main ()
   33021 {
   33022 $t len;
   33023                   getpeername (0, 0, &len);
   33024   ;
   33025   return 0;
   33026 }
   33027 _ACEOF
   33028 if ac_fn_c_try_compile "$LINENO"; then :
   33029   gl_cv_socklen_t_equiv="$t"
   33030 fi
   33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33032              test "$gl_cv_socklen_t_equiv" != "" && break
   33033            done
   33034            test "$gl_cv_socklen_t_equiv" != "" && break
   33035          done
   33036          if test "$gl_cv_socklen_t_equiv" = ""; then
   33037            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
   33038          fi
   33039 
   33040 fi
   33041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
   33042 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
   33043 
   33044 cat >>confdefs.h <<_ACEOF
   33045 #define socklen_t $gl_cv_socklen_t_equiv
   33046 _ACEOF
   33047 
   33048 fi
   33049 
   33050 
   33051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
   33052 $as_echo_n "checking for ssize_t... " >&6; }
   33053 if ${gt_cv_ssize_t+:} false; then :
   33054   $as_echo_n "(cached) " >&6
   33055 else
   33056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33057 /* end confdefs.h.  */
   33058 #include <sys/types.h>
   33059 int
   33060 main ()
   33061 {
   33062 int x = sizeof (ssize_t *) + sizeof (ssize_t);
   33063             return !x;
   33064   ;
   33065   return 0;
   33066 }
   33067 _ACEOF
   33068 if ac_fn_c_try_compile "$LINENO"; then :
   33069   gt_cv_ssize_t=yes
   33070 else
   33071   gt_cv_ssize_t=no
   33072 fi
   33073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33074 fi
   33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
   33076 $as_echo "$gt_cv_ssize_t" >&6; }
   33077   if test $gt_cv_ssize_t = no; then
   33078 
   33079 $as_echo "#define ssize_t int" >>confdefs.h
   33080 
   33081   fi
   33082 
   33083 
   33084 
   33085 
   33086 
   33087   case "$host_os" in
   33088     mingw*)
   33089                         ;;
   33090     *)
   33091                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
   33092 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
   33093 if ${gl_cv_func_stat_file_slash+:} false; then :
   33094   $as_echo_n "(cached) " >&6
   33095 else
   33096   touch conftest.tmp
   33097          # Assume that if we have lstat, we can also check symlinks.
   33098          if test $ac_cv_func_lstat = yes; then
   33099            ln -s conftest.tmp conftest.lnk
   33100          fi
   33101          if test "$cross_compiling" = yes; then :
   33102   case "$host_os" in
   33103                                # Guess yes on Linux systems.
   33104               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
   33105                                # Guess yes on glibc systems.
   33106               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
   33107                                # If we don't know, obey --enable-cross-guesses.
   33108               *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
   33109             esac
   33110 
   33111 else
   33112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33113 /* end confdefs.h.  */
   33114 #include <sys/stat.h>
   33115 
   33116 int
   33117 main ()
   33118 {
   33119 int result = 0;
   33120                struct stat st;
   33121                if (!stat ("conftest.tmp/", &st))
   33122                  result |= 1;
   33123 #if HAVE_LSTAT
   33124                if (!stat ("conftest.lnk/", &st))
   33125                  result |= 2;
   33126 #endif
   33127                return result;
   33128 
   33129   ;
   33130   return 0;
   33131 }
   33132 _ACEOF
   33133 if ac_fn_c_try_run "$LINENO"; then :
   33134   gl_cv_func_stat_file_slash=yes
   33135 else
   33136   gl_cv_func_stat_file_slash=no
   33137 fi
   33138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   33139   conftest.$ac_objext conftest.beam conftest.$ac_ext
   33140 fi
   33141 
   33142          rm -f conftest.tmp conftest.lnk
   33143 fi
   33144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
   33145 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
   33146       case $gl_cv_func_stat_file_slash in
   33147         *no)
   33148           REPLACE_STAT=1
   33149 
   33150 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
   33151 ;;
   33152       esac
   33153       case $host_os in
   33154                 solaris*)
   33155           REPLACE_FSTAT=1 ;;
   33156       esac
   33157       ;;
   33158   esac
   33159 
   33160 
   33161      if test $REPLACE_STAT = 1; then
   33162   GL_COND_OBJ_STAT_TRUE=
   33163   GL_COND_OBJ_STAT_FALSE='#'
   33164 else
   33165   GL_COND_OBJ_STAT_TRUE='#'
   33166   GL_COND_OBJ_STAT_FALSE=
   33167 fi
   33168 :
   33169     if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
   33170     GL_COND_OBJ_STAT_TRUE='#'
   33171     GL_COND_OBJ_STAT_FALSE='#'
   33172   fi
   33173 
   33174   if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
   33175 
   33176     case "$host_os" in
   33177       mingw*)
   33178 
   33179 
   33180 
   33181 
   33182 
   33183 
   33184 
   33185 
   33186   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
   33187 
   33188         ;;
   33189     esac
   33190 
   33191 
   33192 
   33193   :
   33194 
   33195 
   33196 fi
   33197 
   33198 
   33199 
   33200 
   33201 
   33202 
   33203 
   33204 
   33205 
   33206           GL_GNULIB_STAT=1
   33207 
   33208 
   33209 
   33210 
   33211 
   33212 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
   33213 
   33214 
   33215 
   33216 
   33217 
   33218 
   33219 
   33220   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
   33221      #include <sys/stat.h>
   33222 "
   33223 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
   33224 
   33225 cat >>confdefs.h <<_ACEOF
   33226 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
   33227 _ACEOF
   33228 
   33229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
   33230 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
   33231 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
   33232   $as_echo_n "(cached) " >&6
   33233 else
   33234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33235 /* end confdefs.h.  */
   33236 
   33237             #include <sys/types.h>
   33238             #include <sys/stat.h>
   33239             #if HAVE_SYS_TIME_H
   33240             # include <sys/time.h>
   33241             #endif
   33242             #include <time.h>
   33243             struct timespec ts;
   33244             struct stat st;
   33245 
   33246 int
   33247 main ()
   33248 {
   33249 
   33250             st.st_atim = ts;
   33251 
   33252   ;
   33253   return 0;
   33254 }
   33255 _ACEOF
   33256 if ac_fn_c_try_compile "$LINENO"; then :
   33257   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
   33258 else
   33259   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
   33260 fi
   33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33262 fi
   33263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
   33264 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
   33265      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
   33266 
   33267 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
   33268 
   33269      fi
   33270 else
   33271   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
   33272         #include <sys/stat.h>
   33273 "
   33274 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
   33275 
   33276 cat >>confdefs.h <<_ACEOF
   33277 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
   33278 _ACEOF
   33279 
   33280 
   33281 else
   33282   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
   33283            #include <sys/stat.h>
   33284 "
   33285 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
   33286 
   33287 cat >>confdefs.h <<_ACEOF
   33288 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
   33289 _ACEOF
   33290 
   33291 
   33292 else
   33293   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
   33294               #include <sys/stat.h>
   33295 "
   33296 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
   33297 
   33298 cat >>confdefs.h <<_ACEOF
   33299 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
   33300 _ACEOF
   33301 
   33302 
   33303 fi
   33304 
   33305 fi
   33306 
   33307 fi
   33308 
   33309 fi
   33310 
   33311 
   33312 
   33313 
   33314 
   33315   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
   33316      #include <sys/stat.h>
   33317 "
   33318 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
   33319 
   33320 cat >>confdefs.h <<_ACEOF
   33321 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
   33322 _ACEOF
   33323 
   33324 
   33325 else
   33326   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
   33327         #include <sys/stat.h>
   33328 "
   33329 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
   33330 
   33331 cat >>confdefs.h <<_ACEOF
   33332 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
   33333 _ACEOF
   33334 
   33335 
   33336 else
   33337   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
   33338           #include <sys/stat.h>
   33339 "
   33340 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
   33341 
   33342 cat >>confdefs.h <<_ACEOF
   33343 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
   33344 _ACEOF
   33345 
   33346 
   33347 fi
   33348 
   33349 fi
   33350 
   33351 fi
   33352 
   33353 
   33354 
   33355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
   33356 $as_echo_n "checking for working stdalign.h... " >&6; }
   33357 if ${gl_cv_header_working_stdalign_h+:} false; then :
   33358   $as_echo_n "(cached) " >&6
   33359 else
   33360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   33361 /* end confdefs.h.  */
   33362 #include <stdint.h>
   33363             #include <stdalign.h>
   33364             #include <stddef.h>
   33365 
   33366             /* Test that alignof yields a result consistent with offsetof.
   33367                This catches GCC bug 52023
   33368                <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
   33369             #ifdef __cplusplus
   33370                template <class t> struct alignof_helper { char a; t b; };
   33371             # define ao(type) offsetof (alignof_helper<type>, b)
   33372             #else
   33373             # define ao(type) offsetof (struct { char a; type b; }, b)
   33374             #endif
   33375             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
   33376             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
   33377             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
   33378 
   33379             /* Test _Alignas only on platforms where gnulib can help.  */
   33380             #if \
   33381                 ((defined __cplusplus && 201103 <= __cplusplus) \
   33382                  || (__TINYC__ && defined __attribute__) \
   33383                  || (defined __APPLE__ && defined __MACH__ \
   33384                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
   33385                      : __GNUC__) \
   33386                  || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
   33387                  || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
   33388                  || 1300 <= _MSC_VER)
   33389               struct alignas_test { char c; char alignas (8) alignas_8; };
   33390               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
   33391                                 ? 1 : -1];
   33392             #endif
   33393 
   33394 int
   33395 main ()
   33396 {
   33397 
   33398   ;
   33399   return 0;
   33400 }
   33401 _ACEOF
   33402 if ac_fn_c_try_compile "$LINENO"; then :
   33403   gl_cv_header_working_stdalign_h=yes
   33404 else
   33405   gl_cv_header_working_stdalign_h=no
   33406 fi
   33407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33408 fi
   33409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
   33410 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
   33411 
   33412   if test $gl_cv_header_working_stdalign_h = yes; then
   33413     GL_GENERATE_STDALIGN_H=false
   33414   else
   33415     GL_GENERATE_STDALIGN_H=true
   33416   fi
   33417 
   33418 
   33419 
   33420 
   33421 
   33422   case "$GL_GENERATE_STDALIGN_H" in
   33423     false) STDALIGN_H='' ;;
   33424     true)
   33425                   if test -z "$STDALIGN_H"; then
   33426         STDALIGN_H="${gl_source_base_prefix}stdalign.h"
   33427       fi
   33428       ;;
   33429     *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;;
   33430   esac
   33431 
   33432 
   33433      if $GL_GENERATE_STDALIGN_H; then
   33434   GL_GENERATE_STDALIGN_H_TRUE=
   33435   GL_GENERATE_STDALIGN_H_FALSE='#'
   33436 else
   33437   GL_GENERATE_STDALIGN_H_TRUE='#'
   33438   GL_GENERATE_STDALIGN_H_FALSE=
   33439 fi
   33440 :
   33441     if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
   33442     GL_GENERATE_STDALIGN_H_TRUE='#'
   33443     GL_GENERATE_STDALIGN_H_FALSE='#'
   33444   fi
   33445 
   33446 
   33447 
   33448 
   33449 
   33450 
   33451 
   33452 
   33453 
   33454 
   33455           if test "$ac_cv_header_stdbool_h" = yes; then
   33456     case "$host_os" in
   33457       solaris*)
   33458         if test -z "$GCC"; then
   33459           GL_GENERATE_STDBOOL_H=true
   33460         else
   33461           GL_GENERATE_STDBOOL_H=false
   33462         fi
   33463         ;;
   33464       *)
   33465         GL_GENERATE_STDBOOL_H=false
   33466         ;;
   33467     esac
   33468   else
   33469     GL_GENERATE_STDBOOL_H=true
   33470   fi
   33471 
   33472   if test "$ac_cv_type__Bool" = yes; then
   33473     HAVE__BOOL=1
   33474   else
   33475     HAVE__BOOL=0
   33476   fi
   33477 
   33478 
   33479 
   33480 
   33481 
   33482 
   33483   case "$GL_GENERATE_STDBOOL_H" in
   33484     false) STDBOOL_H='' ;;
   33485     true)
   33486                   if test -z "$STDBOOL_H"; then
   33487         STDBOOL_H="${gl_source_base_prefix}stdbool.h"
   33488       fi
   33489       ;;
   33490     *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
   33491   esac
   33492 
   33493 
   33494      if $GL_GENERATE_STDBOOL_H; then
   33495   GL_GENERATE_STDBOOL_H_TRUE=
   33496   GL_GENERATE_STDBOOL_H_FALSE='#'
   33497 else
   33498   GL_GENERATE_STDBOOL_H_TRUE='#'
   33499   GL_GENERATE_STDBOOL_H_FALSE=
   33500 fi
   33501 :
   33502     if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
   33503     GL_GENERATE_STDBOOL_H_TRUE='#'
   33504     GL_GENERATE_STDBOOL_H_FALSE='#'
   33505   fi
   33506 
   33507 
   33508 
   33509 
   33510 
   33511 
   33512 
   33513 
   33514 
   33515 
   33516 
   33517 
   33518 
   33519 
   33520 
   33521 
   33522   case "$GL_GENERATE_STDDEF_H" in
   33523     false) STDDEF_H='' ;;
   33524     true)
   33525                   if test -z "$STDDEF_H"; then
   33526         STDDEF_H="${gl_source_base_prefix}stddef.h"
   33527       fi
   33528       ;;
   33529     *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
   33530   esac
   33531 
   33532 
   33533      if $GL_GENERATE_STDDEF_H; then
   33534   GL_GENERATE_STDDEF_H_TRUE=
   33535   GL_GENERATE_STDDEF_H_FALSE='#'
   33536 else
   33537   GL_GENERATE_STDDEF_H_TRUE='#'
   33538   GL_GENERATE_STDDEF_H_FALSE=
   33539 fi
   33540 :
   33541     if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
   33542     GL_GENERATE_STDDEF_H_TRUE='#'
   33543     GL_GENERATE_STDDEF_H_FALSE='#'
   33544   fi
   33545 
   33546 
   33547 
   33548 
   33549 
   33550 
   33551 
   33552 
   33553 
   33554 
   33555 
   33556   case "$GL_GENERATE_STDINT_H" in
   33557     false) STDINT_H='' ;;
   33558     true)
   33559                   if test -z "$STDINT_H"; then
   33560         STDINT_H="${gl_source_base_prefix}stdint.h"
   33561       fi
   33562       ;;
   33563     *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
   33564   esac
   33565 
   33566 
   33567      if $GL_GENERATE_STDINT_H; then
   33568   GL_GENERATE_STDINT_H_TRUE=
   33569   GL_GENERATE_STDINT_H_FALSE='#'
   33570 else
   33571   GL_GENERATE_STDINT_H_TRUE='#'
   33572   GL_GENERATE_STDINT_H_FALSE=
   33573 fi
   33574 :
   33575     if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
   33576     GL_GENERATE_STDINT_H_TRUE='#'
   33577     GL_GENERATE_STDINT_H_FALSE='#'
   33578   fi
   33579 
   33580 
   33581 
   33582 
   33583 
   33584 
   33585 
   33586 
   33587 
   33588   case "$GL_GENERATE_LIMITS_H" in
   33589     false) LIMITS_H='' ;;
   33590     true)
   33591                   if test -z "$LIMITS_H"; then
   33592         LIMITS_H="${gl_source_base_prefix}limits.h"
   33593       fi
   33594       ;;
   33595     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
   33596   esac
   33597 
   33598 
   33599      if $GL_GENERATE_LIMITS_H; then
   33600   GL_GENERATE_LIMITS_H_TRUE=
   33601   GL_GENERATE_LIMITS_H_FALSE='#'
   33602 else
   33603   GL_GENERATE_LIMITS_H_TRUE='#'
   33604   GL_GENERATE_LIMITS_H_FALSE=
   33605 fi
   33606 :
   33607     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
   33608     GL_GENERATE_LIMITS_H_TRUE='#'
   33609     GL_GENERATE_LIMITS_H_FALSE='#'
   33610   fi
   33611 
   33612 
   33613 
   33614 
   33615 
   33616 
   33617 
   33618 
   33619 
   33620 
   33621 
   33622 
   33623 
   33624 
   33625      if test $REPLACE_STDIO_READ_FUNCS = 1; then
   33626   GL_COND_OBJ_STDIO_READ_TRUE=
   33627   GL_COND_OBJ_STDIO_READ_FALSE='#'
   33628 else
   33629   GL_COND_OBJ_STDIO_READ_TRUE='#'
   33630   GL_COND_OBJ_STDIO_READ_FALSE=
   33631 fi
   33632 :
   33633     if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
   33634     GL_COND_OBJ_STDIO_READ_TRUE='#'
   33635     GL_COND_OBJ_STDIO_READ_FALSE='#'
   33636   fi
   33637 
   33638 
   33639      if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
   33640   GL_COND_OBJ_STDIO_WRITE_TRUE=
   33641   GL_COND_OBJ_STDIO_WRITE_FALSE='#'
   33642 else
   33643   GL_COND_OBJ_STDIO_WRITE_TRUE='#'
   33644   GL_COND_OBJ_STDIO_WRITE_FALSE=
   33645 fi
   33646 :
   33647     if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
   33648     GL_COND_OBJ_STDIO_WRITE_TRUE='#'
   33649     GL_COND_OBJ_STDIO_WRITE_FALSE='#'
   33650   fi
   33651 
   33652 
   33653 
   33654 
   33655 
   33656 
   33657 
   33658 
   33659 
   33660 
   33661           GL_GNULIB_FSCANF=1
   33662 
   33663 
   33664 
   33665 
   33666 
   33667 $as_echo "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
   33668 
   33669 
   33670 
   33671 
   33672 
   33673 cat >>confdefs.h <<_ACEOF
   33674 #define GNULIB_FSCANF 1
   33675 _ACEOF
   33676 
   33677 
   33678 
   33679 
   33680 
   33681 
   33682 
   33683 
   33684 
   33685 
   33686 
   33687           GL_GNULIB_SCANF=1
   33688 
   33689 
   33690 
   33691 
   33692 
   33693 $as_echo "#define GNULIB_TEST_SCANF 1" >>confdefs.h
   33694 
   33695 
   33696 
   33697 
   33698 
   33699 cat >>confdefs.h <<_ACEOF
   33700 #define GNULIB_SCANF 1
   33701 _ACEOF
   33702 
   33703 
   33704 
   33705 
   33706 
   33707 
   33708 
   33709 
   33710 
   33711 
   33712 
   33713           GL_GNULIB_FGETC=1
   33714 
   33715 
   33716 
   33717 
   33718 
   33719 $as_echo "#define GNULIB_TEST_FGETC 1" >>confdefs.h
   33720 
   33721 
   33722 
   33723 
   33724 
   33725 
   33726 
   33727 
   33728 
   33729 
   33730 
   33731 
   33732           GL_GNULIB_GETC=1
   33733 
   33734 
   33735 
   33736 
   33737 
   33738 $as_echo "#define GNULIB_TEST_GETC 1" >>confdefs.h
   33739 
   33740 
   33741 
   33742 
   33743 
   33744 
   33745 
   33746 
   33747 
   33748 
   33749 
   33750 
   33751           GL_GNULIB_GETCHAR=1
   33752 
   33753 
   33754 
   33755 
   33756 
   33757 $as_echo "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
   33758 
   33759 
   33760 
   33761 
   33762 
   33763 
   33764 
   33765 
   33766 
   33767 
   33768 
   33769 
   33770           GL_GNULIB_FGETS=1
   33771 
   33772 
   33773 
   33774 
   33775 
   33776 $as_echo "#define GNULIB_TEST_FGETS 1" >>confdefs.h
   33777 
   33778 
   33779 
   33780 
   33781 
   33782 
   33783 
   33784 
   33785 
   33786 
   33787 
   33788 
   33789           GL_GNULIB_FREAD=1
   33790 
   33791 
   33792 
   33793 
   33794 
   33795 $as_echo "#define GNULIB_TEST_FREAD 1" >>confdefs.h
   33796 
   33797 
   33798 
   33799 
   33800 
   33801 
   33802 
   33803 
   33804 
   33805 
   33806 
   33807 
   33808           GL_GNULIB_FPRINTF=1
   33809 
   33810 
   33811 
   33812 
   33813 
   33814 $as_echo "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
   33815 
   33816 
   33817 
   33818 
   33819 
   33820 
   33821 
   33822 
   33823 
   33824 
   33825 
   33826 
   33827           GL_GNULIB_PRINTF=1
   33828 
   33829 
   33830 
   33831 
   33832 
   33833 $as_echo "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
   33834 
   33835 
   33836 
   33837 
   33838 
   33839 
   33840 
   33841 
   33842 
   33843 
   33844 
   33845 
   33846           GL_GNULIB_VFPRINTF=1
   33847 
   33848 
   33849 
   33850 
   33851 
   33852 $as_echo "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
   33853 
   33854 
   33855 
   33856 
   33857 
   33858 
   33859 
   33860 
   33861 
   33862 
   33863 
   33864 
   33865           GL_GNULIB_VPRINTF=1
   33866 
   33867 
   33868 
   33869 
   33870 
   33871 $as_echo "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
   33872 
   33873 
   33874 
   33875 
   33876 
   33877 
   33878 
   33879 
   33880 
   33881 
   33882 
   33883 
   33884           GL_GNULIB_FPUTC=1
   33885 
   33886 
   33887 
   33888 
   33889 
   33890 $as_echo "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
   33891 
   33892 
   33893 
   33894 
   33895 
   33896 
   33897 
   33898 
   33899 
   33900 
   33901 
   33902 
   33903           GL_GNULIB_PUTC=1
   33904 
   33905 
   33906 
   33907 
   33908 
   33909 $as_echo "#define GNULIB_TEST_PUTC 1" >>confdefs.h
   33910 
   33911 
   33912 
   33913 
   33914 
   33915 
   33916 
   33917 
   33918 
   33919 
   33920 
   33921 
   33922           GL_GNULIB_PUTCHAR=1
   33923 
   33924 
   33925 
   33926 
   33927 
   33928 $as_echo "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
   33929 
   33930 
   33931 
   33932 
   33933 
   33934 
   33935 
   33936 
   33937 
   33938 
   33939 
   33940 
   33941           GL_GNULIB_FPUTS=1
   33942 
   33943 
   33944 
   33945 
   33946 
   33947 $as_echo "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
   33948 
   33949 
   33950 
   33951 
   33952 
   33953 
   33954 
   33955 
   33956 
   33957 
   33958 
   33959 
   33960           GL_GNULIB_PUTS=1
   33961 
   33962 
   33963 
   33964 
   33965 
   33966 $as_echo "#define GNULIB_TEST_PUTS 1" >>confdefs.h
   33967 
   33968 
   33969 
   33970 
   33971 
   33972 
   33973 
   33974 
   33975 
   33976 
   33977 
   33978 
   33979           GL_GNULIB_FWRITE=1
   33980 
   33981 
   33982 
   33983 
   33984 
   33985 $as_echo "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
   33986 
   33987 
   33988 
   33989 
   33990 
   33991 
   33992 
   33993 
   33994 
   33995 
   33996 
   33997 
   33998 
   33999 
   34000   for ac_func in strchrnul
   34001 do :
   34002   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
   34003 if test "x$ac_cv_func_strchrnul" = xyes; then :
   34004   cat >>confdefs.h <<_ACEOF
   34005 #define HAVE_STRCHRNUL 1
   34006 _ACEOF
   34007 
   34008 fi
   34009 done
   34010 
   34011   if test $ac_cv_func_strchrnul = no; then
   34012     HAVE_STRCHRNUL=0
   34013   else
   34014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
   34015 $as_echo_n "checking whether strchrnul works... " >&6; }
   34016 if ${gl_cv_func_strchrnul_works+:} false; then :
   34017   $as_echo_n "(cached) " >&6
   34018 else
   34019   if test "$cross_compiling" = yes; then :
   34020            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34021 /* end confdefs.h.  */
   34022 
   34023 #if defined __CYGWIN__
   34024  #include <cygwin/version.h>
   34025  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
   34026   Lucky user
   34027  #endif
   34028 #else
   34029   Lucky user
   34030 #endif
   34031 
   34032 _ACEOF
   34033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   34034   $EGREP "Lucky user" >/dev/null 2>&1; then :
   34035   gl_cv_func_strchrnul_works="guessing yes"
   34036 else
   34037   gl_cv_func_strchrnul_works="guessing no"
   34038 fi
   34039 rm -f conftest*
   34040 
   34041 
   34042 else
   34043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34044 /* end confdefs.h.  */
   34045 
   34046 #include <string.h> /* for strchrnul */
   34047 
   34048 int
   34049 main ()
   34050 {
   34051 const char *buf = "a";
   34052       return strchrnul (buf, 'b') != buf + 1;
   34053 
   34054   ;
   34055   return 0;
   34056 }
   34057 _ACEOF
   34058 if ac_fn_c_try_run "$LINENO"; then :
   34059   gl_cv_func_strchrnul_works=yes
   34060 else
   34061   gl_cv_func_strchrnul_works=no
   34062 fi
   34063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34064   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34065 fi
   34066 
   34067 
   34068 fi
   34069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
   34070 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
   34071     case "$gl_cv_func_strchrnul_works" in
   34072       *yes) ;;
   34073       *) REPLACE_STRCHRNUL=1 ;;
   34074     esac
   34075   fi
   34076 
   34077 
   34078      if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
   34079   GL_COND_OBJ_STRCHRNUL_TRUE=
   34080   GL_COND_OBJ_STRCHRNUL_FALSE='#'
   34081 else
   34082   GL_COND_OBJ_STRCHRNUL_TRUE='#'
   34083   GL_COND_OBJ_STRCHRNUL_FALSE=
   34084 fi
   34085 :
   34086     if test -z "${GL_COND_OBJ_STRCHRNUL_TRUE}" && test -z "${GL_COND_OBJ_STRCHRNUL_FALSE}"; then
   34087     GL_COND_OBJ_STRCHRNUL_TRUE='#'
   34088     GL_COND_OBJ_STRCHRNUL_FALSE='#'
   34089   fi
   34090 
   34091   if test -z "$GL_COND_OBJ_STRCHRNUL_TRUE"; then :
   34092 
   34093     :
   34094 
   34095 fi
   34096 
   34097 
   34098 
   34099 
   34100 
   34101 
   34102 
   34103 
   34104 
   34105 
   34106 
   34107 
   34108 
   34109 
   34110           GL_GNULIB_STRCHRNUL=1
   34111 
   34112 
   34113 
   34114 
   34115 
   34116 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
   34117 
   34118 
   34119 
   34120 
   34121 
   34122 
   34123   if test $gl_cv_func_malloc_posix != yes; then
   34124     REPLACE_STRDUP=1
   34125   fi
   34126 
   34127   if test $ac_cv_have_decl_strdup = no; then
   34128     HAVE_DECL_STRDUP=0
   34129   fi
   34130 
   34131 
   34132      if test $REPLACE_STRDUP = 1; then
   34133   GL_COND_OBJ_STRDUP_TRUE=
   34134   GL_COND_OBJ_STRDUP_FALSE='#'
   34135 else
   34136   GL_COND_OBJ_STRDUP_TRUE='#'
   34137   GL_COND_OBJ_STRDUP_FALSE=
   34138 fi
   34139 :
   34140     if test -z "${GL_COND_OBJ_STRDUP_TRUE}" && test -z "${GL_COND_OBJ_STRDUP_FALSE}"; then
   34141     GL_COND_OBJ_STRDUP_TRUE='#'
   34142     GL_COND_OBJ_STRDUP_FALSE='#'
   34143   fi
   34144 
   34145   if test -z "$GL_COND_OBJ_STRDUP_TRUE"; then :
   34146 
   34147     :
   34148 
   34149 fi
   34150 
   34151 
   34152 
   34153 
   34154 
   34155 
   34156 
   34157 
   34158 
   34159 
   34160 
   34161 
   34162 
   34163 
   34164           GL_GNULIB_STRDUP=1
   34165 
   34166 
   34167 
   34168 
   34169 
   34170 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
   34171 
   34172 
   34173 
   34174 
   34175 
   34176 
   34177 
   34178 
   34179 
   34180 
   34181   if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
   34182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
   34183 $as_echo_n "checking for working strerror function... " >&6; }
   34184 if ${gl_cv_func_working_strerror+:} false; then :
   34185   $as_echo_n "(cached) " >&6
   34186 else
   34187   if test "$cross_compiling" = yes; then :
   34188   case "$host_os" in
   34189                           # Guess yes on glibc systems.
   34190            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
   34191                           # Guess yes on musl systems.
   34192            *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
   34193                           # If we don't know, obey --enable-cross-guesses.
   34194            *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
   34195          esac
   34196 
   34197 else
   34198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34199 /* end confdefs.h.  */
   34200 #include <string.h>
   34201 
   34202 int
   34203 main ()
   34204 {
   34205 if (!*strerror (-2)) return 1;
   34206   ;
   34207   return 0;
   34208 }
   34209 _ACEOF
   34210 if ac_fn_c_try_run "$LINENO"; then :
   34211   gl_cv_func_working_strerror=yes
   34212 else
   34213   gl_cv_func_working_strerror=no
   34214 fi
   34215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34216   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34217 fi
   34218 
   34219 
   34220 fi
   34221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
   34222 $as_echo "$gl_cv_func_working_strerror" >&6; }
   34223     case "$gl_cv_func_working_strerror" in
   34224       *yes) ;;
   34225       *)
   34226                         REPLACE_STRERROR=1
   34227         ;;
   34228     esac
   34229 
   34230                   case "$gl_cv_func_strerror_r_works" in
   34231         *no) REPLACE_STRERROR=1 ;;
   34232       esac
   34233 
   34234   else
   34235             REPLACE_STRERROR=1
   34236   fi
   34237 
   34238 
   34239      if test $REPLACE_STRERROR = 1; then
   34240   GL_COND_OBJ_STRERROR_TRUE=
   34241   GL_COND_OBJ_STRERROR_FALSE='#'
   34242 else
   34243   GL_COND_OBJ_STRERROR_TRUE='#'
   34244   GL_COND_OBJ_STRERROR_FALSE=
   34245 fi
   34246 :
   34247     if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
   34248     GL_COND_OBJ_STRERROR_TRUE='#'
   34249     GL_COND_OBJ_STRERROR_FALSE='#'
   34250   fi
   34251 
   34252 
   34253 
   34254 cat >>confdefs.h <<_ACEOF
   34255 #define GNULIB_STRERROR 1
   34256 _ACEOF
   34257 
   34258 
   34259 
   34260 
   34261 
   34262 
   34263 
   34264 
   34265 
   34266 
   34267 
   34268 
   34269 
   34270 
   34271 
   34272 
   34273           GL_GNULIB_STRERROR=1
   34274 
   34275 
   34276 
   34277 
   34278 
   34279 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
   34280 
   34281 
   34282 
   34283 
   34284 
   34285 
   34286      if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
   34287   GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
   34288   GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
   34289 else
   34290   GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
   34291   GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
   34292 fi
   34293 :
   34294     if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
   34295     GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
   34296     GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
   34297   fi
   34298 
   34299   if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
   34300 
   34301 
   34302 
   34303 
   34304 
   34305   if test $ac_cv_header_sys_socket_h != yes; then
   34306                     for ac_header in winsock2.h
   34307 do :
   34308   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
   34309 if test "x$ac_cv_header_winsock2_h" = xyes; then :
   34310   cat >>confdefs.h <<_ACEOF
   34311 #define HAVE_WINSOCK2_H 1
   34312 _ACEOF
   34313 
   34314 fi
   34315 
   34316 done
   34317 
   34318   fi
   34319   if test "$ac_cv_header_winsock2_h" = yes; then
   34320     HAVE_WINSOCK2_H=1
   34321     UNISTD_H_HAVE_WINSOCK2_H=1
   34322     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
   34323   else
   34324     HAVE_WINSOCK2_H=0
   34325   fi
   34326 
   34327 
   34328 
   34329 fi
   34330 
   34331 
   34332 
   34333 
   34334 
   34335   if test $ac_cv_have_decl_strerror_r = no; then
   34336     HAVE_DECL_STRERROR_R=0
   34337   fi
   34338 
   34339   if test $ac_cv_func_strerror_r = yes; then
   34340     if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
   34341       if test $gl_cv_func_strerror_r_posix_signature = yes; then
   34342         case "$gl_cv_func_strerror_r_works" in
   34343                     *no) REPLACE_STRERROR_R=1 ;;
   34344         esac
   34345       else
   34346                 REPLACE_STRERROR_R=1
   34347       fi
   34348     else
   34349                   REPLACE_STRERROR_R=1
   34350     fi
   34351   fi
   34352 
   34353   if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then :
   34354 
   34355 
   34356 
   34357 
   34358 
   34359 
   34360 
   34361 
   34362 
   34363   gl_LIBOBJS="$gl_LIBOBJS strerror_r.$ac_objext"
   34364 
   34365 
   34366 
   34367 
   34368 
   34369 
   34370 
   34371 
   34372 fi
   34373 
   34374 
   34375 
   34376 
   34377 
   34378 
   34379 
   34380 
   34381 
   34382 
   34383 
   34384 
   34385 
   34386 
   34387           GL_GNULIB_STRERROR_R=1
   34388 
   34389 
   34390 
   34391 
   34392 
   34393 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
   34394 
   34395 
   34396 
   34397 
   34398 
   34399 cat >>confdefs.h <<_ACEOF
   34400 #define GNULIB_STRERROR_R_POSIX 1
   34401 _ACEOF
   34402 
   34403 
   34404 
   34405 
   34406 
   34407 
   34408 
   34409 
   34410 
   34411 
   34412 
   34413 
   34414 
   34415 
   34416 
   34417 
   34418 
   34419 
   34420 
   34421 
   34422 
   34423 
   34424 
   34425 
   34426 
   34427 
   34428 
   34429   if test $ac_cv_have_decl_strnlen = no; then
   34430     HAVE_DECL_STRNLEN=0
   34431   else
   34432 
   34433          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
   34434 $as_echo_n "checking for working strnlen... " >&6; }
   34435 if ${ac_cv_func_strnlen_working+:} false; then :
   34436   $as_echo_n "(cached) " >&6
   34437 else
   34438   if test "$cross_compiling" = yes; then :
   34439   # Guess no on AIX systems, yes otherwise.
   34440 		case "$host_os" in
   34441 		  aix*) ac_cv_func_strnlen_working=no;;
   34442 		  *)    ac_cv_func_strnlen_working=yes;;
   34443 		esac
   34444 else
   34445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34446 /* end confdefs.h.  */
   34447 $ac_includes_default
   34448 int
   34449 main ()
   34450 {
   34451 
   34452 #define S "foobar"
   34453 #define S_LEN (sizeof S - 1)
   34454 
   34455   /* At least one implementation is buggy: that of AIX 4.3 would
   34456      give strnlen (S, 1) == 3.  */
   34457 
   34458   int i;
   34459   for (i = 0; i < S_LEN + 1; ++i)
   34460     {
   34461       int expected = i <= S_LEN ? i : S_LEN;
   34462       if (strnlen (S, i) != expected)
   34463 	return 1;
   34464     }
   34465   return 0;
   34466 
   34467   ;
   34468   return 0;
   34469 }
   34470 _ACEOF
   34471 if ac_fn_c_try_run "$LINENO"; then :
   34472   ac_cv_func_strnlen_working=yes
   34473 else
   34474   ac_cv_func_strnlen_working=no
   34475 fi
   34476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34477   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34478 fi
   34479 
   34480 fi
   34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
   34482 $as_echo "$ac_cv_func_strnlen_working" >&6; }
   34483 test $ac_cv_func_strnlen_working = no && :
   34484 
   34485 
   34486     if test $ac_cv_func_strnlen_working = no; then
   34487       REPLACE_STRNLEN=1
   34488     fi
   34489   fi
   34490 
   34491 
   34492      if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
   34493   GL_COND_OBJ_STRNLEN_TRUE=
   34494   GL_COND_OBJ_STRNLEN_FALSE='#'
   34495 else
   34496   GL_COND_OBJ_STRNLEN_TRUE='#'
   34497   GL_COND_OBJ_STRNLEN_FALSE=
   34498 fi
   34499 :
   34500     if test -z "${GL_COND_OBJ_STRNLEN_TRUE}" && test -z "${GL_COND_OBJ_STRNLEN_FALSE}"; then
   34501     GL_COND_OBJ_STRNLEN_TRUE='#'
   34502     GL_COND_OBJ_STRNLEN_FALSE='#'
   34503   fi
   34504 
   34505   if test -z "$GL_COND_OBJ_STRNLEN_TRUE"; then :
   34506 
   34507     :
   34508 
   34509 fi
   34510 
   34511 
   34512 
   34513 
   34514 
   34515 
   34516 
   34517 
   34518 
   34519 
   34520 
   34521 
   34522 
   34523 
   34524           GL_GNULIB_STRNLEN=1
   34525 
   34526 
   34527 
   34528 
   34529 
   34530 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
   34531 
   34532 
   34533 
   34534 
   34535 
   34536   if test $REPLACE_STRSTR = 0; then
   34537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
   34538 $as_echo_n "checking whether strstr works in linear time... " >&6; }
   34539 if ${gl_cv_func_strstr_linear+:} false; then :
   34540   $as_echo_n "(cached) " >&6
   34541 else
   34542   if test "$cross_compiling" = yes; then :
   34543                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34544 /* end confdefs.h.  */
   34545 
   34546 #include <features.h>
   34547 #ifdef __GNU_LIBRARY__
   34548  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
   34549      && !(defined __i386__ || defined __x86_64__) \
   34550      && !defined __UCLIBC__
   34551   Lucky user
   34552  #endif
   34553 #endif
   34554 #ifdef __CYGWIN__
   34555  #include <cygwin/version.h>
   34556  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
   34557   Lucky user
   34558  #endif
   34559 #endif
   34560 
   34561 _ACEOF
   34562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   34563   $EGREP "Lucky user" >/dev/null 2>&1; then :
   34564   gl_cv_func_strstr_linear="guessing yes"
   34565 else
   34566   gl_cv_func_strstr_linear="$gl_cross_guess_normal"
   34567 fi
   34568 rm -f conftest*
   34569 
   34570 
   34571 else
   34572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34573 /* end confdefs.h.  */
   34574 
   34575 #ifdef __MVS__
   34576 /* z/OS does not deliver signals while strstr() is running (thanks to
   34577    restrictions on its LE runtime), which prevents us from limiting the
   34578    running time of this test.  */
   34579 # error "This test does not work properly on z/OS"
   34580 #endif
   34581 #include <signal.h> /* for signal */
   34582 #include <string.h> /* for strstr */
   34583 #include <stdlib.h> /* for malloc */
   34584 #include <unistd.h> /* for alarm */
   34585 static void quit (int sig) { _exit (sig + 128); }
   34586 
   34587 int
   34588 main ()
   34589 {
   34590 
   34591     int result = 0;
   34592     size_t m = 1000000;
   34593     char *haystack = (char *) malloc (2 * m + 2);
   34594     char *needle = (char *) malloc (m + 2);
   34595     /* Failure to compile this test due to missing alarm is okay,
   34596        since all such platforms (mingw) also have quadratic strstr.  */
   34597     signal (SIGALRM, quit);
   34598     alarm (5);
   34599     /* Check for quadratic performance.  */
   34600     if (haystack && needle)
   34601       {
   34602         memset (haystack, 'A', 2 * m);
   34603         haystack[2 * m] = 'B';
   34604         haystack[2 * m + 1] = 0;
   34605         memset (needle, 'A', m);
   34606         needle[m] = 'B';
   34607         needle[m + 1] = 0;
   34608         if (!strstr (haystack, needle))
   34609           result |= 1;
   34610       }
   34611     /* Free allocated memory, in case some sanitizer is watching.  */
   34612     free (haystack);
   34613     free (needle);
   34614     return result;
   34615 
   34616   ;
   34617   return 0;
   34618 }
   34619 _ACEOF
   34620 if ac_fn_c_try_run "$LINENO"; then :
   34621   gl_cv_func_strstr_linear=yes
   34622 else
   34623   gl_cv_func_strstr_linear=no
   34624 fi
   34625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34626   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34627 fi
   34628 
   34629 
   34630 fi
   34631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
   34632 $as_echo "$gl_cv_func_strstr_linear" >&6; }
   34633     case "$gl_cv_func_strstr_linear" in
   34634       *yes) ;;
   34635       *)
   34636         REPLACE_STRSTR=1
   34637         ;;
   34638     esac
   34639   fi
   34640 
   34641   if test $REPLACE_STRSTR = 1; then
   34642 
   34643 
   34644 
   34645 
   34646 
   34647 
   34648 
   34649 
   34650   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
   34651 
   34652   fi
   34653 
   34654 
   34655 
   34656   if test $REPLACE_MEMCHR = 1; then
   34657     REPLACE_STRSTR=1
   34658   else
   34659             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
   34660 $as_echo_n "checking whether strstr works... " >&6; }
   34661 if ${gl_cv_func_strstr_works_always+:} false; then :
   34662   $as_echo_n "(cached) " >&6
   34663 else
   34664   if test "$cross_compiling" = yes; then :
   34665                                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34666 /* end confdefs.h.  */
   34667 
   34668 #include <string.h> /* for __GNU_LIBRARY__ */
   34669 #ifdef __GNU_LIBRARY__
   34670  #include <features.h>
   34671  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
   34672      || defined __UCLIBC__
   34673   Lucky user
   34674  #endif
   34675 #elif defined __CYGWIN__
   34676  #include <cygwin/version.h>
   34677  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
   34678   Lucky user
   34679  #endif
   34680 #else
   34681   Lucky user
   34682 #endif
   34683 
   34684 _ACEOF
   34685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   34686   $EGREP "Lucky user" >/dev/null 2>&1; then :
   34687   gl_cv_func_strstr_works_always="guessing yes"
   34688 else
   34689   gl_cv_func_strstr_works_always="$gl_cross_guess_normal"
   34690 fi
   34691 rm -f conftest*
   34692 
   34693 
   34694 else
   34695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34696 /* end confdefs.h.  */
   34697 
   34698 #include <string.h> /* for __GNU_LIBRARY__, strstr */
   34699 #ifdef __GNU_LIBRARY__
   34700  #include <features.h>
   34701  #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
   34702   Unlucky user
   34703  #endif
   34704 #endif
   34705 #define P "_EF_BF_BD"
   34706 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
   34707 #define NEEDLE P P P P P
   34708 
   34709 int
   34710 main ()
   34711 {
   34712 return !!strstr (HAYSTACK, NEEDLE);
   34713 
   34714   ;
   34715   return 0;
   34716 }
   34717 _ACEOF
   34718 if ac_fn_c_try_run "$LINENO"; then :
   34719   gl_cv_func_strstr_works_always=yes
   34720 else
   34721   gl_cv_func_strstr_works_always=no
   34722 fi
   34723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34724   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34725 fi
   34726 
   34727 
   34728 fi
   34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
   34730 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
   34731     case "$gl_cv_func_strstr_works_always" in
   34732       *yes) ;;
   34733       *)
   34734         REPLACE_STRSTR=1
   34735         ;;
   34736     esac
   34737   fi
   34738 
   34739   if test $REPLACE_STRSTR = 1; then
   34740 
   34741 
   34742 
   34743 
   34744 
   34745 
   34746 
   34747 
   34748   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
   34749 
   34750   fi
   34751 
   34752 
   34753 
   34754 
   34755 
   34756 
   34757 
   34758 
   34759 
   34760 
   34761 
   34762 
   34763 
   34764 
   34765           GL_GNULIB_STRSTR=1
   34766 
   34767 
   34768 
   34769 
   34770 
   34771 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
   34772 
   34773 
   34774 
   34775 
   34776 
   34777 
   34778 
   34779      for ac_func in strtok_r
   34780 do :
   34781   ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
   34782 if test "x$ac_cv_func_strtok_r" = xyes; then :
   34783   cat >>confdefs.h <<_ACEOF
   34784 #define HAVE_STRTOK_R 1
   34785 _ACEOF
   34786 
   34787 fi
   34788 done
   34789 
   34790   if test $ac_cv_func_strtok_r = yes; then
   34791     HAVE_STRTOK_R=1
   34792                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
   34793 $as_echo_n "checking whether strtok_r works... " >&6; }
   34794 if ${gl_cv_func_strtok_r_works+:} false; then :
   34795   $as_echo_n "(cached) " >&6
   34796 else
   34797   if test "$cross_compiling" = yes; then :
   34798   case "$host_os" in
   34799                            # Guess no on glibc systems.
   34800             *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;;
   34801                            # Guess yes on native Windows.
   34802             mingw*)        gl_cv_func_strtok_r_works="guessing yes" ;;
   34803             *)             gl_cv_func_strtok_r_works="guessing yes" ;;
   34804           esac
   34805 
   34806 else
   34807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   34808 /* end confdefs.h.  */
   34809 
   34810               #ifndef __OPTIMIZE__
   34811               # define __OPTIMIZE__ 1
   34812               #endif
   34813               #undef __OPTIMIZE_SIZE__
   34814               #undef __NO_INLINE__
   34815               #include <stdlib.h>
   34816               #include <string.h>
   34817 
   34818 int
   34819 main ()
   34820 {
   34821 static const char dummy[] = "\177\01a";
   34822               char delimiters[] = "xxxxxxxx";
   34823               char *save_ptr = (char *) dummy;
   34824               strtok_r (delimiters, "x", &save_ptr);
   34825               strtok_r (NULL, "x", &save_ptr);
   34826               return 0;
   34827 
   34828   ;
   34829   return 0;
   34830 }
   34831 
   34832 _ACEOF
   34833 if ac_fn_c_try_run "$LINENO"; then :
   34834   gl_cv_func_strtok_r_works=yes
   34835 else
   34836   gl_cv_func_strtok_r_works=no
   34837 fi
   34838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   34839   conftest.$ac_objext conftest.beam conftest.$ac_ext
   34840 fi
   34841 
   34842 
   34843 fi
   34844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
   34845 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
   34846     case "$gl_cv_func_strtok_r_works" in
   34847       *no)
   34848                                 UNDEFINE_STRTOK_R=1
   34849         ;;
   34850     esac
   34851   else
   34852     HAVE_STRTOK_R=0
   34853   fi
   34854 
   34855   if test $ac_cv_have_decl_strtok_r = no; then
   34856     HAVE_DECL_STRTOK_R=0
   34857   fi
   34858 
   34859 
   34860      if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
   34861   GL_COND_OBJ_STRTOK_R_TRUE=
   34862   GL_COND_OBJ_STRTOK_R_FALSE='#'
   34863 else
   34864   GL_COND_OBJ_STRTOK_R_TRUE='#'
   34865   GL_COND_OBJ_STRTOK_R_FALSE=
   34866 fi
   34867 :
   34868     if test -z "${GL_COND_OBJ_STRTOK_R_TRUE}" && test -z "${GL_COND_OBJ_STRTOK_R_FALSE}"; then
   34869     GL_COND_OBJ_STRTOK_R_TRUE='#'
   34870     GL_COND_OBJ_STRTOK_R_FALSE='#'
   34871   fi
   34872 
   34873   if test -z "$GL_COND_OBJ_STRTOK_R_TRUE"; then :
   34874 
   34875 
   34876   :
   34877 
   34878 
   34879 fi
   34880 
   34881 
   34882 
   34883 
   34884 
   34885 
   34886 
   34887 
   34888 
   34889 
   34890 
   34891 
   34892 
   34893 
   34894           GL_GNULIB_STRTOK_R=1
   34895 
   34896 
   34897 
   34898 
   34899 
   34900 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
   34901 
   34902 
   34903 
   34904 
   34905 
   34906 
   34907 
   34908 
   34909 
   34910 
   34911 
   34912 
   34913 
   34914 
   34915 
   34916 
   34917 
   34918 
   34919 
   34920 
   34921 
   34922 
   34923 
   34924 
   34925 
   34926 
   34927 
   34928 
   34929 
   34930 
   34931 
   34932 
   34933 
   34934 
   34935 
   34936 
   34937 
   34938 
   34939 
   34940 
   34941 
   34942 
   34943 
   34944 
   34945 
   34946 
   34947 
   34948 
   34949 
   34950 
   34951 
   34952 
   34953 
   34954 
   34955 
   34956 
   34957 
   34958 
   34959 
   34960 
   34961 
   34962   :
   34963 
   34964 
   34965 
   34966 
   34967 cat >>confdefs.h <<_ACEOF
   34968 #define GNULIB_TEMPNAME 1
   34969 _ACEOF
   34970 
   34971 
   34972 
   34973 
   34974 
   34975 
   34976 
   34977 
   34978 
   34979 
   34980 
   34981 
   34982 
   34983 
   34984 
   34985 
   34986       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
   34987          gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
   34988          been included before.  */
   34989       #if defined __MINGW32__
   34990       # include <unistd.h>
   34991       #endif
   34992       #include <time.h>
   34993 
   34994 "
   34995 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
   34996   ac_have_decl=1
   34997 else
   34998   ac_have_decl=0
   34999 fi
   35000 
   35001 cat >>confdefs.h <<_ACEOF
   35002 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
   35003 _ACEOF
   35004 
   35005   if test $ac_cv_have_decl_localtime_r = no; then
   35006     HAVE_DECL_LOCALTIME_R=0
   35007   fi
   35008 
   35009 
   35010   if test $ac_cv_func_localtime_r = yes; then
   35011     HAVE_LOCALTIME_R=1
   35012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
   35013 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
   35014 if ${gl_cv_time_r_posix+:} false; then :
   35015   $as_echo_n "(cached) " >&6
   35016 else
   35017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35018 /* end confdefs.h.  */
   35019 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
   35020                  gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
   35021                  been included before.  */
   35022               #if defined __MINGW32__
   35023               # include <unistd.h>
   35024               #endif
   35025               #include <time.h>
   35026 
   35027 int
   35028 main ()
   35029 {
   35030 /* We don't need to append 'restrict's to the argument types,
   35031                  even though the POSIX signature has the 'restrict's,
   35032                  since C99 says they can't affect type compatibility.  */
   35033               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
   35034               if (ptr) return 0;
   35035               /* Check the return type is a pointer.
   35036                  On HP-UX 10 it is 'int'.  */
   35037               *localtime_r (0, 0);
   35038   ;
   35039   return 0;
   35040 }
   35041 
   35042 _ACEOF
   35043 if ac_fn_c_try_compile "$LINENO"; then :
   35044   gl_cv_time_r_posix=yes
   35045 else
   35046   gl_cv_time_r_posix=no
   35047 fi
   35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35049 
   35050 fi
   35051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
   35052 $as_echo "$gl_cv_time_r_posix" >&6; }
   35053     if test $gl_cv_time_r_posix = yes; then
   35054       REPLACE_LOCALTIME_R=0
   35055     else
   35056       REPLACE_LOCALTIME_R=1
   35057     fi
   35058   else
   35059     HAVE_LOCALTIME_R=0
   35060                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
   35061 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
   35062 if ${gl_cv_func_localtime_r_inline+:} false; then :
   35063   $as_echo_n "(cached) " >&6
   35064 else
   35065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35066 /* end confdefs.h.  */
   35067 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
   35068                  gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
   35069                  been included before.  */
   35070               #if defined __MINGW32__
   35071               # include <unistd.h>
   35072               #endif
   35073               #include <time.h>
   35074 
   35075 int
   35076 main ()
   35077 {
   35078 time_t a;
   35079               struct tm r;
   35080               localtime_r (&a, &r);
   35081 
   35082   ;
   35083   return 0;
   35084 }
   35085 
   35086 _ACEOF
   35087 if ac_fn_c_try_link "$LINENO"; then :
   35088   gl_cv_func_localtime_r_inline=yes
   35089 else
   35090   gl_cv_func_localtime_r_inline=no
   35091 fi
   35092 rm -f core conftest.err conftest.$ac_objext \
   35093     conftest$ac_exeext conftest.$ac_ext
   35094 
   35095 fi
   35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
   35097 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
   35098     if test $gl_cv_func_localtime_r_inline = yes; then
   35099       REPLACE_LOCALTIME_R=1
   35100     fi
   35101   fi
   35102 
   35103 
   35104      if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
   35105   GL_COND_OBJ_TIME_R_TRUE=
   35106   GL_COND_OBJ_TIME_R_FALSE='#'
   35107 else
   35108   GL_COND_OBJ_TIME_R_TRUE='#'
   35109   GL_COND_OBJ_TIME_R_FALSE=
   35110 fi
   35111 :
   35112     if test -z "${GL_COND_OBJ_TIME_R_TRUE}" && test -z "${GL_COND_OBJ_TIME_R_FALSE}"; then
   35113     GL_COND_OBJ_TIME_R_TRUE='#'
   35114     GL_COND_OBJ_TIME_R_FALSE='#'
   35115   fi
   35116 
   35117   if test -z "$GL_COND_OBJ_TIME_R_TRUE"; then :
   35118 
   35119 
   35120   :
   35121 
   35122 
   35123 fi
   35124 
   35125 
   35126 
   35127 
   35128 
   35129 
   35130 
   35131 
   35132 
   35133           GL_GNULIB_TIME_R=1
   35134 
   35135 
   35136 
   35137 
   35138 
   35139 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
   35140 
   35141 
   35142 
   35143 
   35144 
   35145 
   35146 
   35147 
   35148 
   35149 
   35150 
   35151 
   35152 
   35153 
   35154 
   35155 
   35156   if test $ac_cv_have_decl_unsetenv = no; then
   35157     HAVE_DECL_UNSETENV=0
   35158   fi
   35159   for ac_func in unsetenv
   35160 do :
   35161   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
   35162 if test "x$ac_cv_func_unsetenv" = xyes; then :
   35163   cat >>confdefs.h <<_ACEOF
   35164 #define HAVE_UNSETENV 1
   35165 _ACEOF
   35166 
   35167 fi
   35168 done
   35169 
   35170   if test $ac_cv_func_unsetenv = no; then
   35171     HAVE_UNSETENV=0
   35172   else
   35173     HAVE_UNSETENV=1
   35174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
   35175 $as_echo_n "checking for unsetenv() return type... " >&6; }
   35176 if ${gt_cv_func_unsetenv_ret+:} false; then :
   35177   $as_echo_n "(cached) " >&6
   35178 else
   35179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35180 /* end confdefs.h.  */
   35181 
   35182 #undef _BSD
   35183 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
   35184 #include <stdlib.h>
   35185 extern
   35186 #ifdef __cplusplus
   35187 "C"
   35188 #endif
   35189 int unsetenv (const char *name);
   35190 
   35191 int
   35192 main ()
   35193 {
   35194 
   35195   ;
   35196   return 0;
   35197 }
   35198 _ACEOF
   35199 if ac_fn_c_try_compile "$LINENO"; then :
   35200   gt_cv_func_unsetenv_ret='int'
   35201 else
   35202   gt_cv_func_unsetenv_ret='void'
   35203 fi
   35204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35205 fi
   35206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
   35207 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
   35208     if test $gt_cv_func_unsetenv_ret = 'void'; then
   35209 
   35210 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
   35211 
   35212       REPLACE_UNSETENV=1
   35213     fi
   35214 
   35215                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
   35216 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
   35217 if ${gl_cv_func_unsetenv_works+:} false; then :
   35218   $as_echo_n "(cached) " >&6
   35219 else
   35220   if test "$cross_compiling" = yes; then :
   35221   case "$host_os" in
   35222                     # Guess yes on glibc systems.
   35223             *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
   35224                     # If we don't know, obey --enable-cross-guesses.
   35225             *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
   35226           esac
   35227 
   35228 else
   35229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35230 /* end confdefs.h.  */
   35231 
   35232             #include <stdlib.h>
   35233             #include <errno.h>
   35234             extern char **environ;
   35235 
   35236 
   35237 $gl_mda_defines
   35238 
   35239 int
   35240 main ()
   35241 {
   35242 
   35243             char entry1[] = "a=1";
   35244             char entry2[] = "b=2";
   35245             char *env[] = { entry1, entry2, NULL };
   35246             if (putenv ((char *) "a=1")) return 1;
   35247             if (putenv (entry2)) return 2;
   35248             entry2[0] = 'a';
   35249             unsetenv ("a");
   35250             if (getenv ("a")) return 3;
   35251             if (!unsetenv ("") || errno != EINVAL) return 4;
   35252             entry2[0] = 'b';
   35253             environ = env;
   35254             if (!getenv ("a")) return 5;
   35255             entry2[0] = 'a';
   35256             unsetenv ("a");
   35257             if (getenv ("a")) return 6;
   35258 
   35259   ;
   35260   return 0;
   35261 }
   35262 _ACEOF
   35263 if ac_fn_c_try_run "$LINENO"; then :
   35264   gl_cv_func_unsetenv_works=yes
   35265 else
   35266   gl_cv_func_unsetenv_works=no
   35267 fi
   35268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   35269   conftest.$ac_objext conftest.beam conftest.$ac_ext
   35270 fi
   35271 
   35272 
   35273 fi
   35274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
   35275 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
   35276     case "$gl_cv_func_unsetenv_works" in
   35277       *yes) ;;
   35278       *)
   35279         REPLACE_UNSETENV=1
   35280         ;;
   35281     esac
   35282   fi
   35283 
   35284 
   35285      if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
   35286   GL_COND_OBJ_UNSETENV_TRUE=
   35287   GL_COND_OBJ_UNSETENV_FALSE='#'
   35288 else
   35289   GL_COND_OBJ_UNSETENV_TRUE='#'
   35290   GL_COND_OBJ_UNSETENV_FALSE=
   35291 fi
   35292 :
   35293     if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then
   35294     GL_COND_OBJ_UNSETENV_TRUE='#'
   35295     GL_COND_OBJ_UNSETENV_FALSE='#'
   35296   fi
   35297 
   35298   if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then :
   35299 
   35300 
   35301 
   35302 
   35303 
   35304 
   35305 fi
   35306 
   35307 
   35308 
   35309 
   35310 
   35311 
   35312 
   35313 
   35314 
   35315           GL_GNULIB_UNSETENV=1
   35316 
   35317 
   35318 
   35319 
   35320 
   35321 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
   35322 
   35323 
   35324 
   35325 
   35326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
   35327 $as_echo_n "checking for variable-length arrays... " >&6; }
   35328 if ${ac_cv_c_vararrays+:} false; then :
   35329   $as_echo_n "(cached) " >&6
   35330 else
   35331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35332 /* end confdefs.h.  */
   35333 #ifdef __STDC_NO_VLA__
   35334         defined
   35335         #endif
   35336 
   35337 _ACEOF
   35338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   35339   $EGREP "defined" >/dev/null 2>&1; then :
   35340   ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
   35341 else
   35342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35343 /* end confdefs.h.  */
   35344 /* Test for VLA support.  This test is partly inspired
   35345                   from examples in the C standard.  Use at least two VLA
   35346                   functions to detect the GCC 3.4.3 bug described in:
   35347                   https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
   35348                   */
   35349                #ifdef __STDC_NO_VLA__
   35350                 syntax error;
   35351                #else
   35352                  extern int n;
   35353                  int B[100];
   35354                  int fvla (int m, int C[m][m]);
   35355 
   35356                  int
   35357                  simple (int count, int all[static count])
   35358                  {
   35359                    return all[count - 1];
   35360                  }
   35361 
   35362                  int
   35363                  fvla (int m, int C[m][m])
   35364                  {
   35365                    typedef int VLA[m][m];
   35366                    VLA x;
   35367                    int D[m];
   35368                    static int (*q)[m] = &B;
   35369                    int (*s)[n] = q;
   35370                    return C && &x[0][0] == &D[0] && &D[0] == s[0];
   35371                  }
   35372                #endif
   35373 
   35374 int
   35375 main ()
   35376 {
   35377 
   35378   ;
   35379   return 0;
   35380 }
   35381 _ACEOF
   35382 if ac_fn_c_try_compile "$LINENO"; then :
   35383   ac_cv_c_vararrays=yes
   35384 else
   35385   ac_cv_c_vararrays=no
   35386 fi
   35387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35388 fi
   35389 rm -f conftest*
   35390 
   35391 fi
   35392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
   35393 $as_echo "$ac_cv_c_vararrays" >&6; }
   35394   if test "$ac_cv_c_vararrays" = yes; then
   35395 
   35396 $as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
   35397 
   35398   elif test "$ac_cv_c_vararrays" = no; then
   35399 
   35400 $as_echo "#define __STDC_NO_VLA__ 1" >>confdefs.h
   35401 
   35402   fi
   35403 
   35404 
   35405 
   35406 
   35407 
   35408 
   35409 
   35410 
   35411 
   35412 
   35413 
   35414 
   35415 
   35416 
   35417 
   35418 
   35419 
   35420 
   35421 
   35422 
   35423 
   35424 
   35425      if case "$host_os" in mingw*) true;; *) false;; esac; then
   35426   GL_COND_OBJ_WINDOWS_MUTEX_TRUE=
   35427   GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
   35428 else
   35429   GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
   35430   GL_COND_OBJ_WINDOWS_MUTEX_FALSE=
   35431 fi
   35432 :
   35433     if test -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then
   35434     GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
   35435     GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
   35436   fi
   35437 
   35438 
   35439 
   35440      if case "$host_os" in mingw*) true;; *) false;; esac; then
   35441   GL_COND_OBJ_WINDOWS_ONCE_TRUE=
   35442   GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
   35443 else
   35444   GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
   35445   GL_COND_OBJ_WINDOWS_ONCE_FALSE=
   35446 fi
   35447 :
   35448     if test -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then
   35449     GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
   35450     GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
   35451   fi
   35452 
   35453 
   35454 
   35455      if case "$host_os" in mingw*) true;; *) false;; esac; then
   35456   GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE=
   35457   GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
   35458 else
   35459   GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
   35460   GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE=
   35461 fi
   35462 :
   35463     if test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then
   35464     GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
   35465     GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
   35466   fi
   35467 
   35468 
   35469 
   35470      if case "$host_os" in mingw*) true;; *) false;; esac; then
   35471   GL_COND_OBJ_WINDOWS_RWLOCK_TRUE=
   35472   GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
   35473 else
   35474   GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
   35475   GL_COND_OBJ_WINDOWS_RWLOCK_FALSE=
   35476 fi
   35477 :
   35478     if test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then
   35479     GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
   35480     GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
   35481   fi
   35482 
   35483 
   35484 
   35485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
   35486 $as_echo_n "checking for wmemchr... " >&6; }
   35487 if ${gl_cv_func_wmemchr+:} false; then :
   35488   $as_echo_n "(cached) " >&6
   35489 else
   35490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   35491 /* end confdefs.h.  */
   35492 #include <wchar.h>
   35493 
   35494 int
   35495 main ()
   35496 {
   35497 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
   35498   ;
   35499   return 0;
   35500 }
   35501 
   35502 _ACEOF
   35503 if ac_fn_c_try_link "$LINENO"; then :
   35504   gl_cv_func_wmemchr=yes
   35505 else
   35506   gl_cv_func_wmemchr=no
   35507 fi
   35508 rm -f core conftest.err conftest.$ac_objext \
   35509     conftest$ac_exeext conftest.$ac_ext
   35510 
   35511 fi
   35512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
   35513 $as_echo "$gl_cv_func_wmemchr" >&6; }
   35514   if test $gl_cv_func_wmemchr = no; then
   35515     HAVE_WMEMCHR=0
   35516   fi
   35517 
   35518 
   35519      if test $HAVE_WMEMCHR = 0; then
   35520   GL_COND_OBJ_WMEMCHR_TRUE=
   35521   GL_COND_OBJ_WMEMCHR_FALSE='#'
   35522 else
   35523   GL_COND_OBJ_WMEMCHR_TRUE='#'
   35524   GL_COND_OBJ_WMEMCHR_FALSE=
   35525 fi
   35526 :
   35527     if test -z "${GL_COND_OBJ_WMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_WMEMCHR_FALSE}"; then
   35528     GL_COND_OBJ_WMEMCHR_TRUE='#'
   35529     GL_COND_OBJ_WMEMCHR_FALSE='#'
   35530   fi
   35531 
   35532 
   35533 
   35534 
   35535 
   35536 
   35537 
   35538 
   35539 
   35540 
   35541 
   35542 
   35543 
   35544 
   35545 
   35546           GL_GNULIB_WMEMCHR=1
   35547 
   35548 
   35549 
   35550 
   35551 
   35552 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
   35553 
   35554 
   35555 
   35556 
   35557 
   35558 
   35559 
   35560 
   35561 
   35562 
   35563 
   35564   if test $ac_cv_func_wmempcpy = no; then
   35565     HAVE_WMEMPCPY=0
   35566   fi
   35567 
   35568 
   35569      if test $HAVE_WMEMPCPY = 0; then
   35570   GL_COND_OBJ_WMEMPCPY_TRUE=
   35571   GL_COND_OBJ_WMEMPCPY_FALSE='#'
   35572 else
   35573   GL_COND_OBJ_WMEMPCPY_TRUE='#'
   35574   GL_COND_OBJ_WMEMPCPY_FALSE=
   35575 fi
   35576 :
   35577     if test -z "${GL_COND_OBJ_WMEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_WMEMPCPY_FALSE}"; then
   35578     GL_COND_OBJ_WMEMPCPY_TRUE='#'
   35579     GL_COND_OBJ_WMEMPCPY_FALSE='#'
   35580   fi
   35581 
   35582 
   35583 
   35584 
   35585 
   35586 
   35587 
   35588 
   35589 
   35590 
   35591 
   35592 
   35593 
   35594 
   35595 
   35596           GL_GNULIB_WMEMPCPY=1
   35597 
   35598 
   35599 
   35600 
   35601 
   35602 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
   35603 
   35604 
   35605 
   35606   # End of code from modules
   35607 
   35608 
   35609 
   35610 
   35611 
   35612 
   35613 
   35614 
   35615 
   35616 
   35617 
   35618   gltests_libdeps=
   35619   gltests_ltlibdeps=
   35620 
   35621 
   35622 
   35623 
   35624 
   35625 
   35626 
   35627 
   35628 
   35629 
   35630 
   35631 
   35632   gl_source_base='tests'
   35633   gl_source_base_prefix=
   35634   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
   35635 
   35636   gl_module_indicator_condition=$gltests_WITNESS
   35637 
   35638 
   35639 
   35640 
   35641 
   35642 
   35643 
   35644 
   35645 
   35646 
   35647 
   35648 
   35649   LIBGNU_LIBDEPS="$gl_libdeps"
   35650 
   35651   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
   35652 
   35653 
   35654 
   35655 am__api_version='1.15'
   35656 
   35657 # Find a good install program.  We prefer a C program (faster),
   35658 # so one script is as good as another.  But avoid the broken or
   35659 # incompatible versions:
   35660 # SysV /etc/install, /usr/sbin/install
   35661 # SunOS /usr/etc/install
   35662 # IRIX /sbin/install
   35663 # AIX /bin/install
   35664 # AmigaOS /C/install, which installs bootblocks on floppy discs
   35665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   35666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   35667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   35668 # OS/2's system install, which has a completely different semantic
   35669 # ./install, which can be erroneously created by make from ./install.sh.
   35670 # Reject install programs that cannot install multiple files.
   35671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   35672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   35673 if test -z "$INSTALL"; then
   35674 if ${ac_cv_path_install+:} false; then :
   35675   $as_echo_n "(cached) " >&6
   35676 else
   35677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   35678 for as_dir in $PATH
   35679 do
   35680   IFS=$as_save_IFS
   35681   test -z "$as_dir" && as_dir=.
   35682     # Account for people who put trailing slashes in PATH elements.
   35683 case $as_dir/ in #((
   35684   ./ | .// | /[cC]/* | \
   35685   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   35686   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   35687   /usr/ucb/* ) ;;
   35688   *)
   35689     # OSF1 and SCO ODT 3.0 have their own names for install.
   35690     # Don't use installbsd from OSF since it installs stuff as root
   35691     # by default.
   35692     for ac_prog in ginstall scoinst install; do
   35693       for ac_exec_ext in '' $ac_executable_extensions; do
   35694 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   35695 	  if test $ac_prog = install &&
   35696 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   35697 	    # AIX install.  It has an incompatible calling convention.
   35698 	    :
   35699 	  elif test $ac_prog = install &&
   35700 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   35701 	    # program-specific install script used by HP pwplus--don't use.
   35702 	    :
   35703 	  else
   35704 	    rm -rf conftest.one conftest.two conftest.dir
   35705 	    echo one > conftest.one
   35706 	    echo two > conftest.two
   35707 	    mkdir conftest.dir
   35708 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   35709 	      test -s conftest.one && test -s conftest.two &&
   35710 	      test -s conftest.dir/conftest.one &&
   35711 	      test -s conftest.dir/conftest.two
   35712 	    then
   35713 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   35714 	      break 3
   35715 	    fi
   35716 	  fi
   35717 	fi
   35718       done
   35719     done
   35720     ;;
   35721 esac
   35722 
   35723   done
   35724 IFS=$as_save_IFS
   35725 
   35726 rm -rf conftest.one conftest.two conftest.dir
   35727 
   35728 fi
   35729   if test "${ac_cv_path_install+set}" = set; then
   35730     INSTALL=$ac_cv_path_install
   35731   else
   35732     # As a last resort, use the slow shell script.  Don't cache a
   35733     # value for INSTALL within a source directory, because that will
   35734     # break other packages using the cache if that directory is
   35735     # removed, or if the value is a relative name.
   35736     INSTALL=$ac_install_sh
   35737   fi
   35738 fi
   35739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   35740 $as_echo "$INSTALL" >&6; }
   35741 
   35742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   35743 # It thinks the first close brace ends the variable substitution.
   35744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   35745 
   35746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   35747 
   35748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   35749 
   35750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   35751 $as_echo_n "checking whether build environment is sane... " >&6; }
   35752 # Reject unsafe characters in $srcdir or the absolute working directory
   35753 # name.  Accept space and tab only in the latter.
   35754 am_lf='
   35755 '
   35756 case `pwd` in
   35757   *[\\\"\#\$\&\'\`$am_lf]*)
   35758     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   35759 esac
   35760 case $srcdir in
   35761   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   35762     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   35763 esac
   35764 
   35765 # Do 'set' in a subshell so we don't clobber the current shell's
   35766 # arguments.  Must try -L first in case configure is actually a
   35767 # symlink; some systems play weird games with the mod time of symlinks
   35768 # (eg FreeBSD returns the mod time of the symlink's containing
   35769 # directory).
   35770 if (
   35771    am_has_slept=no
   35772    for am_try in 1 2; do
   35773      echo "timestamp, slept: $am_has_slept" > conftest.file
   35774      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   35775      if test "$*" = "X"; then
   35776 	# -L didn't work.
   35777 	set X `ls -t "$srcdir/configure" conftest.file`
   35778      fi
   35779      if test "$*" != "X $srcdir/configure conftest.file" \
   35780 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   35781 
   35782 	# If neither matched, then we have a broken ls.  This can happen
   35783 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   35784 	# broken ls alias from the environment.  This has actually
   35785 	# happened.  Such a system could not be considered "sane".
   35786 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   35787   alias in your environment" "$LINENO" 5
   35788      fi
   35789      if test "$2" = conftest.file || test $am_try -eq 2; then
   35790        break
   35791      fi
   35792      # Just in case.
   35793      sleep 1
   35794      am_has_slept=yes
   35795    done
   35796    test "$2" = conftest.file
   35797    )
   35798 then
   35799    # Ok.
   35800    :
   35801 else
   35802    as_fn_error $? "newly created file is older than distributed files!
   35803 Check your system clock" "$LINENO" 5
   35804 fi
   35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   35806 $as_echo "yes" >&6; }
   35807 # If we didn't sleep, we still need to ensure time stamps of config.status and
   35808 # generated files are strictly newer.
   35809 am_sleep_pid=
   35810 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   35811   ( sleep 1 ) &
   35812   am_sleep_pid=$!
   35813 fi
   35814 
   35815 rm -f conftest.file
   35816 
   35817 test "$program_prefix" != NONE &&
   35818   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   35819 # Use a double $ so make ignores it.
   35820 test "$program_suffix" != NONE &&
   35821   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   35822 # Double any \ or $.
   35823 # By default was `s,x,x', remove it if useless.
   35824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   35825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   35826 
   35827 # Expand $ac_aux_dir to an absolute path.
   35828 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   35829 
   35830 if test x"${MISSING+set}" != xset; then
   35831   case $am_aux_dir in
   35832   *\ * | *\	*)
   35833     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   35834   *)
   35835     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   35836   esac
   35837 fi
   35838 # Use eval to expand $SHELL
   35839 if eval "$MISSING --is-lightweight"; then
   35840   am_missing_run="$MISSING "
   35841 else
   35842   am_missing_run=
   35843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   35844 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   35845 fi
   35846 
   35847 if test x"${install_sh+set}" != xset; then
   35848   case $am_aux_dir in
   35849   *\ * | *\	*)
   35850     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   35851   *)
   35852     install_sh="\${SHELL} $am_aux_dir/install-sh"
   35853   esac
   35854 fi
   35855 
   35856 # Installed binaries are usually stripped using 'strip' when the user
   35857 # run "make install-strip".  However 'strip' might not be the right
   35858 # tool to use in cross-compilation environments, therefore Automake
   35859 # will honor the 'STRIP' environment variable to overrule this program.
   35860 if test "$cross_compiling" != no; then
   35861   if test -n "$ac_tool_prefix"; then
   35862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   35863 set dummy ${ac_tool_prefix}strip; ac_word=$2
   35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   35865 $as_echo_n "checking for $ac_word... " >&6; }
   35866 if ${ac_cv_prog_STRIP+:} false; then :
   35867   $as_echo_n "(cached) " >&6
   35868 else
   35869   if test -n "$STRIP"; then
   35870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   35871 else
   35872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   35873 for as_dir in $PATH
   35874 do
   35875   IFS=$as_save_IFS
   35876   test -z "$as_dir" && as_dir=.
   35877     for ac_exec_ext in '' $ac_executable_extensions; do
   35878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   35879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   35880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   35881     break 2
   35882   fi
   35883 done
   35884   done
   35885 IFS=$as_save_IFS
   35886 
   35887 fi
   35888 fi
   35889 STRIP=$ac_cv_prog_STRIP
   35890 if test -n "$STRIP"; then
   35891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   35892 $as_echo "$STRIP" >&6; }
   35893 else
   35894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   35895 $as_echo "no" >&6; }
   35896 fi
   35897 
   35898 
   35899 fi
   35900 if test -z "$ac_cv_prog_STRIP"; then
   35901   ac_ct_STRIP=$STRIP
   35902   # Extract the first word of "strip", so it can be a program name with args.
   35903 set dummy strip; ac_word=$2
   35904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   35905 $as_echo_n "checking for $ac_word... " >&6; }
   35906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   35907   $as_echo_n "(cached) " >&6
   35908 else
   35909   if test -n "$ac_ct_STRIP"; then
   35910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   35911 else
   35912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   35913 for as_dir in $PATH
   35914 do
   35915   IFS=$as_save_IFS
   35916   test -z "$as_dir" && as_dir=.
   35917     for ac_exec_ext in '' $ac_executable_extensions; do
   35918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   35919     ac_cv_prog_ac_ct_STRIP="strip"
   35920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   35921     break 2
   35922   fi
   35923 done
   35924   done
   35925 IFS=$as_save_IFS
   35926 
   35927 fi
   35928 fi
   35929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   35930 if test -n "$ac_ct_STRIP"; then
   35931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   35932 $as_echo "$ac_ct_STRIP" >&6; }
   35933 else
   35934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   35935 $as_echo "no" >&6; }
   35936 fi
   35937 
   35938   if test "x$ac_ct_STRIP" = x; then
   35939     STRIP=":"
   35940   else
   35941     case $cross_compiling:$ac_tool_warned in
   35942 yes:)
   35943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   35944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   35945 ac_tool_warned=yes ;;
   35946 esac
   35947     STRIP=$ac_ct_STRIP
   35948   fi
   35949 else
   35950   STRIP="$ac_cv_prog_STRIP"
   35951 fi
   35952 
   35953 fi
   35954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   35955 
   35956 for ac_prog in gawk mawk nawk awk
   35957 do
   35958   # Extract the first word of "$ac_prog", so it can be a program name with args.
   35959 set dummy $ac_prog; ac_word=$2
   35960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   35961 $as_echo_n "checking for $ac_word... " >&6; }
   35962 if ${ac_cv_prog_AWK+:} false; then :
   35963   $as_echo_n "(cached) " >&6
   35964 else
   35965   if test -n "$AWK"; then
   35966   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   35967 else
   35968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   35969 for as_dir in $PATH
   35970 do
   35971   IFS=$as_save_IFS
   35972   test -z "$as_dir" && as_dir=.
   35973     for ac_exec_ext in '' $ac_executable_extensions; do
   35974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   35975     ac_cv_prog_AWK="$ac_prog"
   35976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   35977     break 2
   35978   fi
   35979 done
   35980   done
   35981 IFS=$as_save_IFS
   35982 
   35983 fi
   35984 fi
   35985 AWK=$ac_cv_prog_AWK
   35986 if test -n "$AWK"; then
   35987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   35988 $as_echo "$AWK" >&6; }
   35989 else
   35990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   35991 $as_echo "no" >&6; }
   35992 fi
   35993 
   35994 
   35995   test -n "$AWK" && break
   35996 done
   35997 
   35998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   35999 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   36000 set x ${MAKE-make}
   36001 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   36002 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   36003   $as_echo_n "(cached) " >&6
   36004 else
   36005   cat >conftest.make <<\_ACEOF
   36006 SHELL = /bin/sh
   36007 all:
   36008 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   36009 _ACEOF
   36010 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   36011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   36012   *@@@%%%=?*=@@@%%%*)
   36013     eval ac_cv_prog_make_${ac_make}_set=yes;;
   36014   *)
   36015     eval ac_cv_prog_make_${ac_make}_set=no;;
   36016 esac
   36017 rm -f conftest.make
   36018 fi
   36019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   36020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   36021 $as_echo "yes" >&6; }
   36022   SET_MAKE=
   36023 else
   36024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36025 $as_echo "no" >&6; }
   36026   SET_MAKE="MAKE=${MAKE-make}"
   36027 fi
   36028 
   36029 rm -rf .tst 2>/dev/null
   36030 mkdir .tst 2>/dev/null
   36031 if test -d .tst; then
   36032   am__leading_dot=.
   36033 else
   36034   am__leading_dot=_
   36035 fi
   36036 rmdir .tst 2>/dev/null
   36037 
   36038 DEPDIR="${am__leading_dot}deps"
   36039 
   36040 ac_config_commands="$ac_config_commands depfiles"
   36041 
   36042 
   36043 am_make=${MAKE-make}
   36044 cat > confinc << 'END'
   36045 am__doit:
   36046 	@echo this is the am__doit target
   36047 .PHONY: am__doit
   36048 END
   36049 # If we don't find an include directive, just comment out the code.
   36050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   36051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   36052 am__include="#"
   36053 am__quote=
   36054 _am_result=none
   36055 # First try GNU make style include.
   36056 echo "include confinc" > confmf
   36057 # Ignore all kinds of additional output from 'make'.
   36058 case `$am_make -s -f confmf 2> /dev/null` in #(
   36059 *the\ am__doit\ target*)
   36060   am__include=include
   36061   am__quote=
   36062   _am_result=GNU
   36063   ;;
   36064 esac
   36065 # Now try BSD make style include.
   36066 if test "$am__include" = "#"; then
   36067    echo '.include "confinc"' > confmf
   36068    case `$am_make -s -f confmf 2> /dev/null` in #(
   36069    *the\ am__doit\ target*)
   36070      am__include=.include
   36071      am__quote="\""
   36072      _am_result=BSD
   36073      ;;
   36074    esac
   36075 fi
   36076 
   36077 
   36078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   36079 $as_echo "$_am_result" >&6; }
   36080 rm -f confinc confmf
   36081 
   36082 # Check whether --enable-dependency-tracking was given.
   36083 if test "${enable_dependency_tracking+set}" = set; then :
   36084   enableval=$enable_dependency_tracking;
   36085 fi
   36086 
   36087 if test "x$enable_dependency_tracking" != xno; then
   36088   am_depcomp="$ac_aux_dir/depcomp"
   36089   AMDEPBACKSLASH='\'
   36090   am__nodep='_no'
   36091 fi
   36092  if test "x$enable_dependency_tracking" != xno; then
   36093   AMDEP_TRUE=
   36094   AMDEP_FALSE='#'
   36095 else
   36096   AMDEP_TRUE='#'
   36097   AMDEP_FALSE=
   36098 fi
   36099 
   36100 
   36101 # Check whether --enable-silent-rules was given.
   36102 if test "${enable_silent_rules+set}" = set; then :
   36103   enableval=$enable_silent_rules;
   36104 fi
   36105 
   36106 case $enable_silent_rules in # (((
   36107   yes) AM_DEFAULT_VERBOSITY=0;;
   36108    no) AM_DEFAULT_VERBOSITY=1;;
   36109     *) AM_DEFAULT_VERBOSITY=1;;
   36110 esac
   36111 am_make=${MAKE-make}
   36112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   36113 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   36114 if ${am_cv_make_support_nested_variables+:} false; then :
   36115   $as_echo_n "(cached) " >&6
   36116 else
   36117   if $as_echo 'TRUE=$(BAR$(V))
   36118 BAR0=false
   36119 BAR1=true
   36120 V=1
   36121 am__doit:
   36122 	@$(TRUE)
   36123 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   36124   am_cv_make_support_nested_variables=yes
   36125 else
   36126   am_cv_make_support_nested_variables=no
   36127 fi
   36128 fi
   36129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   36130 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   36131 if test $am_cv_make_support_nested_variables = yes; then
   36132     AM_V='$(V)'
   36133   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   36134 else
   36135   AM_V=$AM_DEFAULT_VERBOSITY
   36136   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   36137 fi
   36138 AM_BACKSLASH='\'
   36139 
   36140 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   36141   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   36142   # is not polluted with repeated "-I."
   36143   am__isrc=' -I$(srcdir)'
   36144   # test to see if srcdir already configured
   36145   if test -f $srcdir/config.status; then
   36146     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   36147   fi
   36148 fi
   36149 
   36150 # test whether we have cygpath
   36151 if test -z "$CYGPATH_W"; then
   36152   if (cygpath --version) >/dev/null 2>/dev/null; then
   36153     CYGPATH_W='cygpath -w'
   36154   else
   36155     CYGPATH_W=echo
   36156   fi
   36157 fi
   36158 
   36159 
   36160 # Define the identity of the package.
   36161  PACKAGE='libgnu'
   36162  VERSION='UNUSED-VERSION'
   36163 
   36164 
   36165 # Some tools Automake needs.
   36166 
   36167 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   36168 
   36169 
   36170 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   36171 
   36172 
   36173 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   36174 
   36175 
   36176 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   36177 
   36178 
   36179 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   36180 
   36181 # For better backward compatibility.  To be removed once Automake 1.9.x
   36182 # dies out for good.  For more background, see:
   36183 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   36184 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   36185 mkdir_p='$(MKDIR_P)'
   36186 
   36187 # We need awk for the "check" target (and possibly the TAP driver).  The
   36188 # system "awk" is bad on some platforms.
   36189 # Always define AMTAR for backward compatibility.  Yes, it's still used
   36190 # in the wild :-(  We should find a proper way to deprecate it ...
   36191 AMTAR='$${TAR-tar}'
   36192 
   36193 
   36194 # We'll loop over all known methods to create a tar archive until one works.
   36195 _am_tools='gnutar  pax cpio none'
   36196 
   36197 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   36198 
   36199 
   36200 
   36201 
   36202 
   36203 depcc="$CC"   am_compiler_list=
   36204 
   36205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   36206 $as_echo_n "checking dependency style of $depcc... " >&6; }
   36207 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   36208   $as_echo_n "(cached) " >&6
   36209 else
   36210   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   36211   # We make a subdir and do the tests there.  Otherwise we can end up
   36212   # making bogus files that we don't know about and never remove.  For
   36213   # instance it was reported that on HP-UX the gcc test will end up
   36214   # making a dummy file named 'D' -- because '-MD' means "put the output
   36215   # in D".
   36216   rm -rf conftest.dir
   36217   mkdir conftest.dir
   36218   # Copy depcomp to subdir because otherwise we won't find it if we're
   36219   # using a relative directory.
   36220   cp "$am_depcomp" conftest.dir
   36221   cd conftest.dir
   36222   # We will build objects and dependencies in a subdirectory because
   36223   # it helps to detect inapplicable dependency modes.  For instance
   36224   # both Tru64's cc and ICC support -MD to output dependencies as a
   36225   # side effect of compilation, but ICC will put the dependencies in
   36226   # the current directory while Tru64 will put them in the object
   36227   # directory.
   36228   mkdir sub
   36229 
   36230   am_cv_CC_dependencies_compiler_type=none
   36231   if test "$am_compiler_list" = ""; then
   36232      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   36233   fi
   36234   am__universal=false
   36235   case " $depcc " in #(
   36236      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   36237      esac
   36238 
   36239   for depmode in $am_compiler_list; do
   36240     # Setup a source with many dependencies, because some compilers
   36241     # like to wrap large dependency lists on column 80 (with \), and
   36242     # we should not choose a depcomp mode which is confused by this.
   36243     #
   36244     # We need to recreate these files for each test, as the compiler may
   36245     # overwrite some of them when testing with obscure command lines.
   36246     # This happens at least with the AIX C compiler.
   36247     : > sub/conftest.c
   36248     for i in 1 2 3 4 5 6; do
   36249       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   36250       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   36251       # Solaris 10 /bin/sh.
   36252       echo '/* dummy */' > sub/conftst$i.h
   36253     done
   36254     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   36255 
   36256     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   36257     # mode.  It turns out that the SunPro C++ compiler does not properly
   36258     # handle '-M -o', and we need to detect this.  Also, some Intel
   36259     # versions had trouble with output in subdirs.
   36260     am__obj=sub/conftest.${OBJEXT-o}
   36261     am__minus_obj="-o $am__obj"
   36262     case $depmode in
   36263     gcc)
   36264       # This depmode causes a compiler race in universal mode.
   36265       test "$am__universal" = false || continue
   36266       ;;
   36267     nosideeffect)
   36268       # After this tag, mechanisms are not by side-effect, so they'll
   36269       # only be used when explicitly requested.
   36270       if test "x$enable_dependency_tracking" = xyes; then
   36271 	continue
   36272       else
   36273 	break
   36274       fi
   36275       ;;
   36276     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   36277       # This compiler won't grok '-c -o', but also, the minuso test has
   36278       # not run yet.  These depmodes are late enough in the game, and
   36279       # so weak that their functioning should not be impacted.
   36280       am__obj=conftest.${OBJEXT-o}
   36281       am__minus_obj=
   36282       ;;
   36283     none) break ;;
   36284     esac
   36285     if depmode=$depmode \
   36286        source=sub/conftest.c object=$am__obj \
   36287        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   36288        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   36289          >/dev/null 2>conftest.err &&
   36290        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   36291        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   36292        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   36293        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   36294       # icc doesn't choke on unknown options, it will just issue warnings
   36295       # or remarks (even with -Werror).  So we grep stderr for any message
   36296       # that says an option was ignored or not supported.
   36297       # When given -MP, icc 7.0 and 7.1 complain thusly:
   36298       #   icc: Command line warning: ignoring option '-M'; no argument required
   36299       # The diagnosis changed in icc 8.0:
   36300       #   icc: Command line remark: option '-MP' not supported
   36301       if (grep 'ignoring option' conftest.err ||
   36302           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   36303         am_cv_CC_dependencies_compiler_type=$depmode
   36304         break
   36305       fi
   36306     fi
   36307   done
   36308 
   36309   cd ..
   36310   rm -rf conftest.dir
   36311 else
   36312   am_cv_CC_dependencies_compiler_type=none
   36313 fi
   36314 
   36315 fi
   36316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   36317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   36318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   36319 
   36320  if
   36321   test "x$enable_dependency_tracking" != xno \
   36322   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   36323   am__fastdepCC_TRUE=
   36324   am__fastdepCC_FALSE='#'
   36325 else
   36326   am__fastdepCC_TRUE='#'
   36327   am__fastdepCC_FALSE=
   36328 fi
   36329 
   36330 
   36331 
   36332 # POSIX will say in a future version that running "rm -f" with no argument
   36333 # is OK; and we want to be able to make that assumption in our Makefile
   36334 # recipes.  So use an aggressive probe to check that the usage we want is
   36335 # actually supported "in the wild" to an acceptable degree.
   36336 # See automake bug#10828.
   36337 # To make any issue more visible, cause the running configure to be aborted
   36338 # by default if the 'rm' program in use doesn't match our expectations; the
   36339 # user can still override this though.
   36340 if rm -f && rm -fr && rm -rf; then : OK; else
   36341   cat >&2 <<'END'
   36342 Oops!
   36343 
   36344 Your 'rm' program seems unable to run without file operands specified
   36345 on the command line, even when the '-f' option is present.  This is contrary
   36346 to the behaviour of most rm programs out there, and not conforming with
   36347 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   36348 
   36349 Please tell bug-automake@gnu.org about your system, including the value
   36350 of your $PATH and any error possibly output before this message.  This
   36351 can help us improve future automake versions.
   36352 
   36353 END
   36354   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   36355     echo 'Configuration will proceed anyway, since you have set the' >&2
   36356     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   36357     echo >&2
   36358   else
   36359     cat >&2 <<'END'
   36360 Aborting the configuration process, to ensure you take notice of the issue.
   36361 
   36362 You can download and install GNU coreutils to get an 'rm' implementation
   36363 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   36364 
   36365 If you want to complete the configuration process using your problematic
   36366 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   36367 to "yes", and re-run configure.
   36368 
   36369 END
   36370     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   36371   fi
   36372 fi
   36373 
   36374 
   36375 # Check whether --enable-silent-rules was given.
   36376 if test "${enable_silent_rules+set}" = set; then :
   36377   enableval=$enable_silent_rules;
   36378 fi
   36379 
   36380 case $enable_silent_rules in # (((
   36381   yes) AM_DEFAULT_VERBOSITY=0;;
   36382    no) AM_DEFAULT_VERBOSITY=1;;
   36383     *) AM_DEFAULT_VERBOSITY=0;;
   36384 esac
   36385 am_make=${MAKE-make}
   36386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   36387 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   36388 if ${am_cv_make_support_nested_variables+:} false; then :
   36389   $as_echo_n "(cached) " >&6
   36390 else
   36391   if $as_echo 'TRUE=$(BAR$(V))
   36392 BAR0=false
   36393 BAR1=true
   36394 V=1
   36395 am__doit:
   36396 	@$(TRUE)
   36397 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   36398   am_cv_make_support_nested_variables=yes
   36399 else
   36400   am_cv_make_support_nested_variables=no
   36401 fi
   36402 fi
   36403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   36404 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   36405 if test $am_cv_make_support_nested_variables = yes; then
   36406     AM_V='$(V)'
   36407   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   36408 else
   36409   AM_V=$AM_DEFAULT_VERBOSITY
   36410   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   36411 fi
   36412 AM_BACKSLASH='\'
   36413 
   36414 
   36415 # --------------------- #
   36416 # Checks for programs.  #
   36417 # --------------------- #
   36418 
   36419 
   36420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   36421 $as_echo_n "checking whether ln -s works... " >&6; }
   36422 LN_S=$as_ln_s
   36423 if test "$LN_S" = "ln -s"; then
   36424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   36425 $as_echo "yes" >&6; }
   36426 else
   36427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   36428 $as_echo "no, using $LN_S" >&6; }
   36429 fi
   36430 
   36431 if test -n "$ac_tool_prefix"; then
   36432   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   36433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   36434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   36435 $as_echo_n "checking for $ac_word... " >&6; }
   36436 if ${ac_cv_prog_RANLIB+:} false; then :
   36437   $as_echo_n "(cached) " >&6
   36438 else
   36439   if test -n "$RANLIB"; then
   36440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   36441 else
   36442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36443 for as_dir in $PATH
   36444 do
   36445   IFS=$as_save_IFS
   36446   test -z "$as_dir" && as_dir=.
   36447     for ac_exec_ext in '' $ac_executable_extensions; do
   36448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36449     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   36450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36451     break 2
   36452   fi
   36453 done
   36454   done
   36455 IFS=$as_save_IFS
   36456 
   36457 fi
   36458 fi
   36459 RANLIB=$ac_cv_prog_RANLIB
   36460 if test -n "$RANLIB"; then
   36461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   36462 $as_echo "$RANLIB" >&6; }
   36463 else
   36464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36465 $as_echo "no" >&6; }
   36466 fi
   36467 
   36468 
   36469 fi
   36470 if test -z "$ac_cv_prog_RANLIB"; then
   36471   ac_ct_RANLIB=$RANLIB
   36472   # Extract the first word of "ranlib", so it can be a program name with args.
   36473 set dummy ranlib; ac_word=$2
   36474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   36475 $as_echo_n "checking for $ac_word... " >&6; }
   36476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   36477   $as_echo_n "(cached) " >&6
   36478 else
   36479   if test -n "$ac_ct_RANLIB"; then
   36480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   36481 else
   36482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36483 for as_dir in $PATH
   36484 do
   36485   IFS=$as_save_IFS
   36486   test -z "$as_dir" && as_dir=.
   36487     for ac_exec_ext in '' $ac_executable_extensions; do
   36488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36489     ac_cv_prog_ac_ct_RANLIB="ranlib"
   36490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36491     break 2
   36492   fi
   36493 done
   36494   done
   36495 IFS=$as_save_IFS
   36496 
   36497 fi
   36498 fi
   36499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   36500 if test -n "$ac_ct_RANLIB"; then
   36501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   36502 $as_echo "$ac_ct_RANLIB" >&6; }
   36503 else
   36504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36505 $as_echo "no" >&6; }
   36506 fi
   36507 
   36508   if test "x$ac_ct_RANLIB" = x; then
   36509     RANLIB=":"
   36510   else
   36511     case $cross_compiling:$ac_tool_warned in
   36512 yes:)
   36513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   36514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   36515 ac_tool_warned=yes ;;
   36516 esac
   36517     RANLIB=$ac_ct_RANLIB
   36518   fi
   36519 else
   36520   RANLIB="$ac_cv_prog_RANLIB"
   36521 fi
   36522 
   36523 
   36524 if test -n "$ac_tool_prefix"; then
   36525   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   36526 set dummy ${ac_tool_prefix}ar; ac_word=$2
   36527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   36528 $as_echo_n "checking for $ac_word... " >&6; }
   36529 if ${ac_cv_prog_AR+:} false; then :
   36530   $as_echo_n "(cached) " >&6
   36531 else
   36532   if test -n "$AR"; then
   36533   ac_cv_prog_AR="$AR" # Let the user override the test.
   36534 else
   36535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36536 for as_dir in $PATH
   36537 do
   36538   IFS=$as_save_IFS
   36539   test -z "$as_dir" && as_dir=.
   36540     for ac_exec_ext in '' $ac_executable_extensions; do
   36541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36542     ac_cv_prog_AR="${ac_tool_prefix}ar"
   36543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36544     break 2
   36545   fi
   36546 done
   36547   done
   36548 IFS=$as_save_IFS
   36549 
   36550 fi
   36551 fi
   36552 AR=$ac_cv_prog_AR
   36553 if test -n "$AR"; then
   36554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   36555 $as_echo "$AR" >&6; }
   36556 else
   36557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36558 $as_echo "no" >&6; }
   36559 fi
   36560 
   36561 
   36562 fi
   36563 if test -z "$ac_cv_prog_AR"; then
   36564   ac_ct_AR=$AR
   36565   # Extract the first word of "ar", so it can be a program name with args.
   36566 set dummy ar; ac_word=$2
   36567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   36568 $as_echo_n "checking for $ac_word... " >&6; }
   36569 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   36570   $as_echo_n "(cached) " >&6
   36571 else
   36572   if test -n "$ac_ct_AR"; then
   36573   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   36574 else
   36575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36576 for as_dir in $PATH
   36577 do
   36578   IFS=$as_save_IFS
   36579   test -z "$as_dir" && as_dir=.
   36580     for ac_exec_ext in '' $ac_executable_extensions; do
   36581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   36582     ac_cv_prog_ac_ct_AR="ar"
   36583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   36584     break 2
   36585   fi
   36586 done
   36587   done
   36588 IFS=$as_save_IFS
   36589 
   36590 fi
   36591 fi
   36592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   36593 if test -n "$ac_ct_AR"; then
   36594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   36595 $as_echo "$ac_ct_AR" >&6; }
   36596 else
   36597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   36598 $as_echo "no" >&6; }
   36599 fi
   36600 
   36601   if test "x$ac_ct_AR" = x; then
   36602     AR=""
   36603   else
   36604     case $cross_compiling:$ac_tool_warned in
   36605 yes:)
   36606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   36607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   36608 ac_tool_warned=yes ;;
   36609 esac
   36610     AR=$ac_ct_AR
   36611   fi
   36612 else
   36613   AR="$ac_cv_prog_AR"
   36614 fi
   36615 
   36616 
   36617 # ---------------------- #
   36618 # Checks for libraries.  #
   36619 # ---------------------- #
   36620 
   36621 ac_config_files="$ac_config_files Makefile.gnulib.inc Makefile import/Makefile"
   36622 
   36623 ac_config_commands="$ac_config_commands default"
   36624 
   36625 cat >confcache <<\_ACEOF
   36626 # This file is a shell script that caches the results of configure
   36627 # tests run on this system so they can be shared between configure
   36628 # scripts and configure runs, see configure's option --config-cache.
   36629 # It is not useful on other systems.  If it contains results you don't
   36630 # want to keep, you may remove or edit it.
   36631 #
   36632 # config.status only pays attention to the cache file if you give it
   36633 # the --recheck option to rerun configure.
   36634 #
   36635 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   36636 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   36637 # following values.
   36638 
   36639 _ACEOF
   36640 
   36641 # The following way of writing the cache mishandles newlines in values,
   36642 # but we know of no workaround that is simple, portable, and efficient.
   36643 # So, we kill variables containing newlines.
   36644 # Ultrix sh set writes to stderr and can't be redirected directly,
   36645 # and sets the high bit in the cache file unless we assign to the vars.
   36646 (
   36647   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   36648     eval ac_val=\$$ac_var
   36649     case $ac_val in #(
   36650     *${as_nl}*)
   36651       case $ac_var in #(
   36652       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   36653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   36654       esac
   36655       case $ac_var in #(
   36656       _ | IFS | as_nl) ;; #(
   36657       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   36658       *) { eval $ac_var=; unset $ac_var;} ;;
   36659       esac ;;
   36660     esac
   36661   done
   36662 
   36663   (set) 2>&1 |
   36664     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   36665     *${as_nl}ac_space=\ *)
   36666       # `set' does not quote correctly, so add quotes: double-quote
   36667       # substitution turns \\\\ into \\, and sed turns \\ into \.
   36668       sed -n \
   36669 	"s/'/'\\\\''/g;
   36670 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   36671       ;; #(
   36672     *)
   36673       # `set' quotes correctly as required by POSIX, so do not add quotes.
   36674       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   36675       ;;
   36676     esac |
   36677     sort
   36678 ) |
   36679   sed '
   36680      /^ac_cv_env_/b end
   36681      t clear
   36682      :clear
   36683      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   36684      t end
   36685      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   36686      :end' >>confcache
   36687 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   36688   if test -w "$cache_file"; then
   36689     if test "x$cache_file" != "x/dev/null"; then
   36690       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   36691 $as_echo "$as_me: updating cache $cache_file" >&6;}
   36692       if test ! -f "$cache_file" || test -h "$cache_file"; then
   36693 	cat confcache >"$cache_file"
   36694       else
   36695         case $cache_file in #(
   36696         */* | ?:*)
   36697 	  mv -f confcache "$cache_file"$$ &&
   36698 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   36699         *)
   36700 	  mv -f confcache "$cache_file" ;;
   36701 	esac
   36702       fi
   36703     fi
   36704   else
   36705     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   36706 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   36707   fi
   36708 fi
   36709 rm -f confcache
   36710 
   36711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   36712 # Let make expand exec_prefix.
   36713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   36714 
   36715 DEFS=-DHAVE_CONFIG_H
   36716 
   36717 ac_libobjs=
   36718 ac_ltlibobjs=
   36719 U=
   36720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   36721   # 1. Remove the extension, and $U if already installed.
   36722   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   36723   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   36724   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   36725   #    will be set to the directory where LIBOBJS objects are built.
   36726   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   36727   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   36728 done
   36729 LIBOBJS=$ac_libobjs
   36730 
   36731 LTLIBOBJS=$ac_ltlibobjs
   36732 
   36733 
   36734 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   36735   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   36736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   36737 fi
   36738 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
   36739   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
   36740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   36741 fi
   36742 
   36743 
   36744 
   36745     gl_libobjs=
   36746     gl_ltlibobjs=
   36747     gl_libobjdeps=
   36748     if test -n "$gl_LIBOBJS"; then
   36749       # Remove the extension.
   36750       sed_drop_objext='s/\.o$//;s/\.obj$//'
   36751       sed_dirname1='s,//*,/,g'
   36752       sed_dirname2='s,\(.\)/$,\1,'
   36753       sed_dirname3='s,^[^/]*$,.,'
   36754       sed_dirname4='s,\(.\)/[^/]*$,\1,'
   36755       sed_basename1='s,.*/,,'
   36756       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
   36757         gl_libobjs="$gl_libobjs $i.$ac_objext"
   36758         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
   36759         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
   36760         i_base=`echo "$i" | sed -e "$sed_basename1"`
   36761         gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
   36762       done
   36763     fi
   36764     gl_LIBOBJS=$gl_libobjs
   36765 
   36766     gl_LTLIBOBJS=$gl_ltlibobjs
   36767 
   36768     gl_LIBOBJDEPS=$gl_libobjdeps
   36769 
   36770 
   36771 
   36772     gltests_libobjs=
   36773     gltests_ltlibobjs=
   36774     gltests_libobjdeps=
   36775     if test -n "$gltests_LIBOBJS"; then
   36776       # Remove the extension.
   36777       sed_drop_objext='s/\.o$//;s/\.obj$//'
   36778       sed_dirname1='s,//*,/,g'
   36779       sed_dirname2='s,\(.\)/$,\1,'
   36780       sed_dirname3='s,^[^/]*$,.,'
   36781       sed_dirname4='s,\(.\)/[^/]*$,\1,'
   36782       sed_basename1='s,.*/,,'
   36783       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
   36784         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
   36785         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
   36786         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
   36787         i_base=`echo "$i" | sed -e "$sed_basename1"`
   36788         gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
   36789       done
   36790     fi
   36791     gltests_LIBOBJS=$gltests_libobjs
   36792 
   36793     gltests_LTLIBOBJS=$gltests_ltlibobjs
   36794 
   36795     gltests_LIBOBJDEPS=$gltests_libobjdeps
   36796 
   36797 
   36798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   36799 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   36800    if test -n "$am_sleep_pid"; then
   36801      # Hide warnings about reused PIDs.
   36802      wait $am_sleep_pid 2>/dev/null
   36803    fi
   36804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   36805 $as_echo "done" >&6; }
   36806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   36807   as_fn_error $? "conditional \"AMDEP\" was never defined.
   36808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   36809 fi
   36810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   36811   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   36812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   36813 fi
   36814  if test -n "$EXEEXT"; then
   36815   am__EXEEXT_TRUE=
   36816   am__EXEEXT_FALSE='#'
   36817 else
   36818   am__EXEEXT_TRUE='#'
   36819   am__EXEEXT_FALSE=
   36820 fi
   36821 
   36822 
   36823 : "${CONFIG_STATUS=./config.status}"
   36824 ac_write_fail=0
   36825 ac_clean_files_save=$ac_clean_files
   36826 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   36827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   36828 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   36829 as_write_fail=0
   36830 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   36831 #! $SHELL
   36832 # Generated by $as_me.
   36833 # Run this file to recreate the current configuration.
   36834 # Compiler output produced by configure, useful for debugging
   36835 # configure, is in config.log if it exists.
   36836 
   36837 debug=false
   36838 ac_cs_recheck=false
   36839 ac_cs_silent=false
   36840 
   36841 SHELL=\${CONFIG_SHELL-$SHELL}
   36842 export SHELL
   36843 _ASEOF
   36844 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   36845 ## -------------------- ##
   36846 ## M4sh Initialization. ##
   36847 ## -------------------- ##
   36848 
   36849 # Be more Bourne compatible
   36850 DUALCASE=1; export DUALCASE # for MKS sh
   36851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   36852   emulate sh
   36853   NULLCMD=:
   36854   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   36855   # is contrary to our usage.  Disable this feature.
   36856   alias -g '${1+"$@"}'='"$@"'
   36857   setopt NO_GLOB_SUBST
   36858 else
   36859   case `(set -o) 2>/dev/null` in #(
   36860   *posix*) :
   36861     set -o posix ;; #(
   36862   *) :
   36863      ;;
   36864 esac
   36865 fi
   36866 
   36867 
   36868 as_nl='
   36869 '
   36870 export as_nl
   36871 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   36872 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   36873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   36874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   36875 # Prefer a ksh shell builtin over an external printf program on Solaris,
   36876 # but without wasting forks for bash or zsh.
   36877 if test -z "$BASH_VERSION$ZSH_VERSION" \
   36878     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   36879   as_echo='print -r --'
   36880   as_echo_n='print -rn --'
   36881 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   36882   as_echo='printf %s\n'
   36883   as_echo_n='printf %s'
   36884 else
   36885   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   36886     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   36887     as_echo_n='/usr/ucb/echo -n'
   36888   else
   36889     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   36890     as_echo_n_body='eval
   36891       arg=$1;
   36892       case $arg in #(
   36893       *"$as_nl"*)
   36894 	expr "X$arg" : "X\\(.*\\)$as_nl";
   36895 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   36896       esac;
   36897       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   36898     '
   36899     export as_echo_n_body
   36900     as_echo_n='sh -c $as_echo_n_body as_echo'
   36901   fi
   36902   export as_echo_body
   36903   as_echo='sh -c $as_echo_body as_echo'
   36904 fi
   36905 
   36906 # The user is always right.
   36907 if test "${PATH_SEPARATOR+set}" != set; then
   36908   PATH_SEPARATOR=:
   36909   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   36910     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   36911       PATH_SEPARATOR=';'
   36912   }
   36913 fi
   36914 
   36915 
   36916 # IFS
   36917 # We need space, tab and new line, in precisely that order.  Quoting is
   36918 # there to prevent editors from complaining about space-tab.
   36919 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   36920 # splitting by setting IFS to empty value.)
   36921 IFS=" ""	$as_nl"
   36922 
   36923 # Find who we are.  Look in the path if we contain no directory separator.
   36924 as_myself=
   36925 case $0 in #((
   36926   *[\\/]* ) as_myself=$0 ;;
   36927   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   36928 for as_dir in $PATH
   36929 do
   36930   IFS=$as_save_IFS
   36931   test -z "$as_dir" && as_dir=.
   36932     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   36933   done
   36934 IFS=$as_save_IFS
   36935 
   36936      ;;
   36937 esac
   36938 # We did not find ourselves, most probably we were run as `sh COMMAND'
   36939 # in which case we are not to be found in the path.
   36940 if test "x$as_myself" = x; then
   36941   as_myself=$0
   36942 fi
   36943 if test ! -f "$as_myself"; then
   36944   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   36945   exit 1
   36946 fi
   36947 
   36948 # Unset variables that we do not need and which cause bugs (e.g. in
   36949 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   36950 # suppresses any "Segmentation fault" message there.  '((' could
   36951 # trigger a bug in pdksh 5.2.14.
   36952 for as_var in BASH_ENV ENV MAIL MAILPATH
   36953 do eval test x\${$as_var+set} = xset \
   36954   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   36955 done
   36956 PS1='$ '
   36957 PS2='> '
   36958 PS4='+ '
   36959 
   36960 # NLS nuisances.
   36961 LC_ALL=C
   36962 export LC_ALL
   36963 LANGUAGE=C
   36964 export LANGUAGE
   36965 
   36966 # CDPATH.
   36967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   36968 
   36969 
   36970 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   36971 # ----------------------------------------
   36972 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   36973 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   36974 # script with STATUS, using 1 if that was 0.
   36975 as_fn_error ()
   36976 {
   36977   as_status=$1; test $as_status -eq 0 && as_status=1
   36978   if test "$4"; then
   36979     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   36980     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   36981   fi
   36982   $as_echo "$as_me: error: $2" >&2
   36983   as_fn_exit $as_status
   36984 } # as_fn_error
   36985 
   36986 
   36987 # as_fn_set_status STATUS
   36988 # -----------------------
   36989 # Set $? to STATUS, without forking.
   36990 as_fn_set_status ()
   36991 {
   36992   return $1
   36993 } # as_fn_set_status
   36994 
   36995 # as_fn_exit STATUS
   36996 # -----------------
   36997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   36998 as_fn_exit ()
   36999 {
   37000   set +e
   37001   as_fn_set_status $1
   37002   exit $1
   37003 } # as_fn_exit
   37004 
   37005 # as_fn_unset VAR
   37006 # ---------------
   37007 # Portably unset VAR.
   37008 as_fn_unset ()
   37009 {
   37010   { eval $1=; unset $1;}
   37011 }
   37012 as_unset=as_fn_unset
   37013 # as_fn_append VAR VALUE
   37014 # ----------------------
   37015 # Append the text in VALUE to the end of the definition contained in VAR. Take
   37016 # advantage of any shell optimizations that allow amortized linear growth over
   37017 # repeated appends, instead of the typical quadratic growth present in naive
   37018 # implementations.
   37019 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   37020   eval 'as_fn_append ()
   37021   {
   37022     eval $1+=\$2
   37023   }'
   37024 else
   37025   as_fn_append ()
   37026   {
   37027     eval $1=\$$1\$2
   37028   }
   37029 fi # as_fn_append
   37030 
   37031 # as_fn_arith ARG...
   37032 # ------------------
   37033 # Perform arithmetic evaluation on the ARGs, and store the result in the
   37034 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   37035 # must be portable across $(()) and expr.
   37036 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   37037   eval 'as_fn_arith ()
   37038   {
   37039     as_val=$(( $* ))
   37040   }'
   37041 else
   37042   as_fn_arith ()
   37043   {
   37044     as_val=`expr "$@" || test $? -eq 1`
   37045   }
   37046 fi # as_fn_arith
   37047 
   37048 
   37049 if expr a : '\(a\)' >/dev/null 2>&1 &&
   37050    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   37051   as_expr=expr
   37052 else
   37053   as_expr=false
   37054 fi
   37055 
   37056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   37057   as_basename=basename
   37058 else
   37059   as_basename=false
   37060 fi
   37061 
   37062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   37063   as_dirname=dirname
   37064 else
   37065   as_dirname=false
   37066 fi
   37067 
   37068 as_me=`$as_basename -- "$0" ||
   37069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   37070 	 X"$0" : 'X\(//\)$' \| \
   37071 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   37072 $as_echo X/"$0" |
   37073     sed '/^.*\/\([^/][^/]*\)\/*$/{
   37074 	    s//\1/
   37075 	    q
   37076 	  }
   37077 	  /^X\/\(\/\/\)$/{
   37078 	    s//\1/
   37079 	    q
   37080 	  }
   37081 	  /^X\/\(\/\).*/{
   37082 	    s//\1/
   37083 	    q
   37084 	  }
   37085 	  s/.*/./; q'`
   37086 
   37087 # Avoid depending upon Character Ranges.
   37088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   37089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   37090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   37091 as_cr_digits='0123456789'
   37092 as_cr_alnum=$as_cr_Letters$as_cr_digits
   37093 
   37094 ECHO_C= ECHO_N= ECHO_T=
   37095 case `echo -n x` in #(((((
   37096 -n*)
   37097   case `echo 'xy\c'` in
   37098   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   37099   xy)  ECHO_C='\c';;
   37100   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   37101        ECHO_T='	';;
   37102   esac;;
   37103 *)
   37104   ECHO_N='-n';;
   37105 esac
   37106 
   37107 rm -f conf$$ conf$$.exe conf$$.file
   37108 if test -d conf$$.dir; then
   37109   rm -f conf$$.dir/conf$$.file
   37110 else
   37111   rm -f conf$$.dir
   37112   mkdir conf$$.dir 2>/dev/null
   37113 fi
   37114 if (echo >conf$$.file) 2>/dev/null; then
   37115   if ln -s conf$$.file conf$$ 2>/dev/null; then
   37116     as_ln_s='ln -s'
   37117     # ... but there are two gotchas:
   37118     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   37119     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   37120     # In both cases, we have to default to `cp -pR'.
   37121     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   37122       as_ln_s='cp -pR'
   37123   elif ln conf$$.file conf$$ 2>/dev/null; then
   37124     as_ln_s=ln
   37125   else
   37126     as_ln_s='cp -pR'
   37127   fi
   37128 else
   37129   as_ln_s='cp -pR'
   37130 fi
   37131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   37132 rmdir conf$$.dir 2>/dev/null
   37133 
   37134 
   37135 # as_fn_mkdir_p
   37136 # -------------
   37137 # Create "$as_dir" as a directory, including parents if necessary.
   37138 as_fn_mkdir_p ()
   37139 {
   37140 
   37141   case $as_dir in #(
   37142   -*) as_dir=./$as_dir;;
   37143   esac
   37144   test -d "$as_dir" || eval $as_mkdir_p || {
   37145     as_dirs=
   37146     while :; do
   37147       case $as_dir in #(
   37148       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   37149       *) as_qdir=$as_dir;;
   37150       esac
   37151       as_dirs="'$as_qdir' $as_dirs"
   37152       as_dir=`$as_dirname -- "$as_dir" ||
   37153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   37154 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   37155 	 X"$as_dir" : 'X\(//\)$' \| \
   37156 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   37157 $as_echo X"$as_dir" |
   37158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   37159 	    s//\1/
   37160 	    q
   37161 	  }
   37162 	  /^X\(\/\/\)[^/].*/{
   37163 	    s//\1/
   37164 	    q
   37165 	  }
   37166 	  /^X\(\/\/\)$/{
   37167 	    s//\1/
   37168 	    q
   37169 	  }
   37170 	  /^X\(\/\).*/{
   37171 	    s//\1/
   37172 	    q
   37173 	  }
   37174 	  s/.*/./; q'`
   37175       test -d "$as_dir" && break
   37176     done
   37177     test -z "$as_dirs" || eval "mkdir $as_dirs"
   37178   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   37179 
   37180 
   37181 } # as_fn_mkdir_p
   37182 if mkdir -p . 2>/dev/null; then
   37183   as_mkdir_p='mkdir -p "$as_dir"'
   37184 else
   37185   test -d ./-p && rmdir ./-p
   37186   as_mkdir_p=false
   37187 fi
   37188 
   37189 
   37190 # as_fn_executable_p FILE
   37191 # -----------------------
   37192 # Test if FILE is an executable regular file.
   37193 as_fn_executable_p ()
   37194 {
   37195   test -f "$1" && test -x "$1"
   37196 } # as_fn_executable_p
   37197 as_test_x='test -x'
   37198 as_executable_p=as_fn_executable_p
   37199 
   37200 # Sed expression to map a string onto a valid CPP name.
   37201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   37202 
   37203 # Sed expression to map a string onto a valid variable name.
   37204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   37205 
   37206 
   37207 exec 6>&1
   37208 ## ----------------------------------- ##
   37209 ## Main body of $CONFIG_STATUS script. ##
   37210 ## ----------------------------------- ##
   37211 _ASEOF
   37212 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   37213 
   37214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37215 # Save the log message, to keep $0 and so on meaningful, and to
   37216 # report actual input values of CONFIG_FILES etc. instead of their
   37217 # values after options handling.
   37218 ac_log="
   37219 This file was extended by libgnu $as_me UNUSED-VERSION, which was
   37220 generated by GNU Autoconf 2.69.  Invocation command line was
   37221 
   37222   CONFIG_FILES    = $CONFIG_FILES
   37223   CONFIG_HEADERS  = $CONFIG_HEADERS
   37224   CONFIG_LINKS    = $CONFIG_LINKS
   37225   CONFIG_COMMANDS = $CONFIG_COMMANDS
   37226   $ $0 $@
   37227 
   37228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   37229 "
   37230 
   37231 _ACEOF
   37232 
   37233 case $ac_config_files in *"
   37234 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   37235 esac
   37236 
   37237 case $ac_config_headers in *"
   37238 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   37239 esac
   37240 
   37241 
   37242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37243 # Files that config.status was made for.
   37244 config_files="$ac_config_files"
   37245 config_headers="$ac_config_headers"
   37246 config_commands="$ac_config_commands"
   37247 
   37248 _ACEOF
   37249 
   37250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37251 ac_cs_usage="\
   37252 \`$as_me' instantiates files and other configuration actions
   37253 from templates according to the current configuration.  Unless the files
   37254 and actions are specified as TAGs, all are instantiated by default.
   37255 
   37256 Usage: $0 [OPTION]... [TAG]...
   37257 
   37258   -h, --help       print this help, then exit
   37259   -V, --version    print version number and configuration settings, then exit
   37260       --config     print configuration, then exit
   37261   -q, --quiet, --silent
   37262                    do not print progress messages
   37263   -d, --debug      don't remove temporary files
   37264       --recheck    update $as_me by reconfiguring in the same conditions
   37265       --file=FILE[:TEMPLATE]
   37266                    instantiate the configuration file FILE
   37267       --header=FILE[:TEMPLATE]
   37268                    instantiate the configuration header FILE
   37269 
   37270 Configuration files:
   37271 $config_files
   37272 
   37273 Configuration headers:
   37274 $config_headers
   37275 
   37276 Configuration commands:
   37277 $config_commands
   37278 
   37279 Report bugs to the package provider."
   37280 
   37281 _ACEOF
   37282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37283 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   37284 ac_cs_version="\\
   37285 libgnu config.status UNUSED-VERSION
   37286 configured by $0, generated by GNU Autoconf 2.69,
   37287   with options \\"\$ac_cs_config\\"
   37288 
   37289 Copyright (C) 2012 Free Software Foundation, Inc.
   37290 This config.status script is free software; the Free Software Foundation
   37291 gives unlimited permission to copy, distribute and modify it."
   37292 
   37293 ac_pwd='$ac_pwd'
   37294 srcdir='$srcdir'
   37295 INSTALL='$INSTALL'
   37296 MKDIR_P='$MKDIR_P'
   37297 AWK='$AWK'
   37298 test -n "\$AWK" || AWK=awk
   37299 _ACEOF
   37300 
   37301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37302 # The default lists apply if the user does not specify any file.
   37303 ac_need_defaults=:
   37304 while test $# != 0
   37305 do
   37306   case $1 in
   37307   --*=?*)
   37308     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   37309     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   37310     ac_shift=:
   37311     ;;
   37312   --*=)
   37313     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   37314     ac_optarg=
   37315     ac_shift=:
   37316     ;;
   37317   *)
   37318     ac_option=$1
   37319     ac_optarg=$2
   37320     ac_shift=shift
   37321     ;;
   37322   esac
   37323 
   37324   case $ac_option in
   37325   # Handling of the options.
   37326   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   37327     ac_cs_recheck=: ;;
   37328   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   37329     $as_echo "$ac_cs_version"; exit ;;
   37330   --config | --confi | --conf | --con | --co | --c )
   37331     $as_echo "$ac_cs_config"; exit ;;
   37332   --debug | --debu | --deb | --de | --d | -d )
   37333     debug=: ;;
   37334   --file | --fil | --fi | --f )
   37335     $ac_shift
   37336     case $ac_optarg in
   37337     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   37338     '') as_fn_error $? "missing file argument" ;;
   37339     esac
   37340     as_fn_append CONFIG_FILES " '$ac_optarg'"
   37341     ac_need_defaults=false;;
   37342   --header | --heade | --head | --hea )
   37343     $ac_shift
   37344     case $ac_optarg in
   37345     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   37346     esac
   37347     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   37348     ac_need_defaults=false;;
   37349   --he | --h)
   37350     # Conflict between --help and --header
   37351     as_fn_error $? "ambiguous option: \`$1'
   37352 Try \`$0 --help' for more information.";;
   37353   --help | --hel | -h )
   37354     $as_echo "$ac_cs_usage"; exit ;;
   37355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   37356   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   37357     ac_cs_silent=: ;;
   37358 
   37359   # This is an error.
   37360   -*) as_fn_error $? "unrecognized option: \`$1'
   37361 Try \`$0 --help' for more information." ;;
   37362 
   37363   *) as_fn_append ac_config_targets " $1"
   37364      ac_need_defaults=false ;;
   37365 
   37366   esac
   37367   shift
   37368 done
   37369 
   37370 ac_configure_extra_args=
   37371 
   37372 if $ac_cs_silent; then
   37373   exec 6>/dev/null
   37374   ac_configure_extra_args="$ac_configure_extra_args --silent"
   37375 fi
   37376 
   37377 _ACEOF
   37378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37379 if \$ac_cs_recheck; then
   37380   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   37381   shift
   37382   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   37383   CONFIG_SHELL='$SHELL'
   37384   export CONFIG_SHELL
   37385   exec "\$@"
   37386 fi
   37387 
   37388 _ACEOF
   37389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37390 exec 5>>config.log
   37391 {
   37392   echo
   37393   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   37394 ## Running $as_me. ##
   37395 _ASBOX
   37396   $as_echo "$ac_log"
   37397 } >&5
   37398 
   37399 _ACEOF
   37400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37401 #
   37402 # INIT-COMMANDS
   37403 #
   37404 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   37405 
   37406 _ACEOF
   37407 
   37408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37409 
   37410 # Handling of arguments.
   37411 for ac_config_target in $ac_config_targets
   37412 do
   37413   case $ac_config_target in
   37414     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   37415     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   37416     "Makefile.gnulib.inc") CONFIG_FILES="$CONFIG_FILES Makefile.gnulib.inc" ;;
   37417     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   37418     "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
   37419     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   37420 
   37421   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   37422   esac
   37423 done
   37424 
   37425 
   37426 # If the user did not use the arguments to specify the items to instantiate,
   37427 # then the envvar interface is used.  Set only those that are not.
   37428 # We use the long form for the default assignment because of an extremely
   37429 # bizarre bug on SunOS 4.1.3.
   37430 if $ac_need_defaults; then
   37431   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   37432   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   37433   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   37434 fi
   37435 
   37436 # Have a temporary directory for convenience.  Make it in the build tree
   37437 # simply because there is no reason against having it here, and in addition,
   37438 # creating and moving files from /tmp can sometimes cause problems.
   37439 # Hook for its removal unless debugging.
   37440 # Note that there is a small window in which the directory will not be cleaned:
   37441 # after its creation but before its name has been assigned to `$tmp'.
   37442 $debug ||
   37443 {
   37444   tmp= ac_tmp=
   37445   trap 'exit_status=$?
   37446   : "${ac_tmp:=$tmp}"
   37447   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   37448 ' 0
   37449   trap 'as_fn_exit 1' 1 2 13 15
   37450 }
   37451 # Create a (secure) tmp directory for tmp files.
   37452 
   37453 {
   37454   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   37455   test -d "$tmp"
   37456 }  ||
   37457 {
   37458   tmp=./conf$$-$RANDOM
   37459   (umask 077 && mkdir "$tmp")
   37460 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   37461 ac_tmp=$tmp
   37462 
   37463 # Set up the scripts for CONFIG_FILES section.
   37464 # No need to generate them if there are no CONFIG_FILES.
   37465 # This happens for instance with `./config.status config.h'.
   37466 if test -n "$CONFIG_FILES"; then
   37467 
   37468 
   37469 ac_cr=`echo X | tr X '\015'`
   37470 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   37471 # But we know of no other shell where ac_cr would be empty at this
   37472 # point, so we can use a bashism as a fallback.
   37473 if test "x$ac_cr" = x; then
   37474   eval ac_cr=\$\'\\r\'
   37475 fi
   37476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   37477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   37478   ac_cs_awk_cr='\\r'
   37479 else
   37480   ac_cs_awk_cr=$ac_cr
   37481 fi
   37482 
   37483 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   37484 _ACEOF
   37485 
   37486 
   37487 {
   37488   echo "cat >conf$$subs.awk <<_ACEOF" &&
   37489   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   37490   echo "_ACEOF"
   37491 } >conf$$subs.sh ||
   37492   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   37493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   37494 ac_delim='%!_!# '
   37495 for ac_last_try in false false false false false :; do
   37496   . ./conf$$subs.sh ||
   37497     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   37498 
   37499   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   37500   if test $ac_delim_n = $ac_delim_num; then
   37501     break
   37502   elif $ac_last_try; then
   37503     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   37504   else
   37505     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   37506   fi
   37507 done
   37508 rm -f conf$$subs.sh
   37509 
   37510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37511 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   37512 _ACEOF
   37513 sed -n '
   37514 h
   37515 s/^/S["/; s/!.*/"]=/
   37516 p
   37517 g
   37518 s/^[^!]*!//
   37519 :repl
   37520 t repl
   37521 s/'"$ac_delim"'$//
   37522 t delim
   37523 :nl
   37524 h
   37525 s/\(.\{148\}\)..*/\1/
   37526 t more1
   37527 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   37528 p
   37529 n
   37530 b repl
   37531 :more1
   37532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   37533 p
   37534 g
   37535 s/.\{148\}//
   37536 t nl
   37537 :delim
   37538 h
   37539 s/\(.\{148\}\)..*/\1/
   37540 t more2
   37541 s/["\\]/\\&/g; s/^/"/; s/$/"/
   37542 p
   37543 b
   37544 :more2
   37545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   37546 p
   37547 g
   37548 s/.\{148\}//
   37549 t delim
   37550 ' <conf$$subs.awk | sed '
   37551 /^[^""]/{
   37552   N
   37553   s/\n//
   37554 }
   37555 ' >>$CONFIG_STATUS || ac_write_fail=1
   37556 rm -f conf$$subs.awk
   37557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37558 _ACAWK
   37559 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   37560   for (key in S) S_is_set[key] = 1
   37561   FS = ""
   37562 
   37563 }
   37564 {
   37565   line = $ 0
   37566   nfields = split(line, field, "@")
   37567   substed = 0
   37568   len = length(field[1])
   37569   for (i = 2; i < nfields; i++) {
   37570     key = field[i]
   37571     keylen = length(key)
   37572     if (S_is_set[key]) {
   37573       value = S[key]
   37574       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   37575       len += length(value) + length(field[++i])
   37576       substed = 1
   37577     } else
   37578       len += 1 + keylen
   37579   }
   37580 
   37581   print line
   37582 }
   37583 
   37584 _ACAWK
   37585 _ACEOF
   37586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   37588   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   37589 else
   37590   cat
   37591 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   37592   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   37593 _ACEOF
   37594 
   37595 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   37596 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   37597 # trailing colons and then remove the whole line if VPATH becomes empty
   37598 # (actually we leave an empty line to preserve line numbers).
   37599 if test "x$srcdir" = x.; then
   37600   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   37601 h
   37602 s///
   37603 s/^/:/
   37604 s/[	 ]*$/:/
   37605 s/:\$(srcdir):/:/g
   37606 s/:\${srcdir}:/:/g
   37607 s/:@srcdir@:/:/g
   37608 s/^:*//
   37609 s/:*$//
   37610 x
   37611 s/\(=[	 ]*\).*/\1/
   37612 G
   37613 s/\n//
   37614 s/^[^=]*=[	 ]*$//
   37615 }'
   37616 fi
   37617 
   37618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37619 fi # test -n "$CONFIG_FILES"
   37620 
   37621 # Set up the scripts for CONFIG_HEADERS section.
   37622 # No need to generate them if there are no CONFIG_HEADERS.
   37623 # This happens for instance with `./config.status Makefile'.
   37624 if test -n "$CONFIG_HEADERS"; then
   37625 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   37626 BEGIN {
   37627 _ACEOF
   37628 
   37629 # Transform confdefs.h into an awk script `defines.awk', embedded as
   37630 # here-document in config.status, that substitutes the proper values into
   37631 # config.h.in to produce config.h.
   37632 
   37633 # Create a delimiter string that does not exist in confdefs.h, to ease
   37634 # handling of long lines.
   37635 ac_delim='%!_!# '
   37636 for ac_last_try in false false :; do
   37637   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   37638   if test -z "$ac_tt"; then
   37639     break
   37640   elif $ac_last_try; then
   37641     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   37642   else
   37643     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   37644   fi
   37645 done
   37646 
   37647 # For the awk script, D is an array of macro values keyed by name,
   37648 # likewise P contains macro parameters if any.  Preserve backslash
   37649 # newline sequences.
   37650 
   37651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   37652 sed -n '
   37653 s/.\{148\}/&'"$ac_delim"'/g
   37654 t rset
   37655 :rset
   37656 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   37657 t def
   37658 d
   37659 :def
   37660 s/\\$//
   37661 t bsnl
   37662 s/["\\]/\\&/g
   37663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   37664 D["\1"]=" \3"/p
   37665 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   37666 d
   37667 :bsnl
   37668 s/["\\]/\\&/g
   37669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   37670 D["\1"]=" \3\\\\\\n"\\/p
   37671 t cont
   37672 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   37673 t cont
   37674 d
   37675 :cont
   37676 n
   37677 s/.\{148\}/&'"$ac_delim"'/g
   37678 t clear
   37679 :clear
   37680 s/\\$//
   37681 t bsnlc
   37682 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   37683 d
   37684 :bsnlc
   37685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   37686 b cont
   37687 ' <confdefs.h | sed '
   37688 s/'"$ac_delim"'/"\\\
   37689 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   37690 
   37691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37692   for (key in D) D_is_set[key] = 1
   37693   FS = ""
   37694 }
   37695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   37696   line = \$ 0
   37697   split(line, arg, " ")
   37698   if (arg[1] == "#") {
   37699     defundef = arg[2]
   37700     mac1 = arg[3]
   37701   } else {
   37702     defundef = substr(arg[1], 2)
   37703     mac1 = arg[2]
   37704   }
   37705   split(mac1, mac2, "(") #)
   37706   macro = mac2[1]
   37707   prefix = substr(line, 1, index(line, defundef) - 1)
   37708   if (D_is_set[macro]) {
   37709     # Preserve the white space surrounding the "#".
   37710     print prefix "define", macro P[macro] D[macro]
   37711     next
   37712   } else {
   37713     # Replace #undef with comments.  This is necessary, for example,
   37714     # in the case of _POSIX_SOURCE, which is predefined and required
   37715     # on some systems where configure will not decide to define it.
   37716     if (defundef == "undef") {
   37717       print "/*", prefix defundef, macro, "*/"
   37718       next
   37719     }
   37720   }
   37721 }
   37722 { print }
   37723 _ACAWK
   37724 _ACEOF
   37725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37726   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   37727 fi # test -n "$CONFIG_HEADERS"
   37728 
   37729 
   37730 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   37731 shift
   37732 for ac_tag
   37733 do
   37734   case $ac_tag in
   37735   :[FHLC]) ac_mode=$ac_tag; continue;;
   37736   esac
   37737   case $ac_mode$ac_tag in
   37738   :[FHL]*:*);;
   37739   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   37740   :[FH]-) ac_tag=-:-;;
   37741   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   37742   esac
   37743   ac_save_IFS=$IFS
   37744   IFS=:
   37745   set x $ac_tag
   37746   IFS=$ac_save_IFS
   37747   shift
   37748   ac_file=$1
   37749   shift
   37750 
   37751   case $ac_mode in
   37752   :L) ac_source=$1;;
   37753   :[FH])
   37754     ac_file_inputs=
   37755     for ac_f
   37756     do
   37757       case $ac_f in
   37758       -) ac_f="$ac_tmp/stdin";;
   37759       *) # Look for the file first in the build tree, then in the source tree
   37760 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   37761 	 # because $ac_f cannot contain `:'.
   37762 	 test -f "$ac_f" ||
   37763 	   case $ac_f in
   37764 	   [\\/$]*) false;;
   37765 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   37766 	   esac ||
   37767 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   37768       esac
   37769       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   37770       as_fn_append ac_file_inputs " '$ac_f'"
   37771     done
   37772 
   37773     # Let's still pretend it is `configure' which instantiates (i.e., don't
   37774     # use $as_me), people would be surprised to read:
   37775     #    /* config.h.  Generated by config.status.  */
   37776     configure_input='Generated from '`
   37777 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   37778 	`' by configure.'
   37779     if test x"$ac_file" != x-; then
   37780       configure_input="$ac_file.  $configure_input"
   37781       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   37782 $as_echo "$as_me: creating $ac_file" >&6;}
   37783     fi
   37784     # Neutralize special characters interpreted by sed in replacement strings.
   37785     case $configure_input in #(
   37786     *\&* | *\|* | *\\* )
   37787        ac_sed_conf_input=`$as_echo "$configure_input" |
   37788        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   37789     *) ac_sed_conf_input=$configure_input;;
   37790     esac
   37791 
   37792     case $ac_tag in
   37793     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   37794       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   37795     esac
   37796     ;;
   37797   esac
   37798 
   37799   ac_dir=`$as_dirname -- "$ac_file" ||
   37800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   37801 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   37802 	 X"$ac_file" : 'X\(//\)$' \| \
   37803 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   37804 $as_echo X"$ac_file" |
   37805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   37806 	    s//\1/
   37807 	    q
   37808 	  }
   37809 	  /^X\(\/\/\)[^/].*/{
   37810 	    s//\1/
   37811 	    q
   37812 	  }
   37813 	  /^X\(\/\/\)$/{
   37814 	    s//\1/
   37815 	    q
   37816 	  }
   37817 	  /^X\(\/\).*/{
   37818 	    s//\1/
   37819 	    q
   37820 	  }
   37821 	  s/.*/./; q'`
   37822   as_dir="$ac_dir"; as_fn_mkdir_p
   37823   ac_builddir=.
   37824 
   37825 case "$ac_dir" in
   37826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   37827 *)
   37828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   37829   # A ".." for each directory in $ac_dir_suffix.
   37830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   37831   case $ac_top_builddir_sub in
   37832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   37833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   37834   esac ;;
   37835 esac
   37836 ac_abs_top_builddir=$ac_pwd
   37837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   37838 # for backward compatibility:
   37839 ac_top_builddir=$ac_top_build_prefix
   37840 
   37841 case $srcdir in
   37842   .)  # We are building in place.
   37843     ac_srcdir=.
   37844     ac_top_srcdir=$ac_top_builddir_sub
   37845     ac_abs_top_srcdir=$ac_pwd ;;
   37846   [\\/]* | ?:[\\/]* )  # Absolute name.
   37847     ac_srcdir=$srcdir$ac_dir_suffix;
   37848     ac_top_srcdir=$srcdir
   37849     ac_abs_top_srcdir=$srcdir ;;
   37850   *) # Relative name.
   37851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   37852     ac_top_srcdir=$ac_top_build_prefix$srcdir
   37853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   37854 esac
   37855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   37856 
   37857 
   37858   case $ac_mode in
   37859   :F)
   37860   #
   37861   # CONFIG_FILE
   37862   #
   37863 
   37864   case $INSTALL in
   37865   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   37866   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   37867   esac
   37868   ac_MKDIR_P=$MKDIR_P
   37869   case $MKDIR_P in
   37870   [\\/$]* | ?:[\\/]* ) ;;
   37871   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   37872   esac
   37873 _ACEOF
   37874 
   37875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37876 # If the template does not know about datarootdir, expand it.
   37877 # FIXME: This hack should be removed a few years after 2.60.
   37878 ac_datarootdir_hack=; ac_datarootdir_seen=
   37879 ac_sed_dataroot='
   37880 /datarootdir/ {
   37881   p
   37882   q
   37883 }
   37884 /@datadir@/p
   37885 /@docdir@/p
   37886 /@infodir@/p
   37887 /@localedir@/p
   37888 /@mandir@/p'
   37889 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   37890 *datarootdir*) ac_datarootdir_seen=yes;;
   37891 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   37892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   37893 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   37894 _ACEOF
   37895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37896   ac_datarootdir_hack='
   37897   s&@datadir@&$datadir&g
   37898   s&@docdir@&$docdir&g
   37899   s&@infodir@&$infodir&g
   37900   s&@localedir@&$localedir&g
   37901   s&@mandir@&$mandir&g
   37902   s&\\\${datarootdir}&$datarootdir&g' ;;
   37903 esac
   37904 _ACEOF
   37905 
   37906 # Neutralize VPATH when `$srcdir' = `.'.
   37907 # Shell code in configure.ac might set extrasub.
   37908 # FIXME: do we really want to maintain this feature?
   37909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   37910 ac_sed_extra="$ac_vpsub
   37911 $extrasub
   37912 _ACEOF
   37913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   37914 :t
   37915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   37916 s|@configure_input@|$ac_sed_conf_input|;t t
   37917 s&@top_builddir@&$ac_top_builddir_sub&;t t
   37918 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   37919 s&@srcdir@&$ac_srcdir&;t t
   37920 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   37921 s&@top_srcdir@&$ac_top_srcdir&;t t
   37922 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   37923 s&@builddir@&$ac_builddir&;t t
   37924 s&@abs_builddir@&$ac_abs_builddir&;t t
   37925 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   37926 s&@INSTALL@&$ac_INSTALL&;t t
   37927 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   37928 $ac_datarootdir_hack
   37929 "
   37930 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   37931   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   37932 
   37933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   37934   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   37935   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   37936       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   37937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   37938 which seems to be undefined.  Please make sure it is defined" >&5
   37939 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   37940 which seems to be undefined.  Please make sure it is defined" >&2;}
   37941 
   37942   rm -f "$ac_tmp/stdin"
   37943   case $ac_file in
   37944   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   37945   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   37946   esac \
   37947   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   37948  ;;
   37949   :H)
   37950   #
   37951   # CONFIG_HEADER
   37952   #
   37953   if test x"$ac_file" != x-; then
   37954     {
   37955       $as_echo "/* $configure_input  */" \
   37956       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   37957     } >"$ac_tmp/config.h" \
   37958       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   37959     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   37960       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   37961 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   37962     else
   37963       rm -f "$ac_file"
   37964       mv "$ac_tmp/config.h" "$ac_file" \
   37965 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   37966     fi
   37967   else
   37968     $as_echo "/* $configure_input  */" \
   37969       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   37970       || as_fn_error $? "could not create -" "$LINENO" 5
   37971   fi
   37972 # Compute "$ac_file"'s index in $config_headers.
   37973 _am_arg="$ac_file"
   37974 _am_stamp_count=1
   37975 for _am_header in $config_headers :; do
   37976   case $_am_header in
   37977     $_am_arg | $_am_arg:* )
   37978       break ;;
   37979     * )
   37980       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   37981   esac
   37982 done
   37983 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   37984 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   37985 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   37986 	 X"$_am_arg" : 'X\(//\)$' \| \
   37987 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   37988 $as_echo X"$_am_arg" |
   37989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   37990 	    s//\1/
   37991 	    q
   37992 	  }
   37993 	  /^X\(\/\/\)[^/].*/{
   37994 	    s//\1/
   37995 	    q
   37996 	  }
   37997 	  /^X\(\/\/\)$/{
   37998 	    s//\1/
   37999 	    q
   38000 	  }
   38001 	  /^X\(\/\).*/{
   38002 	    s//\1/
   38003 	    q
   38004 	  }
   38005 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   38006  ;;
   38007 
   38008   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   38009 $as_echo "$as_me: executing $ac_file commands" >&6;}
   38010  ;;
   38011   esac
   38012 
   38013 
   38014   case $ac_file$ac_mode in
   38015     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   38016   # Older Autoconf quotes --file arguments for eval, but not when files
   38017   # are listed without --file.  Let's play safe and only enable the eval
   38018   # if we detect the quoting.
   38019   case $CONFIG_FILES in
   38020   *\'*) eval set x "$CONFIG_FILES" ;;
   38021   *)   set x $CONFIG_FILES ;;
   38022   esac
   38023   shift
   38024   for mf
   38025   do
   38026     # Strip MF so we end up with the name of the file.
   38027     mf=`echo "$mf" | sed -e 's/:.*$//'`
   38028     # Check whether this is an Automake generated Makefile or not.
   38029     # We used to match only the files named 'Makefile.in', but
   38030     # some people rename them; so instead we look at the file content.
   38031     # Grep'ing the first line is not enough: some people post-process
   38032     # each Makefile.in and add a new line on top of each file to say so.
   38033     # Grep'ing the whole file is not good either: AIX grep has a line
   38034     # limit of 2048, but all sed's we know have understand at least 4000.
   38035     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   38036       dirpart=`$as_dirname -- "$mf" ||
   38037 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   38038 	 X"$mf" : 'X\(//\)[^/]' \| \
   38039 	 X"$mf" : 'X\(//\)$' \| \
   38040 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   38041 $as_echo X"$mf" |
   38042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   38043 	    s//\1/
   38044 	    q
   38045 	  }
   38046 	  /^X\(\/\/\)[^/].*/{
   38047 	    s//\1/
   38048 	    q
   38049 	  }
   38050 	  /^X\(\/\/\)$/{
   38051 	    s//\1/
   38052 	    q
   38053 	  }
   38054 	  /^X\(\/\).*/{
   38055 	    s//\1/
   38056 	    q
   38057 	  }
   38058 	  s/.*/./; q'`
   38059     else
   38060       continue
   38061     fi
   38062     # Extract the definition of DEPDIR, am__include, and am__quote
   38063     # from the Makefile without running 'make'.
   38064     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   38065     test -z "$DEPDIR" && continue
   38066     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   38067     test -z "$am__include" && continue
   38068     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   38069     # Find all dependency output files, they are included files with
   38070     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   38071     # simplest approach to changing $(DEPDIR) to its actual value in the
   38072     # expansion.
   38073     for file in `sed -n "
   38074       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   38075 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   38076       # Make sure the directory exists.
   38077       test -f "$dirpart/$file" && continue
   38078       fdir=`$as_dirname -- "$file" ||
   38079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   38080 	 X"$file" : 'X\(//\)[^/]' \| \
   38081 	 X"$file" : 'X\(//\)$' \| \
   38082 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   38083 $as_echo X"$file" |
   38084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   38085 	    s//\1/
   38086 	    q
   38087 	  }
   38088 	  /^X\(\/\/\)[^/].*/{
   38089 	    s//\1/
   38090 	    q
   38091 	  }
   38092 	  /^X\(\/\/\)$/{
   38093 	    s//\1/
   38094 	    q
   38095 	  }
   38096 	  /^X\(\/\).*/{
   38097 	    s//\1/
   38098 	    q
   38099 	  }
   38100 	  s/.*/./; q'`
   38101       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   38102       # echo "creating $dirpart/$file"
   38103       echo '# dummy' > "$dirpart/$file"
   38104     done
   38105   done
   38106 }
   38107  ;;
   38108     "default":C)
   38109 case x$CONFIG_HEADERS in
   38110 xconfig.h:config.in)
   38111 echo > stamp-h ;;
   38112 esac
   38113  ;;
   38114 
   38115   esac
   38116 done # for ac_tag
   38117 
   38118 
   38119 as_fn_exit 0
   38120 _ACEOF
   38121 ac_clean_files=$ac_clean_files_save
   38122 
   38123 test $ac_write_fail = 0 ||
   38124   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   38125 
   38126 
   38127 # configure is writing to config.log, and then calls config.status.
   38128 # config.status does its own redirection, appending to config.log.
   38129 # Unfortunately, on DOS this fails, as config.log is still kept open
   38130 # by configure, so config.status won't be able to write to it; its
   38131 # output is simply discarded.  So we exec the FD to /dev/null,
   38132 # effectively closing config.log, so it can be properly (re)opened and
   38133 # appended to by config.status.  When coming back to configure, we
   38134 # need to make the FD available again.
   38135 if test "$no_create" != yes; then
   38136   ac_cs_success=:
   38137   ac_config_status_args=
   38138   test "$silent" = yes &&
   38139     ac_config_status_args="$ac_config_status_args --quiet"
   38140   exec 5>/dev/null
   38141   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   38142   exec 5>>config.log
   38143   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   38144   # would make configure fail if this is the last instruction.
   38145   $ac_cs_success || as_fn_exit 1
   38146 fi
   38147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   38148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   38149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   38150 fi
   38151 
   38152 
   38153 exit 0
   38154