VirtualBox

Changeset 3613 in kBuild for trunk/src/sed/configure


Ignore:
Timestamp:
Sep 19, 2024 12:34:43 AM (8 months ago)
Author:
bird
Message:

src/sed: Merged in changes between 4.1.5 and 4.9 from the vendor branch. (svn merge /vendor/sed/4.1.5 /vendor/sed/current .)

Location:
trunk/src/sed
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed

  • trunk/src/sed/configure

    r599 r3613  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for sed 4.1.5.
     3# Generated by GNU Autoconf 2.72a.65-d081 for GNU sed 4.9.
    44#
    5 # Report bugs to <bonzini@gnu.org>.
     5# Report bugs to <bug-sed@gnu.org>.
    66#
    7 # Copyright (C) 2003 Free Software Foundation, Inc.
     7#
     8# Copyright (C) 1992-1996, 1998-2017, 2020-2022 Free Software Foundation,
     9# Inc.
     10#
     11#
    812# This configure script is free software; the Free Software Foundation
    913# gives unlimited permission to copy, distribute and modify it.
    10 ## --------------------- ##
    11 ## M4sh Initialization.  ##
    12 ## --------------------- ##
    13 
    14 # Be Bourne compatible
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     14## -------------------- ##
     15## M4sh Initialization. ##
     16## -------------------- ##
     17
     18# Be more Bourne compatible
     19DUALCASE=1; export DUALCASE # for MKS sh
     20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     21then :
    1622  emulate sh
    1723  NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    1925  # is contrary to our usage.  Disable this feature.
    2026  alias -g '${1+"$@"}'='"$@"'
    21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    22   set -o posix
    23 fi
    24 DUALCASE=1; export DUALCASE # for MKS sh
    25 
    26 # Support unset when possible.
    27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    28   as_unset=unset
    29 else
    30   as_unset=false
    31 fi
    32 
    33 
    34 # Work around bugs in pre-3.0 UWIN ksh.
    35 $as_unset ENV MAIL MAILPATH
     27  setopt NO_GLOB_SUBST
     28else case e in #(
     29  e) case `(set -o) 2>/dev/null` in #(
     30  *posix*) :
     31    set -o posix ;; #(
     32  *) :
     33     ;;
     34esac ;;
     35esac
     36fi
     37
     38
     39
     40# Reset variables that may have inherited troublesome values from
     41# the environment.
     42
     43# IFS needs to be set, to space, tab, and newline, in precisely that order.
     44# (If _AS_PATH_WALK were called with IFS unset, it would have the
     45# side effect of setting IFS to empty, thus disabling word splitting.)
     46# Quoting is to prevent editors from complaining about space-tab.
     47as_nl='
     48'
     49export as_nl
     50IFS=" ""        $as_nl"
     51
    3652PS1='$ '
    3753PS2='> '
    3854PS4='+ '
    3955
    40 # NLS nuisances.
    41 for as_var in \
    42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    44   LC_TELEPHONE LC_TIME
     56# Ensure predictable behavior from utilities with locale-dependent output.
     57LC_ALL=C
     58export LC_ALL
     59LANGUAGE=C
     60export LANGUAGE
     61
     62# We cannot yet rely on "unset" to work, but we need these variables
     63# to be unset--not just set to an empty or harmless value--now, to
     64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65# also avoids known problems related to "unset" and subshell syntax
     66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68do eval test \${$as_var+y} \
     69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70done
     71
     72# Ensure that fds 0, 1, and 2 are open.
     73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76
     77# The user is always right.
     78if ${PATH_SEPARATOR+false} :; then
     79  PATH_SEPARATOR=:
     80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82      PATH_SEPARATOR=';'
     83  }
     84fi
     85
     86
     87# Find who we are.  Look in the path if we contain no directory separator.
     88as_myself=
     89case $0 in #((
     90  *[\\/]* ) as_myself=$0 ;;
     91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92for as_dir in $PATH
    4593do
    46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    47     eval $as_var=C; export $as_var
     94  IFS=$as_save_IFS
     95  case $as_dir in #(((
     96    '') as_dir=./ ;;
     97    */) ;;
     98    *) as_dir=$as_dir/ ;;
     99  esac
     100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
     101  done
     102IFS=$as_save_IFS
     103
     104     ;;
     105esac
     106# We did not find ourselves, most probably we were run as 'sh COMMAND'
     107# in which case we are not to be found in the path.
     108if test "x$as_myself" = x; then
     109  as_myself=$0
     110fi
     111if test ! -f "$as_myself"; then
     112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     113  exit 1
     114fi
     115
     116
     117# Use a proper internal environment variable to ensure we don't fall
     118  # into an infinite loop, continuously re-executing ourselves.
     119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
     120    _as_can_reexec=no; export _as_can_reexec;
     121    # We cannot yet assume a decent shell, so we have to provide a
     122# neutralization value for shells without unset; and this also
     123# works around shells that cannot unset nonexistent variables.
     124# Preserve -v and -x to the replacement shell.
     125BASH_ENV=/dev/null
     126ENV=/dev/null
     127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     128case $- in # ((((
     129  *v*x* | *x*v* ) as_opts=-vx ;;
     130  *v* ) as_opts=-v ;;
     131  *x* ) as_opts=-x ;;
     132  * ) as_opts= ;;
     133esac
     134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     135# Admittedly, this is quite paranoid, since all the known shells bail
     136# out after a failed 'exec'.
     137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
     138exit 255
     139  fi
     140  # We don't want this to propagate to other subprocesses.
     141          { _as_can_reexec=; unset _as_can_reexec;}
     142if test "x$CONFIG_SHELL" = x; then
     143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     144then :
     145  emulate sh
     146  NULLCMD=:
     147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
     148  # is contrary to our usage.  Disable this feature.
     149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     150  setopt NO_GLOB_SUBST
     151else case e in #(
     152  e) case \`(set -o) 2>/dev/null\` in #(
     153  *posix*) :
     154    set -o posix ;; #(
     155  *) :
     156     ;;
     157esac ;;
     158esac
     159fi
     160"
     161  as_required="as_fn_return () { (exit \$1); }
     162as_fn_success () { as_fn_return 0; }
     163as_fn_failure () { as_fn_return 1; }
     164as_fn_ret_success () { return 0; }
     165as_fn_ret_failure () { return 1; }
     166
     167exitcode=0
     168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
     169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
     170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
     171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
     172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
     173then :
     174
     175else case e in #(
     176  e) exitcode=1; echo positional parameters were not saved. ;;
     177esac
     178fi
     179test x\$exitcode = x0 || exit 1
     180blah=\$(echo \$(echo blah))
     181test x\"\$blah\" = xblah || exit 1
     182test -x / || exit 1"
     183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
     184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     187test \$(( 1 + 1 )) = 2 || exit 1"
     188  if (eval "$as_required") 2>/dev/null
     189then :
     190  as_have_required=yes
     191else case e in #(
     192  e) as_have_required=no ;;
     193esac
     194fi
     195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
     196then :
     197
     198else case e in #(
     199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     200as_found=false
     201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     202do
     203  IFS=$as_save_IFS
     204  case $as_dir in #(((
     205    '') as_dir=./ ;;
     206    */) ;;
     207    *) as_dir=$as_dir/ ;;
     208  esac
     209  as_found=:
     210  case $as_dir in #(
     211         /*)
     212           for as_base in sh bash ksh sh5; do
     213             # Try only shells that exist, to save several forks.
     214             as_shell=$as_dir$as_base
     215             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     216                    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
     217then :
     218  CONFIG_SHELL=$as_shell as_have_required=yes
     219                   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
     220then :
     221  break 2
     222fi
     223fi
     224           done;;
     225       esac
     226  as_found=false
     227done
     228IFS=$as_save_IFS
     229if $as_found
     230then :
     231
     232else case e in #(
     233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
     234              as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
     235then :
     236  CONFIG_SHELL=$SHELL as_have_required=yes
     237fi ;;
     238esac
     239fi
     240
     241
     242      if test "x$CONFIG_SHELL" != x
     243then :
     244  export CONFIG_SHELL
     245             # We cannot yet assume a decent shell, so we have to provide a
     246# neutralization value for shells without unset; and this also
     247# works around shells that cannot unset nonexistent variables.
     248# Preserve -v and -x to the replacement shell.
     249BASH_ENV=/dev/null
     250ENV=/dev/null
     251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     252case $- in # ((((
     253  *v*x* | *x*v* ) as_opts=-vx ;;
     254  *v* ) as_opts=-v ;;
     255  *x* ) as_opts=-x ;;
     256  * ) as_opts= ;;
     257esac
     258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     259# Admittedly, this is quite paranoid, since all the known shells bail
     260# out after a failed 'exec'.
     261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
     262exit 255
     263fi
     264
     265    if test x$as_have_required = xno
     266then :
     267  printf "%s\n" "$0: This script requires a shell more modern than all"
     268  printf "%s\n" "$0: the shells that I found on your system."
     269  if test ${ZSH_VERSION+y} ; then
     270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
     271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    48272  else
    49     $as_unset $as_var
    50   fi
    51 done
    52 
    53 # Required to use basename.
    54 if expr a : '\(a\)' >/dev/null 2>&1; then
     273    printf "%s\n" "$0: Please tell [email protected] and [email protected]
     274$0: about your system, including any error possibly output
     275$0: before this message. Then install a modern shell, or
     276$0: manually run the script under such a shell if you do
     277$0: have one."
     278  fi
     279  exit 1
     280fi ;;
     281esac
     282fi
     283fi
     284SHELL=${CONFIG_SHELL-/bin/sh}
     285export SHELL
     286# Unset more variables known to interfere with behavior of common tools.
     287CLICOLOR_FORCE= GREP_OPTIONS=
     288unset CLICOLOR_FORCE GREP_OPTIONS
     289
     290## --------------------- ##
     291## M4sh Shell Functions. ##
     292## --------------------- ##
     293# as_fn_unset VAR
     294# ---------------
     295# Portably unset VAR.
     296as_fn_unset ()
     297{
     298  { eval $1=; unset $1;}
     299}
     300as_unset=as_fn_unset
     301
     302
     303# as_fn_set_status STATUS
     304# -----------------------
     305# Set $? to STATUS, without forking.
     306as_fn_set_status ()
     307{
     308  return $1
     309} # as_fn_set_status
     310
     311# as_fn_exit STATUS
     312# -----------------
     313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     314as_fn_exit ()
     315{
     316  set +e
     317  as_fn_set_status $1
     318  exit $1
     319} # as_fn_exit
     320
     321# as_fn_mkdir_p
     322# -------------
     323# Create "$as_dir" as a directory, including parents if necessary.
     324as_fn_mkdir_p ()
     325{
     326
     327  case $as_dir in #(
     328  -*) as_dir=./$as_dir;;
     329  esac
     330  test -d "$as_dir" || eval $as_mkdir_p || {
     331    as_dirs=
     332    while :; do
     333      case $as_dir in #(
     334      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     335      *) as_qdir=$as_dir;;
     336      esac
     337      as_dirs="'$as_qdir' $as_dirs"
     338      as_dir=`$as_dirname -- "$as_dir" ||
     339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     340         X"$as_dir" : 'X\(//\)[^/]' \| \
     341         X"$as_dir" : 'X\(//\)$' \| \
     342         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     343printf "%s\n" X"$as_dir" |
     344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     345            s//\1/
     346            q
     347          }
     348          /^X\(\/\/\)[^/].*/{
     349            s//\1/
     350            q
     351          }
     352          /^X\(\/\/\)$/{
     353            s//\1/
     354            q
     355          }
     356          /^X\(\/\).*/{
     357            s//\1/
     358            q
     359          }
     360          s/.*/./; q'`
     361      test -d "$as_dir" && break
     362    done
     363    test -z "$as_dirs" || eval "mkdir $as_dirs"
     364  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     365
     366
     367} # as_fn_mkdir_p
     368
     369# as_fn_executable_p FILE
     370# -----------------------
     371# Test if FILE is an executable regular file.
     372as_fn_executable_p ()
     373{
     374  test -f "$1" && test -x "$1"
     375} # as_fn_executable_p
     376# as_fn_append VAR VALUE
     377# ----------------------
     378# Append the text in VALUE to the end of the definition contained in VAR. Take
     379# advantage of any shell optimizations that allow amortized linear growth over
     380# repeated appends, instead of the typical quadratic growth present in naive
     381# implementations.
     382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
     383then :
     384  eval 'as_fn_append ()
     385  {
     386    eval $1+=\$2
     387  }'
     388else case e in #(
     389  e) as_fn_append ()
     390  {
     391    eval $1=\$$1\$2
     392  } ;;
     393esac
     394fi # as_fn_append
     395
     396# as_fn_arith ARG...
     397# ------------------
     398# Perform arithmetic evaluation on the ARGs, and store the result in the
     399# global $as_val. Take advantage of shells that can avoid forks. The arguments
     400# must be portable across $(()) and expr.
     401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
     402then :
     403  eval 'as_fn_arith ()
     404  {
     405    as_val=$(( $* ))
     406  }'
     407else case e in #(
     408  e) as_fn_arith ()
     409  {
     410    as_val=`expr "$@" || test $? -eq 1`
     411  } ;;
     412esac
     413fi # as_fn_arith
     414
     415
     416# as_fn_error STATUS ERROR [LINENO LOG_FD]
     417# ----------------------------------------
     418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     420# script with STATUS, using 1 if that was 0.
     421as_fn_error ()
     422{
     423  as_status=$1; test $as_status -eq 0 && as_status=1
     424  if test "$4"; then
     425    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     427  fi
     428  printf "%s\n" "$as_me: error: $2" >&2
     429  as_fn_exit $as_status
     430} # as_fn_error
     431
     432if expr a : '\(a\)' >/dev/null 2>&1 &&
     433   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    55434  as_expr=expr
    56435else
     
    58437fi
    59438
    60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    61440  as_basename=basename
    62441else
     
    64443fi
    65444
    66 
    67 # Name of the executable.
    68 as_me=`$as_basename "$0" ||
     445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     446  as_dirname=dirname
     447else
     448  as_dirname=false
     449fi
     450
     451as_me=`$as_basename -- "$0" ||
    69452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    70453         X"$0" : 'X\(//\)$' \| \
    71          X"$0" : 'X\(/\)$' \| \
    72          .     : '\(.\)' 2>/dev/null ||
    73 echo X/"$0" |
    74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    75           /^X\/\(\/\/\)$/{ s//\1/; q; }
    76           /^X\/\(\/\).*/{ s//\1/; q; }
    77           s/.*/./; q'`
    78 
    79 
    80 # PATH needs CR, and LINENO needs CR and PATH.
     454         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     455printf "%s\n" X/"$0" |
     456    sed '/^.*\/\([^/][^/]*\)\/*$/{
     457            s//\1/
     458            q
     459          }
     460          /^X\/\(\/\/\)$/{
     461            s//\1/
     462            q
     463          }
     464          /^X\/\(\/\).*/{
     465            s//\1/
     466            q
     467          }
     468          s/.*/./; q'`
     469
    81470# Avoid depending upon Character Ranges.
    82471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    86475as_cr_alnum=$as_cr_Letters$as_cr_digits
    87476
    88 # The user is always right.
    89 if test "${PATH_SEPARATOR+set}" != set; then
    90   echo "#! /bin/sh" >conf$$.sh
    91   echo  "exit 0"   >>conf$$.sh
    92   chmod +x conf$$.sh
    93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    94     PATH_SEPARATOR=';'
    95   else
    96     PATH_SEPARATOR=:
    97   fi
    98   rm -f conf$$.sh
    99 fi
    100 
    101 
    102   as_lineno_1=$LINENO
    103   as_lineno_2=$LINENO
    104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    105   test "x$as_lineno_1" != "x$as_lineno_2" &&
    106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    107   # Find who we are.  Look in the path if we contain no path at all
    108   # relative or not.
    109   case $0 in
    110     *[\\/]* ) as_myself=$0 ;;
    111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    112 for as_dir in $PATH
    113 do
    114   IFS=$as_save_IFS
    115   test -z "$as_dir" && as_dir=.
    116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    117 done
    118 
    119        ;;
    120   esac
    121   # We did not find ourselves, most probably we were run as `sh COMMAND'
    122   # in which case we are not to be found in the path.
    123   if test "x$as_myself" = x; then
    124     as_myself=$0
    125   fi
    126   if test ! -f "$as_myself"; then
    127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    128    { (exit 1); exit 1; }; }
    129   fi
    130   case $CONFIG_SHELL in
    131   '')
    132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    134 do
    135   IFS=$as_save_IFS
    136   test -z "$as_dir" && as_dir=.
    137   for as_base in sh bash ksh sh5; do
    138          case $as_dir in
    139          /*)
    140            if ("$as_dir/$as_base" -c '
    141   as_lineno_1=$LINENO
    142   as_lineno_2=$LINENO
    143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    144   test "x$as_lineno_1" != "x$as_lineno_2" &&
    145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    148              CONFIG_SHELL=$as_dir/$as_base
    149              export CONFIG_SHELL
    150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    151            fi;;
    152          esac
    153        done
    154 done
    155 ;;
    156   esac
    157 
    158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    159   # uniformly replaced by the line number.  The first 'sed' inserts a
    160   # line-number line before each line; the second 'sed' does the real
    161   # work.  The second script uses 'N' to pair each line-number line
    162   # with the numbered line, and appends trailing '-' during
    163   # substitution so that $LINENO is not a special case at line end.
    164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    166   sed '=' <$as_myself |
     477
     478  as_lineno_1=$LINENO as_lineno_1a=$LINENO
     479  as_lineno_2=$LINENO as_lineno_2a=$LINENO
     480  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
     481  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
     482  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     483  sed -n '
     484    p
     485    /[$]LINENO/=
     486  ' <$as_myself |
    167487    sed '
     488      t clear
     489      :clear
     490      s/[$]LINENO.*/&-/
     491      t lineno
     492      b
     493      :lineno
    168494      N
    169       s,$,-,
    170       : loop
    171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     495      :loop
     496      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    172497      t loop
    173       s,-$,,
    174       s,^['$as_cr_digits']*\n,,
     498      s/-\n.*//
    175499    ' >$as_me.lineno &&
    176   chmod +x $as_me.lineno ||
    177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    178    { (exit 1); exit 1; }; }
    179 
     500  chmod +x "$as_me.lineno" ||
     501    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
     502
     503  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     504  # already done that, so ensure we don't try to do so again and fall
     505  # in an infinite loop.  This has already happened in practice.
     506  _as_can_reexec=no; export _as_can_reexec
    180507  # Don't try to exec as it changes $[0], causing all sort of problems
    181508  # (the dirname of $[0] is not the place where we might find the
    182   # original and so on.  Autoconf is especially sensible to this).
    183   . ./$as_me.lineno
     509  # original and so on.  Autoconf is especially sensitive to this).
     510  . "./$as_me.lineno"
    184511  # Exit status is that of the last command.
    185512  exit
     
    187514
    188515
    189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    190   *c*,-n*) ECHO_N= ECHO_C='
    191 ' ECHO_T='      ' ;;
    192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    194 esac
    195 
    196 if expr a : '\(a\)' >/dev/null 2>&1; then
    197   as_expr=expr
     516# Determine whether it's possible to make 'echo' print without a newline.
     517# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
     518# for compatibility with existing Makefiles.
     519ECHO_C= ECHO_N= ECHO_T=
     520case `echo -n x` in #(((((
     521-n*)
     522  case `echo 'xy\c'` in
     523  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     524  xy)  ECHO_C='\c';;
     525  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     526       ECHO_T=' ';;
     527  esac;;
     528*)
     529  ECHO_N='-n';;
     530esac
     531
     532# For backward compatibility with old third-party macros, we provide
     533# the shell variables $as_echo and $as_echo_n.  New code should use
     534# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
     535as_echo='printf %s\n'
     536as_echo_n='printf %s'
     537
     538rm -f conf$$ conf$$.exe conf$$.file
     539if test -d conf$$.dir; then
     540  rm -f conf$$.dir/conf$$.file
    198541else
    199   as_expr=false
    200 fi
    201 
    202 rm -f conf$$ conf$$.exe conf$$.file
    203 echo >conf$$.file
    204 if ln -s conf$$.file conf$$ 2>/dev/null; then
    205   # We could just check for DJGPP; but this test a) works b) is more generic
    206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    207   if test -f conf$$.exe; then
    208     # Don't use ln at all; we don't have any links
    209     as_ln_s='cp -p'
     542  rm -f conf$$.dir
     543  mkdir conf$$.dir 2>/dev/null
     544fi
     545if (echo >conf$$.file) 2>/dev/null; then
     546  if ln -s conf$$.file conf$$ 2>/dev/null; then
     547    as_ln_s='ln -s'
     548    # ... but there are two gotchas:
     549    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
     550    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
     551    # In both cases, we have to default to 'cp -pR'.
     552    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     553      as_ln_s='cp -pR'
     554  elif ln conf$$.file conf$$ 2>/dev/null; then
     555    as_ln_s=ln
    210556  else
    211     as_ln_s='ln -s'
    212   fi
    213 elif ln conf$$.file conf$$ 2>/dev/null; then
    214   as_ln_s=ln
     557    as_ln_s='cp -pR'
     558  fi
    215559else
    216   as_ln_s='cp -p'
    217 fi
    218 rm -f conf$$ conf$$.exe conf$$.file
     560  as_ln_s='cp -pR'
     561fi
     562rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     563rmdir conf$$.dir 2>/dev/null
    219564
    220565if mkdir -p . 2>/dev/null; then
    221   as_mkdir_p=:
     566  as_mkdir_p='mkdir -p "$as_dir"'
    222567else
    223568  test -d ./-p && rmdir ./-p
     
    225570fi
    226571
    227 as_executable_p="test -f"
     572as_test_x='test -x'
     573as_executable_p=as_fn_executable_p
    228574
    229575# Sed expression to map a string onto a valid CPP name.
    230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     576as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     577as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
    231578
    232579# Sed expression to map a string onto a valid variable name.
    233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    234 
    235 
    236 # IFS
    237 # We need space, tab and new line, in precisely that order.
    238 as_nl='
    239 '
    240 IFS="   $as_nl"
    241 
    242 # CDPATH.
    243 $as_unset CDPATH
    244 
     580as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     581as_tr_sh="eval sed '$as_sed_sh'" # deprecated
     582
     583
     584test -n "$DJDIR" || exec 7<&0 </dev/null
     585exec 6>&1
    245586
    246587# Name of the host.
    247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     588# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    248589# so uname gets run too.
    249590ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    250 
    251 exec 6>&1
    252591
    253592#
     
    255594#
    256595ac_default_prefix=/usr/local
     596ac_clean_files=
    257597ac_config_libobj_dir=.
     598LIBOBJS=
    258599cross_compiling=no
    259600subdirs=
    260601MFLAGS=
    261602MAKEFLAGS=
    262 SHELL=${CONFIG_SHELL-/bin/sh}
    263 
    264 # Maximum number of lines to put in a shell here document.
    265 # This variable seems obsolete.  It should probably be removed, and
    266 # only ac_max_sed_lines should be used.
    267 : ${ac_max_here_lines=38}
    268603
    269604# Identity of this package.
    270 PACKAGE_NAME='sed'
     605PACKAGE_NAME='GNU sed'
    271606PACKAGE_TARNAME='sed'
    272 PACKAGE_VERSION='4.1.5'
    273 PACKAGE_STRING='sed 4.1.5'
    274 PACKAGE_BUGREPORT='[email protected]'
     607PACKAGE_VERSION='4.9'
     608PACKAGE_STRING='GNU sed 4.9'
     609PACKAGE_BUGREPORT='[email protected]'
     610PACKAGE_URL='https://www.gnu.org/software/sed/'
    275611
    276612ac_unique_file="sed/sed.c"
    277613# Factoring default headers for most tests.
    278614ac_includes_default="\
    279 #include <stdio.h>
    280 #if HAVE_SYS_TYPES_H
     615#include <stddef.h>
     616#ifdef HAVE_STDIO_H
     617# include <stdio.h>
     618#endif
     619#ifdef HAVE_STDLIB_H
     620# include <stdlib.h>
     621#endif
     622#ifdef HAVE_STRING_H
     623# include <string.h>
     624#endif
     625#ifdef HAVE_INTTYPES_H
     626# include <inttypes.h>
     627#endif
     628#ifdef HAVE_STDINT_H
     629# include <stdint.h>
     630#endif
     631#ifdef HAVE_STRINGS_H
     632# include <strings.h>
     633#endif
     634#ifdef HAVE_SYS_TYPES_H
    281635# include <sys/types.h>
    282636#endif
    283 #if HAVE_SYS_STAT_H
     637#ifdef HAVE_SYS_STAT_H
    284638# include <sys/stat.h>
    285639#endif
    286 #if STDC_HEADERS
    287 # include <stdlib.h>
    288 # include <stddef.h>
    289 #else
    290 # if HAVE_STDLIB_H
    291 #  include <stdlib.h>
    292 # endif
    293 #endif
    294 #if HAVE_STRING_H
    295 # if !STDC_HEADERS && HAVE_MEMORY_H
    296 #  include <memory.h>
    297 # endif
    298 # include <string.h>
    299 #endif
    300 #if HAVE_STRINGS_H
    301 # include <strings.h>
    302 #endif
    303 #if HAVE_INTTYPES_H
    304 # include <inttypes.h>
    305 #else
    306 # if HAVE_STDINT_H
    307 #  include <stdint.h>
    308 # endif
    309 #endif
    310 #if HAVE_UNISTD_H
     640#ifdef HAVE_UNISTD_H
    311641# include <unistd.h>
    312642#endif"
    313643
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SED_FEATURE_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP HAVE__BOOL ALLOCA LIBOBJS TEST_REGEX_TRUE TEST_REGEX_FALSE BUILD_HTML_TRUE BUILD_HTML_FALSE TEXI2HTML MAKEINFO_HTML_TRUE MAKEINFO_HTML_FALSE TEXI2HTML_HTML_TRUE TEXI2HTML_HTML_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
     644ac_header_c_list=
     645gl_use_threads_default=
     646gl_use_winpthreads_default=
     647ac_config_libobj_dir=lib
     648ac_func_c_list=
     649gt_needs=
     650ac_subst_vars='gltests_LIBOBJDEPS
     651gltests_LTLIBOBJS
     652gltests_LIBOBJS
     653gl_LIBOBJDEPS
     654gl_LTLIBOBJS
     655gl_LIBOBJS
     656CONFIG_INCLUDE
     657am__EXEEXT_FALSE
     658am__EXEEXT_TRUE
     659LTLIBOBJS
     660LIBOBJS
     661CROSS_COMPILING_FALSE
     662CROSS_COMPILING_TRUE
     663BOLD_MAN_REFS_FALSE
     664BOLD_MAN_REFS_TRUE
     665GNULIB_TEST_WARN_CFLAGS
     666WARN_CFLAGS
     667WERROR_CFLAGS
     668XFAIL_TESTS
     669TEST_SYMLINKS_FALSE
     670TEST_SYMLINKS_TRUE
     671POSUB
     672INTLLIBS
     673LTLIBICONV
     674LIBICONV
     675XGETTEXT_EXTRA_OPTIONS
     676MSGMERGE
     677XGETTEXT_015
     678XGETTEXT
     679GMSGFMT_015
     680MSGFMT_015
     681GMSGFMT
     682MSGFMT
     683GETTEXT_MACRO_VERSION
     684USE_NLS
     685HAVE_PERL_FALSE
     686HAVE_PERL_TRUE
     687LIBTESTS_LIBDEPS
     688LIBSED_LTLIBDEPS
     689LIBSED_LIBDEPS
     690GL_CFLAG_GNULIB_WARNINGS
     691GL_COND_OBJ_WINDOWS_TLS_FALSE
     692GL_COND_OBJ_WINDOWS_TLS_TRUE
     693GL_COND_OBJ_WINDOWS_THREAD_FALSE
     694GL_COND_OBJ_WINDOWS_THREAD_TRUE
     695abs_aux_dir
     696GL_COND_OBJ_UNSETENV_FALSE
     697GL_COND_OBJ_UNSETENV_TRUE
     698HAVE_SYS_UIO_H
     699NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
     700NEXT_SYS_UIO_H
     701NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
     702NEXT_SYS_IOCTL_H
     703HAVE_SYS_IOCTL_H
     704GL_COND_OBJ_SYMLINK_FALSE
     705GL_COND_OBJ_SYMLINK_TRUE
     706GL_COND_OBJ_STRDUP_FALSE
     707GL_COND_OBJ_STRDUP_TRUE
     708GL_COND_OBJ_SOCKET_FALSE
     709GL_COND_OBJ_SOCKET_TRUE
     710GL_COND_OBJ_SLEEP_FALSE
     711GL_COND_OBJ_SLEEP_TRUE
     712GL_COND_OBJ_SIGPROCMASK_FALSE
     713GL_COND_OBJ_SIGPROCMASK_TRUE
     714NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
     715NEXT_SIGNAL_H
     716GL_COND_OBJ_SETSOCKOPT_FALSE
     717GL_COND_OBJ_SETSOCKOPT_TRUE
     718GL_COND_OBJ_SETLOCALE_FALSE
     719GL_COND_OBJ_SETLOCALE_TRUE
     720LIB_SETLOCALE
     721GL_COND_OBJ_SETENV_FALSE
     722GL_COND_OBJ_SETENV_TRUE
     723GL_COND_OBJ_SELECT_FALSE
     724GL_COND_OBJ_SELECT_TRUE
     725LIB_SELECT
     726LIBSOCKET
     727GL_GNULIB_SCHED_YIELD
     728HAVE_SYS_CDEFS_H
     729HAVE_STRUCT_SCHED_PARAM
     730HAVE_SCHED_H
     731NEXT_AS_FIRST_DIRECTIVE_SCHED_H
     732NEXT_SCHED_H
     733REPLACE_SCHED_YIELD
     734HAVE_SCHED_YIELD
     735GL_COND_OBJ_READDIR_FALSE
     736GL_COND_OBJ_READDIR_TRUE
     737GL_COND_OBJ_RAISE_FALSE
     738GL_COND_OBJ_RAISE_TRUE
     739GL_COND_OBJ_PUTENV_FALSE
     740GL_COND_OBJ_PUTENV_TRUE
     741GL_GNULIB_SIGACTION
     742GL_GNULIB_SIGPROCMASK
     743GL_GNULIB_SIGNAL_H_SIGPIPE
     744GL_GNULIB_RAISE
     745GL_GNULIB_PTHREAD_SIGMASK
     746GL_COND_OBJ_PTHREAD_SIGMASK_FALSE
     747GL_COND_OBJ_PTHREAD_SIGMASK_TRUE
     748LIB_PTHREAD_SIGMASK
     749REPLACE_RAISE
     750REPLACE_PTHREAD_SIGMASK
     751HAVE_SIGHANDLER_T
     752HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
     753HAVE_STRUCT_SIGACTION_SA_SIGACTION
     754HAVE_SIGACTION
     755HAVE_SIGINFO_T
     756HAVE_SIGSET_T
     757HAVE_RAISE
     758HAVE_PTHREAD_SIGMASK
     759HAVE_POSIX_SIGNALBLOCKING
     760GL_COND_OBJ_PTHREAD_THREAD_FALSE
     761GL_COND_OBJ_PTHREAD_THREAD_TRUE
     762GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK
     763GL_GNULIB_PTHREAD_SPIN
     764GL_GNULIB_PTHREAD_TSS
     765GL_GNULIB_PTHREAD_COND
     766GL_GNULIB_PTHREAD_RWLOCK
     767GL_GNULIB_PTHREAD_MUTEX
     768GL_GNULIB_PTHREAD_ONCE
     769GL_GNULIB_PTHREAD_THREAD
     770LIB_PTHREAD
     771HAVE_PTHREAD_H
     772NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
     773NEXT_PTHREAD_H
     774REPLACE_PTHREAD_SPIN_DESTROY
     775REPLACE_PTHREAD_SPIN_UNLOCK
     776REPLACE_PTHREAD_SPIN_TRYLOCK
     777REPLACE_PTHREAD_SPIN_LOCK
     778REPLACE_PTHREAD_SPIN_INIT
     779REPLACE_PTHREAD_KEY_DELETE
     780REPLACE_PTHREAD_GETSPECIFIC
     781REPLACE_PTHREAD_SETSPECIFIC
     782REPLACE_PTHREAD_KEY_CREATE
     783REPLACE_PTHREAD_COND_DESTROY
     784REPLACE_PTHREAD_COND_BROADCAST
     785REPLACE_PTHREAD_COND_SIGNAL
     786REPLACE_PTHREAD_COND_TIMEDWAIT
     787REPLACE_PTHREAD_COND_WAIT
     788REPLACE_PTHREAD_CONDATTR_DESTROY
     789REPLACE_PTHREAD_CONDATTR_INIT
     790REPLACE_PTHREAD_COND_INIT
     791REPLACE_PTHREAD_RWLOCK_DESTROY
     792REPLACE_PTHREAD_RWLOCK_UNLOCK
     793REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK
     794REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK
     795REPLACE_PTHREAD_RWLOCK_TRYWRLOCK
     796REPLACE_PTHREAD_RWLOCK_TRYRDLOCK
     797REPLACE_PTHREAD_RWLOCK_WRLOCK
     798REPLACE_PTHREAD_RWLOCK_RDLOCK
     799REPLACE_PTHREAD_RWLOCKATTR_DESTROY
     800REPLACE_PTHREAD_RWLOCKATTR_INIT
     801REPLACE_PTHREAD_RWLOCK_INIT
     802REPLACE_PTHREAD_MUTEX_DESTROY
     803REPLACE_PTHREAD_MUTEX_UNLOCK
     804REPLACE_PTHREAD_MUTEX_TIMEDLOCK
     805REPLACE_PTHREAD_MUTEX_TRYLOCK
     806REPLACE_PTHREAD_MUTEX_LOCK
     807REPLACE_PTHREAD_MUTEXATTR_DESTROY
     808REPLACE_PTHREAD_MUTEXATTR_SETROBUST
     809REPLACE_PTHREAD_MUTEXATTR_GETROBUST
     810REPLACE_PTHREAD_MUTEXATTR_SETTYPE
     811REPLACE_PTHREAD_MUTEXATTR_GETTYPE
     812REPLACE_PTHREAD_MUTEXATTR_INIT
     813REPLACE_PTHREAD_MUTEX_INIT
     814REPLACE_PTHREAD_ONCE
     815REPLACE_PTHREAD_EXIT
     816REPLACE_PTHREAD_JOIN
     817REPLACE_PTHREAD_DETACH
     818REPLACE_PTHREAD_EQUAL
     819REPLACE_PTHREAD_SELF
     820REPLACE_PTHREAD_ATTR_DESTROY
     821REPLACE_PTHREAD_ATTR_SETDETACHSTATE
     822REPLACE_PTHREAD_ATTR_GETDETACHSTATE
     823REPLACE_PTHREAD_ATTR_INIT
     824REPLACE_PTHREAD_CREATE
     825HAVE_PTHREAD_SPIN_DESTROY
     826HAVE_PTHREAD_SPIN_UNLOCK
     827HAVE_PTHREAD_SPIN_TRYLOCK
     828HAVE_PTHREAD_SPIN_LOCK
     829HAVE_PTHREAD_SPIN_INIT
     830HAVE_PTHREAD_KEY_DELETE
     831HAVE_PTHREAD_GETSPECIFIC
     832HAVE_PTHREAD_SETSPECIFIC
     833HAVE_PTHREAD_KEY_CREATE
     834HAVE_PTHREAD_COND_DESTROY
     835HAVE_PTHREAD_COND_BROADCAST
     836HAVE_PTHREAD_COND_SIGNAL
     837HAVE_PTHREAD_COND_TIMEDWAIT
     838HAVE_PTHREAD_COND_WAIT
     839HAVE_PTHREAD_CONDATTR_DESTROY
     840HAVE_PTHREAD_CONDATTR_INIT
     841HAVE_PTHREAD_COND_INIT
     842HAVE_PTHREAD_RWLOCK_DESTROY
     843HAVE_PTHREAD_RWLOCK_UNLOCK
     844HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
     845HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK
     846HAVE_PTHREAD_RWLOCK_TRYWRLOCK
     847HAVE_PTHREAD_RWLOCK_TRYRDLOCK
     848HAVE_PTHREAD_RWLOCK_WRLOCK
     849HAVE_PTHREAD_RWLOCK_RDLOCK
     850HAVE_PTHREAD_RWLOCKATTR_DESTROY
     851HAVE_PTHREAD_RWLOCKATTR_INIT
     852HAVE_PTHREAD_RWLOCK_INIT
     853HAVE_PTHREAD_MUTEX_DESTROY
     854HAVE_PTHREAD_MUTEX_UNLOCK
     855HAVE_PTHREAD_MUTEX_TIMEDLOCK
     856HAVE_PTHREAD_MUTEX_TRYLOCK
     857HAVE_PTHREAD_MUTEX_LOCK
     858HAVE_PTHREAD_MUTEXATTR_DESTROY
     859HAVE_PTHREAD_MUTEXATTR_SETROBUST
     860HAVE_PTHREAD_MUTEXATTR_GETROBUST
     861HAVE_PTHREAD_MUTEXATTR_SETTYPE
     862HAVE_PTHREAD_MUTEXATTR_GETTYPE
     863HAVE_PTHREAD_MUTEXATTR_INIT
     864HAVE_PTHREAD_MUTEX_INIT
     865HAVE_PTHREAD_ONCE
     866HAVE_PTHREAD_EXIT
     867HAVE_PTHREAD_JOIN
     868HAVE_PTHREAD_DETACH
     869HAVE_PTHREAD_EQUAL
     870HAVE_PTHREAD_SELF
     871HAVE_PTHREAD_ATTR_DESTROY
     872HAVE_PTHREAD_ATTR_SETDETACHSTATE
     873HAVE_PTHREAD_ATTR_GETDETACHSTATE
     874HAVE_PTHREAD_ATTR_INIT
     875HAVE_PTHREAD_CREATE
     876HAVE_PTHREAD_PROCESS_SHARED
     877HAVE_PTHREAD_MUTEX_ROBUST
     878HAVE_PTHREAD_MUTEX_RECURSIVE
     879HAVE_PTHREAD_CREATE_DETACHED
     880HAVE_PTHREAD_SPINLOCK_T
     881HAVE_PTHREAD_T
     882GL_GNULIB_SELECT
     883GL_GNULIB_PSELECT
     884GL_COND_OBJ_PSELECT_FALSE
     885GL_COND_OBJ_PSELECT_TRUE
     886HAVE_SYS_SELECT_H
     887NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
     888NEXT_SYS_SELECT_H
     889REPLACE_SELECT
     890REPLACE_PSELECT
     891HAVE_PSELECT
     892GL_COND_OBJ_PIPE_FALSE
     893GL_COND_OBJ_PIPE_TRUE
     894GL_COND_OBJ_PERROR_FALSE
     895GL_COND_OBJ_PERROR_TRUE
     896GL_COND_OBJ_OPENDIR_FALSE
     897GL_COND_OBJ_OPENDIR_TRUE
     898GL_GENERATE_NETINET_IN_H_FALSE
     899GL_GENERATE_NETINET_IN_H_TRUE
     900NETINET_IN_H
     901HAVE_NETINET_IN_H
     902NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
     903NEXT_NETINET_IN_H
     904GL_COND_OBJ_NANOSLEEP_FALSE
     905GL_COND_OBJ_NANOSLEEP_TRUE
     906LIB_NANOSLEEP
     907GL_COND_OBJ_LSEEK_FALSE
     908GL_COND_OBJ_LSEEK_TRUE
     909INTL_MACOSX_LIBS
     910GL_COND_OBJ_LISTEN_FALSE
     911GL_COND_OBJ_LISTEN_TRUE
     912GL_COND_OBJ_LINK_FALSE
     913GL_COND_OBJ_LINK_TRUE
     914GL_COND_OBJ_ISBLANK_FALSE
     915GL_COND_OBJ_ISBLANK_TRUE
     916GL_GNULIB_IOCTL
     917GL_COND_OBJ_IOCTL_FALSE
     918GL_COND_OBJ_IOCTL_TRUE
     919GL_COND_OBJ_INET_PTON_FALSE
     920GL_COND_OBJ_INET_PTON_TRUE
     921INET_PTON_LIB
     922GL_GNULIB_GETTIMEOFDAY
     923GL_COND_OBJ_GETTIMEOFDAY_FALSE
     924GL_COND_OBJ_GETTIMEOFDAY_TRUE
     925NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
     926NEXT_SYS_TIME_H
     927REPLACE_STRUCT_TIMEVAL
     928REPLACE_GETTIMEOFDAY
     929HAVE_SYS_TIME_H
     930HAVE_STRUCT_TIMEVAL
     931HAVE_GETTIMEOFDAY
     932GL_COND_OBJ_GETPAGESIZE_FALSE
     933GL_COND_OBJ_GETPAGESIZE_TRUE
     934GL_COND_OBJ_GETCWD_LGPL_FALSE
     935GL_COND_OBJ_GETCWD_LGPL_TRUE
     936GL_COND_OBJ_FTRUNCATE_FALSE
     937GL_COND_OBJ_FTRUNCATE_TRUE
     938GL_COND_OBJ_FTELLO_FALSE
     939GL_COND_OBJ_FTELLO_TRUE
     940GL_COND_OBJ_FTELL_FALSE
     941GL_COND_OBJ_FTELL_TRUE
     942GL_COND_OBJ_FSEEKO_FALSE
     943GL_COND_OBJ_FSEEKO_TRUE
     944GL_COND_OBJ_FSEEK_FALSE
     945GL_COND_OBJ_FSEEK_TRUE
     946GL_COND_OBJ_FPURGE_FALSE
     947GL_COND_OBJ_FPURGE_TRUE
     948LIB_HAS_ACL
     949GL_COND_OBJ_FFLUSH_FALSE
     950GL_COND_OBJ_FFLUSH_TRUE
     951GL_COND_OBJ_FDOPEN_FALSE
     952GL_COND_OBJ_FDOPEN_TRUE
     953GL_COND_OBJ_EXPLICIT_BZERO_FALSE
     954GL_COND_OBJ_EXPLICIT_BZERO_TRUE
     955GL_COND_OBJ_DIRFD_FALSE
     956GL_COND_OBJ_DIRFD_TRUE
     957HAVE_DIRENT_H
     958NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
     959NEXT_DIRENT_H
     960GL_COND_OBJ_CONNECT_FALSE
     961GL_COND_OBJ_CONNECT_TRUE
     962GL_GNULIB_ALPHASORT
     963GL_GNULIB_SCANDIR
     964GL_GNULIB_FDOPENDIR
     965GL_GNULIB_DIRFD
     966GL_GNULIB_CLOSEDIR
     967GL_GNULIB_REWINDDIR
     968GL_GNULIB_READDIR
     969GL_GNULIB_OPENDIR
     970GL_COND_OBJ_CLOSEDIR_FALSE
     971GL_COND_OBJ_CLOSEDIR_TRUE
     972REPLACE_FDOPENDIR
     973REPLACE_DIRFD
     974REPLACE_CLOSEDIR
     975REPLACE_OPENDIR
     976HAVE_ALPHASORT
     977HAVE_SCANDIR
     978HAVE_FDOPENDIR
     979HAVE_DECL_FDOPENDIR
     980HAVE_DECL_DIRFD
     981HAVE_CLOSEDIR
     982HAVE_REWINDDIR
     983HAVE_READDIR
     984HAVE_OPENDIR
     985LOCALE_TR_UTF8
     986GL_COND_OBJ_BIND_FALSE
     987GL_COND_OBJ_BIND_TRUE
     988GL_GNULIB_INET_PTON
     989GL_GNULIB_INET_NTOP
     990NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
     991NEXT_ARPA_INET_H
     992HAVE_ARPA_INET_H
     993REPLACE_INET_PTON
     994REPLACE_INET_NTOP
     995HAVE_DECL_INET_PTON
     996HAVE_DECL_INET_NTOP
     997GL_GNULIB_ACCEPT4
     998GL_GNULIB_SHUTDOWN
     999GL_GNULIB_SETSOCKOPT
     1000GL_GNULIB_SENDTO
     1001GL_GNULIB_RECVFROM
     1002GL_GNULIB_SEND
     1003GL_GNULIB_RECV
     1004GL_GNULIB_LISTEN
     1005GL_GNULIB_GETSOCKOPT
     1006GL_GNULIB_GETSOCKNAME
     1007GL_GNULIB_GETPEERNAME
     1008GL_GNULIB_BIND
     1009GL_GNULIB_ACCEPT
     1010GL_GNULIB_CONNECT
     1011GL_GNULIB_SOCKET
     1012GL_COND_OBJ_ACCEPT_FALSE
     1013GL_COND_OBJ_ACCEPT_TRUE
     1014HAVE_WS2TCPIP_H
     1015HAVE_SYS_SOCKET_H
     1016NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
     1017NEXT_SYS_SOCKET_H
     1018HAVE_ACCEPT4
     1019HAVE_SA_FAMILY_T
     1020HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
     1021HAVE_STRUCT_SOCKADDR_STORAGE
     1022gltests_WITNESS
     1023GL_CXXFLAG_ALLOW_WARNINGS
     1024GL_CFLAG_ALLOW_WARNINGS
     1025GL_COND_OBJ_WINDOWS_RWLOCK_FALSE
     1026GL_COND_OBJ_WINDOWS_RWLOCK_TRUE
     1027GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE
     1028GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE
     1029GL_COND_OBJ_WINDOWS_ONCE_FALSE
     1030GL_COND_OBJ_WINDOWS_ONCE_TRUE
     1031GL_COND_OBJ_WINDOWS_MUTEX_FALSE
     1032GL_COND_OBJ_WINDOWS_MUTEX_TRUE
     1033GL_GNULIB_TOWCTRANS
     1034GL_GNULIB_WCTRANS
     1035GL_GNULIB_ISWCTYPE
     1036GL_GNULIB_WCTYPE
     1037GL_GNULIB_ISWXDIGIT
     1038GL_GNULIB_ISWDIGIT
     1039GL_GNULIB_ISWBLANK
     1040REPLACE_TOWLOWER
     1041REPLACE_ISWCNTRL
     1042HAVE_WCTYPE_H
     1043NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
     1044NEXT_WCTYPE_H
     1045HAVE_ISWCNTRL
     1046REPLACE_ISWXDIGIT
     1047REPLACE_ISWDIGIT
     1048REPLACE_ISWBLANK
     1049HAVE_WCTRANS_T
     1050HAVE_WCTYPE_T
     1051HAVE_ISWBLANK
     1052GL_COND_OBJ_WCTOMB_FALSE
     1053GL_COND_OBJ_WCTOMB_TRUE
     1054GL_COND_OBJ_WCTOB_FALSE
     1055GL_COND_OBJ_WCTOB_TRUE
     1056GL_COND_OBJ_WCRTOMB_FALSE
     1057GL_COND_OBJ_WCRTOMB_TRUE
     1058HAVE_CRTDEFS_H
     1059HAVE_WINT_T
     1060HAVE_FEATURES_H
     1061NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
     1062NEXT_WCHAR_H
     1063HAVE_UNISTD_H
     1064NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
     1065NEXT_UNISTD_H
     1066GL_GNULIB_MDA_TZSET
     1067GL_GNULIB_TZSET
     1068GL_GNULIB_TIME_RZ
     1069GL_GNULIB_TIME_R
     1070GL_GNULIB_TIMESPEC_GETRES
     1071GL_GNULIB_TIMESPEC_GET
     1072GL_GNULIB_TIMEGM
     1073GL_GNULIB_STRPTIME
     1074GL_GNULIB_STRFTIME
     1075GL_GNULIB_NANOSLEEP
     1076GL_GNULIB_LOCALTIME
     1077GL_GNULIB_MKTIME
     1078GL_GNULIB_CTIME
     1079TIME_H_DEFINES_TIME_UTC
     1080UNISTD_H_DEFINES_STRUCT_TIMESPEC
     1081PTHREAD_H_DEFINES_STRUCT_TIMESPEC
     1082SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
     1083TIME_H_DEFINES_STRUCT_TIMESPEC
     1084NEXT_AS_FIRST_DIRECTIVE_TIME_H
     1085NEXT_TIME_H
     1086REPLACE_LOCALTIME
     1087REPLACE_GMTIME
     1088GNULIB_GETTIMEOFDAY
     1089REPLACE_TZSET
     1090REPLACE_TIMEGM
     1091REPLACE_STRFTIME
     1092REPLACE_NANOSLEEP
     1093REPLACE_MKTIME
     1094REPLACE_LOCALTIME_R
     1095REPLACE_CTIME
     1096HAVE_TIMEZONE_T
     1097HAVE_TIMESPEC_GETRES
     1098HAVE_TIMESPEC_GET
     1099HAVE_TIMEGM
     1100HAVE_STRPTIME
     1101HAVE_NANOSLEEP
     1102HAVE_DECL_LOCALTIME_R
     1103WINDOWS_STAT_INODES
     1104WINDOWS_64_BIT_OFF_T
     1105NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
     1106NEXT_SYS_TYPES_H
     1107HAVE_SYS_RANDOM_H
     1108NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
     1109NEXT_SYS_RANDOM_H
     1110GL_COND_OBJ_STRVERSCMP_FALSE
     1111GL_COND_OBJ_STRVERSCMP_TRUE
     1112NEXT_AS_FIRST_DIRECTIVE_STRING_H
     1113NEXT_STRING_H
     1114GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
     1115GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
     1116GL_COND_OBJ_STRERROR_FALSE
     1117GL_COND_OBJ_STRERROR_TRUE
     1118NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
     1119NEXT_STDLIB_H
     1120GL_COND_OBJ_STDIO_WRITE_FALSE
     1121GL_COND_OBJ_STDIO_WRITE_TRUE
     1122GL_COND_OBJ_STDIO_READ_FALSE
     1123GL_COND_OBJ_STDIO_READ_TRUE
     1124NEXT_AS_FIRST_DIRECTIVE_STDIO_H
     1125NEXT_STDIO_H
     1126GL_GENERATE_STDINT_H_FALSE
     1127GL_GENERATE_STDINT_H_TRUE
     1128STDINT_H
     1129GL_GENERATE_STDDEF_H_FALSE
     1130GL_GENERATE_STDDEF_H_TRUE
     1131STDDEF_H
     1132GL_GENERATE_STDCKDINT_H_FALSE
     1133GL_GENERATE_STDCKDINT_H_TRUE
     1134STDCKDINT_H
     1135GL_GENERATE_STDARG_H_FALSE
     1136GL_GENERATE_STDARG_H_TRUE
     1137STDARG_H
     1138NEXT_AS_FIRST_DIRECTIVE_STDARG_H
     1139NEXT_STDARG_H
     1140GL_GENERATE_STDALIGN_H_FALSE
     1141GL_GENERATE_STDALIGN_H_TRUE
     1142STDALIGN_H
     1143GL_COND_OBJ_STAT_FALSE
     1144GL_COND_OBJ_STAT_TRUE
     1145GL_COND_OBJ_SETLOCALE_LOCK_FALSE
     1146GL_COND_OBJ_SETLOCALE_LOCK_TRUE
     1147GL_COND_OBJ_GETFILECON_FALSE
     1148GL_COND_OBJ_GETFILECON_TRUE
     1149GL_GENERATE_SELINUX_LABEL_H_FALSE
     1150GL_GENERATE_SELINUX_LABEL_H_TRUE
     1151SELINUX_LABEL_H
     1152GL_GENERATE_SELINUX_CONTEXT_H_FALSE
     1153GL_GENERATE_SELINUX_CONTEXT_H_TRUE
     1154SELINUX_CONTEXT_H
     1155NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H
     1156NEXT_SELINUX_SELINUX_H
     1157LIB_SELINUX
     1158GL_COND_OBJ_RMDIR_FALSE
     1159GL_COND_OBJ_RMDIR_TRUE
     1160GL_COND_OBJ_RENAME_FALSE
     1161GL_COND_OBJ_RENAME_TRUE
     1162GL_COND_OBJ_REGEX_FALSE
     1163GL_COND_OBJ_REGEX_TRUE
     1164GL_COND_OBJ_REALLOCARRAY_FALSE
     1165GL_COND_OBJ_REALLOCARRAY_TRUE
     1166GL_COND_OBJ_READLINK_FALSE
     1167GL_COND_OBJ_READLINK_TRUE
     1168GL_COND_OBJ_RAWMEMCHR_FALSE
     1169GL_COND_OBJ_RAWMEMCHR_TRUE
     1170PERL
     1171GL_COND_OBJ_OPEN_FALSE
     1172GL_COND_OBJ_OPEN_TRUE
     1173GL_COND_OBJ_OBSTACK_FALSE
     1174GL_COND_OBJ_OBSTACK_TRUE
     1175GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE
     1176GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE
     1177GL_COND_OBJ_NL_LANGINFO_FALSE
     1178GL_COND_OBJ_NL_LANGINFO_TRUE
     1179LIB_NL_LANGINFO
     1180GL_COND_OBJ_MSVC_NOTHROW_FALSE
     1181GL_COND_OBJ_MSVC_NOTHROW_TRUE
     1182GL_COND_OBJ_MSVC_INVAL_FALSE
     1183GL_COND_OBJ_MSVC_INVAL_TRUE
     1184GL_COND_OBJ_MKOSTEMP_FALSE
     1185GL_COND_OBJ_MKOSTEMP_TRUE
     1186GL_COND_OBJ_MKDIR_FALSE
     1187GL_COND_OBJ_MKDIR_TRUE
     1188GL_COND_OBJ_MEMRCHR_FALSE
     1189GL_COND_OBJ_MEMRCHR_TRUE
     1190GL_COND_OBJ_MEMPCPY_FALSE
     1191GL_COND_OBJ_MEMPCPY_TRUE
     1192GL_GNULIB_MDA_STRDUP
     1193GL_GNULIB_MDA_MEMCCPY
     1194GL_GNULIB_STRVERSCMP
     1195GL_GNULIB_STRSIGNAL
     1196GL_GNULIB_SIGDESCR_NP
     1197GL_GNULIB_SIGABBREV_NP
     1198GL_GNULIB_STRERRORNAME_NP
     1199GL_GNULIB_STRERROR_R
     1200GL_GNULIB_STRERROR
     1201GL_GNULIB_MBSTOK_R
     1202GL_GNULIB_MBSSEP
     1203GL_GNULIB_MBSSPN
     1204GL_GNULIB_MBSPBRK
     1205GL_GNULIB_MBSCSPN
     1206GL_GNULIB_MBSCASESTR
     1207GL_GNULIB_MBSPCASECMP
     1208GL_GNULIB_MBSNCASECMP
     1209GL_GNULIB_MBSCASECMP
     1210GL_GNULIB_MBSSTR
     1211GL_GNULIB_MBSRCHR
     1212GL_GNULIB_MBSCHR
     1213GL_GNULIB_MBSNLEN
     1214GL_GNULIB_MBSLEN
     1215GL_GNULIB_STRTOK_R
     1216GL_GNULIB_STRCASESTR
     1217GL_GNULIB_STRSTR
     1218GL_GNULIB_STRSEP
     1219GL_GNULIB_STRPBRK
     1220GL_GNULIB_STRNLEN
     1221GL_GNULIB_STRNDUP
     1222GL_GNULIB_STRNCAT
     1223GL_GNULIB_STRDUP
     1224GL_GNULIB_STRCHRNUL
     1225GL_GNULIB_STPNCPY
     1226GL_GNULIB_STPCPY
     1227GL_GNULIB_RAWMEMCHR
     1228GL_GNULIB_MEMRCHR
     1229GL_GNULIB_MEMPCPY
     1230GL_GNULIB_MEMMEM
     1231GL_GNULIB_MEMCHR
     1232GL_GNULIB_FFSLL
     1233GL_GNULIB_FFSL
     1234GL_GNULIB_EXPLICIT_BZERO
     1235GL_COND_OBJ_MEMCHR_FALSE
     1236GL_COND_OBJ_MEMCHR_TRUE
     1237UNDEFINE_STRTOK_R
     1238REPLACE_STRSIGNAL
     1239REPLACE_STRERRORNAME_NP
     1240REPLACE_STRERROR_R
     1241REPLACE_STRERROR
     1242REPLACE_STRTOK_R
     1243REPLACE_STRCASESTR
     1244REPLACE_STRSTR
     1245REPLACE_STRNLEN
     1246REPLACE_STRNDUP
     1247REPLACE_STRNCAT
     1248REPLACE_STRDUP
     1249REPLACE_STRCHRNUL
     1250REPLACE_STPNCPY
     1251REPLACE_MEMMEM
     1252REPLACE_MEMCHR
     1253REPLACE_FFSLL
     1254HAVE_STRVERSCMP
     1255HAVE_DECL_STRSIGNAL
     1256HAVE_SIGDESCR_NP
     1257HAVE_SIGABBREV_NP
     1258HAVE_STRERRORNAME_NP
     1259HAVE_DECL_STRERROR_R
     1260HAVE_DECL_STRTOK_R
     1261HAVE_STRCASESTR
     1262HAVE_STRSEP
     1263HAVE_STRPBRK
     1264HAVE_DECL_STRNLEN
     1265HAVE_DECL_STRNDUP
     1266HAVE_DECL_STRDUP
     1267HAVE_STRCHRNUL
     1268HAVE_STPNCPY
     1269HAVE_STPCPY
     1270HAVE_RAWMEMCHR
     1271HAVE_DECL_MEMRCHR
     1272HAVE_MEMPCPY
     1273HAVE_DECL_MEMMEM
     1274HAVE_FFSLL
     1275HAVE_FFSL
     1276HAVE_EXPLICIT_BZERO
     1277HAVE_MBSLEN
     1278GL_COND_OBJ_MBTOWC_FALSE
     1279GL_COND_OBJ_MBTOWC_TRUE
     1280GL_COND_OBJ_MBSINIT_FALSE
     1281GL_COND_OBJ_MBSINIT_TRUE
     1282HAVE_VISIBILITY
     1283CFLAG_VISIBILITY
     1284GL_COND_OBJ_MBRTOWC_FALSE
     1285GL_COND_OBJ_MBRTOWC_TRUE
     1286GL_COND_OBJ_MBRLEN_FALSE
     1287GL_COND_OBJ_MBRLEN_TRUE
     1288LIB_MBRTOWC
     1289LOCALE_ZH_CN
     1290LOCALE_FR_UTF8
     1291LOCALE_JA
     1292GREP
     1293SED
     1294GL_COND_OBJ_LSTAT_FALSE
     1295GL_COND_OBJ_LSTAT_TRUE
     1296LTLIBMULTITHREAD
     1297LIBMULTITHREAD
     1298LTLIBTHREAD
     1299LIBTHREAD
     1300LIBSTDTHREAD
     1301GL_COND_OBJ_LOCALECONV_FALSE
     1302GL_COND_OBJ_LOCALECONV_TRUE
     1303GL_GNULIB_LOCALENAME
     1304GL_GNULIB_DUPLOCALE
     1305GL_GNULIB_SETLOCALE_NULL
     1306GL_GNULIB_SETLOCALE
     1307GL_GNULIB_LOCALECONV
     1308NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
     1309NEXT_LOCALE_H
     1310HAVE_XLOCALE_H
     1311NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
     1312NEXT_STDDEF_H
     1313HAVE_WCHAR_T
     1314HAVE_MAX_ALIGN_T
     1315REPLACE_NULL
     1316LOCALENAME_ENHANCE_LOCALE_FUNCS
     1317REPLACE_STRUCT_LCONV
     1318REPLACE_FREELOCALE
     1319REPLACE_DUPLOCALE
     1320REPLACE_NEWLOCALE
     1321REPLACE_SETLOCALE
     1322REPLACE_LOCALECONV
     1323HAVE_FREELOCALE
     1324HAVE_DUPLOCALE
     1325HAVE_NEWLOCALE
     1326LOCALCHARSET_TESTS_ENVIRONMENT
     1327GL_GENERATE_LIMITS_H_FALSE
     1328GL_GENERATE_LIMITS_H_TRUE
     1329LIMITS_H
     1330GL_GNULIB_NL_LANGINFO
     1331HAVE_LANGINFO_YESEXPR
     1332HAVE_LANGINFO_ERA
     1333HAVE_LANGINFO_ALTMON
     1334HAVE_LANGINFO_T_FMT_AMPM
     1335HAVE_LANGINFO_CODESET
     1336HAVE_LANGINFO_H
     1337NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
     1338NEXT_LANGINFO_H
     1339REPLACE_NL_LANGINFO
     1340HAVE_NL_LANGINFO
     1341GL_GNULIB_STRTOUMAX
     1342GL_GNULIB_STRTOIMAX
     1343GL_GNULIB_IMAXDIV
     1344GL_GNULIB_IMAXABS
     1345NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
     1346NEXT_INTTYPES_H
     1347UINT64_MAX_EQ_ULONG_MAX
     1348UINT32_MAX_LT_UINTMAX_MAX
     1349PRIPTR_PREFIX
     1350INT64_MAX_EQ_LONG_MAX
     1351INT32_MAX_LT_INTMAX_MAX
     1352REPLACE_STRTOUMAX
     1353REPLACE_STRTOIMAX
     1354HAVE_IMAXDIV_T
     1355HAVE_DECL_STRTOUMAX
     1356HAVE_DECL_STRTOIMAX
     1357HAVE_DECL_IMAXDIV
     1358HAVE_DECL_IMAXABS
     1359HAVE_SYS_INTTYPES_H
     1360HAVE_SYS_BITYPES_H
     1361HAVE_C99_STDINT_H
     1362WINT_T_SUFFIX
     1363WCHAR_T_SUFFIX
     1364SIG_ATOMIC_T_SUFFIX
     1365SIZE_T_SUFFIX
     1366PTRDIFF_T_SUFFIX
     1367HAVE_SIGNED_WINT_T
     1368HAVE_SIGNED_WCHAR_T
     1369HAVE_SIGNED_SIG_ATOMIC_T
     1370BITSIZEOF_WINT_T
     1371BITSIZEOF_WCHAR_T
     1372BITSIZEOF_SIG_ATOMIC_T
     1373BITSIZEOF_SIZE_T
     1374BITSIZEOF_PTRDIFF_T
     1375APPLE_UNIVERSAL_BUILD
     1376HAVE_STDINT_H
     1377NEXT_AS_FIRST_DIRECTIVE_STDINT_H
     1378NEXT_STDINT_H
     1379HAVE_SYS_TYPES_H
     1380HAVE_INTTYPES_H
     1381HAVE_WCHAR_H
     1382GNULIBHEADERS_OVERRIDE_WINT_T
     1383NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
     1384NEXT_LIMITS_H
     1385LIB_HARD_LOCALE
     1386LIB_SETLOCALE_NULL
     1387LIB_SCHED_YIELD
     1388LIBPMULTITHREAD
     1389LIBPTHREAD
     1390LTLIBINTL
     1391LIBINTL
     1392GL_GNULIB_GETRANDOM
     1393GL_COND_OBJ_GETRANDOM_FALSE
     1394GL_COND_OBJ_GETRANDOM_TRUE
     1395LIB_GETRANDOM
     1396REPLACE_GETRANDOM
     1397HAVE_GETRANDOM
     1398GL_COND_OBJ_GETDTABLESIZE_FALSE
     1399GL_COND_OBJ_GETDTABLESIZE_TRUE
     1400GL_GNULIB_MDA_TEMPNAM
     1401GL_GNULIB_MDA_PUTW
     1402GL_GNULIB_MDA_GETW
     1403GL_GNULIB_MDA_FILENO
     1404GL_GNULIB_MDA_FDOPEN
     1405GL_GNULIB_MDA_FCLOSEALL
     1406GL_GNULIB_VSPRINTF_POSIX
     1407GL_GNULIB_VSNPRINTF
     1408GL_GNULIB_VPRINTF_POSIX
     1409GL_GNULIB_VPRINTF
     1410GL_GNULIB_VFPRINTF_POSIX
     1411GL_GNULIB_VFPRINTF
     1412GL_GNULIB_VDPRINTF
     1413GL_GNULIB_VSCANF
     1414GL_GNULIB_VFSCANF
     1415GL_GNULIB_VASPRINTF
     1416GL_GNULIB_TMPFILE
     1417GL_GNULIB_STDIO_H_SIGPIPE
     1418GL_GNULIB_STDIO_H_NONBLOCKING
     1419GL_GNULIB_SPRINTF_POSIX
     1420GL_GNULIB_SNPRINTF
     1421GL_GNULIB_SCANF
     1422GL_GNULIB_RENAMEAT
     1423GL_GNULIB_RENAME
     1424GL_GNULIB_REMOVE
     1425GL_GNULIB_PUTS
     1426GL_GNULIB_PUTCHAR
     1427GL_GNULIB_PUTC
     1428GL_GNULIB_PRINTF_POSIX
     1429GL_GNULIB_PRINTF
     1430GL_GNULIB_POPEN
     1431GL_GNULIB_PERROR
     1432GL_GNULIB_PCLOSE
     1433GL_GNULIB_OBSTACK_PRINTF_POSIX
     1434GL_GNULIB_OBSTACK_PRINTF
     1435GL_GNULIB_GETLINE
     1436GL_GNULIB_GETDELIM
     1437GL_GNULIB_GETCHAR
     1438GL_GNULIB_GETC
     1439GL_GNULIB_FWRITE
     1440GL_GNULIB_FTELLO
     1441GL_GNULIB_FTELL
     1442GL_GNULIB_FSEEKO
     1443GL_GNULIB_FSEEK
     1444GL_GNULIB_FSCANF
     1445GL_GNULIB_FREOPEN
     1446GL_GNULIB_FREAD
     1447GL_GNULIB_FPUTS
     1448GL_GNULIB_FPUTC
     1449GL_GNULIB_FPURGE
     1450GL_GNULIB_FPRINTF_POSIX
     1451GL_GNULIB_FPRINTF
     1452GL_GNULIB_FOPEN_GNU
     1453GL_GNULIB_FOPEN
     1454GL_GNULIB_FGETS
     1455GL_GNULIB_FGETC
     1456GL_GNULIB_FFLUSH
     1457GL_GNULIB_FDOPEN
     1458GL_GNULIB_FCLOSE
     1459GL_GNULIB_DPRINTF
     1460GL_COND_OBJ_GETDELIM_FALSE
     1461GL_COND_OBJ_GETDELIM_TRUE
     1462REPLACE_VSPRINTF
     1463REPLACE_VSNPRINTF
     1464REPLACE_VPRINTF
     1465REPLACE_VFPRINTF
     1466REPLACE_VDPRINTF
     1467REPLACE_VASPRINTF
     1468REPLACE_TMPFILE
     1469REPLACE_STDIO_WRITE_FUNCS
     1470REPLACE_STDIO_READ_FUNCS
     1471REPLACE_SPRINTF
     1472REPLACE_SNPRINTF
     1473REPLACE_RENAMEAT
     1474REPLACE_RENAME
     1475REPLACE_REMOVE
     1476REPLACE_PRINTF
     1477REPLACE_POPEN
     1478REPLACE_PERROR
     1479REPLACE_OBSTACK_PRINTF
     1480REPLACE_GETLINE
     1481REPLACE_GETDELIM
     1482REPLACE_FTELLO
     1483REPLACE_FTELL
     1484REPLACE_FSEEKO
     1485REPLACE_FSEEK
     1486REPLACE_FREOPEN
     1487REPLACE_FPURGE
     1488REPLACE_FPRINTF
     1489REPLACE_FOPEN_FOR_FOPEN_GNU
     1490REPLACE_FOPEN
     1491REPLACE_FFLUSH
     1492REPLACE_FDOPEN
     1493REPLACE_FCLOSE
     1494REPLACE_DPRINTF
     1495HAVE_VDPRINTF
     1496HAVE_VASPRINTF
     1497HAVE_RENAMEAT
     1498HAVE_POPEN
     1499HAVE_PCLOSE
     1500HAVE_FTELLO
     1501HAVE_FSEEKO
     1502HAVE_DPRINTF
     1503HAVE_DECL_VSNPRINTF
     1504HAVE_DECL_SNPRINTF
     1505HAVE_DECL_OBSTACK_PRINTF
     1506HAVE_DECL_GETLINE
     1507HAVE_DECL_GETDELIM
     1508HAVE_DECL_FTELLO
     1509HAVE_DECL_FSEEKO
     1510HAVE_DECL_FPURGE
     1511HAVE_DECL_FCLOSEALL
     1512GL_COND_OBJ_FWRITING_FALSE
     1513GL_COND_OBJ_FWRITING_TRUE
     1514GL_GNULIB_MDA_UMASK
     1515GL_GNULIB_MDA_MKDIR
     1516GL_GNULIB_MDA_CHMOD
     1517GL_GNULIB_OVERRIDES_STRUCT_STAT
     1518GL_GNULIB_UTIMENSAT
     1519GL_GNULIB_STAT
     1520GL_GNULIB_MKNODAT
     1521GL_GNULIB_MKNOD
     1522GL_GNULIB_MKFIFOAT
     1523GL_GNULIB_MKFIFO
     1524GL_GNULIB_MKDIRAT
     1525GL_GNULIB_MKDIR
     1526GL_GNULIB_LSTAT
     1527GL_GNULIB_LCHMOD
     1528GL_GNULIB_GETUMASK
     1529GL_GNULIB_FUTIMENS
     1530GL_GNULIB_FSTATAT
     1531GL_GNULIB_FSTAT
     1532GL_GNULIB_FCHMODAT
     1533GL_GNULIB_CHMOD
     1534WINDOWS_64_BIT_ST_SIZE
     1535WINDOWS_STAT_TIMESPEC
     1536NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
     1537NEXT_SYS_STAT_H
     1538GL_COND_OBJ_FSTAT_FALSE
     1539GL_COND_OBJ_FSTAT_TRUE
     1540REPLACE_UTIMENSAT
     1541REPLACE_STAT
     1542REPLACE_MKNODAT
     1543REPLACE_MKNOD
     1544REPLACE_MKFIFOAT
     1545REPLACE_MKFIFO
     1546REPLACE_MKDIR
     1547REPLACE_LSTAT
     1548REPLACE_FUTIMENS
     1549REPLACE_FSTATAT
     1550REPLACE_FSTAT
     1551REPLACE_FCHMODAT
     1552REPLACE_CHMOD
     1553HAVE_UTIMENSAT
     1554HAVE_MKNODAT
     1555HAVE_MKNOD
     1556HAVE_MKFIFOAT
     1557HAVE_MKFIFO
     1558HAVE_MKDIRAT
     1559HAVE_LSTAT
     1560HAVE_LCHMOD
     1561HAVE_GETUMASK
     1562HAVE_FUTIMENS
     1563HAVE_FSTATAT
     1564HAVE_FCHMODAT
     1565GL_COND_OBJ_FREE_FALSE
     1566GL_COND_OBJ_FREE_TRUE
     1567GL_COND_OBJ_FPENDING_FALSE
     1568GL_COND_OBJ_FPENDING_TRUE
     1569NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
     1570NEXT_FCNTL_H
     1571GL_GNULIB_MDA_OPEN
     1572GL_GNULIB_MDA_CREAT
     1573GL_GNULIB_OPENAT
     1574GL_GNULIB_OPEN
     1575GL_GNULIB_NONBLOCKING
     1576GL_GNULIB_FCNTL
     1577GL_GNULIB_CREAT
     1578GL_COND_OBJ_FCNTL_FALSE
     1579GL_COND_OBJ_FCNTL_TRUE
     1580REPLACE_OPENAT
     1581REPLACE_OPEN
     1582REPLACE_FCNTL
     1583REPLACE_CREAT
     1584HAVE_OPENAT
     1585HAVE_FCNTL
     1586GL_COND_OBJ_ERROR_FALSE
     1587GL_COND_OBJ_ERROR_TRUE
     1588GL_GENERATE_ERRNO_H_FALSE
     1589GL_GENERATE_ERRNO_H_TRUE
     1590ERRNO_H
     1591EOVERFLOW_VALUE
     1592EOVERFLOW_HIDDEN
     1593ENOLINK_VALUE
     1594ENOLINK_HIDDEN
     1595EMULTIHOP_VALUE
     1596EMULTIHOP_HIDDEN
     1597NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
     1598NEXT_ERRNO_H
     1599GL_COND_OBJ_DUP2_FALSE
     1600GL_COND_OBJ_DUP2_TRUE
     1601GL_GNULIB_ISBLANK
     1602NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
     1603NEXT_CTYPE_H
     1604HAVE_ISBLANK
     1605GL_COND_OBJ_CLOSE_FALSE
     1606GL_COND_OBJ_CLOSE_TRUE
     1607HAVE_WINSOCK2_H
     1608REPLACE_IOCTL
     1609SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
     1610SYS_IOCTL_H_HAVE_WINSOCK2_H
     1611HAVE_MSVC_INVALID_PARAMETER_HANDLER
     1612LIB_CLOCK_GETTIME
     1613UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
     1614UNISTD_H_HAVE_WINSOCK2_H
     1615UNISTD_H_HAVE_SYS_RANDOM_H
     1616REPLACE_WRITE
     1617REPLACE_USLEEP
     1618REPLACE_UNLINKAT
     1619REPLACE_UNLINK
     1620REPLACE_TTYNAME_R
     1621REPLACE_TRUNCATE
     1622REPLACE_SYMLINKAT
     1623REPLACE_SYMLINK
     1624REPLACE_SLEEP
     1625REPLACE_RMDIR
     1626REPLACE_READLINKAT
     1627REPLACE_READLINK
     1628REPLACE_READ
     1629REPLACE_PWRITE
     1630REPLACE_PREAD
     1631REPLACE_LSEEK
     1632REPLACE_LINKAT
     1633REPLACE_LINK
     1634REPLACE_LCHOWN
     1635REPLACE_ISATTY
     1636REPLACE_GETPASS_FOR_GETPASS_GNU
     1637REPLACE_GETPASS
     1638REPLACE_GETPAGESIZE
     1639REPLACE_GETGROUPS
     1640REPLACE_GETLOGIN_R
     1641REPLACE_GETDTABLESIZE
     1642REPLACE_GETDOMAINNAME
     1643REPLACE_GETCWD
     1644REPLACE_FTRUNCATE
     1645REPLACE_FCHOWNAT
     1646REPLACE_FACCESSAT
     1647REPLACE_EXECVPE
     1648REPLACE_EXECVP
     1649REPLACE_EXECVE
     1650REPLACE_EXECV
     1651REPLACE_EXECLP
     1652REPLACE_EXECLE
     1653REPLACE_EXECL
     1654REPLACE_DUP2
     1655REPLACE_DUP
     1656REPLACE_COPY_FILE_RANGE
     1657REPLACE_CLOSE
     1658REPLACE_CHOWN
     1659REPLACE_ACCESS
     1660HAVE_SYS_PARAM_H
     1661HAVE_OS_H
     1662HAVE_DECL_TTYNAME_R
     1663HAVE_DECL_TRUNCATE
     1664HAVE_DECL_SETHOSTNAME
     1665HAVE_DECL_GETUSERSHELL
     1666HAVE_DECL_GETPAGESIZE
     1667HAVE_DECL_GETLOGIN_R
     1668HAVE_DECL_GETLOGIN
     1669HAVE_DECL_GETDOMAINNAME
     1670HAVE_DECL_FDATASYNC
     1671HAVE_DECL_FCHDIR
     1672HAVE_DECL_EXECVPE
     1673HAVE_DECL_ENVIRON
     1674HAVE_USLEEP
     1675HAVE_UNLINKAT
     1676HAVE_SYMLINKAT
     1677HAVE_SYMLINK
     1678HAVE_SLEEP
     1679HAVE_SETHOSTNAME
     1680HAVE_READLINKAT
     1681HAVE_READLINK
     1682HAVE_PWRITE
     1683HAVE_PREAD
     1684HAVE_PIPE2
     1685HAVE_PIPE
     1686HAVE_LINKAT
     1687HAVE_LINK
     1688HAVE_LCHOWN
     1689HAVE_GROUP_MEMBER
     1690HAVE_GETPASS
     1691HAVE_GETPAGESIZE
     1692HAVE_GETLOGIN
     1693HAVE_GETHOSTNAME
     1694HAVE_GETGROUPS
     1695HAVE_GETENTROPY
     1696HAVE_GETDTABLESIZE
     1697HAVE_FTRUNCATE
     1698HAVE_FSYNC
     1699HAVE_FDATASYNC
     1700HAVE_FCHOWNAT
     1701HAVE_FCHDIR
     1702HAVE_FACCESSAT
     1703HAVE_EXECVPE
     1704HAVE_EUIDACCESS
     1705HAVE_DUP3
     1706HAVE_COPY_FILE_RANGE
     1707HAVE_CHOWN
     1708GL_GNULIB_MDA_WRITE
     1709GL_GNULIB_MDA_UNLINK
     1710GL_GNULIB_MDA_SWAB
     1711GL_GNULIB_MDA_RMDIR
     1712GL_GNULIB_MDA_READ
     1713GL_GNULIB_MDA_LSEEK
     1714GL_GNULIB_MDA_ISATTY
     1715GL_GNULIB_MDA_GETPID
     1716GL_GNULIB_MDA_GETCWD
     1717GL_GNULIB_MDA_EXECVPE
     1718GL_GNULIB_MDA_EXECVP
     1719GL_GNULIB_MDA_EXECVE
     1720GL_GNULIB_MDA_EXECV
     1721GL_GNULIB_MDA_EXECLP
     1722GL_GNULIB_MDA_EXECLE
     1723GL_GNULIB_MDA_EXECL
     1724GL_GNULIB_MDA_DUP2
     1725GL_GNULIB_MDA_DUP
     1726GL_GNULIB_MDA_CLOSE
     1727GL_GNULIB_MDA_CHDIR
     1728GL_GNULIB_MDA_ACCESS
     1729GL_GNULIB_WRITE
     1730GL_GNULIB_USLEEP
     1731GL_GNULIB_UNLINKAT
     1732GL_GNULIB_UNLINK
     1733GL_GNULIB_UNISTD_H_SIGPIPE
     1734GL_GNULIB_UNISTD_H_NONBLOCKING
     1735GL_GNULIB_UNISTD_H_GETOPT
     1736GL_GNULIB_TTYNAME_R
     1737GL_GNULIB_TRUNCATE
     1738GL_GNULIB_SYMLINKAT
     1739GL_GNULIB_SYMLINK
     1740GL_GNULIB_SLEEP
     1741GL_GNULIB_SETHOSTNAME
     1742GL_GNULIB_RMDIR
     1743GL_GNULIB_READLINKAT
     1744GL_GNULIB_READLINK
     1745GL_GNULIB_READ
     1746GL_GNULIB_PWRITE
     1747GL_GNULIB_PREAD
     1748GL_GNULIB_PIPE2
     1749GL_GNULIB_PIPE
     1750GL_GNULIB_LSEEK
     1751GL_GNULIB_LINKAT
     1752GL_GNULIB_LINK
     1753GL_GNULIB_LCHOWN
     1754GL_GNULIB_ISATTY
     1755GL_GNULIB_GROUP_MEMBER
     1756GL_GNULIB_GETUSERSHELL
     1757GL_GNULIB_GETPASS_GNU
     1758GL_GNULIB_GETPASS
     1759GL_GNULIB_GETPAGESIZE
     1760GL_GNULIB_GETOPT_POSIX
     1761GL_GNULIB_GETLOGIN_R
     1762GL_GNULIB_GETLOGIN
     1763GL_GNULIB_GETHOSTNAME
     1764GL_GNULIB_GETGROUPS
     1765GL_GNULIB_GETENTROPY
     1766GL_GNULIB_GETDTABLESIZE
     1767GL_GNULIB_GETDOMAINNAME
     1768GL_GNULIB_GETCWD
     1769GL_GNULIB_FTRUNCATE
     1770GL_GNULIB_FSYNC
     1771GL_GNULIB_FDATASYNC
     1772GL_GNULIB_FCHOWNAT
     1773GL_GNULIB_FCHDIR
     1774GL_GNULIB_FACCESSAT
     1775GL_GNULIB_EXECVPE
     1776GL_GNULIB_EXECVP
     1777GL_GNULIB_EXECVE
     1778GL_GNULIB_EXECV
     1779GL_GNULIB_EXECLP
     1780GL_GNULIB_EXECLE
     1781GL_GNULIB_EXECL
     1782GL_GNULIB_EUIDACCESS
     1783GL_GNULIB_ENVIRON
     1784GL_GNULIB_DUP3
     1785GL_GNULIB_DUP2
     1786GL_GNULIB_DUP
     1787GL_GNULIB_COPY_FILE_RANGE
     1788GL_GNULIB_CLOSE
     1789GL_GNULIB_CHOWN
     1790GL_GNULIB_CHDIR
     1791GL_GNULIB_ACCESS
     1792GL_COND_OBJ_CANONICALIZE_LGPL_FALSE
     1793GL_COND_OBJ_CANONICALIZE_LGPL_TRUE
     1794REPLACE_WCTOMB
     1795REPLACE_UNSETENV
     1796REPLACE_STRTOULL
     1797REPLACE_STRTOUL
     1798REPLACE_STRTOLL
     1799REPLACE_STRTOLD
     1800REPLACE_STRTOL
     1801REPLACE_STRTOD
     1802REPLACE_SETSTATE
     1803REPLACE_SETENV
     1804REPLACE_REALPATH
     1805REPLACE_REALLOCARRAY
     1806REPLACE_REALLOC_FOR_REALLOC_POSIX
     1807REPLACE_REALLOC_FOR_REALLOC_GNU
     1808REPLACE_RANDOM_R
     1809REPLACE_RANDOM
     1810REPLACE_QSORT_R
     1811REPLACE_PUTENV
     1812REPLACE_PTSNAME_R
     1813REPLACE_PTSNAME
     1814REPLACE_POSIX_MEMALIGN
     1815REPLACE_MKSTEMP
     1816REPLACE_MBTOWC
     1817REPLACE_MALLOC_FOR_MALLOC_POSIX
     1818REPLACE_MALLOC_FOR_MALLOC_GNU
     1819REPLACE_INITSTATE
     1820REPLACE_FREE
     1821REPLACE_CANONICALIZE_FILE_NAME
     1822REPLACE_CALLOC_FOR_CALLOC_POSIX
     1823REPLACE_CALLOC_FOR_CALLOC_GNU
     1824REPLACE_ALIGNED_ALLOC
     1825HAVE_DECL_UNSETENV
     1826HAVE_UNLOCKPT
     1827HAVE_SYS_LOADAVG_H
     1828HAVE_STRUCT_RANDOM_DATA
     1829HAVE_STRTOULL
     1830HAVE_STRTOUL
     1831HAVE_STRTOLL
     1832HAVE_STRTOLD
     1833HAVE_STRTOL
     1834HAVE_STRTOD
     1835HAVE_DECL_SETSTATE
     1836HAVE_SETSTATE
     1837HAVE_DECL_SETENV
     1838HAVE_SETENV
     1839HAVE_SECURE_GETENV
     1840HAVE_RPMATCH
     1841HAVE_REALPATH
     1842HAVE_REALLOCARRAY
     1843HAVE_RANDOM_R
     1844HAVE_RANDOM_H
     1845HAVE_RANDOM
     1846HAVE_QSORT_R
     1847HAVE_PTSNAME_R
     1848HAVE_PTSNAME
     1849HAVE_POSIX_OPENPT
     1850HAVE_POSIX_MEMALIGN
     1851HAVE_MKSTEMPS
     1852HAVE_MKSTEMP
     1853HAVE_MKOSTEMPS
     1854HAVE_MKOSTEMP
     1855HAVE_MKDTEMP
     1856HAVE_MBTOWC
     1857HAVE_DECL_INITSTATE
     1858HAVE_INITSTATE
     1859HAVE_GRANTPT
     1860HAVE_GETSUBOPT
     1861HAVE_DECL_GETLOADAVG
     1862HAVE_DECL_GCVT
     1863HAVE_DECL_FCVT
     1864HAVE_DECL_ECVT
     1865HAVE_CANONICALIZE_FILE_NAME
     1866HAVE_ATOLL
     1867HAVE_ALIGNED_ALLOC
     1868HAVE__EXIT
     1869GL_GNULIB_MDA_PUTENV
     1870GL_GNULIB_MDA_MKTEMP
     1871GL_GNULIB_MDA_GCVT
     1872GL_GNULIB_MDA_FCVT
     1873GL_GNULIB_MDA_ECVT
     1874GL_GNULIB_WCTOMB
     1875GL_GNULIB_UNSETENV
     1876GL_GNULIB_UNLOCKPT
     1877GL_GNULIB_SYSTEM_POSIX
     1878GL_GNULIB_STRTOULL
     1879GL_GNULIB_STRTOUL
     1880GL_GNULIB_STRTOLL
     1881GL_GNULIB_STRTOLD
     1882GL_GNULIB_STRTOL
     1883GL_GNULIB_STRTOD
     1884GL_GNULIB_SETENV
     1885GL_GNULIB_SECURE_GETENV
     1886GL_GNULIB_RPMATCH
     1887GL_GNULIB_REALPATH
     1888GL_GNULIB_REALLOC_POSIX
     1889GL_GNULIB_REALLOC_GNU
     1890GL_GNULIB_REALLOCARRAY
     1891GL_GNULIB_RANDOM_R
     1892GL_GNULIB_RANDOM
     1893GL_GNULIB_QSORT_R
     1894GL_GNULIB_PUTENV
     1895GL_GNULIB_PTSNAME_R
     1896GL_GNULIB_PTSNAME
     1897GL_GNULIB_POSIX_OPENPT
     1898GL_GNULIB_POSIX_MEMALIGN
     1899GL_GNULIB_MKSTEMPS
     1900GL_GNULIB_MKSTEMP
     1901GL_GNULIB_MKOSTEMPS
     1902GL_GNULIB_MKOSTEMP
     1903GL_GNULIB_MKDTEMP
     1904GL_GNULIB_MBTOWC
     1905GL_GNULIB_MALLOC_POSIX
     1906GL_GNULIB_MALLOC_GNU
     1907GL_GNULIB_GRANTPT
     1908GL_GNULIB_GETSUBOPT
     1909GL_GNULIB_GETLOADAVG
     1910GL_GNULIB_FREE_POSIX
     1911GL_GNULIB_CANONICALIZE_FILE_NAME
     1912GL_GNULIB_CALLOC_POSIX
     1913GL_GNULIB_CALLOC_GNU
     1914GL_GNULIB_ATOLL
     1915GL_GNULIB_ALIGNED_ALLOC
     1916GL_GNULIB__EXIT
     1917GL_GNULIB_MDA_WCSDUP
     1918GL_GNULIB_WCSFTIME
     1919GL_GNULIB_WCSWIDTH
     1920GL_GNULIB_WCSTOK
     1921GL_GNULIB_WCSSTR
     1922GL_GNULIB_WCSPBRK
     1923GL_GNULIB_WCSSPN
     1924GL_GNULIB_WCSCSPN
     1925GL_GNULIB_WCSRCHR
     1926GL_GNULIB_WCSCHR
     1927GL_GNULIB_WCSDUP
     1928GL_GNULIB_WCSXFRM
     1929GL_GNULIB_WCSCOLL
     1930GL_GNULIB_WCSNCASECMP
     1931GL_GNULIB_WCSCASECMP
     1932GL_GNULIB_WCSNCMP
     1933GL_GNULIB_WCSCMP
     1934GL_GNULIB_WCSNCAT
     1935GL_GNULIB_WCSCAT
     1936GL_GNULIB_WCPNCPY
     1937GL_GNULIB_WCSNCPY
     1938GL_GNULIB_WCPCPY
     1939GL_GNULIB_WCSCPY
     1940GL_GNULIB_WCSNLEN
     1941GL_GNULIB_WCSLEN
     1942GL_GNULIB_WMEMSET
     1943GL_GNULIB_WMEMPCPY
     1944GL_GNULIB_WMEMMOVE
     1945GL_GNULIB_WMEMCPY
     1946GL_GNULIB_WMEMCMP
     1947GL_GNULIB_WMEMCHR
     1948GL_GNULIB_WCWIDTH
     1949GL_GNULIB_WCSNRTOMBS
     1950GL_GNULIB_WCSRTOMBS
     1951GL_GNULIB_WCRTOMB
     1952GL_GNULIB_MBSNRTOWCS
     1953GL_GNULIB_MBSRTOWCS
     1954GL_GNULIB_MBRLEN
     1955GL_GNULIB_MBRTOWC
     1956GL_GNULIB_MBSINIT
     1957GL_GNULIB_WCTOB
     1958GL_GNULIB_BTOWC
     1959GL_COND_OBJ_BTOWC_FALSE
     1960GL_COND_OBJ_BTOWC_TRUE
     1961LOCALE_FR
     1962REPLACE_WCSTOK
     1963REPLACE_WCSFTIME
     1964REPLACE_WCSWIDTH
     1965REPLACE_WCWIDTH
     1966REPLACE_WCSNRTOMBS
     1967REPLACE_WCSRTOMBS
     1968REPLACE_WCRTOMB
     1969REPLACE_MBSNRTOWCS
     1970REPLACE_MBSRTOWCS
     1971REPLACE_MBRLEN
     1972REPLACE_MBRTOWC
     1973REPLACE_MBSINIT
     1974REPLACE_WCTOB
     1975REPLACE_BTOWC
     1976REPLACE_MBSTATE_T
     1977HAVE_DECL_WCWIDTH
     1978HAVE_DECL_WCSDUP
     1979HAVE_DECL_WCTOB
     1980HAVE_WCSFTIME
     1981HAVE_WCSWIDTH
     1982HAVE_WCSTOK
     1983HAVE_WCSSTR
     1984HAVE_WCSPBRK
     1985HAVE_WCSSPN
     1986HAVE_WCSCSPN
     1987HAVE_WCSRCHR
     1988HAVE_WCSCHR
     1989HAVE_WCSDUP
     1990HAVE_WCSXFRM
     1991HAVE_WCSCOLL
     1992HAVE_WCSNCASECMP
     1993HAVE_WCSCASECMP
     1994HAVE_WCSNCMP
     1995HAVE_WCSCMP
     1996HAVE_WCSNCAT
     1997HAVE_WCSCAT
     1998HAVE_WCPNCPY
     1999HAVE_WCSNCPY
     2000HAVE_WCPCPY
     2001HAVE_WCSCPY
     2002HAVE_WCSNLEN
     2003HAVE_WCSLEN
     2004HAVE_WMEMSET
     2005HAVE_WMEMPCPY
     2006HAVE_WMEMMOVE
     2007HAVE_WMEMCPY
     2008HAVE_WMEMCMP
     2009HAVE_WMEMCHR
     2010HAVE_WCSNRTOMBS
     2011HAVE_WCSRTOMBS
     2012HAVE_WCRTOMB
     2013HAVE_MBSNRTOWCS
     2014HAVE_MBSRTOWCS
     2015HAVE_MBRLEN
     2016HAVE_MBRTOWC
     2017HAVE_MBSINIT
     2018HAVE_BTOWC
     2019GL_GENERATE_ASSERT_H_FALSE
     2020GL_GENERATE_ASSERT_H_TRUE
     2021ASSERT_H
     2022NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
     2023NEXT_ASSERT_H
     2024PRAGMA_COLUMNS
     2025PRAGMA_SYSTEM_HEADER
     2026INCLUDE_NEXT_AS_FIRST_DIRECTIVE
     2027INCLUDE_NEXT
     2028GL_GENERATE_ALLOCA_H_FALSE
     2029GL_GENERATE_ALLOCA_H_TRUE
     2030ALLOCA_H
     2031HAVE_ALLOCA_H
     2032ALLOCA
     2033USE_ACL
     2034LIB_ACL
     2035GL_COND_LIBTOOL_FALSE
     2036GL_COND_LIBTOOL_TRUE
     2037RANLIB
     2038ARFLAGS
     2039AR
     2040CPP
     2041host_os
     2042host_vendor
     2043host_cpu
     2044host
     2045build_os
     2046build_vendor
     2047build_cpu
     2048build
     2049am__fastdepCC_FALSE
     2050am__fastdepCC_TRUE
     2051CCDEPMODE
     2052am__nodep
     2053AMDEPBACKSLASH
     2054AMDEP_FALSE
     2055AMDEP_TRUE
     2056am__include
     2057DEPDIR
     2058OBJEXT
     2059EXEEXT
     2060ac_ct_CC
     2061CPPFLAGS
     2062LDFLAGS
     2063CFLAGS
     2064CC
     2065am__xargs_n
     2066am__rm_f_notfound
     2067AM_BACKSLASH
     2068AM_DEFAULT_VERBOSITY
     2069AM_DEFAULT_V
     2070AM_V
     2071CSCOPE
     2072ETAGS
     2073CTAGS
     2074am__untar
     2075am__tar
     2076AMTAR
     2077am__leading_dot
     2078SET_MAKE
     2079AWK
     2080mkdir_p
     2081MKDIR_P
     2082INSTALL_STRIP_PROGRAM
     2083STRIP
     2084install_sh
     2085MAKEINFO
     2086AUTOHEADER
     2087AUTOMAKE
     2088AUTOCONF
     2089ACLOCAL
     2090VERSION
     2091PACKAGE
     2092CYGPATH_W
     2093am__isrc
     2094INSTALL_DATA
     2095INSTALL_SCRIPT
     2096INSTALL_PROGRAM
     2097target_alias
     2098host_alias
     2099build_alias
     2100LIBS
     2101ECHO_T
     2102ECHO_N
     2103ECHO_C
     2104DEFS
     2105mandir
     2106localedir
     2107libdir
     2108psdir
     2109pdfdir
     2110dvidir
     2111htmldir
     2112infodir
     2113docdir
     2114oldincludedir
     2115includedir
     2116runstatedir
     2117localstatedir
     2118sharedstatedir
     2119sysconfdir
     2120datadir
     2121datarootdir
     2122libexecdir
     2123sbindir
     2124bindir
     2125program_transform_name
     2126prefix
     2127exec_prefix
     2128PACKAGE_URL
     2129PACKAGE_BUGREPORT
     2130PACKAGE_STRING
     2131PACKAGE_VERSION
     2132PACKAGE_TARNAME
     2133PACKAGE_NAME
     2134PATH_SEPARATOR
     2135SHELL
     2136am__quote'
    3152137ac_subst_files=''
     2138ac_user_opts='
     2139enable_option_checking
     2140enable_silent_rules
     2141enable_dependency_tracking
     2142enable_largefile
     2143enable_year2038
     2144enable_threads
     2145enable_cross_guesses
     2146enable_acl
     2147enable_assert
     2148with_included_regex
     2149with_selinux
     2150with_packager
     2151with_packager_version
     2152with_packager_bug_reports
     2153enable_nls
     2154with_gnu_ld
     2155enable_rpath
     2156with_libiconv_prefix
     2157with_libintl_prefix
     2158enable_i18n
     2159enable_gcc_warnings
     2160enable_bold_man_page_references
     2161'
     2162      ac_precious_vars='build_alias
     2163host_alias
     2164target_alias
     2165CC
     2166CFLAGS
     2167LDFLAGS
     2168LIBS
     2169CPPFLAGS
     2170CPP'
     2171
    3162172
    3172173# Initialize some variables set by options.
    3182174ac_init_help=
    3192175ac_init_version=false
     2176ac_unrecognized_opts=
     2177ac_unrecognized_sep=
    3202178# The variables have the same names as the options, with
    3212179# dashes changed to underlines.
     
    3402198# by default will actually change.
    3412199# Use braces instead of parens because sh, perl, etc. also accept them.
     2200# (The list follows the same order as the GNU Coding Standards.)
    3422201bindir='${exec_prefix}/bin'
    3432202sbindir='${exec_prefix}/sbin'
    3442203libexecdir='${exec_prefix}/libexec'
    345 datadir='${prefix}/share'
     2204datarootdir='${prefix}/share'
     2205datadir='${datarootdir}'
    3462206sysconfdir='${prefix}/etc'
    3472207sharedstatedir='${prefix}/com'
    3482208localstatedir='${prefix}/var'
    349 libdir='${exec_prefix}/lib'
     2209runstatedir='${localstatedir}/run'
    3502210includedir='${prefix}/include'
    3512211oldincludedir='/usr/include'
    352 infodir='${prefix}/info'
    353 mandir='${prefix}/man'
     2212docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
     2213infodir='${datarootdir}/info'
     2214htmldir='${docdir}'
     2215dvidir='${docdir}'
     2216pdfdir='${docdir}'
     2217psdir='${docdir}'
     2218libdir='${exec_prefix}/lib'
     2219localedir='${datarootdir}/locale'
     2220mandir='${datarootdir}/man'
    3542221
    3552222ac_prev=
     2223ac_dashdash=
    3562224for ac_option
    3572225do
    3582226  # If the previous option needs an argument, assign it.
    3592227  if test -n "$ac_prev"; then
    360     eval "$ac_prev=\$ac_option"
     2228    eval $ac_prev=\$ac_option
    3612229    ac_prev=
    3622230    continue
    3632231  fi
    3642232
    365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    366 
    367   # Accept the important Cygnus configure options, so we can diagnose typos.
    368 
    3692233  case $ac_option in
     2234  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     2235  *=)   ac_optarg= ;;
     2236  *)    ac_optarg=yes ;;
     2237  esac
     2238
     2239  case $ac_dashdash$ac_option in
     2240  --)
     2241    ac_dashdash=yes ;;
    3702242
    3712243  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    3892261    cache_file=config.cache ;;
    3902262
    391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     2263  -datadir | --datadir | --datadi | --datad)
    3922264    ac_prev=datadir ;;
    393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    394   | --da=*)
     2265  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    3952266    datadir=$ac_optarg ;;
    3962267
     2268  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     2269  | --dataroo | --dataro | --datar)
     2270    ac_prev=datarootdir ;;
     2271  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     2272  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     2273    datarootdir=$ac_optarg ;;
     2274
    3972275  -disable-* | --disable-*)
    398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     2276    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    3992277    # Reject names that are not valid shell variable names.
    400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    402    { (exit 1); exit 1; }; }
    403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    404     eval "enable_$ac_feature=no" ;;
     2278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     2279      as_fn_error $? "invalid feature name: '$ac_useropt'"
     2280    ac_useropt_orig=$ac_useropt
     2281    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
     2282    case $ac_user_opts in
     2283      *"
     2284"enable_$ac_useropt"
     2285"*) ;;
     2286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     2287         ac_unrecognized_sep=', ';;
     2288    esac
     2289    eval enable_$ac_useropt=no ;;
     2290
     2291  -docdir | --docdir | --docdi | --doc | --do)
     2292    ac_prev=docdir ;;
     2293  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     2294    docdir=$ac_optarg ;;
     2295
     2296  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     2297    ac_prev=dvidir ;;
     2298  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     2299    dvidir=$ac_optarg ;;
    4052300
    4062301  -enable-* | --enable-*)
    407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     2302    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    4082303    # Reject names that are not valid shell variable names.
    409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    411    { (exit 1); exit 1; }; }
    412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    413     case $ac_option in
    414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    415       *) ac_optarg=yes ;;
     2304    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     2305      as_fn_error $? "invalid feature name: '$ac_useropt'"
     2306    ac_useropt_orig=$ac_useropt
     2307    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
     2308    case $ac_user_opts in
     2309      *"
     2310"enable_$ac_useropt"
     2311"*) ;;
     2312      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     2313         ac_unrecognized_sep=', ';;
    4162314    esac
    417     eval "enable_$ac_feature='$ac_optarg'" ;;
     2315    eval enable_$ac_useropt=\$ac_optarg ;;
    4182316
    4192317  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    4422340    host_alias=$ac_optarg ;;
    4432341
     2342  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     2343    ac_prev=htmldir ;;
     2344  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     2345  | --ht=*)
     2346    htmldir=$ac_optarg ;;
     2347
    4442348  -includedir | --includedir | --includedi | --included | --include \
    4452349  | --includ | --inclu | --incl | --inc)
     
    4662370    libexecdir=$ac_optarg ;;
    4672371
     2372  -localedir | --localedir | --localedi | --localed | --locale)
     2373    ac_prev=localedir ;;
     2374  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     2375    localedir=$ac_optarg ;;
     2376
    4682377  -localstatedir | --localstatedir | --localstatedi | --localstated \
    469   | --localstate | --localstat | --localsta | --localst \
    470   | --locals | --local | --loca | --loc | --lo)
     2378  | --localstate | --localstat | --localsta | --localst | --locals)
    4712379    ac_prev=localstatedir ;;
    4722380  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     2381  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    4752382    localstatedir=$ac_optarg ;;
    4762383
     
    5372444    program_transform_name=$ac_optarg ;;
    5382445
     2446  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     2447    ac_prev=pdfdir ;;
     2448  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     2449    pdfdir=$ac_optarg ;;
     2450
     2451  -psdir | --psdir | --psdi | --psd | --ps)
     2452    ac_prev=psdir ;;
     2453  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     2454    psdir=$ac_optarg ;;
     2455
    5392456  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    5402457  | -silent | --silent | --silen | --sile | --sil)
    5412458    silent=yes ;;
     2459
     2460  -runstatedir | --runstatedir | --runstatedi | --runstated \
     2461  | --runstate | --runstat | --runsta | --runst | --runs \
     2462  | --run | --ru | --r)
     2463    ac_prev=runstatedir ;;
     2464  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
     2465  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
     2466  | --run=* | --ru=* | --r=*)
     2467    runstatedir=$ac_optarg ;;
    5422468
    5432469  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     
    5872513
    5882514  -with-* | --with-*)
    589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     2515    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5902516    # Reject names that are not valid shell variable names.
    591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    592       { echo "$as_me: error: invalid package name: $ac_package" >&2
    593    { (exit 1); exit 1; }; }
    594     ac_package=`echo $ac_package| sed 's/-/_/g'`
    595     case $ac_option in
    596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    597       *) ac_optarg=yes ;;
     2517    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     2518      as_fn_error $? "invalid package name: '$ac_useropt'"
     2519    ac_useropt_orig=$ac_useropt
     2520    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
     2521    case $ac_user_opts in
     2522      *"
     2523"with_$ac_useropt"
     2524"*) ;;
     2525      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     2526         ac_unrecognized_sep=', ';;
    5982527    esac
    599     eval "with_$ac_package='$ac_optarg'" ;;
     2528    eval with_$ac_useropt=\$ac_optarg ;;
    6002529
    6012530  -without-* | --without-*)
    602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     2531    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6032532    # Reject names that are not valid shell variable names.
    604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    605       { echo "$as_me: error: invalid package name: $ac_package" >&2
    606    { (exit 1); exit 1; }; }
    607     ac_package=`echo $ac_package | sed 's/-/_/g'`
    608     eval "with_$ac_package=no" ;;
     2533    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     2534      as_fn_error $? "invalid package name: '$ac_useropt'"
     2535    ac_useropt_orig=$ac_useropt
     2536    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
     2537    case $ac_user_opts in
     2538      *"
     2539"with_$ac_useropt"
     2540"*) ;;
     2541      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     2542         ac_unrecognized_sep=', ';;
     2543    esac
     2544    eval with_$ac_useropt=no ;;
    6092545
    6102546  --x)
     
    6262562    x_libraries=$ac_optarg ;;
    6272563
    628   -*) { echo "$as_me: error: unrecognized option: $ac_option
    629 Try \`$0 --help' for more information." >&2
    630    { (exit 1); exit 1; }; }
     2564  -*) as_fn_error $? "unrecognized option: '$ac_option'
     2565Try '$0 --help' for more information"
    6312566    ;;
    6322567
     
    6342569    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6352570    # Reject names that are not valid shell variable names.
    636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    638    { (exit 1); exit 1; }; }
    639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    640     eval "$ac_envvar='$ac_optarg'"
     2571    case $ac_envvar in #(
     2572      '' | [0-9]* | *[!_$as_cr_alnum]* )
     2573      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
     2574    esac
     2575    eval $ac_envvar=\$ac_optarg
    6412576    export $ac_envvar ;;
    6422577
    6432578  *)
    6442579    # FIXME: should be removed in autoconf 3.0.
    645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     2580    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
    6462581    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     2582      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
     2583    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    6492584    ;;
    6502585
     
    6542589if test -n "$ac_prev"; then
    6552590  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    656   { echo "$as_me: error: missing argument to $ac_option" >&2
    657    { (exit 1); exit 1; }; }
    658 fi
    659 
    660 # Be sure to have absolute paths.
    661 for ac_var in exec_prefix prefix
     2591  as_fn_error $? "missing argument to $ac_option"
     2592fi
     2593
     2594if test -n "$ac_unrecognized_opts"; then
     2595  case $enable_option_checking in
     2596    no) ;;
     2597    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     2598    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     2599  esac
     2600fi
     2601
     2602# Check all directory arguments for consistency.
     2603for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     2604                datadir sysconfdir sharedstatedir localstatedir includedir \
     2605                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     2606                libdir localedir mandir runstatedir
    6622607do
    663   eval ac_val=$`echo $ac_var`
     2608  eval ac_val=\$$ac_var
     2609  # Remove trailing slashes.
    6642610  case $ac_val in
    665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    667    { (exit 1); exit 1; }; };;
     2611    */ )
     2612      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     2613      eval $ac_var=\$ac_val;;
    6682614  esac
     2615  # Be sure to have absolute directory names.
     2616  case $ac_val in
     2617    [\\/$]* | ?:[\\/]* )  continue;;
     2618    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
     2619  esac
     2620  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6692621done
    6702622
    671 # Be sure to have absolute paths.
    672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    673               localstatedir libdir includedir oldincludedir infodir mandir
    674 do
    675   eval ac_val=$`echo $ac_var`
    676   case $ac_val in
    677     [\\/$]* | ?:[\\/]* ) ;;
    678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    679    { (exit 1); exit 1; }; };;
    680   esac
    681 done
    682 
    683 # There might be people who depend on the old broken behavior: `$host'
     2623# There might be people who depend on the old broken behavior: '$host'
    6842624# used to hold the argument of --host etc.
    6852625# FIXME: To remove some day.
     
    6922632  if test "x$build_alias" = x; then
    6932633    cross_compiling=maybe
    694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    695     If a cross compiler is detected then cross compile mode will be used." >&2
    6962634  elif test "x$build_alias" != "x$host_alias"; then
    6972635    cross_compiling=yes
     
    7032641
    7042642test "$silent" = yes && exec 6>/dev/null
     2643
     2644
     2645ac_pwd=`pwd` && test -n "$ac_pwd" &&
     2646ac_ls_di=`ls -di .` &&
     2647ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     2648  as_fn_error $? "working directory cannot be determined"
     2649test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     2650  as_fn_error $? "pwd does not report name of working directory"
    7052651
    7062652
     
    7082654if test -z "$srcdir"; then
    7092655  ac_srcdir_defaulted=yes
    710   # Try the directory containing this script, then its parent.
    711   ac_confdir=`(dirname "$0") 2>/dev/null ||
    712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    713          X"$0" : 'X\(//\)[^/]' \| \
    714          X"$0" : 'X\(//\)$' \| \
    715          X"$0" : 'X\(/\)' \| \
    716          .     : '\(.\)' 2>/dev/null ||
    717 echo X"$0" |
    718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    720           /^X\(\/\/\)$/{ s//\1/; q; }
    721           /^X\(\/\).*/{ s//\1/; q; }
    722           s/.*/./; q'`
     2656  # Try the directory containing this script, then the parent directory.
     2657  ac_confdir=`$as_dirname -- "$as_myself" ||
     2658$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     2659         X"$as_myself" : 'X\(//\)[^/]' \| \
     2660         X"$as_myself" : 'X\(//\)$' \| \
     2661         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     2662printf "%s\n" X"$as_myself" |
     2663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     2664            s//\1/
     2665            q
     2666          }
     2667          /^X\(\/\/\)[^/].*/{
     2668            s//\1/
     2669            q
     2670          }
     2671          /^X\(\/\/\)$/{
     2672            s//\1/
     2673            q
     2674          }
     2675          /^X\(\/\).*/{
     2676            s//\1/
     2677            q
     2678          }
     2679          s/.*/./; q'`
    7232680  srcdir=$ac_confdir
    724   if test ! -r $srcdir/$ac_unique_file; then
     2681  if test ! -r "$srcdir/$ac_unique_file"; then
    7252682    srcdir=..
    7262683  fi
     
    7282685  ac_srcdir_defaulted=no
    7292686fi
    730 if test ! -r $srcdir/$ac_unique_file; then
    731   if test "$ac_srcdir_defaulted" = yes; then
    732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    733    { (exit 1); exit 1; }; }
    734   else
    735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    736    { (exit 1); exit 1; }; }
    737   fi
    738 fi
    739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    741    { (exit 1); exit 1; }; }
    742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    743 ac_env_build_alias_set=${build_alias+set}
    744 ac_env_build_alias_value=$build_alias
    745 ac_cv_env_build_alias_set=${build_alias+set}
    746 ac_cv_env_build_alias_value=$build_alias
    747 ac_env_host_alias_set=${host_alias+set}
    748 ac_env_host_alias_value=$host_alias
    749 ac_cv_env_host_alias_set=${host_alias+set}
    750 ac_cv_env_host_alias_value=$host_alias
    751 ac_env_target_alias_set=${target_alias+set}
    752 ac_env_target_alias_value=$target_alias
    753 ac_cv_env_target_alias_set=${target_alias+set}
    754 ac_cv_env_target_alias_value=$target_alias
    755 ac_env_CC_set=${CC+set}
    756 ac_env_CC_value=$CC
    757 ac_cv_env_CC_set=${CC+set}
    758 ac_cv_env_CC_value=$CC
    759 ac_env_CFLAGS_set=${CFLAGS+set}
    760 ac_env_CFLAGS_value=$CFLAGS
    761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    762 ac_cv_env_CFLAGS_value=$CFLAGS
    763 ac_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_env_LDFLAGS_value=$LDFLAGS
    765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    766 ac_cv_env_LDFLAGS_value=$LDFLAGS
    767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    771 ac_env_CPP_set=${CPP+set}
    772 ac_env_CPP_value=$CPP
    773 ac_cv_env_CPP_set=${CPP+set}
    774 ac_cv_env_CPP_value=$CPP
     2687if test ! -r "$srcdir/$ac_unique_file"; then
     2688  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     2689  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     2690fi
     2691ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
     2692ac_abs_confdir=`(
     2693        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     2694        pwd)`
     2695# When building in place, set srcdir=.
     2696if test "$ac_abs_confdir" = "$ac_pwd"; then
     2697  srcdir=.
     2698fi
     2699# Remove unnecessary trailing slashes from srcdir.
     2700# Double slashes in file names in object file debugging info
     2701# mess up M-x gdb in Emacs.
     2702case $srcdir in
     2703*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     2704esac
     2705for ac_var in $ac_precious_vars; do
     2706  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     2707  eval ac_env_${ac_var}_value=\$${ac_var}
     2708  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     2709  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     2710done
    7752711
    7762712#
     
    7812717  # This message is too long to be a string in the A/UX 3.1 sh.
    7822718  cat <<_ACEOF
    783 \`configure' configures sed 4.1.5 to adapt to many kinds of systems.
     2719'configure' configures GNU sed 4.9 to adapt to many kinds of systems.
    7842720
    7852721Usage: $0 [OPTION]... [VAR=VALUE]...
     
    7952731      --help=recursive    display the short help of all the included packages
    7962732  -V, --version           display version information and exit
    797   -q, --quiet, --silent   do not print \`checking...' messages
     2733  -q, --quiet, --silent   do not print 'checking ...' messages
    7982734      --cache-file=FILE   cache test results in FILE [disabled]
    799   -C, --config-cache      alias for \`--cache-file=config.cache'
     2735  -C, --config-cache      alias for '--cache-file=config.cache'
    8002736  -n, --no-create         do not create output files
    801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    802 
    803 _ACEOF
    804 
    805   cat <<_ACEOF
     2737      --srcdir=DIR        find the sources in DIR [configure dir or '..']
     2738
    8062739Installation directories:
    8072740  --prefix=PREFIX         install architecture-independent files in PREFIX
    808                           [$ac_default_prefix]
     2741                          [$ac_default_prefix]
    8092742  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    810                           [PREFIX]
    811 
    812 By default, \`make install' will install all the files in
    813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    815 for instance \`--prefix=\$HOME'.
     2743                          [PREFIX]
     2744
     2745By default, 'make install' will install all the files in
     2746'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
     2747an installation prefix other than '$ac_default_prefix' using '--prefix',
     2748for instance '--prefix=\$HOME'.
    8162749
    8172750For better control, use the options below.
    8182751
    8192752Fine tuning of the installation directories:
    820   --bindir=DIR           user executables [EPREFIX/bin]
    821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    822   --libexecdir=DIR       program executables [EPREFIX/libexec]
    823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    827   --libdir=DIR           object code libraries [EPREFIX/lib]
    828   --includedir=DIR       C header files [PREFIX/include]
    829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    830   --infodir=DIR          info documentation [PREFIX/info]
    831   --mandir=DIR           man documentation [PREFIX/man]
     2753  --bindir=DIR            user executables [EPREFIX/bin]
     2754  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     2755  --libexecdir=DIR        program executables [EPREFIX/libexec]
     2756  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     2757  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     2758  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     2759  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
     2760  --libdir=DIR            object code libraries [EPREFIX/lib]
     2761  --includedir=DIR        C header files [PREFIX/include]
     2762  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     2763  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     2764  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     2765  --infodir=DIR           info documentation [DATAROOTDIR/info]
     2766  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     2767  --mandir=DIR            man documentation [DATAROOTDIR/man]
     2768  --docdir=DIR            documentation root [DATAROOTDIR/doc/sed]
     2769  --htmldir=DIR           html documentation [DOCDIR]
     2770  --dvidir=DIR            dvi documentation [DOCDIR]
     2771  --pdfdir=DIR            pdf documentation [DOCDIR]
     2772  --psdir=DIR             ps documentation [DOCDIR]
    8322773_ACEOF
    8332774
     
    8472788if test -n "$ac_init_help"; then
    8482789  case $ac_init_help in
    849      short | recursive ) echo "Configuration of sed 4.1.5:";;
     2790     short | recursive ) echo "Configuration of GNU sed 4.9:";;
    8502791   esac
    8512792  cat <<\_ACEOF
    8522793
    8532794Optional Features:
     2795  --disable-option-checking  ignore unrecognized --enable/--with options
    8542796  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8552797  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    856   --disable-dependency-tracking  speeds up one-time build
    857   --enable-dependency-tracking   do not reject slow dependency extractors
     2798  --enable-silent-rules   less verbose build output (undo: "make V=1")
     2799  --disable-silent-rules  verbose build output (undo: "make V=0")
     2800  --enable-dependency-tracking
     2801                          do not reject slow dependency extractors
     2802  --disable-dependency-tracking
     2803                          speeds up one-time build
    8582804  --disable-largefile     omit support for large files
    859   --disable-i18n          disable internationalization (default=yes)
    860   --enable-regex-tests    enable regex matcher regression tests (default=yes)
    861   --enable-html           build HTML manual (default=no)
     2805  --disable-year2038      omit support for timestamps past the year 2038
     2806  --enable-threads={isoc|posix|isoc+posix|windows}
     2807                          specify multithreading API
     2808  --disable-threads       build without multithread safety
     2809  --enable-cross-guesses={conservative|risky}
     2810                          specify policy for cross-compilation guesses
     2811  --disable-acl           do not support ACLs
     2812  --disable-assert        turn off assertions
    8622813  --disable-nls           do not use Native Language Support
     2814  --disable-rpath         do not hardcode runtime library paths
     2815  --disable-i18n          disable internationalization (default=enabled)
     2816  --enable-gcc-warnings   turn on many GCC warnings (for developers; best with
     2817                          GNU make)
     2818  --disable-bold-man-page-references
     2819                          When generating man pages, do not apply bold style
     2820                          around any references like name(1) etc.
    8632821
    8642822Optional Packages:
    8652823  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    8662824  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    867   --with-included-regex   use included regex matcher (default=yes)
    868   --with-gnu-ld           assume the C compiler uses GNU ld default=no
    869   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
     2825  --without-included-regex
     2826                          don't compile regex; this is the default on systems
     2827                          with recent-enough versions of the GNU C Library
     2828                          (use with caution on other systems).
     2829  --without-selinux       do not use SELinux, even on systems with SELinux
     2830  --with-packager         String identifying the packager of this software
     2831  --with-packager-version Packager-specific version information
     2832  --with-packager-bug-reports
     2833                          Packager info for bug reports (URL/e-mail/...)
     2834  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     2835  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
    8702836  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
    871   --with-included-gettext use the GNU gettext library included here
    872   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
     2837  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
    8732838  --without-libintl-prefix     don't search for libintl in includedir and libdir
    8742839
     
    8782843  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8792844              nonstandard directory <lib dir>
    880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    881               headers in a nonstandard directory <include dir>
     2845  LIBS        libraries to pass to the linker, e.g. -l<library>
     2846  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     2847              you have headers in a nonstandard directory <include dir>
    8822848  CPP         C preprocessor
    8832849
    884 Use these variables to override the choices made by `configure' or to help
     2850Use these variables to override the choices made by 'configure' or to help
    8852851it to find libraries and programs with nonstandard names/locations.
    8862852
    887 Report bugs to <[email protected]>.
     2853Report bugs to <[email protected]>.
     2854GNU sed home page: <https://www.gnu.org/software/sed/>.
     2855General help using GNU software: <https://www.gnu.org/gethelp/>.
    8882856_ACEOF
     2857ac_status=$?
    8892858fi
    8902859
    8912860if test "$ac_init_help" = "recursive"; then
    8922861  # If there are subdirs, report their specific --help.
    893   ac_popdir=`pwd`
    8942862  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    895     test -d $ac_dir || continue
     2863    test -d "$ac_dir" ||
     2864      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     2865      continue
    8962866    ac_builddir=.
    8972867
    898 if test "$ac_dir" != .; then
    899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    900   # A "../" for each directory in $ac_dir_suffix.
    901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    902 else
    903   ac_dir_suffix= ac_top_builddir=
    904 fi
     2868case "$ac_dir" in
     2869.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     2870*)
     2871  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
     2872  # A ".." for each directory in $ac_dir_suffix.
     2873  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     2874  case $ac_top_builddir_sub in
     2875  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     2876  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     2877  esac ;;
     2878esac
     2879ac_abs_top_builddir=$ac_pwd
     2880ac_abs_builddir=$ac_pwd$ac_dir_suffix
     2881# for backward compatibility:
     2882ac_top_builddir=$ac_top_build_prefix
    9052883
    9062884case $srcdir in
    907   .)  # No --srcdir option.  We are building in place.
     2885  .)  # We are building in place.
    9082886    ac_srcdir=.
    909     if test -z "$ac_top_builddir"; then
    910        ac_top_srcdir=.
     2887    ac_top_srcdir=$ac_top_builddir_sub
     2888    ac_abs_top_srcdir=$ac_pwd ;;
     2889  [\\/]* | ?:[\\/]* )  # Absolute name.
     2890    ac_srcdir=$srcdir$ac_dir_suffix;
     2891    ac_top_srcdir=$srcdir
     2892    ac_abs_top_srcdir=$srcdir ;;
     2893  *) # Relative name.
     2894    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     2895    ac_top_srcdir=$ac_top_build_prefix$srcdir
     2896    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     2897esac
     2898ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     2899
     2900    cd "$ac_dir" || { ac_status=$?; continue; }
     2901    # Check for configure.gnu first; this name is used for a wrapper for
     2902    # Metaconfig's "Configure" on case-insensitive file systems.
     2903    if test -f "$ac_srcdir/configure.gnu"; then
     2904      echo &&
     2905      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     2906    elif test -f "$ac_srcdir/configure"; then
     2907      echo &&
     2908      $SHELL "$ac_srcdir/configure" --help=recursive
    9112909    else
    912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    913     fi ;;
    914   [\\/]* | ?:[\\/]* )  # Absolute path.
    915     ac_srcdir=$srcdir$ac_dir_suffix;
    916     ac_top_srcdir=$srcdir ;;
    917   *) # Relative path.
    918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    920 esac
    921 
    922 # Do not use `cd foo && pwd` to compute absolute paths, because
    923 # the directories may not exist.
    924 case `pwd` in
    925 .) ac_abs_builddir="$ac_dir";;
    926 *)
    927   case "$ac_dir" in
    928   .) ac_abs_builddir=`pwd`;;
    929   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    930   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    931   esac;;
    932 esac
    933 case $ac_abs_builddir in
    934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    935 *)
    936   case ${ac_top_builddir}. in
    937   .) ac_abs_top_builddir=$ac_abs_builddir;;
    938   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    939   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    940   esac;;
    941 esac
    942 case $ac_abs_builddir in
    943 .) ac_abs_srcdir=$ac_srcdir;;
    944 *)
    945   case $ac_srcdir in
    946   .) ac_abs_srcdir=$ac_abs_builddir;;
    947   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    948   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    949   esac;;
    950 esac
    951 case $ac_abs_builddir in
    952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    953 *)
    954   case $ac_top_srcdir in
    955   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    956   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    957   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    958   esac;;
    959 esac
    960 
    961     cd $ac_dir
    962     # Check for guested configure; otherwise get Cygnus style configure.
    963     if test -f $ac_srcdir/configure.gnu; then
    964       echo
    965       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    966     elif test -f $ac_srcdir/configure; then
    967       echo
    968       $SHELL $ac_srcdir/configure  --help=recursive
    969     elif test -f $ac_srcdir/configure.ac ||
    970            test -f $ac_srcdir/configure.in; then
    971       echo
    972       $ac_configure --help
    973     else
    974       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    975     fi
    976     cd $ac_popdir
     2910      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     2911    fi || ac_status=$?
     2912    cd "$ac_pwd" || { ac_status=$?; break; }
    9772913  done
    9782914fi
    9792915
    980 test -n "$ac_init_help" && exit 0
     2916test -n "$ac_init_help" && exit $ac_status
    9812917if $ac_init_version; then
    9822918  cat <<\_ACEOF
    983 sed configure 4.1.5
    984 generated by GNU Autoconf 2.59
    985 
    986 Copyright (C) 2003 Free Software Foundation, Inc.
     2919GNU sed configure 4.9
     2920generated by GNU Autoconf 2.72a.65-d081
     2921
     2922Copyright (C) 2022 Free Software Foundation, Inc.
    9872923This configure script is free software; the Free Software Foundation
    9882924gives unlimited permission to copy, distribute and modify it.
    9892925_ACEOF
    990   exit 0
    991 fi
    992 exec 5>config.log
    993 cat >&5 <<_ACEOF
     2926  exit
     2927fi
     2928
     2929## ------------------------ ##
     2930## Autoconf initialization. ##
     2931## ------------------------ ##
     2932
     2933# ac_fn_c_try_compile LINENO
     2934# --------------------------
     2935# Try to compile conftest.$ac_ext, and return whether this succeeded.
     2936ac_fn_c_try_compile ()
     2937{
     2938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2939  rm -f conftest.$ac_objext conftest.beam
     2940  if { { ac_try="$ac_compile"
     2941case "(($ac_try" in
     2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2943  *) ac_try_echo=$ac_try;;
     2944esac
     2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2946printf "%s\n" "$ac_try_echo"; } >&5
     2947  (eval "$ac_compile") 2>conftest.err
     2948  ac_status=$?
     2949  if test -s conftest.err; then
     2950    grep -v '^ *+' conftest.err >conftest.er1
     2951    cat conftest.er1 >&5
     2952    mv -f conftest.er1 conftest.err
     2953  fi
     2954  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2955  test $ac_status = 0; } && {
     2956         test -z "$ac_c_werror_flag" ||
     2957         test ! -s conftest.err
     2958       } && test -s conftest.$ac_objext
     2959then :
     2960  ac_retval=0
     2961else case e in #(
     2962  e) printf "%s\n" "$as_me: failed program was:" >&5
     2963sed 's/^/| /' conftest.$ac_ext >&5
     2964
     2965        ac_retval=1 ;;
     2966esac
     2967fi
     2968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2969  as_fn_set_status $ac_retval
     2970
     2971} # ac_fn_c_try_compile
     2972
     2973# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     2974# -------------------------------------------------------
     2975# Tests whether HEADER exists and can be compiled using the include files in
     2976# INCLUDES, setting the cache variable VAR accordingly.
     2977ac_fn_c_check_header_compile ()
     2978{
     2979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2981printf %s "checking for $2... " >&6; }
     2982if eval test \${$3+y}
     2983then :
     2984  printf %s "(cached) " >&6
     2985else case e in #(
     2986  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2987/* end confdefs.h.  */
     2988$4
     2989#include <$2>
     2990_ACEOF
     2991if ac_fn_c_try_compile "$LINENO"
     2992then :
     2993  eval "$3=yes"
     2994else case e in #(
     2995  e) eval "$3=no" ;;
     2996esac
     2997fi
     2998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     2999esac
     3000fi
     3001eval ac_res=\$$3
     3002               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     3003printf "%s\n" "$ac_res" >&6; }
     3004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3005
     3006} # ac_fn_c_check_header_compile
     3007
     3008# ac_fn_c_try_cpp LINENO
     3009# ----------------------
     3010# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     3011ac_fn_c_try_cpp ()
     3012{
     3013  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3014  if { { ac_try="$ac_cpp conftest.$ac_ext"
     3015case "(($ac_try" in
     3016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3017  *) ac_try_echo=$ac_try;;
     3018esac
     3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3020printf "%s\n" "$ac_try_echo"; } >&5
     3021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     3022  ac_status=$?
     3023  if test -s conftest.err; then
     3024    grep -v '^ *+' conftest.err >conftest.er1
     3025    cat conftest.er1 >&5
     3026    mv -f conftest.er1 conftest.err
     3027  fi
     3028  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3029  test $ac_status = 0; } > conftest.i && {
     3030         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3031         test ! -s conftest.err
     3032       }
     3033then :
     3034  ac_retval=0
     3035else case e in #(
     3036  e) printf "%s\n" "$as_me: failed program was:" >&5
     3037sed 's/^/| /' conftest.$ac_ext >&5
     3038
     3039    ac_retval=1 ;;
     3040esac
     3041fi
     3042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3043  as_fn_set_status $ac_retval
     3044
     3045} # ac_fn_c_try_cpp
     3046
     3047# ac_fn_c_try_link LINENO
     3048# -----------------------
     3049# Try to link conftest.$ac_ext, and return whether this succeeded.
     3050ac_fn_c_try_link ()
     3051{
     3052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3053  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
     3054  if { { ac_try="$ac_link"
     3055case "(($ac_try" in
     3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3057  *) ac_try_echo=$ac_try;;
     3058esac
     3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3060printf "%s\n" "$ac_try_echo"; } >&5
     3061  (eval "$ac_link") 2>conftest.err
     3062  ac_status=$?
     3063  if test -s conftest.err; then
     3064    grep -v '^ *+' conftest.err >conftest.er1
     3065    cat conftest.er1 >&5
     3066    mv -f conftest.er1 conftest.err
     3067  fi
     3068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3069  test $ac_status = 0; } && {
     3070         test -z "$ac_c_werror_flag" ||
     3071         test ! -s conftest.err
     3072       } && test -s conftest$ac_exeext && {
     3073         test "$cross_compiling" = yes ||
     3074         test -x conftest$ac_exeext
     3075       }
     3076then :
     3077  ac_retval=0
     3078else case e in #(
     3079  e) printf "%s\n" "$as_me: failed program was:" >&5
     3080sed 's/^/| /' conftest.$ac_ext >&5
     3081
     3082        ac_retval=1 ;;
     3083esac
     3084fi
     3085  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     3086  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     3087  # interfere with the next link command; also delete a directory that is
     3088  # left behind by Apple's compiler.  We do this before executing the actions.
     3089  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     3090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3091  as_fn_set_status $ac_retval
     3092
     3093} # ac_fn_c_try_link
     3094
     3095# ac_fn_c_check_func LINENO FUNC VAR
     3096# ----------------------------------
     3097# Tests whether FUNC exists, setting the cache variable VAR accordingly
     3098ac_fn_c_check_func ()
     3099{
     3100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     3102printf %s "checking for $2... " >&6; }
     3103if eval test \${$3+y}
     3104then :
     3105  printf %s "(cached) " >&6
     3106else case e in #(
     3107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3108/* end confdefs.h.  */
     3109/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     3110   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     3111#define $2 innocuous_$2
     3112
     3113/* System header to define __stub macros and hopefully few prototypes,
     3114   which can conflict with char $2 (void); below.  */
     3115
     3116#include <limits.h>
     3117#undef $2
     3118
     3119/* Override any GCC internal prototype to avoid an error.
     3120   Use char because int might match the return type of a GCC
     3121   builtin and then its argument prototype would still apply.  */
     3122#ifdef __cplusplus
     3123extern "C"
     3124#endif
     3125char $2 (void);
     3126/* The GNU C library defines this for functions which it implements
     3127    to always fail with ENOSYS.  Some functions are actually named
     3128    something starting with __ and the normal name is an alias.  */
     3129#if defined __stub_$2 || defined __stub___$2
     3130choke me
     3131#endif
     3132
     3133int
     3134main (void)
     3135{
     3136return $2 ();
     3137  ;
     3138  return 0;
     3139}
     3140_ACEOF
     3141if ac_fn_c_try_link "$LINENO"
     3142then :
     3143  eval "$3=yes"
     3144else case e in #(
     3145  e) eval "$3=no" ;;
     3146esac
     3147fi
     3148rm -f core conftest.err conftest.$ac_objext conftest.beam \
     3149    conftest$ac_exeext conftest.$ac_ext ;;
     3150esac
     3151fi
     3152eval ac_res=\$$3
     3153               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     3154printf "%s\n" "$ac_res" >&6; }
     3155  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3156
     3157} # ac_fn_c_check_func
     3158
     3159# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     3160# -------------------------------------------
     3161# Tests whether TYPE exists after having included INCLUDES, setting cache
     3162# variable VAR accordingly.
     3163ac_fn_c_check_type ()
     3164{
     3165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     3167printf %s "checking for $2... " >&6; }
     3168if eval test \${$3+y}
     3169then :
     3170  printf %s "(cached) " >&6
     3171else case e in #(
     3172  e) eval "$3=no"
     3173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3174/* end confdefs.h.  */
     3175$4
     3176int
     3177main (void)
     3178{
     3179if (sizeof ($2))
     3180         return 0;
     3181  ;
     3182  return 0;
     3183}
     3184_ACEOF
     3185if ac_fn_c_try_compile "$LINENO"
     3186then :
     3187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3188/* end confdefs.h.  */
     3189$4
     3190int
     3191main (void)
     3192{
     3193if (sizeof (($2)))
     3194            return 0;
     3195  ;
     3196  return 0;
     3197}
     3198_ACEOF
     3199if ac_fn_c_try_compile "$LINENO"
     3200then :
     3201
     3202else case e in #(
     3203  e) eval "$3=yes" ;;
     3204esac
     3205fi
     3206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3207fi
     3208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     3209esac
     3210fi
     3211eval ac_res=\$$3
     3212               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     3213printf "%s\n" "$ac_res" >&6; }
     3214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3215
     3216} # ac_fn_c_check_type
     3217
     3218# ac_fn_c_try_run LINENO
     3219# ----------------------
     3220# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
     3221# executables *can* be run.
     3222ac_fn_c_try_run ()
     3223{
     3224  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3225  if { { ac_try="$ac_link"
     3226case "(($ac_try" in
     3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3228  *) ac_try_echo=$ac_try;;
     3229esac
     3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3231printf "%s\n" "$ac_try_echo"; } >&5
     3232  (eval "$ac_link") 2>&5
     3233  ac_status=$?
     3234  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3235  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     3236  { { case "(($ac_try" in
     3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3238  *) ac_try_echo=$ac_try;;
     3239esac
     3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3241printf "%s\n" "$ac_try_echo"; } >&5
     3242  (eval "$ac_try") 2>&5
     3243  ac_status=$?
     3244  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3245  test $ac_status = 0; }; }
     3246then :
     3247  ac_retval=0
     3248else case e in #(
     3249  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
     3250       printf "%s\n" "$as_me: failed program was:" >&5
     3251sed 's/^/| /' conftest.$ac_ext >&5
     3252
     3253       ac_retval=$ac_status ;;
     3254esac
     3255fi
     3256  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     3257  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3258  as_fn_set_status $ac_retval
     3259
     3260} # ac_fn_c_try_run
     3261
     3262# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
     3263# --------------------------------------------
     3264# Tries to find the compile-time value of EXPR in a program that includes
     3265# INCLUDES, setting VAR accordingly. Returns whether the value could be
     3266# computed
     3267ac_fn_c_compute_int ()
     3268{
     3269  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3270  if test "$cross_compiling" = yes; then
     3271    # Depending upon the size, compute the lo and hi bounds.
     3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3273/* end confdefs.h.  */
     3274$4
     3275int
     3276main (void)
     3277{
     3278static int test_array [1 - 2 * !(($2) >= 0)];
     3279test_array [0] = 0;
     3280return test_array [0];
     3281
     3282  ;
     3283  return 0;
     3284}
     3285_ACEOF
     3286if ac_fn_c_try_compile "$LINENO"
     3287then :
     3288  ac_lo=0 ac_mid=0
     3289  while :; do
     3290    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3291/* end confdefs.h.  */
     3292$4
     3293int
     3294main (void)
     3295{
     3296static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     3297test_array [0] = 0;
     3298return test_array [0];
     3299
     3300  ;
     3301  return 0;
     3302}
     3303_ACEOF
     3304if ac_fn_c_try_compile "$LINENO"
     3305then :
     3306  ac_hi=$ac_mid; break
     3307else case e in #(
     3308  e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
     3309                        if test $ac_lo -le $ac_mid; then
     3310                          ac_lo= ac_hi=
     3311                          break
     3312                        fi
     3313                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
     3314esac
     3315fi
     3316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3317  done
     3318else case e in #(
     3319  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3320/* end confdefs.h.  */
     3321$4
     3322int
     3323main (void)
     3324{
     3325static int test_array [1 - 2 * !(($2) < 0)];
     3326test_array [0] = 0;
     3327return test_array [0];
     3328
     3329  ;
     3330  return 0;
     3331}
     3332_ACEOF
     3333if ac_fn_c_try_compile "$LINENO"
     3334then :
     3335  ac_hi=-1 ac_mid=-1
     3336  while :; do
     3337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3338/* end confdefs.h.  */
     3339$4
     3340int
     3341main (void)
     3342{
     3343static int test_array [1 - 2 * !(($2) >= $ac_mid)];
     3344test_array [0] = 0;
     3345return test_array [0];
     3346
     3347  ;
     3348  return 0;
     3349}
     3350_ACEOF
     3351if ac_fn_c_try_compile "$LINENO"
     3352then :
     3353  ac_lo=$ac_mid; break
     3354else case e in #(
     3355  e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
     3356                        if test $ac_mid -le $ac_hi; then
     3357                          ac_lo= ac_hi=
     3358                          break
     3359                        fi
     3360                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
     3361esac
     3362fi
     3363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3364  done
     3365else case e in #(
     3366  e) ac_lo= ac_hi= ;;
     3367esac
     3368fi
     3369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     3370esac
     3371fi
     3372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3373# Binary search between lo and hi bounds.
     3374while test "x$ac_lo" != "x$ac_hi"; do
     3375  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     3376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3377/* end confdefs.h.  */
     3378$4
     3379int
     3380main (void)
     3381{
     3382static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     3383test_array [0] = 0;
     3384return test_array [0];
     3385
     3386  ;
     3387  return 0;
     3388}
     3389_ACEOF
     3390if ac_fn_c_try_compile "$LINENO"
     3391then :
     3392  ac_hi=$ac_mid
     3393else case e in #(
     3394  e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
     3395esac
     3396fi
     3397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3398done
     3399case $ac_lo in #((
     3400?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
     3401'') ac_retval=1 ;;
     3402esac
     3403  else
     3404    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3405/* end confdefs.h.  */
     3406$4
     3407static long int longval (void) { return $2; }
     3408static unsigned long int ulongval (void) { return $2; }
     3409#include <stdio.h>
     3410#include <stdlib.h>
     3411int
     3412main (void)
     3413{
     3414
     3415  FILE *f = fopen ("conftest.val", "w");
     3416  if (! f)
     3417    return 1;
     3418  if (($2) < 0)
     3419    {
     3420      long int i = longval ();
     3421      if (i != ($2))
     3422        return 1;
     3423      fprintf (f, "%ld", i);
     3424    }
     3425  else
     3426    {
     3427      unsigned long int i = ulongval ();
     3428      if (i != ($2))
     3429        return 1;
     3430      fprintf (f, "%lu", i);
     3431    }
     3432  /* Do not output a trailing newline, as this causes \r\n confusion
     3433     on some platforms.  */
     3434  return ferror (f) || fclose (f) != 0;
     3435
     3436  ;
     3437  return 0;
     3438}
     3439_ACEOF
     3440if ac_fn_c_try_run "$LINENO"
     3441then :
     3442  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
     3443else case e in #(
     3444  e) ac_retval=1 ;;
     3445esac
     3446fi
     3447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     3448  conftest.$ac_objext conftest.beam conftest.$ac_ext
     3449rm -f conftest.val
     3450
     3451  fi
     3452  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3453  as_fn_set_status $ac_retval
     3454
     3455} # ac_fn_c_compute_int
     3456
     3457# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
     3458# ------------------------------------------------------------------
     3459# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
     3460# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
     3461ac_fn_check_decl ()
     3462{
     3463  ac_save_ac_compile="$ac_compile"
     3464  if test -n "$ac_compile_for_check_decl"; then
     3465    ac_compile="$ac_compile_for_check_decl"
     3466  fi
     3467  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3468  as_decl_name=`echo $2|sed 's/ *(.*//'`
     3469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
     3470printf %s "checking whether $as_decl_name is declared... " >&6; }
     3471if eval test \${$3+y}
     3472then :
     3473  printf %s "(cached) " >&6
     3474else case e in #(
     3475  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
     3476  eval ac_save_FLAGS=\$$6
     3477  as_fn_append $6 " $5"
     3478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3479/* end confdefs.h.  */
     3480$4
     3481int
     3482main (void)
     3483{
     3484#ifndef $as_decl_name
     3485#ifdef __cplusplus
     3486  (void) $as_decl_use;
     3487#else
     3488  (void) $as_decl_name;
     3489#endif
     3490#endif
     3491
     3492  ;
     3493  return 0;
     3494}
     3495_ACEOF
     3496if ac_fn_c_try_compile "$LINENO"
     3497then :
     3498  eval "$3=yes"
     3499else case e in #(
     3500  e) eval "$3=no" ;;
     3501esac
     3502fi
     3503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     3504  eval $6=\$ac_save_FLAGS
     3505 ;;
     3506esac
     3507fi
     3508eval ac_res=\$$3
     3509               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     3510printf "%s\n" "$ac_res" >&6; }
     3511  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3512  ac_compile="$ac_save_ac_compile"
     3513
     3514} # ac_fn_check_decl
     3515
     3516# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
     3517# ----------------------------------------------------
     3518# Tries to find if the field MEMBER exists in type AGGR, after including
     3519# INCLUDES, setting cache variable VAR accordingly.
     3520ac_fn_c_check_member ()
     3521{
     3522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     3523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
     3524printf %s "checking for $2.$3... " >&6; }
     3525if eval test \${$4+y}
     3526then :
     3527  printf %s "(cached) " >&6
     3528else case e in #(
     3529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3530/* end confdefs.h.  */
     3531$5
     3532int
     3533main (void)
     3534{
     3535static $2 ac_aggr;
     3536if (ac_aggr.$3)
     3537return 0;
     3538  ;
     3539  return 0;
     3540}
     3541_ACEOF
     3542if ac_fn_c_try_compile "$LINENO"
     3543then :
     3544  eval "$4=yes"
     3545else case e in #(
     3546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3547/* end confdefs.h.  */
     3548$5
     3549int
     3550main (void)
     3551{
     3552static $2 ac_aggr;
     3553if (sizeof ac_aggr.$3)
     3554return 0;
     3555  ;
     3556  return 0;
     3557}
     3558_ACEOF
     3559if ac_fn_c_try_compile "$LINENO"
     3560then :
     3561  eval "$4=yes"
     3562else case e in #(
     3563  e) eval "$4=no" ;;
     3564esac
     3565fi
     3566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     3567esac
     3568fi
     3569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     3570esac
     3571fi
     3572eval ac_res=\$$4
     3573               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     3574printf "%s\n" "$ac_res" >&6; }
     3575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     3576
     3577} # ac_fn_c_check_member
     3578ac_configure_args_raw=
     3579for ac_arg
     3580do
     3581  case $ac_arg in
     3582  *\'*)
     3583    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     3584  esac
     3585  as_fn_append ac_configure_args_raw " '$ac_arg'"
     3586done
     3587
     3588case $ac_configure_args_raw in
     3589  *$as_nl*)
     3590    ac_safe_unquote= ;;
     3591  *)
     3592    ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
     3593    ac_unsafe_a="$ac_unsafe_z#~"
     3594    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
     3595    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
     3596esac
     3597
     3598cat >config.log <<_ACEOF
    9943599This file contains any messages produced by compilers while
    9953600running configure, to aid debugging if configure makes a mistake.
    9963601
    997 It was created by sed $as_me 4.1.5, which was
    998 generated by GNU Autoconf 2.59.  Invocation command line was
    999 
    1000   $ $0 $@
     3602It was created by GNU sed $as_me 4.9, which was
     3603generated by GNU Autoconf 2.72a.65-d081.  Invocation command line was
     3604
     3605  $ $0$ac_configure_args_raw
    10013606
    10023607_ACEOF
     3608exec 5>>config.log
    10033609{
    10043610cat <<_ASUNAME
     
    10193625/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10203626/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1021 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     3627/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10223628/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10233629/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10303636do
    10313637  IFS=$as_save_IFS
    1032   test -z "$as_dir" && as_dir=.
    1033   echo "PATH: $as_dir"
    1034 done
     3638  case $as_dir in #(((
     3639    '') as_dir=./ ;;
     3640    */) ;;
     3641    *) as_dir=$as_dir/ ;;
     3642  esac
     3643    printf "%s\n" "PATH: $as_dir"
     3644  done
     3645IFS=$as_save_IFS
    10353646
    10363647} >&5
     
    10543665ac_configure_args0=
    10553666ac_configure_args1=
    1056 ac_sep=
    10573667ac_must_keep_next=false
    10583668for ac_pass in 1 2
     
    10653675    | -silent | --silent | --silen | --sile | --sil)
    10663676      continue ;;
    1067     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1068       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     3677    *\'*)
     3678      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10693679    esac
    10703680    case $ac_pass in
    1071     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     3681    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10723682    2)
    1073       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     3683      as_fn_append ac_configure_args1 " '$ac_arg'"
    10743684      if test $ac_must_keep_next = true; then
    10753685        ac_must_keep_next=false # Got value, back to normal.
     
    10873697        esac
    10883698      fi
    1089       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1090       # Get rid of the leading space.
    1091       ac_sep=" "
     3699      as_fn_append ac_configure_args " '$ac_arg'"
    10923700      ;;
    10933701    esac
    10943702  done
    10953703done
    1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     3704{ ac_configure_args0=; unset ac_configure_args0;}
     3705{ ac_configure_args1=; unset ac_configure_args1;}
    10983706
    10993707# When interrupted or exit'd, cleanup temporary files, and complete
    11003708# config.log.  We remove comments because anyway the quotes in there
    11013709# would cause problems or look ugly.
    1102 # WARNING: Be sure not to use single quotes in there, as some shells,
    1103 # such as our DU 5.0 friend, will then `close' the trap.
     3710# WARNING: Use '\'' to represent an apostrophe within the trap.
     3711# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11043712trap 'exit_status=$?
     3713  # Sanitize IFS.
     3714  IFS=" ""      $as_nl"
    11053715  # Save into config.log some information that might help in debugging.
    11063716  {
    11073717    echo
    11083718
    1109     cat <<\_ASBOX
    1110 ## ---------------- ##
     3719    printf "%s\n" "## ---------------- ##
    11113720## Cache variables. ##
    1112 ## ---------------- ##
    1113 _ASBOX
     3721## ---------------- ##"
    11143722    echo
    11153723    # The following way of writing the cache mishandles newlines in values,
    1116 {
     3724(
     3725  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     3726    eval ac_val=\$$ac_var
     3727    case $ac_val in #(
     3728    *${as_nl}*)
     3729      case $ac_var in #(
     3730      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     3731printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     3732      esac
     3733      case $ac_var in #(
     3734      _ | IFS | as_nl) ;; #(
     3735      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     3736      *) { eval $ac_var=; unset $ac_var;} ;;
     3737      esac ;;
     3738    esac
     3739  done
    11173740  (set) 2>&1 |
    1118     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1119     *ac_space=\ *)
     3741    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     3742    *${as_nl}ac_space=\ *)
    11203743      sed -n \
    1121         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1122           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     3744        "s/'\''/'\''\\\\'\'''\''/g;
     3745          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     3746      ;; #(
     3747    *)
     3748      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11233749      ;;
    1124     *)
    1125       sed -n \
    1126         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1127       ;;
    1128     esac;
    1129 }
     3750    esac |
     3751    sort
     3752)
    11303753    echo
    11313754
    1132     cat <<\_ASBOX
    1133 ## ----------------- ##
     3755    printf "%s\n" "## ----------------- ##
    11343756## Output variables. ##
    1135 ## ----------------- ##
    1136 _ASBOX
     3757## ----------------- ##"
    11373758    echo
    11383759    for ac_var in $ac_subst_vars
    11393760    do
    1140       eval ac_val=$`echo $ac_var`
    1141       echo "$ac_var='"'"'$ac_val'"'"'"
     3761      eval ac_val=\$$ac_var
     3762      case $ac_val in
     3763      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     3764      esac
     3765      printf "%s\n" "$ac_var='\''$ac_val'\''"
    11423766    done | sort
    11433767    echo
    11443768
    11453769    if test -n "$ac_subst_files"; then
    1146       cat <<\_ASBOX
    1147 ## ------------- ##
    1148 ## Output files. ##
    1149 ## ------------- ##
    1150 _ASBOX
     3770      printf "%s\n" "## ------------------- ##
     3771## File substitutions. ##
     3772## ------------------- ##"
    11513773      echo
    11523774      for ac_var in $ac_subst_files
    11533775      do
    1154         eval ac_val=$`echo $ac_var`
    1155         echo "$ac_var='"'"'$ac_val'"'"'"
     3776        eval ac_val=\$$ac_var
     3777        case $ac_val in
     3778        *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     3779        esac
     3780        printf "%s\n" "$ac_var='\''$ac_val'\''"
    11563781      done | sort
    11573782      echo
     
    11593784
    11603785    if test -s confdefs.h; then
    1161       cat <<\_ASBOX
    1162 ## ----------- ##
     3786      printf "%s\n" "## ----------- ##
    11633787## confdefs.h. ##
    1164 ## ----------- ##
    1165 _ASBOX
     3788## ----------- ##"
    11663789      echo
    1167       sed "/^$/d" confdefs.h | sort
     3790      cat confdefs.h
    11683791      echo
    11693792    fi
    11703793    test "$ac_signal" != 0 &&
    1171       echo "$as_me: caught signal $ac_signal"
    1172     echo "$as_me: exit $exit_status"
     3794      printf "%s\n" "$as_me: caught signal $ac_signal"
     3795    printf "%s\n" "$as_me: exit $exit_status"
    11733796  } >&5
    1174   rm -f core *.core &&
    1175   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     3797  rm -f core *.core core.conftest.* &&
     3798    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11763799    exit $exit_status
    1177      ' 0
     3800' 0
    11783801for ac_signal in 1 2 13 15; do
    1179   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     3802  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11803803done
    11813804ac_signal=0
    11823805
    11833806# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1184 rm -rf conftest* confdefs.h
    1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1186 echo >confdefs.h
     3807rm -f -r conftest* confdefs.h
     3808
     3809printf "%s\n" "/* confdefs.h */" > confdefs.h
    11873810
    11883811# Predefined preprocessor variables.
    11893812
    1190 cat >>confdefs.h <<_ACEOF
    1191 #define PACKAGE_NAME "$PACKAGE_NAME"
    1192 _ACEOF
    1193 
    1194 
    1195 cat >>confdefs.h <<_ACEOF
    1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    1197 _ACEOF
    1198 
    1199 
    1200 cat >>confdefs.h <<_ACEOF
    1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
    1202 _ACEOF
    1203 
    1204 
    1205 cat >>confdefs.h <<_ACEOF
    1206 #define PACKAGE_STRING "$PACKAGE_STRING"
    1207 _ACEOF
    1208 
    1209 
    1210 cat >>confdefs.h <<_ACEOF
    1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    1212 _ACEOF
     3813printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
     3814
     3815printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
     3816
     3817printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
     3818
     3819printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
     3820
     3821printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
     3822
     3823printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
    12133824
    12143825
    12153826# Let the site file select an alternate cache file if it wants to.
    1216 # Prefer explicitly selected file to automatically selected ones.
    1217 if test -z "$CONFIG_SITE"; then
    1218   if test "x$prefix" != xNONE; then
    1219     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1220   else
    1221     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1222   fi
    1223 fi
    1224 for ac_site_file in $CONFIG_SITE; do
    1225   if test -r "$ac_site_file"; then
    1226     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1227 echo "$as_me: loading site script $ac_site_file" >&6;}
     3827# Prefer an explicitly selected file to automatically selected ones.
     3828if test -n "$CONFIG_SITE"; then
     3829  ac_site_files="$CONFIG_SITE"
     3830elif test "x$prefix" != xNONE; then
     3831  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
     3832else
     3833  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     3834fi
     3835
     3836for ac_site_file in $ac_site_files
     3837do
     3838  case $ac_site_file in #(
     3839  */*) :
     3840     ;; #(
     3841  *) :
     3842    ac_site_file=./$ac_site_file ;;
     3843esac
     3844  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
     3845    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     3846printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
    12283847    sed 's/^/| /' "$ac_site_file" >&5
    1229     . "$ac_site_file"
     3848    . "$ac_site_file" \
     3849      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     3850printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     3851as_fn_error $? "failed to load site script $ac_site_file
     3852See 'config.log' for more details" "$LINENO" 5; }
    12303853  fi
    12313854done
    12323855
    12333856if test -r "$cache_file"; then
    1234   # Some versions of bash will fail to source /dev/null (special
    1235   # files actually), so we avoid doing that.
    1236   if test -f "$cache_file"; then
    1237     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1238 echo "$as_me: loading cache $cache_file" >&6;}
     3857  # Some versions of bash will fail to source /dev/null (special files
     3858  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     3859  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     3860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     3861printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    12393862    case $cache_file in
    1240       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1241       *)                      . ./$cache_file;;
     3863      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     3864      *)                      . "./$cache_file";;
    12423865    esac
    12433866  fi
    12443867else
    1245   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1246 echo "$as_me: creating cache $cache_file" >&6;}
     3868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     3869printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
    12473870  >$cache_file
    12483871fi
    12493872
    1250 # Check that the precious variables saved in the cache have kept the same
    1251 # value.
    1252 ac_cache_corrupted=false
    1253 for ac_var in `(set) 2>&1 |
    1254                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    1255   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    1256   eval ac_new_set=\$ac_env_${ac_var}_set
    1257   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1258   eval ac_new_val="\$ac_env_${ac_var}_value"
    1259   case $ac_old_set,$ac_new_set in
    1260     set,)
    1261       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    1263       ac_cache_corrupted=: ;;
    1264     ,set)
    1265       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    1267       ac_cache_corrupted=: ;;
    1268     ,);;
    1269     *)
    1270       if test "x$ac_old_val" != "x$ac_new_val"; then
    1271         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1273         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1274 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1275         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1276 echo "$as_me:   current value: $ac_new_val" >&2;}
    1277         ac_cache_corrupted=:
    1278       fi;;
    1279   esac
    1280   # Pass precious variables to config.status.
    1281   if test "$ac_new_set" = set; then
    1282     case $ac_new_val in
    1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1284       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    1285     *) ac_arg=$ac_var=$ac_new_val ;;
    1286     esac
    1287     case " $ac_configure_args " in
    1288       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1289       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    1290     esac
    1291   fi
    1292 done
    1293 if $ac_cache_corrupted; then
    1294   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1296   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1298    { (exit 1); exit 1; }; }
    1299 fi
    1300 
    1301 ac_ext=c
    1302 ac_cpp='$CPP $CPPFLAGS'
    1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1306 
    1307 
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323 
    1324 
    1325 
    1326 
    1327 
    1328 
    1329 
    1330 
    1331 
    1332 
    1333 ac_aux_dir=
    1334 for ac_dir in config $srcdir/config; do
    1335   if test -f $ac_dir/install-sh; then
    1336     ac_aux_dir=$ac_dir
    1337     ac_install_sh="$ac_aux_dir/install-sh -c"
    1338     break
    1339   elif test -f $ac_dir/install.sh; then
    1340     ac_aux_dir=$ac_dir
    1341     ac_install_sh="$ac_aux_dir/install.sh -c"
    1342     break
    1343   elif test -f $ac_dir/shtool; then
    1344     ac_aux_dir=$ac_dir
    1345     ac_install_sh="$ac_aux_dir/shtool install -c"
    1346     break
    1347   fi
    1348 done
    1349 if test -z "$ac_aux_dir"; then
    1350   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
    1351 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
    1352    { (exit 1); exit 1; }; }
    1353 fi
    1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    1357 
    1358 
    1359           ac_config_headers="$ac_config_headers config.h:config_h.in"
    1360 
    1361 
    1362 am__api_version="1.9"
    1363 # Find a good install program.  We prefer a C program (faster),
    1364 # so one script is as good as another.  But avoid the broken or
    1365 # incompatible versions:
    1366 # SysV /etc/install, /usr/sbin/install
    1367 # SunOS /usr/etc/install
    1368 # IRIX /sbin/install
    1369 # AIX /bin/install
    1370 # AmigaOS /C/install, which installs bootblocks on floppy discs
    1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1374 # OS/2's system install, which has a completely different semantic
    1375 # ./install, which can be erroneously created by make from ./install.sh.
    1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    1378 if test -z "$INSTALL"; then
    1379 if test "${ac_cv_path_install+set}" = set; then
    1380   echo $ECHO_N "(cached) $ECHO_C" >&6
    1381 else
    1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1383 for as_dir in $PATH
    1384 do
    1385   IFS=$as_save_IFS
    1386   test -z "$as_dir" && as_dir=.
    1387   # Account for people who put trailing slashes in PATH elements.
    1388 case $as_dir/ in
    1389   ./ | .// | /cC/* | \
    1390   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    1391   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    1392   /usr/ucb/* ) ;;
    1393   *)
    1394     # OSF1 and SCO ODT 3.0 have their own names for install.
    1395     # Don't use installbsd from OSF since it installs stuff as root
    1396     # by default.
    1397     for ac_prog in ginstall scoinst install; do
    1398       for ac_exec_ext in '' $ac_executable_extensions; do
    1399         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    1400           if test $ac_prog = install &&
    1401             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1402             # AIX install.  It has an incompatible calling convention.
    1403             :
    1404           elif test $ac_prog = install &&
    1405             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1406             # program-specific install script used by HP pwplus--don't use.
    1407             :
    1408           else
    1409             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    1410             break 3
    1411           fi
    1412         fi
    1413       done
    1414     done
    1415     ;;
    1416 esac
    1417 done
    1418 
    1419 
    1420 fi
    1421   if test "${ac_cv_path_install+set}" = set; then
    1422     INSTALL=$ac_cv_path_install
    1423   else
    1424     # As a last resort, use the slow shell script.  We don't cache a
    1425     # path for INSTALL within a source directory, because that will
    1426     # break other packages using the cache if that directory is
    1427     # removed, or if the path is relative.
    1428     INSTALL=$ac_install_sh
    1429   fi
    1430 fi
    1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
    1432 echo "${ECHO_T}$INSTALL" >&6
    1433 
    1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    1435 # It thinks the first close brace ends the variable substitution.
    1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    1437 
    1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    1439 
    1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1441 
    1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
    1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
    1444 # Just in case
    1445 sleep 1
    1446 echo timestamp > conftest.file
    1447 # Do `set' in a subshell so we don't clobber the current shell's
    1448 # arguments.  Must try -L first in case configure is actually a
    1449 # symlink; some systems play weird games with the mod time of symlinks
    1450 # (eg FreeBSD returns the mod time of the symlink's containing
    1451 # directory).
    1452 if (
    1453    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    1454    if test "$*" = "X"; then
    1455       # -L didn't work.
    1456       set X `ls -t $srcdir/configure conftest.file`
    1457    fi
    1458    rm -f conftest.file
    1459    if test "$*" != "X $srcdir/configure conftest.file" \
    1460       && test "$*" != "X conftest.file $srcdir/configure"; then
    1461 
    1462       # If neither matched, then we have a broken ls.  This can happen
    1463       # if, for instance, CONFIG_SHELL is bash and it inherits a
    1464       # broken ls alias from the environment.  This has actually
    1465       # happened.  Such a system could not be considered "sane".
    1466       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
    1467 alias in your environment" >&5
    1468 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
    1469 alias in your environment" >&2;}
    1470    { (exit 1); exit 1; }; }
    1471    fi
    1472 
    1473    test "$2" = conftest.file
    1474    )
    1475 then
    1476    # Ok.
    1477    :
    1478 else
    1479    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
    1480 Check your system clock" >&5
    1481 echo "$as_me: error: newly created file is older than distributed files!
    1482 Check your system clock" >&2;}
    1483    { (exit 1); exit 1; }; }
    1484 fi
    1485 echo "$as_me:$LINENO: result: yes" >&5
    1486 echo "${ECHO_T}yes" >&6
    1487 test "$program_prefix" != NONE &&
    1488   program_transform_name="s,^,$program_prefix,;$program_transform_name"
    1489 # Use a double $ so make ignores it.
    1490 test "$program_suffix" != NONE &&
    1491   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    1492 # Double any \ or $.  echo might interpret backslashes.
    1493 # By default was `s,x,x', remove it if useless.
    1494 cat <<\_ACEOF >conftest.sed
    1495 s/[\\$]/&&/g;s/;s,x,x,$//
    1496 _ACEOF
    1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    1498 rm conftest.sed
    1499 
    1500 # expand $ac_aux_dir to an absolute path
    1501 am_aux_dir=`cd $ac_aux_dir && pwd`
    1502 
    1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    1504 # Use eval to expand $SHELL
    1505 if eval "$MISSING --run true"; then
    1506   am_missing_run="$MISSING --run "
    1507 else
    1508   am_missing_run=
    1509   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    1511 fi
    1512 
    1513 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    1514   # We used to keeping the `.' as first argument, in order to
    1515   # allow $(mkdir_p) to be used without argument.  As in
    1516   #   $(mkdir_p) $(somedir)
    1517   # where $(somedir) is conditionally defined.  However this is wrong
    1518   # for two reasons:
    1519   #  1. if the package is installed by a user who cannot write `.'
    1520   #     make install will fail,
    1521   #  2. the above comment should most certainly read
    1522   #     $(mkdir_p) $(DESTDIR)$(somedir)
    1523   #     so it does not work when $(somedir) is undefined and
    1524   #     $(DESTDIR) is not.
    1525   #  To support the latter case, we have to write
    1526   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    1527   #  so the `.' trick is pointless.
    1528   mkdir_p='mkdir -p --'
    1529 else
    1530   # On NextStep and OpenStep, the `mkdir' command does not
    1531   # recognize any option.  It will interpret all options as
    1532   # directories to create, and then abort because `.' already
    1533   # exists.
    1534   for d in ./-p ./--version;
    1535   do
    1536     test -d $d && rmdir $d
    1537   done
    1538   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    1539   if test -f "$ac_aux_dir/mkinstalldirs"; then
    1540     mkdir_p='$(mkinstalldirs)'
    1541   else
    1542     mkdir_p='$(install_sh) -d'
    1543   fi
    1544 fi
    1545 
    1546 for ac_prog in gawk mawk nawk awk
    1547 do
    1548   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1549 set dummy $ac_prog; ac_word=$2
    1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1552 if test "${ac_cv_prog_AWK+set}" = set; then
    1553   echo $ECHO_N "(cached) $ECHO_C" >&6
    1554 else
    1555   if test -n "$AWK"; then
    1556   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    1557 else
    1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1559 for as_dir in $PATH
    1560 do
    1561   IFS=$as_save_IFS
    1562   test -z "$as_dir" && as_dir=.
    1563   for ac_exec_ext in '' $ac_executable_extensions; do
    1564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1565     ac_cv_prog_AWK="$ac_prog"
    1566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1567     break 2
    1568   fi
    1569 done
    1570 done
    1571 
    1572 fi
    1573 fi
    1574 AWK=$ac_cv_prog_AWK
    1575 if test -n "$AWK"; then
    1576   echo "$as_me:$LINENO: result: $AWK" >&5
    1577 echo "${ECHO_T}$AWK" >&6
    1578 else
    1579   echo "$as_me:$LINENO: result: no" >&5
    1580 echo "${ECHO_T}no" >&6
    1581 fi
    1582 
    1583   test -n "$AWK" && break
    1584 done
    1585 
    1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    1590   echo $ECHO_N "(cached) $ECHO_C" >&6
    1591 else
    1592   cat >conftest.make <<\_ACEOF
    1593 all:
    1594         @echo 'ac_maketemp="$(MAKE)"'
    1595 _ACEOF
    1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    1598 if test -n "$ac_maketemp"; then
    1599   eval ac_cv_prog_make_${ac_make}_set=yes
    1600 else
    1601   eval ac_cv_prog_make_${ac_make}_set=no
    1602 fi
    1603 rm -f conftest.make
    1604 fi
    1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1606   echo "$as_me:$LINENO: result: yes" >&5
    1607 echo "${ECHO_T}yes" >&6
    1608   SET_MAKE=
    1609 else
    1610   echo "$as_me:$LINENO: result: no" >&5
    1611 echo "${ECHO_T}no" >&6
    1612   SET_MAKE="MAKE=${MAKE-make}"
    1613 fi
    1614 
    1615 rm -rf .tst 2>/dev/null
    1616 mkdir .tst 2>/dev/null
    1617 if test -d .tst; then
    1618   am__leading_dot=.
    1619 else
    1620   am__leading_dot=_
    1621 fi
    1622 rmdir .tst 2>/dev/null
    1623 
    1624 # test to see if srcdir already configured
    1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    1626    test -f $srcdir/config.status; then
    1627   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
    1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
    1629    { (exit 1); exit 1; }; }
    1630 fi
    1631 
    1632 # test whether we have cygpath
    1633 if test -z "$CYGPATH_W"; then
    1634   if (cygpath --version) >/dev/null 2>/dev/null; then
    1635     CYGPATH_W='cygpath -w'
    1636   else
    1637     CYGPATH_W=echo
    1638   fi
    1639 fi
    1640 
    1641 
    1642 # Define the identity of the package.
    1643  PACKAGE='sed'
    1644  VERSION='4.1.5'
    1645 
    1646 
    1647 cat >>confdefs.h <<_ACEOF
    1648 #define PACKAGE "$PACKAGE"
    1649 _ACEOF
    1650 
    1651 
    1652 cat >>confdefs.h <<_ACEOF
    1653 #define VERSION "$VERSION"
    1654 _ACEOF
    1655 
    1656 # Some tools Automake needs.
    1657 
    1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
    1659 
    1660 
    1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
    1662 
    1663 
    1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
    1665 
    1666 
    1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
    1668 
    1669 
    1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    1671 
    1672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    1673 
    1674 # Installed binaries are usually stripped using `strip' when the user
    1675 # run `make install-strip'.  However `strip' might not be the right
    1676 # tool to use in cross-compilation environments, therefore Automake
    1677 # will honor the `STRIP' environment variable to overrule this program.
    1678 if test "$cross_compiling" != no; then
    1679   if test -n "$ac_tool_prefix"; then
    1680   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
    1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
    1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1684 if test "${ac_cv_prog_STRIP+set}" = set; then
    1685   echo $ECHO_N "(cached) $ECHO_C" >&6
    1686 else
    1687   if test -n "$STRIP"; then
    1688   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    1689 else
    1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1691 for as_dir in $PATH
    1692 do
    1693   IFS=$as_save_IFS
    1694   test -z "$as_dir" && as_dir=.
    1695   for ac_exec_ext in '' $ac_executable_extensions; do
    1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1697     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1699     break 2
    1700   fi
    1701 done
    1702 done
    1703 
    1704 fi
    1705 fi
    1706 STRIP=$ac_cv_prog_STRIP
    1707 if test -n "$STRIP"; then
    1708   echo "$as_me:$LINENO: result: $STRIP" >&5
    1709 echo "${ECHO_T}$STRIP" >&6
    1710 else
    1711   echo "$as_me:$LINENO: result: no" >&5
    1712 echo "${ECHO_T}no" >&6
    1713 fi
    1714 
    1715 fi
    1716 if test -z "$ac_cv_prog_STRIP"; then
    1717   ac_ct_STRIP=$STRIP
    1718   # Extract the first word of "strip", so it can be a program name with args.
    1719 set dummy strip; ac_word=$2
    1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    1723   echo $ECHO_N "(cached) $ECHO_C" >&6
    1724 else
    1725   if test -n "$ac_ct_STRIP"; then
    1726   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    1727 else
    1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1729 for as_dir in $PATH
    1730 do
    1731   IFS=$as_save_IFS
    1732   test -z "$as_dir" && as_dir=.
    1733   for ac_exec_ext in '' $ac_executable_extensions; do
    1734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1735     ac_cv_prog_ac_ct_STRIP="strip"
    1736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1737     break 2
    1738   fi
    1739 done
    1740 done
    1741 
    1742   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
    1743 fi
    1744 fi
    1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    1746 if test -n "$ac_ct_STRIP"; then
    1747   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
    1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
    1749 else
    1750   echo "$as_me:$LINENO: result: no" >&5
    1751 echo "${ECHO_T}no" >&6
    1752 fi
    1753 
    1754   STRIP=$ac_ct_STRIP
    1755 else
    1756   STRIP="$ac_cv_prog_STRIP"
    1757 fi
    1758 
    1759 fi
    1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    1761 
    1762 # We need awk for the "check" target.  The system "awk" is bad on
    1763 # some platforms.
    1764 # Always define AMTAR for backward compatibility.
    1765 
    1766 AMTAR=${AMTAR-"${am_missing_run}tar"}
    1767 
    1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
    1769 
    1770 
    1771 
    1772 
    1773 
    1774 
    1775 SED_FEATURE_VERSION=4.1
    1776 
    1777 cat >>confdefs.h <<_ACEOF
    1778 #define SED_FEATURE_VERSION "$SED_FEATURE_VERSION"
    1779 _ACEOF
    1780 
    1781 
    1782 
    1783 ac_ext=c
    1784 ac_cpp='$CPP $CPPFLAGS'
    1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1788 if test -n "$ac_tool_prefix"; then
    1789   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1793 if test "${ac_cv_prog_CC+set}" = set; then
    1794   echo $ECHO_N "(cached) $ECHO_C" >&6
    1795 else
    1796   if test -n "$CC"; then
    1797   ac_cv_prog_CC="$CC" # Let the user override the test.
    1798 else
    1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1800 for as_dir in $PATH
    1801 do
    1802   IFS=$as_save_IFS
    1803   test -z "$as_dir" && as_dir=.
    1804   for ac_exec_ext in '' $ac_executable_extensions; do
    1805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1806     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1808     break 2
    1809   fi
    1810 done
    1811 done
    1812 
    1813 fi
    1814 fi
    1815 CC=$ac_cv_prog_CC
    1816 if test -n "$CC"; then
    1817   echo "$as_me:$LINENO: result: $CC" >&5
    1818 echo "${ECHO_T}$CC" >&6
    1819 else
    1820   echo "$as_me:$LINENO: result: no" >&5
    1821 echo "${ECHO_T}no" >&6
    1822 fi
    1823 
    1824 fi
    1825 if test -z "$ac_cv_prog_CC"; then
    1826   ac_ct_CC=$CC
    1827   # Extract the first word of "gcc", so it can be a program name with args.
    1828 set dummy gcc; ac_word=$2
    1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1832   echo $ECHO_N "(cached) $ECHO_C" >&6
    1833 else
    1834   if test -n "$ac_ct_CC"; then
    1835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1836 else
    1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1838 for as_dir in $PATH
    1839 do
    1840   IFS=$as_save_IFS
    1841   test -z "$as_dir" && as_dir=.
    1842   for ac_exec_ext in '' $ac_executable_extensions; do
    1843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1844     ac_cv_prog_ac_ct_CC="gcc"
    1845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1846     break 2
    1847   fi
    1848 done
    1849 done
    1850 
    1851 fi
    1852 fi
    1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1854 if test -n "$ac_ct_CC"; then
    1855   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1856 echo "${ECHO_T}$ac_ct_CC" >&6
    1857 else
    1858   echo "$as_me:$LINENO: result: no" >&5
    1859 echo "${ECHO_T}no" >&6
    1860 fi
    1861 
    1862   CC=$ac_ct_CC
    1863 else
    1864   CC="$ac_cv_prog_CC"
    1865 fi
    1866 
    1867 if test -z "$CC"; then
    1868   if test -n "$ac_tool_prefix"; then
    1869   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1870 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1873 if test "${ac_cv_prog_CC+set}" = set; then
    1874   echo $ECHO_N "(cached) $ECHO_C" >&6
    1875 else
    1876   if test -n "$CC"; then
    1877   ac_cv_prog_CC="$CC" # Let the user override the test.
    1878 else
    1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1880 for as_dir in $PATH
    1881 do
    1882   IFS=$as_save_IFS
    1883   test -z "$as_dir" && as_dir=.
    1884   for ac_exec_ext in '' $ac_executable_extensions; do
    1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1886     ac_cv_prog_CC="${ac_tool_prefix}cc"
    1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1888     break 2
    1889   fi
    1890 done
    1891 done
    1892 
    1893 fi
    1894 fi
    1895 CC=$ac_cv_prog_CC
    1896 if test -n "$CC"; then
    1897   echo "$as_me:$LINENO: result: $CC" >&5
    1898 echo "${ECHO_T}$CC" >&6
    1899 else
    1900   echo "$as_me:$LINENO: result: no" >&5
    1901 echo "${ECHO_T}no" >&6
    1902 fi
    1903 
    1904 fi
    1905 if test -z "$ac_cv_prog_CC"; then
    1906   ac_ct_CC=$CC
    1907   # Extract the first word of "cc", so it can be a program name with args.
    1908 set dummy cc; ac_word=$2
    1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1912   echo $ECHO_N "(cached) $ECHO_C" >&6
    1913 else
    1914   if test -n "$ac_ct_CC"; then
    1915   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1916 else
    1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1918 for as_dir in $PATH
    1919 do
    1920   IFS=$as_save_IFS
    1921   test -z "$as_dir" && as_dir=.
    1922   for ac_exec_ext in '' $ac_executable_extensions; do
    1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1924     ac_cv_prog_ac_ct_CC="cc"
    1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1926     break 2
    1927   fi
    1928 done
    1929 done
    1930 
    1931 fi
    1932 fi
    1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1934 if test -n "$ac_ct_CC"; then
    1935   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1936 echo "${ECHO_T}$ac_ct_CC" >&6
    1937 else
    1938   echo "$as_me:$LINENO: result: no" >&5
    1939 echo "${ECHO_T}no" >&6
    1940 fi
    1941 
    1942   CC=$ac_ct_CC
    1943 else
    1944   CC="$ac_cv_prog_CC"
    1945 fi
    1946 
    1947 fi
    1948 if test -z "$CC"; then
    1949   # Extract the first word of "cc", so it can be a program name with args.
    1950 set dummy cc; ac_word=$2
    1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1953 if test "${ac_cv_prog_CC+set}" = set; then
    1954   echo $ECHO_N "(cached) $ECHO_C" >&6
    1955 else
    1956   if test -n "$CC"; then
    1957   ac_cv_prog_CC="$CC" # Let the user override the test.
    1958 else
    1959   ac_prog_rejected=no
    1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1961 for as_dir in $PATH
    1962 do
    1963   IFS=$as_save_IFS
    1964   test -z "$as_dir" && as_dir=.
    1965   for ac_exec_ext in '' $ac_executable_extensions; do
    1966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1967     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    1968        ac_prog_rejected=yes
    1969        continue
    1970      fi
    1971     ac_cv_prog_CC="cc"
    1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1973     break 2
    1974   fi
    1975 done
    1976 done
    1977 
    1978 if test $ac_prog_rejected = yes; then
    1979   # We found a bogon in the path, so make sure we never use it.
    1980   set dummy $ac_cv_prog_CC
    1981   shift
    1982   if test $# != 0; then
    1983     # We chose a different compiler from the bogus one.
    1984     # However, it has the same basename, so the bogon will be chosen
    1985     # first if we set CC to just the basename; use the full file name.
    1986     shift
    1987     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    1988   fi
    1989 fi
    1990 fi
    1991 fi
    1992 CC=$ac_cv_prog_CC
    1993 if test -n "$CC"; then
    1994   echo "$as_me:$LINENO: result: $CC" >&5
    1995 echo "${ECHO_T}$CC" >&6
    1996 else
    1997   echo "$as_me:$LINENO: result: no" >&5
    1998 echo "${ECHO_T}no" >&6
    1999 fi
    2000 
    2001 fi
    2002 if test -z "$CC"; then
    2003   if test -n "$ac_tool_prefix"; then
    2004   for ac_prog in cl
    2005   do
    2006     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2010 if test "${ac_cv_prog_CC+set}" = set; then
    2011   echo $ECHO_N "(cached) $ECHO_C" >&6
    2012 else
    2013   if test -n "$CC"; then
    2014   ac_cv_prog_CC="$CC" # Let the user override the test.
    2015 else
    2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2017 for as_dir in $PATH
    2018 do
    2019   IFS=$as_save_IFS
    2020   test -z "$as_dir" && as_dir=.
    2021   for ac_exec_ext in '' $ac_executable_extensions; do
    2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2023     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2025     break 2
    2026   fi
    2027 done
    2028 done
    2029 
    2030 fi
    2031 fi
    2032 CC=$ac_cv_prog_CC
    2033 if test -n "$CC"; then
    2034   echo "$as_me:$LINENO: result: $CC" >&5
    2035 echo "${ECHO_T}$CC" >&6
    2036 else
    2037   echo "$as_me:$LINENO: result: no" >&5
    2038 echo "${ECHO_T}no" >&6
    2039 fi
    2040 
    2041     test -n "$CC" && break
    2042   done
    2043 fi
    2044 if test -z "$CC"; then
    2045   ac_ct_CC=$CC
    2046   for ac_prog in cl
    2047 do
    2048   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2049 set dummy $ac_prog; ac_word=$2
    2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2053   echo $ECHO_N "(cached) $ECHO_C" >&6
    2054 else
    2055   if test -n "$ac_ct_CC"; then
    2056   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2057 else
    2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2059 for as_dir in $PATH
    2060 do
    2061   IFS=$as_save_IFS
    2062   test -z "$as_dir" && as_dir=.
    2063   for ac_exec_ext in '' $ac_executable_extensions; do
    2064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2065     ac_cv_prog_ac_ct_CC="$ac_prog"
    2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2067     break 2
    2068   fi
    2069 done
    2070 done
    2071 
    2072 fi
    2073 fi
    2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2075 if test -n "$ac_ct_CC"; then
    2076   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2077 echo "${ECHO_T}$ac_ct_CC" >&6
    2078 else
    2079   echo "$as_me:$LINENO: result: no" >&5
    2080 echo "${ECHO_T}no" >&6
    2081 fi
    2082 
    2083   test -n "$ac_ct_CC" && break
    2084 done
    2085 
    2086   CC=$ac_ct_CC
    2087 fi
    2088 
    2089 fi
    2090 
    2091 
    2092 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2093 See \`config.log' for more details." >&5
    2094 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2095 See \`config.log' for more details." >&2;}
    2096    { (exit 1); exit 1; }; }
    2097 
    2098 # Provide some information about the compiler.
    2099 echo "$as_me:$LINENO:" \
    2100      "checking for C compiler version" >&5
    2101 ac_compiler=`set X $ac_compile; echo $2`
    2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2103   (eval $ac_compiler --version </dev/null >&5) 2>&5
    2104   ac_status=$?
    2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2106   (exit $ac_status); }
    2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2108   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2109   ac_status=$?
    2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2111   (exit $ac_status); }
    2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2113   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2114   ac_status=$?
    2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2116   (exit $ac_status); }
    2117 
    2118 cat >conftest.$ac_ext <<_ACEOF
    2119 /* confdefs.h.  */
    2120 _ACEOF
    2121 cat confdefs.h >>conftest.$ac_ext
    2122 cat >>conftest.$ac_ext <<_ACEOF
    2123 /* end confdefs.h.  */
    2124 
    2125 int
    2126 main ()
    2127 {
    2128 
    2129   ;
    2130   return 0;
    2131 }
    2132 _ACEOF
    2133 ac_clean_files_save=$ac_clean_files
    2134 ac_clean_files="$ac_clean_files a.out a.exe b.out"
    2135 # Try to create an executable without -o first, disregard a.out.
    2136 # It will help us diagnose broken compilers, and finding out an intuition
    2137 # of exeext.
    2138 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2139 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2141 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    2142   (eval $ac_link_default) 2>&5
    2143   ac_status=$?
    2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2145   (exit $ac_status); }; then
    2146   # Find the output, starting from the most likely.  This scheme is
    2147 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    2148 # resort.
    2149 
    2150 # Be careful to initialize this variable, since it used to be cached.
    2151 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    2152 ac_cv_exeext=
    2153 # b.out is created by i960 compilers.
    2154 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
    2155 do
    2156   test -f "$ac_file" || continue
    2157   case $ac_file in
    2158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    2159         ;;
    2160     conftest.$ac_ext )
    2161         # This is the source file.
    2162         ;;
    2163     [ab].out )
    2164         # We found the default executable, but exeext='' is most
    2165         # certainly right.
    2166         break;;
    2167     *.* )
    2168         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2169         # FIXME: I believe we export ac_cv_exeext for Libtool,
    2170         # but it would be cool to find out if it's true.  Does anybody
    2171         # maintain Libtool? --akim.
    2172         export ac_cv_exeext
    2173         break;;
    2174     * )
    2175         break;;
    2176   esac
    2177 done
    2178 else
    2179   echo "$as_me: failed program was:" >&5
    2180 sed 's/^/| /' conftest.$ac_ext >&5
    2181 
    2182 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    2183 See \`config.log' for more details." >&5
    2184 echo "$as_me: error: C compiler cannot create executables
    2185 See \`config.log' for more details." >&2;}
    2186    { (exit 77); exit 77; }; }
    2187 fi
    2188 
    2189 ac_exeext=$ac_cv_exeext
    2190 echo "$as_me:$LINENO: result: $ac_file" >&5
    2191 echo "${ECHO_T}$ac_file" >&6
    2192 
    2193 # Check the compiler produces executables we can run.  If not, either
    2194 # the compiler is broken, or we cross compile.
    2195 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2196 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    2197 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2198 # If not cross compiling, check that we can run a simple program.
    2199 if test "$cross_compiling" != yes; then
    2200   if { ac_try='./$ac_file'
    2201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2202   (eval $ac_try) 2>&5
    2203   ac_status=$?
    2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2205   (exit $ac_status); }; }; then
    2206     cross_compiling=no
    2207   else
    2208     if test "$cross_compiling" = maybe; then
    2209         cross_compiling=yes
    2210     else
    2211         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2212 If you meant to cross compile, use \`--host'.
    2213 See \`config.log' for more details." >&5
    2214 echo "$as_me: error: cannot run C compiled programs.
    2215 If you meant to cross compile, use \`--host'.
    2216 See \`config.log' for more details." >&2;}
    2217    { (exit 1); exit 1; }; }
    2218     fi
    2219   fi
    2220 fi
    2221 echo "$as_me:$LINENO: result: yes" >&5
    2222 echo "${ECHO_T}yes" >&6
    2223 
    2224 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2225 ac_clean_files=$ac_clean_files_save
    2226 # Check the compiler produces executables we can run.  If not, either
    2227 # the compiler is broken, or we cross compile.
    2228 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2229 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2230 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2231 echo "${ECHO_T}$cross_compiling" >&6
    2232 
    2233 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2234 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2236   (eval $ac_link) 2>&5
    2237   ac_status=$?
    2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2239   (exit $ac_status); }; then
    2240   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    2241 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    2242 # work properly (i.e., refer to `conftest.exe'), while it won't with
    2243 # `rm'.
    2244 for ac_file in conftest.exe conftest conftest.*; do
    2245   test -f "$ac_file" || continue
    2246   case $ac_file in
    2247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    2248     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2249           export ac_cv_exeext
    2250           break;;
    2251     * ) break;;
    2252   esac
    2253 done
    2254 else
    2255   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2256 See \`config.log' for more details." >&5
    2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2258 See \`config.log' for more details." >&2;}
    2259    { (exit 1); exit 1; }; }
    2260 fi
    2261 
    2262 rm -f conftest$ac_cv_exeext
    2263 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2264 echo "${ECHO_T}$ac_cv_exeext" >&6
    2265 
    2266 rm -f conftest.$ac_ext
    2267 EXEEXT=$ac_cv_exeext
    2268 ac_exeext=$EXEEXT
    2269 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    2271 if test "${ac_cv_objext+set}" = set; then
    2272   echo $ECHO_N "(cached) $ECHO_C" >&6
    2273 else
    2274   cat >conftest.$ac_ext <<_ACEOF
    2275 /* confdefs.h.  */
    2276 _ACEOF
    2277 cat confdefs.h >>conftest.$ac_ext
    2278 cat >>conftest.$ac_ext <<_ACEOF
    2279 /* end confdefs.h.  */
    2280 
    2281 int
    2282 main ()
    2283 {
    2284 
    2285   ;
    2286   return 0;
    2287 }
    2288 _ACEOF
    2289 rm -f conftest.o conftest.obj
    2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2291   (eval $ac_compile) 2>&5
    2292   ac_status=$?
    2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2294   (exit $ac_status); }; then
    2295   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    2296   case $ac_file in
    2297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    2298     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    2299        break;;
    2300   esac
    2301 done
    2302 else
    2303   echo "$as_me: failed program was:" >&5
    2304 sed 's/^/| /' conftest.$ac_ext >&5
    2305 
    2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2307 See \`config.log' for more details." >&5
    2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2309 See \`config.log' for more details." >&2;}
    2310    { (exit 1); exit 1; }; }
    2311 fi
    2312 
    2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    2314 fi
    2315 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2316 echo "${ECHO_T}$ac_cv_objext" >&6
    2317 OBJEXT=$ac_cv_objext
    2318 ac_objext=$OBJEXT
    2319 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2322   echo $ECHO_N "(cached) $ECHO_C" >&6
    2323 else
    2324   cat >conftest.$ac_ext <<_ACEOF
    2325 /* confdefs.h.  */
    2326 _ACEOF
    2327 cat confdefs.h >>conftest.$ac_ext
    2328 cat >>conftest.$ac_ext <<_ACEOF
    2329 /* end confdefs.h.  */
    2330 
    2331 int
    2332 main ()
    2333 {
    2334 #ifndef __GNUC__
    2335        choke me
     3873# Test code for whether the C compiler supports C89 (global declarations)
     3874ac_c_conftest_c89_globals='
     3875/* Does the compiler advertise C89 conformance?
     3876   Do not test the value of __STDC__, because some compilers set it to 0
     3877   while being otherwise adequately conformant. */
     3878#if !defined __STDC__
     3879# error "Compiler does not advertise C89 conformance"
    23363880#endif
    23373881
    2338   ;
    2339   return 0;
    2340 }
    2341 _ACEOF
    2342 rm -f conftest.$ac_objext
    2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2344   (eval $ac_compile) 2>conftest.er1
    2345   ac_status=$?
    2346   grep -v '^ *+' conftest.er1 >conftest.err
    2347   rm -f conftest.er1
    2348   cat conftest.err >&5
    2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2350   (exit $ac_status); } &&
    2351          { ac_try='test -z "$ac_c_werror_flag"
    2352                          || test ! -s conftest.err'
    2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2354   (eval $ac_try) 2>&5
    2355   ac_status=$?
    2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2357   (exit $ac_status); }; } &&
    2358          { ac_try='test -s conftest.$ac_objext'
    2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2360   (eval $ac_try) 2>&5
    2361   ac_status=$?
    2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2363   (exit $ac_status); }; }; then
    2364   ac_compiler_gnu=yes
    2365 else
    2366   echo "$as_me: failed program was:" >&5
    2367 sed 's/^/| /' conftest.$ac_ext >&5
    2368 
    2369 ac_compiler_gnu=no
    2370 fi
    2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    2373 
    2374 fi
    2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2377 GCC=`test $ac_compiler_gnu = yes && echo yes`
    2378 ac_test_CFLAGS=${CFLAGS+set}
    2379 ac_save_CFLAGS=$CFLAGS
    2380 CFLAGS="-g"
    2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2383 if test "${ac_cv_prog_cc_g+set}" = set; then
    2384   echo $ECHO_N "(cached) $ECHO_C" >&6
    2385 else
    2386   cat >conftest.$ac_ext <<_ACEOF
    2387 /* confdefs.h.  */
    2388 _ACEOF
    2389 cat confdefs.h >>conftest.$ac_ext
    2390 cat >>conftest.$ac_ext <<_ACEOF
    2391 /* end confdefs.h.  */
    2392 
    2393 int
    2394 main ()
    2395 {
    2396 
    2397   ;
    2398   return 0;
    2399 }
    2400 _ACEOF
    2401 rm -f conftest.$ac_objext
    2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2403   (eval $ac_compile) 2>conftest.er1
    2404   ac_status=$?
    2405   grep -v '^ *+' conftest.er1 >conftest.err
    2406   rm -f conftest.er1
    2407   cat conftest.err >&5
    2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2409   (exit $ac_status); } &&
    2410          { ac_try='test -z "$ac_c_werror_flag"
    2411                          || test ! -s conftest.err'
    2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2413   (eval $ac_try) 2>&5
    2414   ac_status=$?
    2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2416   (exit $ac_status); }; } &&
    2417          { ac_try='test -s conftest.$ac_objext'
    2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2419   (eval $ac_try) 2>&5
    2420   ac_status=$?
    2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2422   (exit $ac_status); }; }; then
    2423   ac_cv_prog_cc_g=yes
    2424 else
    2425   echo "$as_me: failed program was:" >&5
    2426 sed 's/^/| /' conftest.$ac_ext >&5
    2427 
    2428 ac_cv_prog_cc_g=no
    2429 fi
    2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2431 fi
    2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    2434 if test "$ac_test_CFLAGS" = set; then
    2435   CFLAGS=$ac_save_CFLAGS
    2436 elif test $ac_cv_prog_cc_g = yes; then
    2437   if test "$GCC" = yes; then
    2438     CFLAGS="-g -O2"
    2439   else
    2440     CFLAGS="-g"
    2441   fi
    2442 else
    2443   if test "$GCC" = yes; then
    2444     CFLAGS="-O2"
    2445   else
    2446     CFLAGS=
    2447   fi
    2448 fi
    2449 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2452   echo $ECHO_N "(cached) $ECHO_C" >&6
    2453 else
    2454   ac_cv_prog_cc_stdc=no
    2455 ac_save_CC=$CC
    2456 cat >conftest.$ac_ext <<_ACEOF
    2457 /* confdefs.h.  */
    2458 _ACEOF
    2459 cat confdefs.h >>conftest.$ac_ext
    2460 cat >>conftest.$ac_ext <<_ACEOF
    2461 /* end confdefs.h.  */
     3882#include <stddef.h>
    24623883#include <stdarg.h>
    2463 #include <stdio.h>
    2464 #include <sys/types.h>
    2465 #include <sys/stat.h>
    2466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     3884struct stat;
     3885/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
    24673886struct buf { int x; };
    2468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
     3887struct buf * (*rcsopen) (struct buf *, struct stat *, int);
    24693888static char *e (p, i)
    24703889     char **p;
     
    24843903
    24853904/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2486    function prototypes and stuff, but not '\xHH' hex character constants.
    2487    These don't provoke an error unfortunately, instead are silently treated
    2488    as 'x'.  The following induces an error, until -std1 is added to get
    2489    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2490    array size at least.  It's necessary to write '\x00'==0 to get something
    2491    that's true only with -std1.  */
    2492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3905   function prototypes and stuff, but not \xHH hex character constants.
     3906   These do not provoke an error unfortunately, instead are silently treated
     3907   as an "x".  The following induces an error, until -std is added to get
     3908   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
     3909   array size at least.  It is necessary to write \x00 == 0 to get something
     3910   that is true only with -std.  */
     3911int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
     3912
     3913/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3914   inside strings and character constants.  */
     3915#define FOO(x) '\''x'\''
     3916int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
    24933917
    24943918int test (int i, double x);
    24953919struct s1 {int (*f) (int a);};
    24963920struct s2 {int (*f) (double a);};
    2497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2498 int argc;
    2499 char **argv;
    2500 int
    2501 main ()
     3921int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
     3922               int, int);'
     3923
     3924# Test code for whether the C compiler supports C89 (body of main).
     3925ac_c_conftest_c89_main='
     3926ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
     3927'
     3928
     3929# Test code for whether the C compiler supports C99 (global declarations)
     3930ac_c_conftest_c99_globals='
     3931// Does the compiler advertise C99 conformance?
     3932#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
     3933# error "Compiler does not advertise C99 conformance"
     3934#endif
     3935
     3936#include <stdbool.h>
     3937extern int puts (const char *);
     3938extern int printf (const char *, ...);
     3939extern int dprintf (int, const char *, ...);
     3940extern void *malloc (size_t);
     3941
     3942// Check varargs macros.  These examples are taken from C99 6.10.3.5.
     3943// dprintf is used instead of fprintf to avoid needing to declare
     3944// FILE and stderr.
     3945#define debug(...) dprintf (2, __VA_ARGS__)
     3946#define showlist(...) puts (#__VA_ARGS__)
     3947#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
     3948static void
     3949test_varargs_macros (void)
    25023950{
    2503 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2504   ;
     3951  int x = 1234;
     3952  int y = 5678;
     3953  debug ("Flag");
     3954  debug ("X = %d\n", x);
     3955  showlist (The first, second, and third items.);
     3956  report (x>y, "x is %d but y is %d", x, y);
     3957}
     3958
     3959// Check long long types.
     3960#define BIG64 18446744073709551615ull
     3961#define BIG32 4294967295ul
     3962#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
     3963#if !BIG_OK
     3964  #error "your preprocessor is broken"
     3965#endif
     3966#if BIG_OK
     3967#else
     3968  #error "your preprocessor is broken"
     3969#endif
     3970static long long int bignum = -9223372036854775807LL;
     3971static unsigned long long int ubignum = BIG64;
     3972
     3973struct incomplete_array
     3974{
     3975  int datasize;
     3976  double data[];
     3977};
     3978
     3979struct named_init {
     3980  int number;
     3981  const wchar_t *name;
     3982  double average;
     3983};
     3984
     3985typedef const char *ccp;
     3986
     3987static inline int
     3988test_restrict (ccp restrict text)
     3989{
     3990  // See if C++-style comments work.
     3991  // Iterate through items via the restricted pointer.
     3992  // Also check for declarations in for loops.
     3993  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
     3994    continue;
    25053995  return 0;
    25063996}
    2507 _ACEOF
    2508 # Don't try gcc -ansi; that turns off useful extensions and
    2509 # breaks some systems' header files.
    2510 # AIX                   -qlanglvl=ansi
    2511 # Ultrix and OSF/1      -std1
    2512 # HP-UX 10.20 and later -Ae
    2513 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2514 # SVR4                  -Xc -D__EXTENSIONS__
    2515 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3997
     3998// Check varargs and va_copy.
     3999static bool
     4000test_varargs (const char *format, ...)
     4001{
     4002  va_list args;
     4003  va_start (args, format);
     4004  va_list args_copy;
     4005  va_copy (args_copy, args);
     4006
     4007  const char *str = "";
     4008  int number = 0;
     4009  float fnumber = 0;
     4010
     4011  while (*format)
     4012    {
     4013      switch (*format++)
     4014        {
     4015        case '\''s'\'': // string
     4016          str = va_arg (args_copy, const char *);
     4017          break;
     4018        case '\''d'\'': // int
     4019          number = va_arg (args_copy, int);
     4020          break;
     4021        case '\''f'\'': // float
     4022          fnumber = va_arg (args_copy, double);
     4023          break;
     4024        default:
     4025          break;
     4026        }
     4027    }
     4028  va_end (args_copy);
     4029  va_end (args);
     4030
     4031  return *str && number && fnumber;
     4032}
     4033'
     4034
     4035# Test code for whether the C compiler supports C99 (body of main).
     4036ac_c_conftest_c99_main='
     4037  // Check bool.
     4038  _Bool success = false;
     4039  success |= (argc != 0);
     4040
     4041  // Check restrict.
     4042  if (test_restrict ("String literal") == 0)
     4043    success = true;
     4044  char *restrict newvar = "Another string";
     4045
     4046  // Check varargs.
     4047  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
     4048  test_varargs_macros ();
     4049
     4050  // Check flexible array members.
     4051  struct incomplete_array *ia =
     4052    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
     4053  ia->datasize = 10;
     4054  for (int i = 0; i < ia->datasize; ++i)
     4055    ia->data[i] = i * 1.234;
     4056  // Work around memory leak warnings.
     4057  free (ia);
     4058
     4059  // Check named initializers.
     4060  struct named_init ni = {
     4061    .number = 34,
     4062    .name = L"Test wide string",
     4063    .average = 543.34343,
     4064  };
     4065
     4066  ni.number = 58;
     4067
     4068  int dynamic_array[ni.number];
     4069  dynamic_array[0] = argv[0][0];
     4070  dynamic_array[ni.number - 1] = 543;
     4071
     4072  // work around unused variable warnings
     4073  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
     4074         || dynamic_array[ni.number - 1] != 543);
     4075'
     4076
     4077# Test code for whether the C compiler supports C11 (global declarations)
     4078ac_c_conftest_c11_globals='
     4079// Does the compiler advertise C11 conformance?
     4080#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
     4081# error "Compiler does not advertise C11 conformance"
     4082#endif
     4083
     4084// Check _Alignas.
     4085char _Alignas (double) aligned_as_double;
     4086char _Alignas (0) no_special_alignment;
     4087extern char aligned_as_int;
     4088char _Alignas (0) _Alignas (int) aligned_as_int;
     4089
     4090// Check _Alignof.
     4091enum
     4092{
     4093  int_alignment = _Alignof (int),
     4094  int_array_alignment = _Alignof (int[100]),
     4095  char_alignment = _Alignof (char)
     4096};
     4097_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
     4098
     4099// Check _Noreturn.
     4100int _Noreturn does_not_return (void) { for (;;) continue; }
     4101
     4102// Check _Static_assert.
     4103struct test_static_assert
     4104{
     4105  int x;
     4106  _Static_assert (sizeof (int) <= sizeof (long int),
     4107                  "_Static_assert does not work in struct");
     4108  long int y;
     4109};
     4110
     4111// Check UTF-8 literals.
     4112#define u8 syntax error!
     4113char const utf8_literal[] = u8"happens to be ASCII" "another string";
     4114
     4115// Check duplicate typedefs.
     4116typedef long *long_ptr;
     4117typedef long int *long_ptr;
     4118typedef long_ptr long_ptr;
     4119
     4120// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
     4121struct anonymous
     4122{
     4123  union {
     4124    struct { int i; int j; };
     4125    struct { int k; long int l; } w;
     4126  };
     4127  int m;
     4128} v1;
     4129'
     4130
     4131# Test code for whether the C compiler supports C11 (body of main).
     4132ac_c_conftest_c11_main='
     4133  _Static_assert ((offsetof (struct anonymous, i)
     4134                   == offsetof (struct anonymous, w.k)),
     4135                  "Anonymous union alignment botch");
     4136  v1.i = 2;
     4137  v1.w.k = 5;
     4138  ok |= v1.i != 5;
     4139'
     4140
     4141# Test code for whether the C compiler supports C11 (complete).
     4142ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
     4143${ac_c_conftest_c99_globals}
     4144${ac_c_conftest_c11_globals}
     4145
     4146int
     4147main (int argc, char **argv)
     4148{
     4149  int ok = 0;
     4150  ${ac_c_conftest_c89_main}
     4151  ${ac_c_conftest_c99_main}
     4152  ${ac_c_conftest_c11_main}
     4153  return ok;
     4154}
     4155"
     4156
     4157# Test code for whether the C compiler supports C99 (complete).
     4158ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
     4159${ac_c_conftest_c99_globals}
     4160
     4161int
     4162main (int argc, char **argv)
     4163{
     4164  int ok = 0;
     4165  ${ac_c_conftest_c89_main}
     4166  ${ac_c_conftest_c99_main}
     4167  return ok;
     4168}
     4169"
     4170
     4171# Test code for whether the C compiler supports C89 (complete).
     4172ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
     4173
     4174int
     4175main (int argc, char **argv)
     4176{
     4177  int ok = 0;
     4178  ${ac_c_conftest_c89_main}
     4179  return ok;
     4180}
     4181"
     4182
     4183as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
     4184as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
     4185as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
     4186as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
     4187as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
     4188as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
     4189as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
     4190as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
     4191as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
     4192as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
     4193as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
     4194as_fn_append ac_func_c_list " fchmod HAVE_FCHMOD"
     4195as_fn_append ac_func_c_list " btowc HAVE_BTOWC"
     4196as_fn_append ac_func_c_list " canonicalize_file_name HAVE_CANONICALIZE_FILE_NAME"
     4197as_fn_append ac_func_c_list " faccessat HAVE_FACCESSAT"
     4198as_fn_append ac_func_c_list " realpath HAVE_REALPATH"
     4199as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
     4200as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
     4201as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
     4202as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
     4203as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
     4204as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
     4205as_fn_append ac_header_c_list " stdio_ext.h stdio_ext_h HAVE_STDIO_EXT_H"
     4206as_fn_append ac_func_c_list " __fwriting HAVE___FWRITING"
     4207as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM"
     4208as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
     4209as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME"
     4210as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
     4211as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM"
     4212as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
     4213as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
     4214as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H"
     4215as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
     4216as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT"
     4217as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC"
     4218as_fn_append ac_func_c_list " mbrlen HAVE_MBRLEN"
     4219as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
     4220as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
     4221as_fn_append ac_func_c_list " mkostemp HAVE_MKOSTEMP"
     4222as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO"
     4223as_fn_append ac_func_c_list " readlink HAVE_READLINK"
     4224as_fn_append ac_header_c_list " malloc.h malloc_h HAVE_MALLOC_H"
     4225as_fn_append ac_func_c_list " isblank HAVE_ISBLANK"
     4226as_fn_append ac_func_c_list " iswctype HAVE_ISWCTYPE"
     4227as_fn_append ac_func_c_list " link HAVE_LINK"
     4228as_fn_append ac_header_c_list " selinux/selinux.h selinux_selinux_h HAVE_SELINUX_SELINUX_H"
     4229as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
     4230as_fn_append ac_header_c_list " stdalign.h stdalign_h HAVE_STDALIGN_H"
     4231as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
     4232as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
     4233as_fn_append ac_func_c_list " strerror_r HAVE_STRERROR_R"
     4234as_fn_append ac_func_c_list " __xpg_strerror_r HAVE___XPG_STRERROR_R"
     4235as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H"
     4236as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
     4237as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
     4238as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB"
     4239as_fn_append ac_func_c_list " wctob HAVE_WCTOB"
     4240as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL"
     4241as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H"
     4242as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H"
     4243as_fn_append ac_header_c_list " dirent.h dirent_h HAVE_DIRENT_H"
     4244as_fn_append ac_func_c_list " explicit_bzero HAVE_EXPLICIT_BZERO"
     4245as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S"
     4246as_fn_append ac_func_c_list " fpurge HAVE_FPURGE"
     4247as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE"
     4248as_fn_append ac_func_c_list " __freading HAVE___FREADING"
     4249as_fn_append ac_func_c_list " ftruncate HAVE_FTRUNCATE"
     4250as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
     4251as_fn_append ac_func_c_list " duplocale HAVE_DUPLOCALE"
     4252as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H"
     4253as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H"
     4254as_fn_append ac_func_c_list " newlocale HAVE_NEWLOCALE"
     4255as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE"
     4256as_fn_append ac_func_c_list " freelocale HAVE_FREELOCALE"
     4257as_fn_append ac_func_c_list " pipe HAVE_PIPE"
     4258as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
     4259as_fn_append ac_func_c_list " pselect HAVE_PSELECT"
     4260as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
     4261as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H"
     4262as_fn_append ac_func_c_list " pthread_sigmask HAVE_PTHREAD_SIGMASK"
     4263as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
     4264as_fn_append ac_func_c_list " setenv HAVE_SETENV"
     4265as_fn_append ac_func_c_list " sleep HAVE_SLEEP"
     4266as_fn_append ac_func_c_list " catgets HAVE_CATGETS"
     4267as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
     4268as_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H"
     4269as_fn_append ac_func_c_list " shutdown HAVE_SHUTDOWN"
     4270as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H"
     4271as_fn_append ac_func_c_list " mquery HAVE_MQUERY"
     4272as_fn_append ac_func_c_list " pstat_getprocvm HAVE_PSTAT_GETPROCVM"
     4273gl_use_threads_default=no
     4274as_fn_append ac_header_c_list " locale.h locale_h HAVE_LOCALE_H"
     4275as_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H"
     4276as_fn_append ac_header_c_list " mcheck.h mcheck_h HAVE_MCHECK_H"
     4277gt_needs="$gt_needs "
     4278as_fn_append ac_func_c_list " isatty HAVE_ISATTY"
     4279as_fn_append ac_func_c_list " isascii HAVE_ISASCII"
     4280as_fn_append ac_func_c_list " memcpy HAVE_MEMCPY"
     4281as_fn_append ac_func_c_list " strchr HAVE_STRCHR"
     4282as_fn_append ac_func_c_list " strtoul HAVE_STRTOUL"
     4283as_fn_append ac_func_c_list " popen HAVE_POPEN"
     4284as_fn_append ac_func_c_list " pathconf HAVE_PATHCONF"
     4285as_fn_append ac_func_c_list " fchown HAVE_FCHOWN"
     4286as_fn_append ac_func_c_list " setlocale HAVE_SETLOCALE"
     4287
     4288# Auxiliary files required by this configure script.
     4289ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
     4290
     4291# Locations in which to look for auxiliary files.
     4292ac_aux_dir_candidates="${srcdir}/build-aux"
     4293
     4294# Search for a directory containing all of the required auxiliary files,
     4295# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
     4296# If we don't find one directory that contains all the files we need,
     4297# we report the set of missing files from the *first* directory in
     4298# $ac_aux_dir_candidates and give up.
     4299ac_missing_aux_files=""
     4300ac_first_candidate=:
     4301printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
     4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4303as_found=false
     4304for as_dir in $ac_aux_dir_candidates
    25164305do
    2517   CC="$ac_save_CC $ac_arg"
    2518   rm -f conftest.$ac_objext
    2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2520   (eval $ac_compile) 2>conftest.er1
    2521   ac_status=$?
    2522   grep -v '^ *+' conftest.er1 >conftest.err
    2523   rm -f conftest.er1
    2524   cat conftest.err >&5
    2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2526   (exit $ac_status); } &&
    2527          { ac_try='test -z "$ac_c_werror_flag"
    2528                          || test ! -s conftest.err'
    2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2530   (eval $ac_try) 2>&5
    2531   ac_status=$?
    2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2533   (exit $ac_status); }; } &&
    2534          { ac_try='test -s conftest.$ac_objext'
    2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2536   (eval $ac_try) 2>&5
    2537   ac_status=$?
    2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2539   (exit $ac_status); }; }; then
    2540   ac_cv_prog_cc_stdc=$ac_arg
    2541 break
    2542 else
    2543   echo "$as_me: failed program was:" >&5
    2544 sed 's/^/| /' conftest.$ac_ext >&5
    2545 
    2546 fi
    2547 rm -f conftest.err conftest.$ac_objext
     4306  IFS=$as_save_IFS
     4307  case $as_dir in #(((
     4308    '') as_dir=./ ;;
     4309    */) ;;
     4310    *) as_dir=$as_dir/ ;;
     4311  esac
     4312  as_found=:
     4313
     4314  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
     4315  ac_aux_dir_found=yes
     4316  ac_install_sh=
     4317  for ac_aux in $ac_aux_files
     4318  do
     4319    # As a special case, if "install-sh" is required, that requirement
     4320    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
     4321    # and $ac_install_sh is set appropriately for whichever one is found.
     4322    if test x"$ac_aux" = x"install-sh"
     4323    then
     4324      if test -f "${as_dir}install-sh"; then
     4325        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
     4326        ac_install_sh="${as_dir}install-sh -c"
     4327      elif test -f "${as_dir}install.sh"; then
     4328        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
     4329        ac_install_sh="${as_dir}install.sh -c"
     4330      elif test -f "${as_dir}shtool"; then
     4331        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
     4332        ac_install_sh="${as_dir}shtool install -c"
     4333      else
     4334        ac_aux_dir_found=no
     4335        if $ac_first_candidate; then
     4336          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
     4337        else
     4338          break
     4339        fi
     4340      fi
     4341    else
     4342      if test -f "${as_dir}${ac_aux}"; then
     4343        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
     4344      else
     4345        ac_aux_dir_found=no
     4346        if $ac_first_candidate; then
     4347          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
     4348        else
     4349          break
     4350        fi
     4351      fi
     4352    fi
     4353  done
     4354  if test "$ac_aux_dir_found" = yes; then
     4355    ac_aux_dir="$as_dir"
     4356    break
     4357  fi
     4358  ac_first_candidate=false
     4359
     4360  as_found=false
    25484361done
    2549 rm -f conftest.$ac_ext conftest.$ac_objext
    2550 CC=$ac_save_CC
    2551 
    2552 fi
    2553 
    2554 case "x$ac_cv_prog_cc_stdc" in
    2555   x|xno)
    2556     echo "$as_me:$LINENO: result: none needed" >&5
    2557 echo "${ECHO_T}none needed" >&6 ;;
    2558   *)
    2559     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2561     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2562 esac
    2563 
    2564 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2565 # in C++ we need to declare it.  In case someone uses the same compiler
    2566 # for both compiling C and C++ we need to have the C++ compiler decide
    2567 # the declaration of exit, since it's the most demanding environment.
    2568 cat >conftest.$ac_ext <<_ACEOF
    2569 #ifndef __cplusplus
    2570   choke me
    2571 #endif
    2572 _ACEOF
    2573 rm -f conftest.$ac_objext
    2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2575   (eval $ac_compile) 2>conftest.er1
    2576   ac_status=$?
    2577   grep -v '^ *+' conftest.er1 >conftest.err
    2578   rm -f conftest.er1
    2579   cat conftest.err >&5
    2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2581   (exit $ac_status); } &&
    2582          { ac_try='test -z "$ac_c_werror_flag"
    2583                          || test ! -s conftest.err'
    2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2585   (eval $ac_try) 2>&5
    2586   ac_status=$?
    2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2588   (exit $ac_status); }; } &&
    2589          { ac_try='test -s conftest.$ac_objext'
    2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2591   (eval $ac_try) 2>&5
    2592   ac_status=$?
    2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2594   (exit $ac_status); }; }; then
    2595   for ac_declaration in \
    2596    '' \
    2597    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2598    'extern "C" void std::exit (int); using std::exit;' \
    2599    'extern "C" void exit (int) throw ();' \
    2600    'extern "C" void exit (int);' \
    2601    'void exit (int);'
    2602 do
    2603   cat >conftest.$ac_ext <<_ACEOF
    2604 /* confdefs.h.  */
    2605 _ACEOF
    2606 cat confdefs.h >>conftest.$ac_ext
    2607 cat >>conftest.$ac_ext <<_ACEOF
    2608 /* end confdefs.h.  */
    2609 $ac_declaration
    2610 #include <stdlib.h>
    2611 int
    2612 main ()
    2613 {
    2614 exit (42);
    2615   ;
    2616   return 0;
    2617 }
    2618 _ACEOF
    2619 rm -f conftest.$ac_objext
    2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2621   (eval $ac_compile) 2>conftest.er1
    2622   ac_status=$?
    2623   grep -v '^ *+' conftest.er1 >conftest.err
    2624   rm -f conftest.er1
    2625   cat conftest.err >&5
    2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2627   (exit $ac_status); } &&
    2628          { ac_try='test -z "$ac_c_werror_flag"
    2629                          || test ! -s conftest.err'
    2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2631   (eval $ac_try) 2>&5
    2632   ac_status=$?
    2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2634   (exit $ac_status); }; } &&
    2635          { ac_try='test -s conftest.$ac_objext'
    2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2637   (eval $ac_try) 2>&5
    2638   ac_status=$?
    2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2640   (exit $ac_status); }; }; then
    2641   :
    2642 else
    2643   echo "$as_me: failed program was:" >&5
    2644 sed 's/^/| /' conftest.$ac_ext >&5
    2645 
    2646 continue
    2647 fi
    2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2649   cat >conftest.$ac_ext <<_ACEOF
    2650 /* confdefs.h.  */
    2651 _ACEOF
    2652 cat confdefs.h >>conftest.$ac_ext
    2653 cat >>conftest.$ac_ext <<_ACEOF
    2654 /* end confdefs.h.  */
    2655 $ac_declaration
    2656 int
    2657 main ()
    2658 {
    2659 exit (42);
    2660   ;
    2661   return 0;
    2662 }
    2663 _ACEOF
    2664 rm -f conftest.$ac_objext
    2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2666   (eval $ac_compile) 2>conftest.er1
    2667   ac_status=$?
    2668   grep -v '^ *+' conftest.er1 >conftest.err
    2669   rm -f conftest.er1
    2670   cat conftest.err >&5
    2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2672   (exit $ac_status); } &&
    2673          { ac_try='test -z "$ac_c_werror_flag"
    2674                          || test ! -s conftest.err'
    2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2676   (eval $ac_try) 2>&5
    2677   ac_status=$?
    2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2679   (exit $ac_status); }; } &&
    2680          { ac_try='test -s conftest.$ac_objext'
    2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2682   (eval $ac_try) 2>&5
    2683   ac_status=$?
    2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2685   (exit $ac_status); }; }; then
    2686   break
    2687 else
    2688   echo "$as_me: failed program was:" >&5
    2689 sed 's/^/| /' conftest.$ac_ext >&5
    2690 
    2691 fi
    2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4362IFS=$as_save_IFS
     4363if $as_found
     4364then :
     4365
     4366else case e in #(
     4367  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
     4368esac
     4369fi
     4370
     4371
     4372# These three variables are undocumented and unsupported,
     4373# and are intended to be withdrawn in a future Autoconf release.
     4374# They can cause serious problems if a builder's source tree is in a directory
     4375# whose full name contains unusual characters.
     4376if test -f "${ac_aux_dir}config.guess"; then
     4377  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
     4378fi
     4379if test -f "${ac_aux_dir}config.sub"; then
     4380  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
     4381fi
     4382if test -f "$ac_aux_dir/configure"; then
     4383  ac_configure="$SHELL ${ac_aux_dir}configure"
     4384fi
     4385
     4386# Check that the precious variables saved in the cache have kept the same
     4387# value.
     4388ac_cache_corrupted=false
     4389for ac_var in $ac_precious_vars; do
     4390  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     4391  eval ac_new_set=\$ac_env_${ac_var}_set
     4392  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     4393  eval ac_new_val=\$ac_env_${ac_var}_value
     4394  case $ac_old_set,$ac_new_set in
     4395    set,)
     4396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
     4397printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
     4398      ac_cache_corrupted=: ;;
     4399    ,set)
     4400      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
     4401printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
     4402      ac_cache_corrupted=: ;;
     4403    ,);;
     4404    *)
     4405      if test "x$ac_old_val" != "x$ac_new_val"; then
     4406        # differences in whitespace do not lead to failure.
     4407        ac_old_val_w=`echo x $ac_old_val`
     4408        ac_new_val_w=`echo x $ac_new_val`
     4409        if test "$ac_old_val_w" != "$ac_new_val_w"; then
     4410          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
     4411printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
     4412          ac_cache_corrupted=:
     4413        else
     4414          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
     4415printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
     4416          eval $ac_var=\$ac_old_val
     4417        fi
     4418        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
     4419printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
     4420        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
     4421printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
     4422      fi;;
     4423  esac
     4424  # Pass precious variables to config.status.
     4425  if test "$ac_new_set" = set; then
     4426    case $ac_new_val in
     4427    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     4428    *) ac_arg=$ac_var=$ac_new_val ;;
     4429    esac
     4430    case " $ac_configure_args " in
     4431      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     4432      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
     4433    esac
     4434  fi
    26934435done
    2694 rm -f conftest*
    2695 if test -n "$ac_declaration"; then
    2696   echo '#ifdef __cplusplus' >>confdefs.h
    2697   echo $ac_declaration      >>confdefs.h
    2698   echo '#endif'             >>confdefs.h
    2699 fi
    2700 
    2701 else
    2702   echo "$as_me: failed program was:" >&5
    2703 sed 's/^/| /' conftest.$ac_ext >&5
    2704 
    2705 fi
    2706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4436if $ac_cache_corrupted; then
     4437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     4438printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     4439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     4440printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
     4441  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
     4442            and start over" "$LINENO" 5
     4443fi
     4444## -------------------- ##
     4445## Main body of script. ##
     4446## -------------------- ##
     4447
    27074448ac_ext=c
    27084449ac_cpp='$CPP $CPPFLAGS'
     
    27104451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    27114452ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4453
     4454
     4455
     4456
     4457ac_config_headers="$ac_config_headers config.h:config_h.in"
     4458
     4459
     4460am__api_version='1.16'
     4461
     4462
     4463
     4464  # Find a good install program.  We prefer a C program (faster),
     4465# so one script is as good as another.  But avoid the broken or
     4466# incompatible versions:
     4467# SysV /etc/install, /usr/sbin/install
     4468# SunOS /usr/etc/install
     4469# IRIX /sbin/install
     4470# AIX /bin/install
     4471# AmigaOS /C/install, which installs bootblocks on floppy discs
     4472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     4473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     4474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     4475# OS/2's system install, which has a completely different semantic
     4476# ./install, which can be erroneously created by make from ./install.sh.
     4477# Reject install programs that cannot install multiple files.
     4478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     4479printf %s "checking for a BSD-compatible install... " >&6; }
     4480if test -z "$INSTALL"; then
     4481if test ${ac_cv_path_install+y}
     4482then :
     4483  printf %s "(cached) " >&6
     4484else case e in #(
     4485  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4486for as_dir in $PATH
     4487do
     4488  IFS=$as_save_IFS
     4489  case $as_dir in #(((
     4490    '') as_dir=./ ;;
     4491    */) ;;
     4492    *) as_dir=$as_dir/ ;;
     4493  esac
     4494    # Account for fact that we put trailing slashes in our PATH walk.
     4495case $as_dir in #((
     4496  ./ | /[cC]/* | \
     4497  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     4498  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
     4499  /usr/ucb/* ) ;;
     4500  *)
     4501    # OSF1 and SCO ODT 3.0 have their own names for install.
     4502    # Don't use installbsd from OSF since it installs stuff as root
     4503    # by default.
     4504    for ac_prog in ginstall scoinst install; do
     4505      for ac_exec_ext in '' $ac_executable_extensions; do
     4506        if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
     4507          if test $ac_prog = install &&
     4508            grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     4509            # AIX install.  It has an incompatible calling convention.
     4510            :
     4511          elif test $ac_prog = install &&
     4512            grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     4513            # program-specific install script used by HP pwplus--don't use.
     4514            :
     4515          else
     4516            rm -rf conftest.one conftest.two conftest.dir
     4517            echo one > conftest.one
     4518            echo two > conftest.two
     4519            mkdir conftest.dir
     4520            if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
     4521              test -s conftest.one && test -s conftest.two &&
     4522              test -s conftest.dir/conftest.one &&
     4523              test -s conftest.dir/conftest.two
     4524            then
     4525              ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
     4526              break 3
     4527            fi
     4528          fi
     4529        fi
     4530      done
     4531    done
     4532    ;;
     4533esac
     4534
     4535  done
     4536IFS=$as_save_IFS
     4537
     4538rm -rf conftest.one conftest.two conftest.dir
     4539 ;;
     4540esac
     4541fi
     4542  if test ${ac_cv_path_install+y}; then
     4543    INSTALL=$ac_cv_path_install
     4544  else
     4545    # As a last resort, use the slow shell script.  Don't cache a
     4546    # value for INSTALL within a source directory, because that will
     4547    # break other packages using the cache if that directory is
     4548    # removed, or if the value is a relative name.
     4549    INSTALL=$ac_install_sh
     4550  fi
     4551fi
     4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     4553printf "%s\n" "$INSTALL" >&6; }
     4554
     4555# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     4556# It thinks the first close brace ends the variable substitution.
     4557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     4558
     4559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     4560
     4561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     4562
     4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
     4564printf %s "checking whether sleep supports fractional seconds... " >&6; }
     4565if test ${am_cv_sleep_fractional_seconds+y}
     4566then :
     4567  printf %s "(cached) " >&6
     4568else case e in #(
     4569  e) if sleep 0.001 2>/dev/null
     4570then :
     4571  am_cv_sleep_fractional_seconds=true
     4572else case e in #(
     4573  e) am_cv_sleep_fractional_seconds=false ;;
     4574esac
     4575fi
     4576 ;;
     4577esac
     4578fi
     4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
     4580printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
     4581
     4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the filesystem timestamp resolution" >&5
     4583printf %s "checking the filesystem timestamp resolution... " >&6; }
     4584if test ${am_cv_filesystem_timestamp_resolution+y}
     4585then :
     4586  printf %s "(cached) " >&6
     4587else case e in #(
     4588  e) # Use names that lexically sort older-first when the timestamps are equal.
     4589rm -f conftest.file.a conftest.file.b
     4590: > conftest.file.a
     4591if $am_cv_sleep_fractional_seconds
     4592then :
     4593    am_try_sleep=0.1 am_try_loops=20
     4594
     4595else case e in #(
     4596  e)   am_try_sleep=1   am_try_loops=2
     4597 ;;
     4598esac
     4599fi
     4600am_try=0
     4601while :; do
     4602  as_fn_arith $am_try + 1 && am_try=$as_val
     4603  echo "timestamp $am_try" > conftest.file.b
     4604  set X `ls -t conftest.file.a conftest.file.b`
     4605  if test "$2" = conftest.file.b || test $am_try -eq $am_try_loops; then
     4606    break
     4607  fi
     4608  sleep $am_try_sleep
     4609done
     4610rm -f conftest.file.a conftest.file.b
     4611am_cv_filesystem_timestamp_resolution=$am_try
     4612if $am_cv_sleep_fractional_seconds
     4613then :
     4614    as_fn_arith $am_try / 10 && am_cv_filesystem_timestamp_resolution=$as_val
     4615  as_fn_arith $am_try % 10 && am_fraction=$as_val
     4616  as_fn_append am_cv_filesystem_timestamp_resolution .$am_fraction
     4617
     4618fi
     4619 ;;
     4620esac
     4621fi
     4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
     4623printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
     4624
     4625rm -f conftest.file
     4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
     4627printf %s "checking whether build environment is sane... " >&6; }
     4628if test ${am_cv_build_env_is_sane+y}
     4629then :
     4630  printf %s "(cached) " >&6
     4631else case e in #(
     4632  e) # Reject unsafe characters in $srcdir or the absolute working directory
     4633# name.  Accept space and tab only in the latter.
     4634am_lf='
     4635'
     4636case `pwd` in
     4637  *[\\\"\#\$\&\'\`$am_lf]*)
     4638    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
     4639esac
     4640case $srcdir in
     4641  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
     4642    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
     4643esac
     4644
     4645# Do 'set' in a subshell so we don't clobber the current shell's
     4646# arguments.  Must try -L first in case configure is actually a
     4647# symlink; some systems play weird games with the mod time of symlinks
     4648# (eg FreeBSD returns the mod time of the symlink's containing
     4649# directory).
     4650if (
     4651   am_has_slept=no
     4652   for am_try in 1 2; do
     4653     echo "timestamp, slept: $am_has_slept" > conftest.file
     4654     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     4655     if test "$*" = "X"; then
     4656        # -L didn't work.
     4657        set X `ls -t "$srcdir/configure" conftest.file`
     4658     fi
     4659     if test "$*" != "X $srcdir/configure conftest.file" \
     4660        && test "$*" != "X conftest.file $srcdir/configure"; then
     4661
     4662        # If neither matched, then we have a broken ls.  This can happen
     4663        # if, for instance, CONFIG_SHELL is bash and it inherits a
     4664        # broken ls alias from the environment.  This has actually
     4665        # happened.  Such a system could not be considered "sane".
     4666        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
     4667  alias in your environment" "$LINENO" 5
     4668     fi
     4669     if test "$2" = conftest.file || test $am_try -eq 2; then
     4670       break
     4671     fi
     4672     # Just in case.
     4673     sleep $am_cv_filesystem_timestamp_resolution
     4674     am_has_slept=yes
     4675   done
     4676   test "$2" = conftest.file
     4677   )
     4678then
     4679  am_cv_build_env_is_sane=yes
     4680else
     4681   as_fn_error $? "newly created file is older than distributed files!
     4682Check your system clock" "$LINENO" 5
     4683fi
     4684 ;;
     4685esac
     4686fi
     4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_env_is_sane" >&5
     4688printf "%s\n" "$am_cv_build_env_is_sane" >&6; }
     4689# If we didn't sleep, we still need to ensure time stamps of config.status and
     4690# generated files are strictly newer.
     4691am_sleep_pid=
     4692if ! test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1; then
     4693  ( sleep $am_cv_filesystem_timestamp_resolution ) &
     4694  am_sleep_pid=$!
     4695fi
     4696
     4697rm -f conftest.file
     4698
     4699test "$program_prefix" != NONE &&
     4700  program_transform_name="s&^&$program_prefix&;$program_transform_name"
     4701# Use a double $ so make ignores it.
     4702test "$program_suffix" != NONE &&
     4703  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
     4704# Double any \ or $.
     4705# By default was 's,x,x', remove it if useless.
     4706ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
     4707program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
     4708
     4709
     4710# Expand $ac_aux_dir to an absolute path.
     4711am_aux_dir=`cd "$ac_aux_dir" && pwd`
     4712
     4713
     4714  if test x"${MISSING+set}" != xset; then
     4715  MISSING="\${SHELL} '$am_aux_dir/missing'"
     4716fi
     4717# Use eval to expand $SHELL
     4718if eval "$MISSING --is-lightweight"; then
     4719  am_missing_run="$MISSING "
     4720else
     4721  am_missing_run=
     4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
     4723printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
     4724fi
     4725
     4726if test x"${install_sh+set}" != xset; then
     4727  case $am_aux_dir in
     4728  *\ * | *\     *)
     4729    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
     4730  *)
     4731    install_sh="\${SHELL} $am_aux_dir/install-sh"
     4732  esac
     4733fi
     4734
     4735# Installed binaries are usually stripped using 'strip' when the user
     4736# run "make install-strip".  However 'strip' might not be the right
     4737# tool to use in cross-compilation environments, therefore Automake
     4738# will honor the 'STRIP' environment variable to overrule this program.
     4739if test "$cross_compiling" != no; then
     4740  if test -n "$ac_tool_prefix"; then
     4741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     4742set dummy ${ac_tool_prefix}strip; ac_word=$2
     4743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4744printf %s "checking for $ac_word... " >&6; }
     4745if test ${ac_cv_prog_STRIP+y}
     4746then :
     4747  printf %s "(cached) " >&6
     4748else case e in #(
     4749  e) if test -n "$STRIP"; then
     4750  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     4751else
     4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4753for as_dir in $PATH
     4754do
     4755  IFS=$as_save_IFS
     4756  case $as_dir in #(((
     4757    '') as_dir=./ ;;
     4758    */) ;;
     4759    *) as_dir=$as_dir/ ;;
     4760  esac
     4761    for ac_exec_ext in '' $ac_executable_extensions; do
     4762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     4763    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     4764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     4765    break 2
     4766  fi
     4767done
     4768  done
     4769IFS=$as_save_IFS
     4770
     4771fi ;;
     4772esac
     4773fi
     4774STRIP=$ac_cv_prog_STRIP
     4775if test -n "$STRIP"; then
     4776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
     4777printf "%s\n" "$STRIP" >&6; }
     4778else
     4779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4780printf "%s\n" "no" >&6; }
     4781fi
     4782
     4783
     4784fi
     4785if test -z "$ac_cv_prog_STRIP"; then
     4786  ac_ct_STRIP=$STRIP
     4787  # Extract the first word of "strip", so it can be a program name with args.
     4788set dummy strip; ac_word=$2
     4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4790printf %s "checking for $ac_word... " >&6; }
     4791if test ${ac_cv_prog_ac_ct_STRIP+y}
     4792then :
     4793  printf %s "(cached) " >&6
     4794else case e in #(
     4795  e) if test -n "$ac_ct_STRIP"; then
     4796  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     4797else
     4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4799for as_dir in $PATH
     4800do
     4801  IFS=$as_save_IFS
     4802  case $as_dir in #(((
     4803    '') as_dir=./ ;;
     4804    */) ;;
     4805    *) as_dir=$as_dir/ ;;
     4806  esac
     4807    for ac_exec_ext in '' $ac_executable_extensions; do
     4808  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     4809    ac_cv_prog_ac_ct_STRIP="strip"
     4810    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     4811    break 2
     4812  fi
     4813done
     4814  done
     4815IFS=$as_save_IFS
     4816
     4817fi ;;
     4818esac
     4819fi
     4820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     4821if test -n "$ac_ct_STRIP"; then
     4822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
     4823printf "%s\n" "$ac_ct_STRIP" >&6; }
     4824else
     4825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4826printf "%s\n" "no" >&6; }
     4827fi
     4828
     4829  if test "x$ac_ct_STRIP" = x; then
     4830    STRIP=":"
     4831  else
     4832    case $cross_compiling:$ac_tool_warned in
     4833yes:)
     4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4835printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4836ac_tool_warned=yes ;;
     4837esac
     4838    STRIP=$ac_ct_STRIP
     4839  fi
     4840else
     4841  STRIP="$ac_cv_prog_STRIP"
     4842fi
     4843
     4844fi
     4845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
     4846
     4847
     4848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
     4849printf %s "checking for a race-free mkdir -p... " >&6; }
     4850if test -z "$MKDIR_P"; then
     4851  if test ${ac_cv_path_mkdir+y}
     4852then :
     4853  printf %s "(cached) " >&6
     4854else case e in #(
     4855  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
     4857do
     4858  IFS=$as_save_IFS
     4859  case $as_dir in #(((
     4860    '') as_dir=./ ;;
     4861    */) ;;
     4862    *) as_dir=$as_dir/ ;;
     4863  esac
     4864    for ac_prog in mkdir gmkdir; do
     4865         for ac_exec_ext in '' $ac_executable_extensions; do
     4866           as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
     4867           case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
     4868             'mkdir ('*'coreutils) '* | \
     4869             'BusyBox '* | \
     4870             'mkdir (fileutils) '4.1*)
     4871               ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
     4872               break 3;;
     4873           esac
     4874         done
     4875       done
     4876  done
     4877IFS=$as_save_IFS
     4878 ;;
     4879esac
     4880fi
     4881
     4882  test -d ./--version && rmdir ./--version
     4883  if test ${ac_cv_path_mkdir+y}; then
     4884    MKDIR_P="$ac_cv_path_mkdir -p"
     4885  else
     4886    # As a last resort, use plain mkdir -p,
     4887    # in the hope it doesn't have the bugs of ancient mkdir.
     4888    MKDIR_P='mkdir -p'
     4889  fi
     4890fi
     4891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
     4892printf "%s\n" "$MKDIR_P" >&6; }
     4893
     4894for ac_prog in gawk mawk nawk awk
     4895do
     4896  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4897set dummy $ac_prog; ac_word=$2
     4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4899printf %s "checking for $ac_word... " >&6; }
     4900if test ${ac_cv_prog_AWK+y}
     4901then :
     4902  printf %s "(cached) " >&6
     4903else case e in #(
     4904  e) if test -n "$AWK"; then
     4905  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     4906else
     4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4908for as_dir in $PATH
     4909do
     4910  IFS=$as_save_IFS
     4911  case $as_dir in #(((
     4912    '') as_dir=./ ;;
     4913    */) ;;
     4914    *) as_dir=$as_dir/ ;;
     4915  esac
     4916    for ac_exec_ext in '' $ac_executable_extensions; do
     4917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     4918    ac_cv_prog_AWK="$ac_prog"
     4919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     4920    break 2
     4921  fi
     4922done
     4923  done
     4924IFS=$as_save_IFS
     4925
     4926fi ;;
     4927esac
     4928fi
     4929AWK=$ac_cv_prog_AWK
     4930if test -n "$AWK"; then
     4931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     4932printf "%s\n" "$AWK" >&6; }
     4933else
     4934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4935printf "%s\n" "no" >&6; }
     4936fi
     4937
     4938
     4939  test -n "$AWK" && break
     4940done
     4941
     4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4943printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     4944set x ${MAKE-make}
     4945ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     4946if eval test \${ac_cv_prog_make_${ac_make}_set+y}
     4947then :
     4948  printf %s "(cached) " >&6
     4949else case e in #(
     4950  e) cat >conftest.make <<\_ACEOF
     4951SHELL = /bin/sh
     4952all:
     4953        @echo '@@@%%%=$(MAKE)=@@@%%%'
     4954_ACEOF
     4955# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4956case `${MAKE-make} -f conftest.make 2>/dev/null` in
     4957  *@@@%%%=?*=@@@%%%*)
     4958    eval ac_cv_prog_make_${ac_make}_set=yes;;
     4959  *)
     4960    eval ac_cv_prog_make_${ac_make}_set=no;;
     4961esac
     4962rm -f conftest.make ;;
     4963esac
     4964fi
     4965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     4966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4967printf "%s\n" "yes" >&6; }
     4968  SET_MAKE=
     4969else
     4970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4971printf "%s\n" "no" >&6; }
     4972  SET_MAKE="MAKE=${MAKE-make}"
     4973fi
     4974
     4975rm -rf .tst 2>/dev/null
     4976mkdir .tst 2>/dev/null
     4977if test -d .tst; then
     4978  am__leading_dot=.
     4979else
     4980  am__leading_dot=_
     4981fi
     4982rmdir .tst 2>/dev/null
     4983
     4984AM_DEFAULT_VERBOSITY=1
     4985# Check whether --enable-silent-rules was given.
     4986if test ${enable_silent_rules+y}
     4987then :
     4988  enableval=$enable_silent_rules;
     4989fi
     4990
     4991am_make=${MAKE-make}
     4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
     4993printf %s "checking whether $am_make supports nested variables... " >&6; }
     4994if test ${am_cv_make_support_nested_variables+y}
     4995then :
     4996  printf %s "(cached) " >&6
     4997else case e in #(
     4998  e) if printf "%s\n" 'TRUE=$(BAR$(V))
     4999BAR0=false
     5000BAR1=true
     5001V=1
     5002am__doit:
     5003        @$(TRUE)
     5004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
     5005  am_cv_make_support_nested_variables=yes
     5006else
     5007  am_cv_make_support_nested_variables=no
     5008fi ;;
     5009esac
     5010fi
     5011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
     5012printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
     5013AM_BACKSLASH='\'
     5014
     5015am__rm_f_notfound=
     5016if (rm -f && rm -fr && rm -rf) 2>/dev/null
     5017then :
     5018
     5019else case e in #(
     5020  e) am__rm_f_notfound='""' ;;
     5021esac
     5022fi
     5023
     5024
     5025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
     5026printf %s "checking xargs -n works... " >&6; }
     5027if test ${am_cv_xargs_n_works+y}
     5028then :
     5029  printf %s "(cached) " >&6
     5030else case e in #(
     5031  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
     50323"
     5033then :
     5034  am_cv_xargs_n_works=yes
     5035else case e in #(
     5036  e) am_cv_xargs_n_works=no ;;
     5037esac
     5038fi ;;
     5039esac
     5040fi
     5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
     5042printf "%s\n" "$am_cv_xargs_n_works" >&6; }
     5043if test "$am_cv_xargs_n_works" = yes
     5044then :
     5045  am__xargs_n='xargs -n'
     5046else case e in #(
     5047  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
     5048 ;;
     5049esac
     5050fi
     5051
     5052if test "`cd $srcdir && pwd`" != "`pwd`"; then
     5053  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
     5054  # is not polluted with repeated "-I."
     5055  am__isrc=' -I$(srcdir)'
     5056  # test to see if srcdir already configured
     5057  if test -f $srcdir/config.status; then
     5058    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
     5059  fi
     5060fi
     5061
     5062# test whether we have cygpath
     5063if test -z "$CYGPATH_W"; then
     5064  if (cygpath --version) >/dev/null 2>/dev/null; then
     5065    CYGPATH_W='cygpath -w'
     5066  else
     5067    CYGPATH_W=echo
     5068  fi
     5069fi
     5070
     5071
     5072# Define the identity of the package.
     5073 PACKAGE='sed'
     5074 VERSION='4.9'
     5075
     5076
     5077printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
     5078
     5079
     5080printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
     5081
     5082# Some tools Automake needs.
     5083
     5084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
     5085
     5086
     5087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
     5088
     5089
     5090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
     5091
     5092
     5093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
     5094
     5095
     5096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
     5097
     5098# For better backward compatibility.  To be removed once Automake 1.9.x
     5099# dies out for good.  For more background, see:
     5100# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
     5101# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
     5102mkdir_p='$(MKDIR_P)'
     5103
     5104# We need awk for the "check" target (and possibly the TAP driver).  The
     5105# system "awk" is bad on some platforms.
     5106# Always define AMTAR for backward compatibility.  Yes, it's still used
     5107# in the wild :-(  We should find a proper way to deprecate it ...
     5108AMTAR='$${TAR-tar}'
     5109
     5110
     5111# We'll loop over all known methods to create a tar archive until one works.
     5112_am_tools='gnutar  pax cpio none'
     5113
     5114am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
     5115
     5116
     5117
     5118
     5119
     5120# Variables for tags utilities; see am/tags.am
     5121if test -z "$CTAGS"; then
     5122  CTAGS=ctags
     5123fi
     5124
     5125if test -z "$ETAGS"; then
     5126  ETAGS=etags
     5127fi
     5128
     5129if test -z "$CSCOPE"; then
     5130  CSCOPE=cscope
     5131fi
     5132
     5133
     5134
     5135
     5136
     5137
     5138
     5139
     5140AM_DEFAULT_VERBOSITY=0 # make --enable-silent-rules the default.
     5141
     5142
     5143
     5144
     5145
     5146
     5147
     5148
     5149
     5150
     5151
     5152ac_ext=c
     5153ac_cpp='$CPP $CPPFLAGS'
     5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5157if test -n "$ac_tool_prefix"; then
     5158  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     5159set dummy ${ac_tool_prefix}gcc; ac_word=$2
     5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5161printf %s "checking for $ac_word... " >&6; }
     5162if test ${ac_cv_prog_CC+y}
     5163then :
     5164  printf %s "(cached) " >&6
     5165else case e in #(
     5166  e) if test -n "$CC"; then
     5167  ac_cv_prog_CC="$CC" # Let the user override the test.
     5168else
     5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5170for as_dir in $PATH
     5171do
     5172  IFS=$as_save_IFS
     5173  case $as_dir in #(((
     5174    '') as_dir=./ ;;
     5175    */) ;;
     5176    *) as_dir=$as_dir/ ;;
     5177  esac
     5178    for ac_exec_ext in '' $ac_executable_extensions; do
     5179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5180    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     5181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5182    break 2
     5183  fi
     5184done
     5185  done
     5186IFS=$as_save_IFS
     5187
     5188fi ;;
     5189esac
     5190fi
     5191CC=$ac_cv_prog_CC
     5192if test -n "$CC"; then
     5193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     5194printf "%s\n" "$CC" >&6; }
     5195else
     5196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5197printf "%s\n" "no" >&6; }
     5198fi
     5199
     5200
     5201fi
     5202if test -z "$ac_cv_prog_CC"; then
     5203  ac_ct_CC=$CC
     5204  # Extract the first word of "gcc", so it can be a program name with args.
     5205set dummy gcc; ac_word=$2
     5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5207printf %s "checking for $ac_word... " >&6; }
     5208if test ${ac_cv_prog_ac_ct_CC+y}
     5209then :
     5210  printf %s "(cached) " >&6
     5211else case e in #(
     5212  e) if test -n "$ac_ct_CC"; then
     5213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     5214else
     5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5216for as_dir in $PATH
     5217do
     5218  IFS=$as_save_IFS
     5219  case $as_dir in #(((
     5220    '') as_dir=./ ;;
     5221    */) ;;
     5222    *) as_dir=$as_dir/ ;;
     5223  esac
     5224    for ac_exec_ext in '' $ac_executable_extensions; do
     5225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5226    ac_cv_prog_ac_ct_CC="gcc"
     5227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5228    break 2
     5229  fi
     5230done
     5231  done
     5232IFS=$as_save_IFS
     5233
     5234fi ;;
     5235esac
     5236fi
     5237ac_ct_CC=$ac_cv_prog_ac_ct_CC
     5238if test -n "$ac_ct_CC"; then
     5239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     5240printf "%s\n" "$ac_ct_CC" >&6; }
     5241else
     5242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5243printf "%s\n" "no" >&6; }
     5244fi
     5245
     5246  if test "x$ac_ct_CC" = x; then
     5247    CC=""
     5248  else
     5249    case $cross_compiling:$ac_tool_warned in
     5250yes:)
     5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     5252printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     5253ac_tool_warned=yes ;;
     5254esac
     5255    CC=$ac_ct_CC
     5256  fi
     5257else
     5258  CC="$ac_cv_prog_CC"
     5259fi
     5260
     5261if test -z "$CC"; then
     5262          if test -n "$ac_tool_prefix"; then
     5263    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     5264set dummy ${ac_tool_prefix}cc; ac_word=$2
     5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5266printf %s "checking for $ac_word... " >&6; }
     5267if test ${ac_cv_prog_CC+y}
     5268then :
     5269  printf %s "(cached) " >&6
     5270else case e in #(
     5271  e) if test -n "$CC"; then
     5272  ac_cv_prog_CC="$CC" # Let the user override the test.
     5273else
     5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5275for as_dir in $PATH
     5276do
     5277  IFS=$as_save_IFS
     5278  case $as_dir in #(((
     5279    '') as_dir=./ ;;
     5280    */) ;;
     5281    *) as_dir=$as_dir/ ;;
     5282  esac
     5283    for ac_exec_ext in '' $ac_executable_extensions; do
     5284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5285    ac_cv_prog_CC="${ac_tool_prefix}cc"
     5286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5287    break 2
     5288  fi
     5289done
     5290  done
     5291IFS=$as_save_IFS
     5292
     5293fi ;;
     5294esac
     5295fi
     5296CC=$ac_cv_prog_CC
     5297if test -n "$CC"; then
     5298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     5299printf "%s\n" "$CC" >&6; }
     5300else
     5301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5302printf "%s\n" "no" >&6; }
     5303fi
     5304
     5305
     5306  fi
     5307fi
     5308if test -z "$CC"; then
     5309  # Extract the first word of "cc", so it can be a program name with args.
     5310set dummy cc; ac_word=$2
     5311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5312printf %s "checking for $ac_word... " >&6; }
     5313if test ${ac_cv_prog_CC+y}
     5314then :
     5315  printf %s "(cached) " >&6
     5316else case e in #(
     5317  e) if test -n "$CC"; then
     5318  ac_cv_prog_CC="$CC" # Let the user override the test.
     5319else
     5320  ac_prog_rejected=no
     5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5322for as_dir in $PATH
     5323do
     5324  IFS=$as_save_IFS
     5325  case $as_dir in #(((
     5326    '') as_dir=./ ;;
     5327    */) ;;
     5328    *) as_dir=$as_dir/ ;;
     5329  esac
     5330    for ac_exec_ext in '' $ac_executable_extensions; do
     5331  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5332    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     5333       ac_prog_rejected=yes
     5334       continue
     5335     fi
     5336    ac_cv_prog_CC="cc"
     5337    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5338    break 2
     5339  fi
     5340done
     5341  done
     5342IFS=$as_save_IFS
     5343
     5344if test $ac_prog_rejected = yes; then
     5345  # We found a bogon in the path, so make sure we never use it.
     5346  set dummy $ac_cv_prog_CC
     5347  shift
     5348  if test $# != 0; then
     5349    # We chose a different compiler from the bogus one.
     5350    # However, it has the same basename, so the bogon will be chosen
     5351    # first if we set CC to just the basename; use the full file name.
     5352    shift
     5353    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
     5354  fi
     5355fi
     5356fi ;;
     5357esac
     5358fi
     5359CC=$ac_cv_prog_CC
     5360if test -n "$CC"; then
     5361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     5362printf "%s\n" "$CC" >&6; }
     5363else
     5364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5365printf "%s\n" "no" >&6; }
     5366fi
     5367
     5368
     5369fi
     5370if test -z "$CC"; then
     5371  if test -n "$ac_tool_prefix"; then
     5372  for ac_prog in cl.exe
     5373  do
     5374    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     5375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5377printf %s "checking for $ac_word... " >&6; }
     5378if test ${ac_cv_prog_CC+y}
     5379then :
     5380  printf %s "(cached) " >&6
     5381else case e in #(
     5382  e) if test -n "$CC"; then
     5383  ac_cv_prog_CC="$CC" # Let the user override the test.
     5384else
     5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5386for as_dir in $PATH
     5387do
     5388  IFS=$as_save_IFS
     5389  case $as_dir in #(((
     5390    '') as_dir=./ ;;
     5391    */) ;;
     5392    *) as_dir=$as_dir/ ;;
     5393  esac
     5394    for ac_exec_ext in '' $ac_executable_extensions; do
     5395  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5396    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     5397    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5398    break 2
     5399  fi
     5400done
     5401  done
     5402IFS=$as_save_IFS
     5403
     5404fi ;;
     5405esac
     5406fi
     5407CC=$ac_cv_prog_CC
     5408if test -n "$CC"; then
     5409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     5410printf "%s\n" "$CC" >&6; }
     5411else
     5412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5413printf "%s\n" "no" >&6; }
     5414fi
     5415
     5416
     5417    test -n "$CC" && break
     5418  done
     5419fi
     5420if test -z "$CC"; then
     5421  ac_ct_CC=$CC
     5422  for ac_prog in cl.exe
     5423do
     5424  # Extract the first word of "$ac_prog", so it can be a program name with args.
     5425set dummy $ac_prog; ac_word=$2
     5426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5427printf %s "checking for $ac_word... " >&6; }
     5428if test ${ac_cv_prog_ac_ct_CC+y}
     5429then :
     5430  printf %s "(cached) " >&6
     5431else case e in #(
     5432  e) if test -n "$ac_ct_CC"; then
     5433  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     5434else
     5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5436for as_dir in $PATH
     5437do
     5438  IFS=$as_save_IFS
     5439  case $as_dir in #(((
     5440    '') as_dir=./ ;;
     5441    */) ;;
     5442    *) as_dir=$as_dir/ ;;
     5443  esac
     5444    for ac_exec_ext in '' $ac_executable_extensions; do
     5445  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5446    ac_cv_prog_ac_ct_CC="$ac_prog"
     5447    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5448    break 2
     5449  fi
     5450done
     5451  done
     5452IFS=$as_save_IFS
     5453
     5454fi ;;
     5455esac
     5456fi
     5457ac_ct_CC=$ac_cv_prog_ac_ct_CC
     5458if test -n "$ac_ct_CC"; then
     5459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     5460printf "%s\n" "$ac_ct_CC" >&6; }
     5461else
     5462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5463printf "%s\n" "no" >&6; }
     5464fi
     5465
     5466
     5467  test -n "$ac_ct_CC" && break
     5468done
     5469
     5470  if test "x$ac_ct_CC" = x; then
     5471    CC=""
     5472  else
     5473    case $cross_compiling:$ac_tool_warned in
     5474yes:)
     5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     5476printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     5477ac_tool_warned=yes ;;
     5478esac
     5479    CC=$ac_ct_CC
     5480  fi
     5481fi
     5482
     5483fi
     5484if test -z "$CC"; then
     5485  if test -n "$ac_tool_prefix"; then
     5486  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
     5487set dummy ${ac_tool_prefix}clang; ac_word=$2
     5488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5489printf %s "checking for $ac_word... " >&6; }
     5490if test ${ac_cv_prog_CC+y}
     5491then :
     5492  printf %s "(cached) " >&6
     5493else case e in #(
     5494  e) if test -n "$CC"; then
     5495  ac_cv_prog_CC="$CC" # Let the user override the test.
     5496else
     5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5498for as_dir in $PATH
     5499do
     5500  IFS=$as_save_IFS
     5501  case $as_dir in #(((
     5502    '') as_dir=./ ;;
     5503    */) ;;
     5504    *) as_dir=$as_dir/ ;;
     5505  esac
     5506    for ac_exec_ext in '' $ac_executable_extensions; do
     5507  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5508    ac_cv_prog_CC="${ac_tool_prefix}clang"
     5509    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5510    break 2
     5511  fi
     5512done
     5513  done
     5514IFS=$as_save_IFS
     5515
     5516fi ;;
     5517esac
     5518fi
     5519CC=$ac_cv_prog_CC
     5520if test -n "$CC"; then
     5521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     5522printf "%s\n" "$CC" >&6; }
     5523else
     5524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5525printf "%s\n" "no" >&6; }
     5526fi
     5527
     5528
     5529fi
     5530if test -z "$ac_cv_prog_CC"; then
     5531  ac_ct_CC=$CC
     5532  # Extract the first word of "clang", so it can be a program name with args.
     5533set dummy clang; ac_word=$2
     5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5535printf %s "checking for $ac_word... " >&6; }
     5536if test ${ac_cv_prog_ac_ct_CC+y}
     5537then :
     5538  printf %s "(cached) " >&6
     5539else case e in #(
     5540  e) if test -n "$ac_ct_CC"; then
     5541  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     5542else
     5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5544for as_dir in $PATH
     5545do
     5546  IFS=$as_save_IFS
     5547  case $as_dir in #(((
     5548    '') as_dir=./ ;;
     5549    */) ;;
     5550    *) as_dir=$as_dir/ ;;
     5551  esac
     5552    for ac_exec_ext in '' $ac_executable_extensions; do
     5553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     5554    ac_cv_prog_ac_ct_CC="clang"
     5555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     5556    break 2
     5557  fi
     5558done
     5559  done
     5560IFS=$as_save_IFS
     5561
     5562fi ;;
     5563esac
     5564fi
     5565ac_ct_CC=$ac_cv_prog_ac_ct_CC
     5566if test -n "$ac_ct_CC"; then
     5567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     5568printf "%s\n" "$ac_ct_CC" >&6; }
     5569else
     5570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5571printf "%s\n" "no" >&6; }
     5572fi
     5573
     5574  if test "x$ac_ct_CC" = x; then
     5575    CC=""
     5576  else
     5577    case $cross_compiling:$ac_tool_warned in
     5578yes:)
     5579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     5580printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     5581ac_tool_warned=yes ;;
     5582esac
     5583    CC=$ac_ct_CC
     5584  fi
     5585else
     5586  CC="$ac_cv_prog_CC"
     5587fi
     5588
     5589fi
     5590
     5591
     5592test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     5593printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     5594as_fn_error $? "no acceptable C compiler found in \$PATH
     5595See 'config.log' for more details" "$LINENO" 5; }
     5596
     5597# Provide some information about the compiler.
     5598printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     5599set X $ac_compile
     5600ac_compiler=$2
     5601for ac_option in --version -v -V -qversion -version; do
     5602  { { ac_try="$ac_compiler $ac_option >&5"
     5603case "(($ac_try" in
     5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5605  *) ac_try_echo=$ac_try;;
     5606esac
     5607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5608printf "%s\n" "$ac_try_echo"; } >&5
     5609  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     5610  ac_status=$?
     5611  if test -s conftest.err; then
     5612    sed '10a\
     5613... rest of stderr output deleted ...
     5614         10q' conftest.err >conftest.er1
     5615    cat conftest.er1 >&5
     5616  fi
     5617  rm -f conftest.er1 conftest.err
     5618  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5619  test $ac_status = 0; }
     5620done
     5621
     5622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5623/* end confdefs.h.  */
     5624
     5625int
     5626main (void)
     5627{
     5628
     5629  ;
     5630  return 0;
     5631}
     5632_ACEOF
     5633ac_clean_files_save=$ac_clean_files
     5634ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
     5635# Try to create an executable without -o first, disregard a.out.
     5636# It will help us diagnose broken compilers, and finding out an intuition
     5637# of exeext.
     5638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     5639printf %s "checking whether the C compiler works... " >&6; }
     5640ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     5641
     5642# The possible output files:
     5643ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     5644
     5645ac_rmfiles=
     5646for ac_file in $ac_files
     5647do
     5648  case $ac_file in
     5649    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     5650    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     5651  esac
     5652done
     5653rm -f $ac_rmfiles
     5654
     5655if { { ac_try="$ac_link_default"
     5656case "(($ac_try" in
     5657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5658  *) ac_try_echo=$ac_try;;
     5659esac
     5660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5661printf "%s\n" "$ac_try_echo"; } >&5
     5662  (eval "$ac_link_default") 2>&5
     5663  ac_status=$?
     5664  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5665  test $ac_status = 0; }
     5666then :
     5667  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
     5668# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
     5669# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     5670# so that the user can short-circuit this test for compilers unknown to
     5671# Autoconf.
     5672for ac_file in $ac_files ''
     5673do
     5674  test -f "$ac_file" || continue
     5675  case $ac_file in
     5676    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
     5677        ;;
     5678    [ab].out )
     5679        # We found the default executable, but exeext='' is most
     5680        # certainly right.
     5681        break;;
     5682    *.* )
     5683        if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
     5684        then :; else
     5685           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     5686        fi
     5687        # We set ac_cv_exeext here because the later test for it is not
     5688        # safe: cross compilers may not add the suffix if given an '-o'
     5689        # argument, so we may need to know it at that point already.
     5690        # Even if this section looks crufty: it has the advantage of
     5691        # actually working.
     5692        break;;
     5693    * )
     5694        break;;
     5695  esac
     5696done
     5697test "$ac_cv_exeext" = no && ac_cv_exeext=
     5698
     5699else case e in #(
     5700  e) ac_file='' ;;
     5701esac
     5702fi
     5703if test -z "$ac_file"
     5704then :
     5705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5706printf "%s\n" "no" >&6; }
     5707printf "%s\n" "$as_me: failed program was:" >&5
     5708sed 's/^/| /' conftest.$ac_ext >&5
     5709
     5710{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     5711printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     5712as_fn_error 77 "C compiler cannot create executables
     5713See 'config.log' for more details" "$LINENO" 5; }
     5714else case e in #(
     5715  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5716printf "%s\n" "yes" >&6; } ;;
     5717esac
     5718fi
     5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     5720printf %s "checking for C compiler default output file name... " >&6; }
     5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     5722printf "%s\n" "$ac_file" >&6; }
     5723ac_exeext=$ac_cv_exeext
     5724
     5725rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     5726ac_clean_files=$ac_clean_files_save
     5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     5728printf %s "checking for suffix of executables... " >&6; }
     5729if { { ac_try="$ac_link"
     5730case "(($ac_try" in
     5731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5732  *) ac_try_echo=$ac_try;;
     5733esac
     5734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5735printf "%s\n" "$ac_try_echo"; } >&5
     5736  (eval "$ac_link") 2>&5
     5737  ac_status=$?
     5738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5739  test $ac_status = 0; }
     5740then :
     5741  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
     5742# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
     5743# work properly (i.e., refer to 'conftest.exe'), while it won't with
     5744# 'rm'.
     5745for ac_file in conftest.exe conftest conftest.*; do
     5746  test -f "$ac_file" || continue
     5747  case $ac_file in
     5748    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     5749    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     5750          break;;
     5751    * ) break;;
     5752  esac
     5753done
     5754else case e in #(
     5755  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     5756printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     5757as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     5758See 'config.log' for more details" "$LINENO" 5; } ;;
     5759esac
     5760fi
     5761rm -f conftest conftest$ac_cv_exeext
     5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     5763printf "%s\n" "$ac_cv_exeext" >&6; }
     5764
     5765rm -f conftest.$ac_ext
     5766EXEEXT=$ac_cv_exeext
     5767ac_exeext=$EXEEXT
     5768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5769/* end confdefs.h.  */
     5770#include <stdio.h>
     5771int
     5772main (void)
     5773{
     5774FILE *f = fopen ("conftest.out", "w");
     5775 return ferror (f) || fclose (f) != 0;
     5776
     5777  ;
     5778  return 0;
     5779}
     5780_ACEOF
     5781ac_clean_files="$ac_clean_files conftest.out"
     5782# Check that the compiler produces executables we can run.  If not, either
     5783# the compiler is broken, or we cross compile.
     5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     5785printf %s "checking whether we are cross compiling... " >&6; }
     5786if test "$cross_compiling" != yes; then
     5787  { { ac_try="$ac_link"
     5788case "(($ac_try" in
     5789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5790  *) ac_try_echo=$ac_try;;
     5791esac
     5792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5793printf "%s\n" "$ac_try_echo"; } >&5
     5794  (eval "$ac_link") 2>&5
     5795  ac_status=$?
     5796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5797  test $ac_status = 0; }
     5798  if { ac_try='./conftest$ac_cv_exeext'
     5799  { { case "(($ac_try" in
     5800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5801  *) ac_try_echo=$ac_try;;
     5802esac
     5803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5804printf "%s\n" "$ac_try_echo"; } >&5
     5805  (eval "$ac_try") 2>&5
     5806  ac_status=$?
     5807  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5808  test $ac_status = 0; }; }; then
     5809    cross_compiling=no
     5810  else
     5811    if test "$cross_compiling" = maybe; then
     5812        cross_compiling=yes
     5813    else
     5814        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     5815printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     5816as_fn_error 77 "cannot run C compiled programs.
     5817If you meant to cross compile, use '--host'.
     5818See 'config.log' for more details" "$LINENO" 5; }
     5819    fi
     5820  fi
     5821fi
     5822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     5823printf "%s\n" "$cross_compiling" >&6; }
     5824
     5825rm -f conftest.$ac_ext conftest$ac_cv_exeext \
     5826  conftest.o conftest.obj conftest.out
     5827ac_clean_files=$ac_clean_files_save
     5828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     5829printf %s "checking for suffix of object files... " >&6; }
     5830if test ${ac_cv_objext+y}
     5831then :
     5832  printf %s "(cached) " >&6
     5833else case e in #(
     5834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5835/* end confdefs.h.  */
     5836
     5837int
     5838main (void)
     5839{
     5840
     5841  ;
     5842  return 0;
     5843}
     5844_ACEOF
     5845rm -f conftest.o conftest.obj
     5846if { { ac_try="$ac_compile"
     5847case "(($ac_try" in
     5848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5849  *) ac_try_echo=$ac_try;;
     5850esac
     5851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5852printf "%s\n" "$ac_try_echo"; } >&5
     5853  (eval "$ac_compile") 2>&5
     5854  ac_status=$?
     5855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5856  test $ac_status = 0; }
     5857then :
     5858  for ac_file in conftest.o conftest.obj conftest.*; do
     5859  test -f "$ac_file" || continue;
     5860  case $ac_file in
     5861    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
     5862    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     5863       break;;
     5864  esac
     5865done
     5866else case e in #(
     5867  e) printf "%s\n" "$as_me: failed program was:" >&5
     5868sed 's/^/| /' conftest.$ac_ext >&5
     5869
     5870{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     5871printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     5872as_fn_error $? "cannot compute suffix of object files: cannot compile
     5873See 'config.log' for more details" "$LINENO" 5; } ;;
     5874esac
     5875fi
     5876rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
     5877esac
     5878fi
     5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     5880printf "%s\n" "$ac_cv_objext" >&6; }
     5881OBJEXT=$ac_cv_objext
     5882ac_objext=$OBJEXT
     5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
     5884printf %s "checking whether the compiler supports GNU C... " >&6; }
     5885if test ${ac_cv_c_compiler_gnu+y}
     5886then :
     5887  printf %s "(cached) " >&6
     5888else case e in #(
     5889  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5890/* end confdefs.h.  */
     5891
     5892int
     5893main (void)
     5894{
     5895#ifndef __GNUC__
     5896       choke me
     5897#endif
     5898
     5899  ;
     5900  return 0;
     5901}
     5902_ACEOF
     5903if ac_fn_c_try_compile "$LINENO"
     5904then :
     5905  ac_compiler_gnu=yes
     5906else case e in #(
     5907  e) ac_compiler_gnu=no ;;
     5908esac
     5909fi
     5910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     5911ac_cv_c_compiler_gnu=$ac_compiler_gnu
     5912 ;;
     5913esac
     5914fi
     5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     5916printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
     5917ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5918
     5919if test $ac_compiler_gnu = yes; then
     5920  GCC=yes
     5921else
     5922  GCC=
     5923fi
     5924ac_test_CFLAGS=${CFLAGS+y}
     5925ac_save_CFLAGS=$CFLAGS
     5926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     5927printf %s "checking whether $CC accepts -g... " >&6; }
     5928if test ${ac_cv_prog_cc_g+y}
     5929then :
     5930  printf %s "(cached) " >&6
     5931else case e in #(
     5932  e) ac_save_c_werror_flag=$ac_c_werror_flag
     5933   ac_c_werror_flag=yes
     5934   ac_cv_prog_cc_g=no
     5935   CFLAGS="-g"
     5936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5937/* end confdefs.h.  */
     5938
     5939int
     5940main (void)
     5941{
     5942
     5943  ;
     5944  return 0;
     5945}
     5946_ACEOF
     5947if ac_fn_c_try_compile "$LINENO"
     5948then :
     5949  ac_cv_prog_cc_g=yes
     5950else case e in #(
     5951  e) CFLAGS=""
     5952      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5953/* end confdefs.h.  */
     5954
     5955int
     5956main (void)
     5957{
     5958
     5959  ;
     5960  return 0;
     5961}
     5962_ACEOF
     5963if ac_fn_c_try_compile "$LINENO"
     5964then :
     5965
     5966else case e in #(
     5967  e) ac_c_werror_flag=$ac_save_c_werror_flag
     5968         CFLAGS="-g"
     5969         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5970/* end confdefs.h.  */
     5971
     5972int
     5973main (void)
     5974{
     5975
     5976  ;
     5977  return 0;
     5978}
     5979_ACEOF
     5980if ac_fn_c_try_compile "$LINENO"
     5981then :
     5982  ac_cv_prog_cc_g=yes
     5983fi
     5984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     5985esac
     5986fi
     5987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     5988esac
     5989fi
     5990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     5991   ac_c_werror_flag=$ac_save_c_werror_flag ;;
     5992esac
     5993fi
     5994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     5995printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
     5996if test $ac_test_CFLAGS; then
     5997  CFLAGS=$ac_save_CFLAGS
     5998elif test $ac_cv_prog_cc_g = yes; then
     5999  if test "$GCC" = yes; then
     6000    CFLAGS="-g -O2"
     6001  else
     6002    CFLAGS="-g"
     6003  fi
     6004else
     6005  if test "$GCC" = yes; then
     6006    CFLAGS="-O2"
     6007  else
     6008    CFLAGS=
     6009  fi
     6010fi
     6011ac_prog_cc_stdc=no
     6012if test x$ac_prog_cc_stdc = xno
     6013then :
     6014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
     6015printf %s "checking for $CC option to enable C11 features... " >&6; }
     6016if test ${ac_cv_prog_cc_c11+y}
     6017then :
     6018  printf %s "(cached) " >&6
     6019else case e in #(
     6020  e) ac_cv_prog_cc_c11=no
     6021ac_save_CC=$CC
     6022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6023/* end confdefs.h.  */
     6024$ac_c_conftest_c11_program
     6025_ACEOF
     6026for ac_arg in '' -std=gnu11
     6027do
     6028  CC="$ac_save_CC $ac_arg"
     6029  if ac_fn_c_try_compile "$LINENO"
     6030then :
     6031  ac_cv_prog_cc_c11=$ac_arg
     6032fi
     6033rm -f core conftest.err conftest.$ac_objext conftest.beam
     6034  test "x$ac_cv_prog_cc_c11" != "xno" && break
     6035done
     6036rm -f conftest.$ac_ext
     6037CC=$ac_save_CC ;;
     6038esac
     6039fi
     6040
     6041if test "x$ac_cv_prog_cc_c11" = xno
     6042then :
     6043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     6044printf "%s\n" "unsupported" >&6; }
     6045else case e in #(
     6046  e) if test "x$ac_cv_prog_cc_c11" = x
     6047then :
     6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     6049printf "%s\n" "none needed" >&6; }
     6050else case e in #(
     6051  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
     6052printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     6053     CC="$CC $ac_cv_prog_cc_c11" ;;
     6054esac
     6055fi
     6056  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
     6057  ac_prog_cc_stdc=c11 ;;
     6058esac
     6059fi
     6060fi
     6061if test x$ac_prog_cc_stdc = xno
     6062then :
     6063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
     6064printf %s "checking for $CC option to enable C99 features... " >&6; }
     6065if test ${ac_cv_prog_cc_c99+y}
     6066then :
     6067  printf %s "(cached) " >&6
     6068else case e in #(
     6069  e) ac_cv_prog_cc_c99=no
     6070ac_save_CC=$CC
     6071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6072/* end confdefs.h.  */
     6073$ac_c_conftest_c99_program
     6074_ACEOF
     6075for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
     6076do
     6077  CC="$ac_save_CC $ac_arg"
     6078  if ac_fn_c_try_compile "$LINENO"
     6079then :
     6080  ac_cv_prog_cc_c99=$ac_arg
     6081fi
     6082rm -f core conftest.err conftest.$ac_objext conftest.beam
     6083  test "x$ac_cv_prog_cc_c99" != "xno" && break
     6084done
     6085rm -f conftest.$ac_ext
     6086CC=$ac_save_CC ;;
     6087esac
     6088fi
     6089
     6090if test "x$ac_cv_prog_cc_c99" = xno
     6091then :
     6092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     6093printf "%s\n" "unsupported" >&6; }
     6094else case e in #(
     6095  e) if test "x$ac_cv_prog_cc_c99" = x
     6096then :
     6097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     6098printf "%s\n" "none needed" >&6; }
     6099else case e in #(
     6100  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
     6101printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     6102     CC="$CC $ac_cv_prog_cc_c99" ;;
     6103esac
     6104fi
     6105  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
     6106  ac_prog_cc_stdc=c99 ;;
     6107esac
     6108fi
     6109fi
     6110if test x$ac_prog_cc_stdc = xno
     6111then :
     6112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
     6113printf %s "checking for $CC option to enable C89 features... " >&6; }
     6114if test ${ac_cv_prog_cc_c89+y}
     6115then :
     6116  printf %s "(cached) " >&6
     6117else case e in #(
     6118  e) ac_cv_prog_cc_c89=no
     6119ac_save_CC=$CC
     6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6121/* end confdefs.h.  */
     6122$ac_c_conftest_c89_program
     6123_ACEOF
     6124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     6125do
     6126  CC="$ac_save_CC $ac_arg"
     6127  if ac_fn_c_try_compile "$LINENO"
     6128then :
     6129  ac_cv_prog_cc_c89=$ac_arg
     6130fi
     6131rm -f core conftest.err conftest.$ac_objext conftest.beam
     6132  test "x$ac_cv_prog_cc_c89" != "xno" && break
     6133done
     6134rm -f conftest.$ac_ext
     6135CC=$ac_save_CC ;;
     6136esac
     6137fi
     6138
     6139if test "x$ac_cv_prog_cc_c89" = xno
     6140then :
     6141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     6142printf "%s\n" "unsupported" >&6; }
     6143else case e in #(
     6144  e) if test "x$ac_cv_prog_cc_c89" = x
     6145then :
     6146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     6147printf "%s\n" "none needed" >&6; }
     6148else case e in #(
     6149  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     6150printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     6151     CC="$CC $ac_cv_prog_cc_c89" ;;
     6152esac
     6153fi
     6154  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
     6155  ac_prog_cc_stdc=c89 ;;
     6156esac
     6157fi
     6158fi
     6159
     6160ac_ext=c
     6161ac_cpp='$CPP $CPPFLAGS'
     6162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6164ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6165
     6166
     6167  ac_ext=c
     6168ac_cpp='$CPP $CPPFLAGS'
     6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
     6173printf %s "checking whether $CC understands -c and -o together... " >&6; }
     6174if test ${am_cv_prog_cc_c_o+y}
     6175then :
     6176  printf %s "(cached) " >&6
     6177else case e in #(
     6178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6179/* end confdefs.h.  */
     6180
     6181int
     6182main (void)
     6183{
     6184
     6185  ;
     6186  return 0;
     6187}
     6188_ACEOF
     6189  # Make sure it works both with $CC and with simple cc.
     6190  # Following AC_PROG_CC_C_O, we do the test twice because some
     6191  # compilers refuse to overwrite an existing .o file with -o,
     6192  # though they will create one.
     6193  am_cv_prog_cc_c_o=yes
     6194  for am_i in 1 2; do
     6195    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
     6196   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
     6197   ac_status=$?
     6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6199   (exit $ac_status); } \
     6200         && test -f conftest2.$ac_objext; then
     6201      : OK
     6202    else
     6203      am_cv_prog_cc_c_o=no
     6204      break
     6205    fi
     6206  done
     6207  rm -f core conftest*
     6208  unset am_i ;;
     6209esac
     6210fi
     6211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
     6212printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
     6213if test "$am_cv_prog_cc_c_o" != yes; then
     6214   # Losing compiler, so override with the script.
     6215   # FIXME: It is wrong to rewrite CC.
     6216   # But if we don't then we get into trouble of one sort or another.
     6217   # A longer-term fix would be to have automake use am__CC in this case,
     6218   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
     6219   CC="$am_aux_dir/compile $CC"
     6220fi
     6221ac_ext=c
     6222ac_cpp='$CPP $CPPFLAGS'
     6223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6225ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6226
     6227
     6228
     6229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
     6230printf %s "checking whether the compiler is clang... " >&6; }
     6231if test ${gl_cv_compiler_clang+y}
     6232then :
     6233  printf %s "(cached) " >&6
     6234else case e in #(
     6235  e)                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6236/* end confdefs.h.  */
     6237
     6238           #ifdef __clang__
     6239           barfbarf
     6240           #endif
     6241
     6242int
     6243main (void)
     6244{
     6245
     6246  ;
     6247  return 0;
     6248}
     6249
     6250_ACEOF
     6251if ac_fn_c_try_compile "$LINENO"
     6252then :
     6253  gl_cv_compiler_clang=no
     6254else case e in #(
     6255  e) gl_cv_compiler_clang=yes ;;
     6256esac
     6257fi
     6258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     6259     ;;
     6260esac
     6261fi
     6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
     6263printf "%s\n" "$gl_cv_compiler_clang" >&6; }
     6264
     6265
     6266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
     6267printf %s "checking for compiler option needed when checking for declarations... " >&6; }
     6268if test ${gl_cv_compiler_check_decl_option+y}
     6269then :
     6270  printf %s "(cached) " >&6
     6271else case e in #(
     6272  e) if test $gl_cv_compiler_clang = yes; then
     6273                     save_ac_compile="$ac_compile"
     6274       ac_compile="$ac_compile -Werror=implicit-function-declaration"
     6275                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6276/* end confdefs.h.  */
     6277
     6278int
     6279main (void)
     6280{
     6281
     6282  ;
     6283  return 0;
     6284}
     6285_ACEOF
     6286if ac_fn_c_try_compile "$LINENO"
     6287then :
     6288  gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
     6289else case e in #(
     6290  e) gl_cv_compiler_check_decl_option=none ;;
     6291esac
     6292fi
     6293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     6294       ac_compile="$save_ac_compile"
     6295     else
     6296       gl_cv_compiler_check_decl_option=none
     6297     fi
     6298     ;;
     6299esac
     6300fi
     6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
     6302printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
     6303  if test "x$gl_cv_compiler_check_decl_option" != xnone; then
     6304    ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
     6305  else
     6306    ac_compile_for_check_decl="$ac_compile"
     6307  fi
     6308
    27126309DEPDIR="${am__leading_dot}deps"
    27136310
    2714           ac_config_commands="$ac_config_commands depfiles"
    2715 
    2716 
    2717 am_make=${MAKE-make}
    2718 cat > confinc << 'END'
     6311ac_config_commands="$ac_config_commands depfiles"
     6312
     6313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
     6314printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
     6315cat > confinc.mk << 'END'
    27196316am__doit:
    2720         @echo done
     6317        @echo this is the am__doit target >confinc.out
    27216318.PHONY: am__doit
    27226319END
    2723 # If we don't find an include directive, just comment out the code.
    2724 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
    2725 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
    27266320am__include="#"
    27276321am__quote=
    2728 _am_result=none
    2729 # First try GNU make style include.
    2730 echo "include confinc" > confmf
    2731 # We grep out `Entering directory' and `Leaving directory'
    2732 # messages which can occur if `w' ends up in MAKEFLAGS.
    2733 # In particular we don't look at `^make:' because GNU make might
    2734 # be invoked under some other name (usually "gmake"), in which
    2735 # case it prints its new name instead of `make'.
    2736 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    2737    am__include=include
    2738    am__quote=
    2739    _am_result=GNU
    2740 fi
    2741 # Now try BSD make style include.
    2742 if test "$am__include" = "#"; then
    2743    echo '.include "confinc"' > confmf
    2744    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    2745       am__include=.include
    2746       am__quote="\""
    2747       _am_result=BSD
    2748    fi
    2749 fi
    2750 
    2751 
    2752 echo "$as_me:$LINENO: result: $_am_result" >&5
    2753 echo "${ECHO_T}$_am_result" >&6
    2754 rm -f confinc confmf
    2755 
    2756 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
    2757 if test "${enable_dependency_tracking+set}" = set; then
    2758   enableval="$enable_dependency_tracking"
    2759 
    2760 fi;
     6322# BSD make does it like this.
     6323echo '.include "confinc.mk" # ignored' > confmf.BSD
     6324# Other make implementations (GNU, Solaris 10, AIX) do it like this.
     6325echo 'include confinc.mk # ignored' > confmf.GNU
     6326_am_result=no
     6327for s in GNU BSD; do
     6328  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
     6329   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
     6330   ac_status=$?
     6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6332   (exit $ac_status); }
     6333  case $?:`cat confinc.out 2>/dev/null` in #(
     6334  '0:this is the am__doit target') :
     6335    case $s in #(
     6336  BSD) :
     6337    am__include='.include' am__quote='"' ;; #(
     6338  *) :
     6339    am__include='include' am__quote='' ;;
     6340esac ;; #(
     6341  *) :
     6342     ;;
     6343esac
     6344  if test "$am__include" != "#"; then
     6345    _am_result="yes ($s style)"
     6346    break
     6347  fi
     6348done
     6349rm -f confinc.* confmf.*
     6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
     6351printf "%s\n" "${_am_result}" >&6; }
     6352
     6353# Check whether --enable-dependency-tracking was given.
     6354if test ${enable_dependency_tracking+y}
     6355then :
     6356  enableval=$enable_dependency_tracking;
     6357fi
     6358
    27616359if test "x$enable_dependency_tracking" != xno; then
    27626360  am_depcomp="$ac_aux_dir/depcomp"
    27636361  AMDEPBACKSLASH='\'
    2764 fi
    2765 
    2766 
    2767 if test "x$enable_dependency_tracking" != xno; then
     6362  am__nodep='_no'
     6363fi
     6364 if test "x$enable_dependency_tracking" != xno; then
    27686365  AMDEP_TRUE=
    27696366  AMDEP_FALSE='#'
     
    27756372
    27766373
    2777 
    27786374depcc="$CC"   am_compiler_list=
    27796375
    2780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    2781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    2782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
    2783   echo $ECHO_N "(cached) $ECHO_C" >&6
    2784 else
    2785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
     6377printf %s "checking dependency style of $depcc... " >&6; }
     6378if test ${am_cv_CC_dependencies_compiler_type+y}
     6379then :
     6380  printf %s "(cached) " >&6
     6381else case e in #(
     6382  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    27866383  # We make a subdir and do the tests there.  Otherwise we can end up
    27876384  # making bogus files that we don't know about and never remove.  For
    27886385  # instance it was reported that on HP-UX the gcc test will end up
    2789   # making a dummy file named `D' -- because `-MD' means `put the output
    2790   # in D'.
     6386  # making a dummy file named 'D' -- because '-MD' means "put the output
     6387  # in D".
     6388  rm -rf conftest.dir
    27916389  mkdir conftest.dir
    27926390  # Copy depcomp to subdir because otherwise we won't find it if we're
     
    28066404     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    28076405  fi
     6406  am__universal=false
     6407  case " $depcc " in #(
     6408     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     6409     esac
     6410
    28086411  for depmode in $am_compiler_list; do
    28096412    # Setup a source with many dependencies, because some compilers
     
    28176420    for i in 1 2 3 4 5 6; do
    28186421      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    2820       # Solaris 8's {/usr,}/bin/sh.
    2821       touch sub/conftst$i.h
     6422      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
     6423      # Solaris 10 /bin/sh.
     6424      echo '/* dummy */' > sub/conftst$i.h
    28226425    done
    28236426    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    28246427
     6428    # We check with '-c' and '-o' for the sake of the "dashmstdout"
     6429    # mode.  It turns out that the SunPro C++ compiler does not properly
     6430    # handle '-M -o', and we need to detect this.  Also, some Intel
     6431    # versions had trouble with output in subdirs.
     6432    am__obj=sub/conftest.${OBJEXT-o}
     6433    am__minus_obj="-o $am__obj"
    28256434    case $depmode in
     6435    gcc)
     6436      # This depmode causes a compiler race in universal mode.
     6437      test "$am__universal" = false || continue
     6438      ;;
    28266439    nosideeffect)
    2827       # after this tag, mechanisms are not by side-effect, so they'll
    2828       # only be used when explicitly requested
     6440      # After this tag, mechanisms are not by side-effect, so they'll
     6441      # only be used when explicitly requested.
    28296442      if test "x$enable_dependency_tracking" = xyes; then
    28306443        continue
     
    28336446      fi
    28346447      ;;
     6448    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
     6449      # This compiler won't grok '-c -o', but also, the minuso test has
     6450      # not run yet.  These depmodes are late enough in the game, and
     6451      # so weak that their functioning should not be impacted.
     6452      am__obj=conftest.${OBJEXT-o}
     6453      am__minus_obj=
     6454      ;;
    28356455    none) break ;;
    28366456    esac
    2837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    2838     # mode.  It turns out that the SunPro C++ compiler does not properly
    2839     # handle `-M -o', and we need to detect this.
    28406457    if depmode=$depmode \
    2841        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     6458       source=sub/conftest.c object=$am__obj \
    28426459       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    2843        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     6460       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
    28446461         >/dev/null 2>conftest.err &&
     6462       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
    28456463       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    2846        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     6464       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
    28476465       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    28486466      # icc doesn't choke on unknown options, it will just issue warnings
     
    28666484  am_cv_CC_dependencies_compiler_type=none
    28676485fi
    2868 
    2869 fi
    2870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    2871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     6486 ;;
     6487esac
     6488fi
     6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
     6490printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
    28726491CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    28736492
    2874 
    2875 
    2876 if
     6493 if
    28776494  test "x$enable_dependency_tracking" != xno \
    28786495  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     
    28856502
    28866503
    2887 if test -n "$ac_tool_prefix"; then
     6504
     6505
     6506ac_header= ac_cache=
     6507for ac_item in $ac_header_c_list
     6508do
     6509  if test $ac_cache; then
     6510    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
     6511    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
     6512      printf "%s\n" "#define $ac_item 1" >> confdefs.h
     6513    fi
     6514    ac_header= ac_cache=
     6515  elif test $ac_header; then
     6516    ac_cache=$ac_item
     6517  else
     6518    ac_header=$ac_item
     6519  fi
     6520done
     6521
     6522
     6523
     6524
     6525
     6526
     6527
     6528
     6529if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
     6530then :
     6531
     6532printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
     6533
     6534fi
     6535
     6536
     6537
     6538
     6539
     6540
     6541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     6542printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     6543if test ${ac_cv_safe_to_define___extensions__+y}
     6544then :
     6545  printf %s "(cached) " >&6
     6546else case e in #(
     6547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6548/* end confdefs.h.  */
     6549
     6550#         define __EXTENSIONS__ 1
     6551          $ac_includes_default
     6552int
     6553main (void)
     6554{
     6555
     6556  ;
     6557  return 0;
     6558}
     6559_ACEOF
     6560if ac_fn_c_try_compile "$LINENO"
     6561then :
     6562  ac_cv_safe_to_define___extensions__=yes
     6563else case e in #(
     6564  e) ac_cv_safe_to_define___extensions__=no ;;
     6565esac
     6566fi
     6567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     6568esac
     6569fi
     6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     6571printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
     6572
     6573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
     6574printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
     6575if test ${ac_cv_should_define__xopen_source+y}
     6576then :
     6577  printf %s "(cached) " >&6
     6578else case e in #(
     6579  e) ac_cv_should_define__xopen_source=no
     6580    if test $ac_cv_header_wchar_h = yes
     6581then :
     6582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6583/* end confdefs.h.  */
     6584
     6585          #include <wchar.h>
     6586          mbstate_t x;
     6587int
     6588main (void)
     6589{
     6590
     6591  ;
     6592  return 0;
     6593}
     6594_ACEOF
     6595if ac_fn_c_try_compile "$LINENO"
     6596then :
     6597
     6598else case e in #(
     6599  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6600/* end confdefs.h.  */
     6601
     6602            #define _XOPEN_SOURCE 500
     6603            #include <wchar.h>
     6604            mbstate_t x;
     6605int
     6606main (void)
     6607{
     6608
     6609  ;
     6610  return 0;
     6611}
     6612_ACEOF
     6613if ac_fn_c_try_compile "$LINENO"
     6614then :
     6615  ac_cv_should_define__xopen_source=yes
     6616fi
     6617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     6618esac
     6619fi
     6620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     6621fi ;;
     6622esac
     6623fi
     6624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
     6625printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
     6626
     6627  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
     6628
     6629  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
     6630
     6631  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
     6632
     6633  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
     6634
     6635  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
     6636
     6637  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
     6638
     6639  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     6640
     6641  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
     6642
     6643  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
     6644
     6645  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
     6646
     6647  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
     6648
     6649  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
     6650
     6651  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
     6652
     6653  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
     6654
     6655  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
     6656
     6657  if test $ac_cv_header_minix_config_h = yes
     6658then :
     6659  MINIX=yes
     6660    printf "%s\n" "#define _MINIX 1" >>confdefs.h
     6661
     6662    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
     6663
     6664    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
     6665
     6666else case e in #(
     6667  e) MINIX= ;;
     6668esac
     6669fi
     6670  if test $ac_cv_safe_to_define___extensions__ = yes
     6671then :
     6672  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
     6673
     6674fi
     6675  if test $ac_cv_should_define__xopen_source = yes
     6676then :
     6677  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
     6678
     6679fi
     6680
     6681
     6682
     6683  # Make sure we can run config.sub.
     6684$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
     6685  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
     6686
     6687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     6688printf %s "checking build system type... " >&6; }
     6689if test ${ac_cv_build+y}
     6690then :
     6691  printf %s "(cached) " >&6
     6692else case e in #(
     6693  e) ac_build_alias=$build_alias
     6694test "x$ac_build_alias" = x &&
     6695  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
     6696test "x$ac_build_alias" = x &&
     6697  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     6698ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
     6699  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
     6700 ;;
     6701esac
     6702fi
     6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     6704printf "%s\n" "$ac_cv_build" >&6; }
     6705case $ac_cv_build in
     6706*-*-*) ;;
     6707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     6708esac
     6709build=$ac_cv_build
     6710ac_save_IFS=$IFS; IFS='-'
     6711set x $ac_cv_build
     6712shift
     6713build_cpu=$1
     6714build_vendor=$2
     6715shift; shift
     6716# Remember, the first character of IFS is used to create $*,
     6717# except with old shells:
     6718build_os=$*
     6719IFS=$ac_save_IFS
     6720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     6721
     6722
     6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     6724printf %s "checking host system type... " >&6; }
     6725if test ${ac_cv_host+y}
     6726then :
     6727  printf %s "(cached) " >&6
     6728else case e in #(
     6729  e) if test "x$host_alias" = x; then
     6730  ac_cv_host=$ac_cv_build
     6731else
     6732  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
     6733    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
     6734fi
     6735 ;;
     6736esac
     6737fi
     6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     6739printf "%s\n" "$ac_cv_host" >&6; }
     6740case $ac_cv_host in
     6741*-*-*) ;;
     6742*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     6743esac
     6744host=$ac_cv_host
     6745ac_save_IFS=$IFS; IFS='-'
     6746set x $ac_cv_host
     6747shift
     6748host_cpu=$1
     6749host_vendor=$2
     6750shift; shift
     6751# Remember, the first character of IFS is used to create $*,
     6752# except with old shells:
     6753host_os=$*
     6754IFS=$ac_save_IFS
     6755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     6756
     6757
     6758
     6759
     6760
     6761
     6762  case "$host_os" in
     6763    openbsd*)
     6764
     6765printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
     6766
     6767      ;;
     6768  esac
     6769
     6770ac_ext=c
     6771ac_cpp='$CPP $CPPFLAGS'
     6772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6774ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     6776printf %s "checking how to run the C preprocessor... " >&6; }
     6777# On Suns, sometimes $CPP names a directory.
     6778if test -n "$CPP" && test -d "$CPP"; then
     6779  CPP=
     6780fi
     6781if test -z "$CPP"; then
     6782  if test ${ac_cv_prog_CPP+y}
     6783then :
     6784  printf %s "(cached) " >&6
     6785else case e in #(
     6786  e)     # Double quotes because $CC needs to be expanded
     6787    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
     6788    do
     6789      ac_preproc_ok=false
     6790for ac_c_preproc_warn_flag in '' yes
     6791do
     6792  # Use a header file that comes with gcc, so configuring glibc
     6793  # with a fresh cross-compiler works.
     6794  # On the NeXT, cc -E runs the code through the compiler's parser,
     6795  # not just through cpp. "Syntax error" is here to catch this case.
     6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6797/* end confdefs.h.  */
     6798#include <limits.h>
     6799                     Syntax error
     6800_ACEOF
     6801if ac_fn_c_try_cpp "$LINENO"
     6802then :
     6803
     6804else case e in #(
     6805  e) # Broken: fails on valid input.
     6806continue ;;
     6807esac
     6808fi
     6809rm -f conftest.err conftest.i conftest.$ac_ext
     6810
     6811  # OK, works on sane cases.  Now check whether nonexistent headers
     6812  # can be detected and how.
     6813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6814/* end confdefs.h.  */
     6815#include <ac_nonexistent.h>
     6816_ACEOF
     6817if ac_fn_c_try_cpp "$LINENO"
     6818then :
     6819  # Broken: success on invalid input.
     6820continue
     6821else case e in #(
     6822  e) # Passes both tests.
     6823ac_preproc_ok=:
     6824break ;;
     6825esac
     6826fi
     6827rm -f conftest.err conftest.i conftest.$ac_ext
     6828
     6829done
     6830# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6831rm -f conftest.i conftest.err conftest.$ac_ext
     6832if $ac_preproc_ok
     6833then :
     6834  break
     6835fi
     6836
     6837    done
     6838    ac_cv_prog_CPP=$CPP
     6839   ;;
     6840esac
     6841fi
     6842  CPP=$ac_cv_prog_CPP
     6843else
     6844  ac_cv_prog_CPP=$CPP
     6845fi
     6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     6847printf "%s\n" "$CPP" >&6; }
     6848ac_preproc_ok=false
     6849for ac_c_preproc_warn_flag in '' yes
     6850do
     6851  # Use a header file that comes with gcc, so configuring glibc
     6852  # with a fresh cross-compiler works.
     6853  # On the NeXT, cc -E runs the code through the compiler's parser,
     6854  # not just through cpp. "Syntax error" is here to catch this case.
     6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6856/* end confdefs.h.  */
     6857#include <limits.h>
     6858                     Syntax error
     6859_ACEOF
     6860if ac_fn_c_try_cpp "$LINENO"
     6861then :
     6862
     6863else case e in #(
     6864  e) # Broken: fails on valid input.
     6865continue ;;
     6866esac
     6867fi
     6868rm -f conftest.err conftest.i conftest.$ac_ext
     6869
     6870  # OK, works on sane cases.  Now check whether nonexistent headers
     6871  # can be detected and how.
     6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6873/* end confdefs.h.  */
     6874#include <ac_nonexistent.h>
     6875_ACEOF
     6876if ac_fn_c_try_cpp "$LINENO"
     6877then :
     6878  # Broken: success on invalid input.
     6879continue
     6880else case e in #(
     6881  e) # Passes both tests.
     6882ac_preproc_ok=:
     6883break ;;
     6884esac
     6885fi
     6886rm -f conftest.err conftest.i conftest.$ac_ext
     6887
     6888done
     6889# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6890rm -f conftest.i conftest.err conftest.$ac_ext
     6891if $ac_preproc_ok
     6892then :
     6893
     6894else case e in #(
     6895  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     6896printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     6897as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     6898See 'config.log' for more details" "$LINENO" 5; } ;;
     6899esac
     6900fi
     6901
     6902ac_ext=c
     6903ac_cpp='$CPP $CPPFLAGS'
     6904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6906ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6907
     6908
     6909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
     6910printf %s "checking for egrep -e... " >&6; }
     6911if test ${ac_cv_path_EGREP_TRADITIONAL+y}
     6912then :
     6913  printf %s "(cached) " >&6
     6914else case e in #(
     6915  e) if test -z "$EGREP_TRADITIONAL"; then
     6916  ac_path_EGREP_TRADITIONAL_found=false
     6917  # Loop through the user's path and test for each of PROGNAME-LIST
     6918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6919for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     6920do
     6921  IFS=$as_save_IFS
     6922  case $as_dir in #(((
     6923    '') as_dir=./ ;;
     6924    */) ;;
     6925    *) as_dir=$as_dir/ ;;
     6926  esac
     6927    for ac_prog in grep ggrep
     6928   do
     6929    for ac_exec_ext in '' $ac_executable_extensions; do
     6930      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
     6931      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
     6932# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
     6933  # Check for GNU $ac_path_EGREP_TRADITIONAL
     6934case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in
     6935*GNU*)
     6936  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
     6937*)
     6938  ac_count=0
     6939  printf %s 0123456789 >"conftest.in"
     6940  while :
     6941  do
     6942    cat "conftest.in" "conftest.in" >"conftest.tmp"
     6943    mv "conftest.tmp" "conftest.in"
     6944    cp "conftest.in" "conftest.nl"
     6945    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
     6946    "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     6947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     6948    as_fn_arith $ac_count + 1 && ac_count=$as_val
     6949    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
     6950      # Best one so far, save it but keep looking for a better one
     6951      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
     6952      ac_path_EGREP_TRADITIONAL_max=$ac_count
     6953    fi
     6954    # 10*(2^10) chars as input seems more than enough
     6955    test $ac_count -gt 10 && break
     6956  done
     6957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     6958esac
     6959
     6960      $ac_path_EGREP_TRADITIONAL_found && break 3
     6961    done
     6962  done
     6963  done
     6964IFS=$as_save_IFS
     6965  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
     6966    :
     6967  fi
     6968else
     6969  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
     6970fi
     6971
     6972    if test "$ac_cv_path_EGREP_TRADITIONAL"
     6973then :
     6974  ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
     6975else case e in #(
     6976  e) if test -z "$EGREP_TRADITIONAL"; then
     6977  ac_path_EGREP_TRADITIONAL_found=false
     6978  # Loop through the user's path and test for each of PROGNAME-LIST
     6979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     6981do
     6982  IFS=$as_save_IFS
     6983  case $as_dir in #(((
     6984    '') as_dir=./ ;;
     6985    */) ;;
     6986    *) as_dir=$as_dir/ ;;
     6987  esac
     6988    for ac_prog in egrep
     6989   do
     6990    for ac_exec_ext in '' $ac_executable_extensions; do
     6991      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
     6992      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
     6993# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
     6994  # Check for GNU $ac_path_EGREP_TRADITIONAL
     6995case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in
     6996*GNU*)
     6997  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
     6998*)
     6999  ac_count=0
     7000  printf %s 0123456789 >"conftest.in"
     7001  while :
     7002  do
     7003    cat "conftest.in" "conftest.in" >"conftest.tmp"
     7004    mv "conftest.tmp" "conftest.in"
     7005    cp "conftest.in" "conftest.nl"
     7006    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
     7007    "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     7008    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     7009    as_fn_arith $ac_count + 1 && ac_count=$as_val
     7010    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
     7011      # Best one so far, save it but keep looking for a better one
     7012      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
     7013      ac_path_EGREP_TRADITIONAL_max=$ac_count
     7014    fi
     7015    # 10*(2^10) chars as input seems more than enough
     7016    test $ac_count -gt 10 && break
     7017  done
     7018  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     7019esac
     7020
     7021      $ac_path_EGREP_TRADITIONAL_found && break 3
     7022    done
     7023  done
     7024  done
     7025IFS=$as_save_IFS
     7026  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
     7027    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     7028  fi
     7029else
     7030  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
     7031fi
     7032 ;;
     7033esac
     7034fi ;;
     7035esac
     7036fi
     7037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
     7038printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
     7039 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
     7040
     7041
     7042
     7043
     7044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
     7045printf %s "checking for Minix Amsterdam compiler... " >&6; }
     7046if test ${gl_cv_c_amsterdam_compiler+y}
     7047then :
     7048  printf %s "(cached) " >&6
     7049else case e in #(
     7050  e)
     7051      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7052/* end confdefs.h.  */
     7053
     7054#ifdef __ACK__
     7055Amsterdam
     7056#endif
     7057
     7058_ACEOF
     7059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7060  $EGREP_TRADITIONAL "Amsterdam" >/dev/null 2>&1
     7061then :
     7062  gl_cv_c_amsterdam_compiler=yes
     7063else case e in #(
     7064  e) gl_cv_c_amsterdam_compiler=no ;;
     7065esac
     7066fi
     7067rm -rf conftest*
     7068
     7069     ;;
     7070esac
     7071fi
     7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
     7073printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
     7074
     7075      if test $gl_cv_c_amsterdam_compiler = yes; then
     7076    if test -z "$AR"; then
     7077      AR='cc -c.a'
     7078    fi
     7079    if test -z "$ARFLAGS"; then
     7080      ARFLAGS='-o'
     7081    fi
     7082  else
     7083                                                :
     7084  fi
     7085
     7086        if test -n "$ac_tool_prefix"; then
     7087  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     7088set dummy ${ac_tool_prefix}ar; ac_word=$2
     7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7090printf %s "checking for $ac_word... " >&6; }
     7091if test ${ac_cv_prog_AR+y}
     7092then :
     7093  printf %s "(cached) " >&6
     7094else case e in #(
     7095  e) if test -n "$AR"; then
     7096  ac_cv_prog_AR="$AR" # Let the user override the test.
     7097else
     7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7099for as_dir in $PATH
     7100do
     7101  IFS=$as_save_IFS
     7102  case $as_dir in #(((
     7103    '') as_dir=./ ;;
     7104    */) ;;
     7105    *) as_dir=$as_dir/ ;;
     7106  esac
     7107    for ac_exec_ext in '' $ac_executable_extensions; do
     7108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     7109    ac_cv_prog_AR="${ac_tool_prefix}ar"
     7110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     7111    break 2
     7112  fi
     7113done
     7114  done
     7115IFS=$as_save_IFS
     7116
     7117fi ;;
     7118esac
     7119fi
     7120AR=$ac_cv_prog_AR
     7121if test -n "$AR"; then
     7122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     7123printf "%s\n" "$AR" >&6; }
     7124else
     7125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7126printf "%s\n" "no" >&6; }
     7127fi
     7128
     7129
     7130fi
     7131if test -z "$ac_cv_prog_AR"; then
     7132  ac_ct_AR=$AR
     7133  # Extract the first word of "ar", so it can be a program name with args.
     7134set dummy ar; ac_word=$2
     7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7136printf %s "checking for $ac_word... " >&6; }
     7137if test ${ac_cv_prog_ac_ct_AR+y}
     7138then :
     7139  printf %s "(cached) " >&6
     7140else case e in #(
     7141  e) if test -n "$ac_ct_AR"; then
     7142  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     7143else
     7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7145for as_dir in $PATH
     7146do
     7147  IFS=$as_save_IFS
     7148  case $as_dir in #(((
     7149    '') as_dir=./ ;;
     7150    */) ;;
     7151    *) as_dir=$as_dir/ ;;
     7152  esac
     7153    for ac_exec_ext in '' $ac_executable_extensions; do
     7154  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     7155    ac_cv_prog_ac_ct_AR="ar"
     7156    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     7157    break 2
     7158  fi
     7159done
     7160  done
     7161IFS=$as_save_IFS
     7162
     7163fi ;;
     7164esac
     7165fi
     7166ac_ct_AR=$ac_cv_prog_ac_ct_AR
     7167if test -n "$ac_ct_AR"; then
     7168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
     7169printf "%s\n" "$ac_ct_AR" >&6; }
     7170else
     7171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7172printf "%s\n" "no" >&6; }
     7173fi
     7174
     7175  if test "x$ac_ct_AR" = x; then
     7176    AR="ar"
     7177  else
     7178    case $cross_compiling:$ac_tool_warned in
     7179yes:)
     7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     7182ac_tool_warned=yes ;;
     7183esac
     7184    AR=$ac_ct_AR
     7185  fi
     7186else
     7187  AR="$ac_cv_prog_AR"
     7188fi
     7189
     7190  if test -z "$ARFLAGS"; then
     7191    ARFLAGS='cr'
     7192  fi
     7193
     7194
     7195
     7196  if test -z "$RANLIB"; then
     7197    if test $gl_cv_c_amsterdam_compiler = yes; then
     7198      RANLIB=':'
     7199    else
     7200            if test -n "$ac_tool_prefix"; then
    28887201  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    28897202set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2892 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2893   echo $ECHO_N "(cached) $ECHO_C" >&6
    2894 else
    2895   if test -n "$RANLIB"; then
     7203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7204printf %s "checking for $ac_word... " >&6; }
     7205if test ${ac_cv_prog_RANLIB+y}
     7206then :
     7207  printf %s "(cached) " >&6
     7208else case e in #(
     7209  e) if test -n "$RANLIB"; then
    28967210  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    28977211else
     
    29007214do
    29017215  IFS=$as_save_IFS
    2902   test -z "$as_dir" && as_dir=.
    2903   for ac_exec_ext in '' $ac_executable_extensions; do
    2904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7216  case $as_dir in #(((
     7217    '') as_dir=./ ;;
     7218    */) ;;
     7219    *) as_dir=$as_dir/ ;;
     7220  esac
     7221    for ac_exec_ext in '' $ac_executable_extensions; do
     7222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    29057223    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    29077225    break 2
    29087226  fi
    29097227done
    2910 done
    2911 
    2912 fi
     7228  done
     7229IFS=$as_save_IFS
     7230
     7231fi ;;
     7232esac
    29137233fi
    29147234RANLIB=$ac_cv_prog_RANLIB
    29157235if test -n "$RANLIB"; then
    2916   echo "$as_me:$LINENO: result: $RANLIB" >&5
    2917 echo "${ECHO_T}$RANLIB" >&6
     7236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     7237printf "%s\n" "$RANLIB" >&6; }
    29187238else
    2919   echo "$as_me:$LINENO: result: no" >&5
    2920 echo "${ECHO_T}no" >&6
    2921 fi
     7239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7240printf "%s\n" "no" >&6; }
     7241fi
     7242
    29227243
    29237244fi
     
    29267247  # Extract the first word of "ranlib", so it can be a program name with args.
    29277248set dummy ranlib; ac_word=$2
    2928 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2931   echo $ECHO_N "(cached) $ECHO_C" >&6
    2932 else
    2933   if test -n "$ac_ct_RANLIB"; then
     7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7250printf %s "checking for $ac_word... " >&6; }
     7251if test ${ac_cv_prog_ac_ct_RANLIB+y}
     7252then :
     7253  printf %s "(cached) " >&6
     7254else case e in #(
     7255  e) if test -n "$ac_ct_RANLIB"; then
    29347256  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    29357257else
     
    29387260do
    29397261  IFS=$as_save_IFS
    2940   test -z "$as_dir" && as_dir=.
    2941   for ac_exec_ext in '' $ac_executable_extensions; do
    2942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7262  case $as_dir in #(((
     7263    '') as_dir=./ ;;
     7264    */) ;;
     7265    *) as_dir=$as_dir/ ;;
     7266  esac
     7267    for ac_exec_ext in '' $ac_executable_extensions; do
     7268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    29437269    ac_cv_prog_ac_ct_RANLIB="ranlib"
    2944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    29457271    break 2
    29467272  fi
    29477273done
    2948 done
    2949 
    2950   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2951 fi
     7274  done
     7275IFS=$as_save_IFS
     7276
     7277fi ;;
     7278esac
    29527279fi
    29537280ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    29547281if test -n "$ac_ct_RANLIB"; then
    2955   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    2956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
     7282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     7283printf "%s\n" "$ac_ct_RANLIB" >&6; }
    29577284else
    2958   echo "$as_me:$LINENO: result: no" >&5
    2959 echo "${ECHO_T}no" >&6
    2960 fi
    2961 
    2962   RANLIB=$ac_ct_RANLIB
     7285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7286printf "%s\n" "no" >&6; }
     7287fi
     7288
     7289  if test "x$ac_ct_RANLIB" = x; then
     7290    RANLIB=":"
     7291  else
     7292    case $cross_compiling:$ac_tool_warned in
     7293yes:)
     7294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7295printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     7296ac_tool_warned=yes ;;
     7297esac
     7298    RANLIB=$ac_ct_RANLIB
     7299  fi
    29637300else
    29647301  RANLIB="$ac_cv_prog_RANLIB"
    29657302fi
    29667303
    2967 
    2968 cat >>confdefs.h <<\_ACEOF
    2969 #define _GNU_SOURCE 1
    2970 _ACEOF
    2971 
    2972 
    2973 
    2974 ac_ext=c
    2975 ac_cpp='$CPP $CPPFLAGS'
    2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    2980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    2981 # On Suns, sometimes $CPP names a directory.
    2982 if test -n "$CPP" && test -d "$CPP"; then
    2983   CPP=
    2984 fi
    2985 if test -z "$CPP"; then
    2986   if test "${ac_cv_prog_CPP+set}" = set; then
    2987   echo $ECHO_N "(cached) $ECHO_C" >&6
    2988 else
    2989       # Double quotes because CPP needs to be expanded
    2990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2991     do
    2992       ac_preproc_ok=false
    2993 for ac_c_preproc_warn_flag in '' yes
    2994 do
    2995   # Use a header file that comes with gcc, so configuring glibc
    2996   # with a fresh cross-compiler works.
    2997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2998   # <limits.h> exists even on freestanding compilers.
    2999   # On the NeXT, cc -E runs the code through the compiler's parser,
    3000   # not just through cpp. "Syntax error" is here to catch this case.
    3001   cat >conftest.$ac_ext <<_ACEOF
    3002 /* confdefs.h.  */
    3003 _ACEOF
    3004 cat confdefs.h >>conftest.$ac_ext
    3005 cat >>conftest.$ac_ext <<_ACEOF
    3006 /* end confdefs.h.  */
    3007 #ifdef __STDC__
    3008 # include <limits.h>
    3009 #else
    3010 # include <assert.h>
    3011 #endif
    3012                      Syntax error
    3013 _ACEOF
    3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3016   ac_status=$?
    3017   grep -v '^ *+' conftest.er1 >conftest.err
    3018   rm -f conftest.er1
    3019   cat conftest.err >&5
    3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3021   (exit $ac_status); } >/dev/null; then
    3022   if test -s conftest.err; then
    3023     ac_cpp_err=$ac_c_preproc_warn_flag
    3024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3025   else
    3026     ac_cpp_err=
    3027   fi
    3028 else
    3029   ac_cpp_err=yes
    3030 fi
    3031 if test -z "$ac_cpp_err"; then
    3032   :
    3033 else
    3034   echo "$as_me: failed program was:" >&5
    3035 sed 's/^/| /' conftest.$ac_ext >&5
    3036 
    3037   # Broken: fails on valid input.
    3038 continue
    3039 fi
    3040 rm -f conftest.err conftest.$ac_ext
    3041 
    3042   # OK, works on sane cases.  Now check whether non-existent headers
    3043   # can be detected and how.
    3044   cat >conftest.$ac_ext <<_ACEOF
    3045 /* confdefs.h.  */
    3046 _ACEOF
    3047 cat confdefs.h >>conftest.$ac_ext
    3048 cat >>conftest.$ac_ext <<_ACEOF
    3049 /* end confdefs.h.  */
    3050 #include <ac_nonexistent.h>
    3051 _ACEOF
    3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3054   ac_status=$?
    3055   grep -v '^ *+' conftest.er1 >conftest.err
    3056   rm -f conftest.er1
    3057   cat conftest.err >&5
    3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3059   (exit $ac_status); } >/dev/null; then
    3060   if test -s conftest.err; then
    3061     ac_cpp_err=$ac_c_preproc_warn_flag
    3062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3063   else
    3064     ac_cpp_err=
    3065   fi
    3066 else
    3067   ac_cpp_err=yes
    3068 fi
    3069 if test -z "$ac_cpp_err"; then
    3070   # Broken: success on invalid input.
    3071 continue
    3072 else
    3073   echo "$as_me: failed program was:" >&5
    3074 sed 's/^/| /' conftest.$ac_ext >&5
    3075 
    3076   # Passes both tests.
    3077 ac_preproc_ok=:
    3078 break
    3079 fi
    3080 rm -f conftest.err conftest.$ac_ext
    3081 
    3082 done
    3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3084 rm -f conftest.err conftest.$ac_ext
    3085 if $ac_preproc_ok; then
    3086   break
    3087 fi
    3088 
    3089     done
    3090     ac_cv_prog_CPP=$CPP
    3091 
    3092 fi
    3093   CPP=$ac_cv_prog_CPP
    3094 else
    3095   ac_cv_prog_CPP=$CPP
    3096 fi
    3097 echo "$as_me:$LINENO: result: $CPP" >&5
    3098 echo "${ECHO_T}$CPP" >&6
    3099 ac_preproc_ok=false
    3100 for ac_c_preproc_warn_flag in '' yes
    3101 do
    3102   # Use a header file that comes with gcc, so configuring glibc
    3103   # with a fresh cross-compiler works.
    3104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3105   # <limits.h> exists even on freestanding compilers.
    3106   # On the NeXT, cc -E runs the code through the compiler's parser,
    3107   # not just through cpp. "Syntax error" is here to catch this case.
    3108   cat >conftest.$ac_ext <<_ACEOF
    3109 /* confdefs.h.  */
    3110 _ACEOF
    3111 cat confdefs.h >>conftest.$ac_ext
    3112 cat >>conftest.$ac_ext <<_ACEOF
    3113 /* end confdefs.h.  */
    3114 #ifdef __STDC__
    3115 # include <limits.h>
    3116 #else
    3117 # include <assert.h>
    3118 #endif
    3119                      Syntax error
    3120 _ACEOF
    3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3123   ac_status=$?
    3124   grep -v '^ *+' conftest.er1 >conftest.err
    3125   rm -f conftest.er1
    3126   cat conftest.err >&5
    3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3128   (exit $ac_status); } >/dev/null; then
    3129   if test -s conftest.err; then
    3130     ac_cpp_err=$ac_c_preproc_warn_flag
    3131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3132   else
    3133     ac_cpp_err=
    3134   fi
    3135 else
    3136   ac_cpp_err=yes
    3137 fi
    3138 if test -z "$ac_cpp_err"; then
    3139   :
    3140 else
    3141   echo "$as_me: failed program was:" >&5
    3142 sed 's/^/| /' conftest.$ac_ext >&5
    3143 
    3144   # Broken: fails on valid input.
    3145 continue
    3146 fi
    3147 rm -f conftest.err conftest.$ac_ext
    3148 
    3149   # OK, works on sane cases.  Now check whether non-existent headers
    3150   # can be detected and how.
    3151   cat >conftest.$ac_ext <<_ACEOF
    3152 /* confdefs.h.  */
    3153 _ACEOF
    3154 cat confdefs.h >>conftest.$ac_ext
    3155 cat >>conftest.$ac_ext <<_ACEOF
    3156 /* end confdefs.h.  */
    3157 #include <ac_nonexistent.h>
    3158 _ACEOF
    3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3161   ac_status=$?
    3162   grep -v '^ *+' conftest.er1 >conftest.err
    3163   rm -f conftest.er1
    3164   cat conftest.err >&5
    3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3166   (exit $ac_status); } >/dev/null; then
    3167   if test -s conftest.err; then
    3168     ac_cpp_err=$ac_c_preproc_warn_flag
    3169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3170   else
    3171     ac_cpp_err=
    3172   fi
    3173 else
    3174   ac_cpp_err=yes
    3175 fi
    3176 if test -z "$ac_cpp_err"; then
    3177   # Broken: success on invalid input.
    3178 continue
    3179 else
    3180   echo "$as_me: failed program was:" >&5
    3181 sed 's/^/| /' conftest.$ac_ext >&5
    3182 
    3183   # Passes both tests.
    3184 ac_preproc_ok=:
    3185 break
    3186 fi
    3187 rm -f conftest.err conftest.$ac_ext
    3188 
    3189 done
    3190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3191 rm -f conftest.err conftest.$ac_ext
    3192 if $ac_preproc_ok; then
    3193   :
    3194 else
    3195   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3196 See \`config.log' for more details." >&5
    3197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3198 See \`config.log' for more details." >&2;}
    3199    { (exit 1); exit 1; }; }
    3200 fi
    3201 
    3202 ac_ext=c
    3203 ac_cpp='$CPP $CPPFLAGS'
    3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3207 
    3208 
    3209 echo "$as_me:$LINENO: checking for egrep" >&5
    3210 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3211 if test "${ac_cv_prog_egrep+set}" = set; then
    3212   echo $ECHO_N "(cached) $ECHO_C" >&6
    3213 else
    3214   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3215     then ac_cv_prog_egrep='grep -E'
    3216     else ac_cv_prog_egrep='egrep'
    32177304    fi
    3218 fi
    3219 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3220 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3221  EGREP=$ac_cv_prog_egrep
    3222 
    3223 
    3224 
    3225 echo "$as_me:$LINENO: checking for AIX" >&5
    3226 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3227 cat >conftest.$ac_ext <<_ACEOF
    3228 /* confdefs.h.  */
    3229 _ACEOF
    3230 cat confdefs.h >>conftest.$ac_ext
    3231 cat >>conftest.$ac_ext <<_ACEOF
    3232 /* end confdefs.h.  */
    3233 #ifdef _AIX
    3234   yes
    3235 #endif
    3236 
    3237 _ACEOF
    3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3239   $EGREP "yes" >/dev/null 2>&1; then
    3240   echo "$as_me:$LINENO: result: yes" >&5
    3241 echo "${ECHO_T}yes" >&6
    3242 cat >>confdefs.h <<\_ACEOF
    3243 #define _ALL_SOURCE 1
    3244 _ACEOF
    3245 
    3246 else
    3247   echo "$as_me:$LINENO: result: no" >&5
    3248 echo "${ECHO_T}no" >&6
    3249 fi
    3250 rm -f conftest*
    3251 
    3252 
    3253 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3255 if test "${ac_cv_header_stdc+set}" = set; then
    3256   echo $ECHO_N "(cached) $ECHO_C" >&6
    3257 else
    3258   cat >conftest.$ac_ext <<_ACEOF
    3259 /* confdefs.h.  */
    3260 _ACEOF
    3261 cat confdefs.h >>conftest.$ac_ext
    3262 cat >>conftest.$ac_ext <<_ACEOF
    3263 /* end confdefs.h.  */
    3264 #include <stdlib.h>
    3265 #include <stdarg.h>
    3266 #include <string.h>
    3267 #include <float.h>
    3268 
    3269 int
    3270 main ()
    3271 {
    3272 
    3273   ;
    3274   return 0;
    3275 }
    3276 _ACEOF
    3277 rm -f conftest.$ac_objext
    3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3279   (eval $ac_compile) 2>conftest.er1
    3280   ac_status=$?
    3281   grep -v '^ *+' conftest.er1 >conftest.err
    3282   rm -f conftest.er1
    3283   cat conftest.err >&5
    3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3285   (exit $ac_status); } &&
    3286          { ac_try='test -z "$ac_c_werror_flag"
    3287                          || test ! -s conftest.err'
    3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3289   (eval $ac_try) 2>&5
    3290   ac_status=$?
    3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3292   (exit $ac_status); }; } &&
    3293          { ac_try='test -s conftest.$ac_objext'
    3294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3295   (eval $ac_try) 2>&5
    3296   ac_status=$?
    3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3298   (exit $ac_status); }; }; then
    3299   ac_cv_header_stdc=yes
    3300 else
    3301   echo "$as_me: failed program was:" >&5
    3302 sed 's/^/| /' conftest.$ac_ext >&5
    3303 
    3304 ac_cv_header_stdc=no
    3305 fi
    3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3307 
    3308 if test $ac_cv_header_stdc = yes; then
    3309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3310   cat >conftest.$ac_ext <<_ACEOF
    3311 /* confdefs.h.  */
    3312 _ACEOF
    3313 cat confdefs.h >>conftest.$ac_ext
    3314 cat >>conftest.$ac_ext <<_ACEOF
    3315 /* end confdefs.h.  */
    3316 #include <string.h>
    3317 
    3318 _ACEOF
    3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3320   $EGREP "memchr" >/dev/null 2>&1; then
    3321   :
    3322 else
    3323   ac_cv_header_stdc=no
    3324 fi
    3325 rm -f conftest*
    3326 
    3327 fi
    3328 
    3329 if test $ac_cv_header_stdc = yes; then
    3330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3331   cat >conftest.$ac_ext <<_ACEOF
    3332 /* confdefs.h.  */
    3333 _ACEOF
    3334 cat confdefs.h >>conftest.$ac_ext
    3335 cat >>conftest.$ac_ext <<_ACEOF
    3336 /* end confdefs.h.  */
    3337 #include <stdlib.h>
    3338 
    3339 _ACEOF
    3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3341   $EGREP "free" >/dev/null 2>&1; then
    3342   :
    3343 else
    3344   ac_cv_header_stdc=no
    3345 fi
    3346 rm -f conftest*
    3347 
    3348 fi
    3349 
    3350 if test $ac_cv_header_stdc = yes; then
    3351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3352   if test "$cross_compiling" = yes; then
    3353   :
    3354 else
    3355   cat >conftest.$ac_ext <<_ACEOF
    3356 /* confdefs.h.  */
    3357 _ACEOF
    3358 cat confdefs.h >>conftest.$ac_ext
    3359 cat >>conftest.$ac_ext <<_ACEOF
    3360 /* end confdefs.h.  */
    3361 #include <ctype.h>
    3362 #if ((' ' & 0x0FF) == 0x020)
    3363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3365 #else
    3366 # define ISLOWER(c) \
    3367                    (('a' <= (c) && (c) <= 'i') \
    3368                      || ('j' <= (c) && (c) <= 'r') \
    3369                      || ('s' <= (c) && (c) <= 'z'))
    3370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3371 #endif
    3372 
    3373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3374 int
    3375 main ()
    3376 {
    3377   int i;
    3378   for (i = 0; i < 256; i++)
    3379     if (XOR (islower (i), ISLOWER (i))
    3380         || toupper (i) != TOUPPER (i))
    3381       exit(2);
    3382   exit (0);
    3383 }
    3384 _ACEOF
    3385 rm -f conftest$ac_exeext
    3386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3387   (eval $ac_link) 2>&5
    3388   ac_status=$?
    3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3392   (eval $ac_try) 2>&5
    3393   ac_status=$?
    3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3395   (exit $ac_status); }; }; then
    3396   :
    3397 else
    3398   echo "$as_me: program exited with status $ac_status" >&5
    3399 echo "$as_me: failed program was:" >&5
    3400 sed 's/^/| /' conftest.$ac_ext >&5
    3401 
    3402 ( exit $ac_status )
    3403 ac_cv_header_stdc=no
    3404 fi
    3405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3406 fi
    3407 fi
    3408 fi
    3409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    3411 if test $ac_cv_header_stdc = yes; then
    3412 
    3413 cat >>confdefs.h <<\_ACEOF
    3414 #define STDC_HEADERS 1
    3415 _ACEOF
    3416 
    3417 fi
    3418 
    3419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3420 
    3421 
    3422 
    3423 
    3424 
    3425 
    3426 
    3427 
    3428 
    3429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    3430                   inttypes.h stdint.h unistd.h
    3431 do
    3432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3433 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3436   echo $ECHO_N "(cached) $ECHO_C" >&6
    3437 else
    3438   cat >conftest.$ac_ext <<_ACEOF
    3439 /* confdefs.h.  */
    3440 _ACEOF
    3441 cat confdefs.h >>conftest.$ac_ext
    3442 cat >>conftest.$ac_ext <<_ACEOF
    3443 /* end confdefs.h.  */
    3444 $ac_includes_default
    3445 
    3446 #include <$ac_header>
    3447 _ACEOF
    3448 rm -f conftest.$ac_objext
    3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3450   (eval $ac_compile) 2>conftest.er1
    3451   ac_status=$?
    3452   grep -v '^ *+' conftest.er1 >conftest.err
    3453   rm -f conftest.er1
    3454   cat conftest.err >&5
    3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3456   (exit $ac_status); } &&
    3457          { ac_try='test -z "$ac_c_werror_flag"
    3458                          || test ! -s conftest.err'
    3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3460   (eval $ac_try) 2>&5
    3461   ac_status=$?
    3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3463   (exit $ac_status); }; } &&
    3464          { ac_try='test -s conftest.$ac_objext'
    3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3466   (eval $ac_try) 2>&5
    3467   ac_status=$?
    3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3469   (exit $ac_status); }; }; then
    3470   eval "$as_ac_Header=yes"
    3471 else
    3472   echo "$as_me: failed program was:" >&5
    3473 sed 's/^/| /' conftest.$ac_ext >&5
    3474 
    3475 eval "$as_ac_Header=no"
    3476 fi
    3477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3478 fi
    3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3482   cat >>confdefs.h <<_ACEOF
    3483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3484 _ACEOF
    3485 
    3486 fi
    3487 
    3488 done
    3489 
    3490 
    3491 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3492   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3493 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3494 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3495   echo $ECHO_N "(cached) $ECHO_C" >&6
    3496 fi
    3497 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3498 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3499 else
    3500   # Is the header compilable?
    3501 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3502 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3503 cat >conftest.$ac_ext <<_ACEOF
    3504 /* confdefs.h.  */
    3505 _ACEOF
    3506 cat confdefs.h >>conftest.$ac_ext
    3507 cat >>conftest.$ac_ext <<_ACEOF
    3508 /* end confdefs.h.  */
    3509 $ac_includes_default
    3510 #include <minix/config.h>
    3511 _ACEOF
    3512 rm -f conftest.$ac_objext
    3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3514   (eval $ac_compile) 2>conftest.er1
    3515   ac_status=$?
    3516   grep -v '^ *+' conftest.er1 >conftest.err
    3517   rm -f conftest.er1
    3518   cat conftest.err >&5
    3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3520   (exit $ac_status); } &&
    3521          { ac_try='test -z "$ac_c_werror_flag"
    3522                          || test ! -s conftest.err'
    3523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3524   (eval $ac_try) 2>&5
    3525   ac_status=$?
    3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3527   (exit $ac_status); }; } &&
    3528          { ac_try='test -s conftest.$ac_objext'
    3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3530   (eval $ac_try) 2>&5
    3531   ac_status=$?
    3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3533   (exit $ac_status); }; }; then
    3534   ac_header_compiler=yes
    3535 else
    3536   echo "$as_me: failed program was:" >&5
    3537 sed 's/^/| /' conftest.$ac_ext >&5
    3538 
    3539 ac_header_compiler=no
    3540 fi
    3541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3543 echo "${ECHO_T}$ac_header_compiler" >&6
    3544 
    3545 # Is the header present?
    3546 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    3547 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    3548 cat >conftest.$ac_ext <<_ACEOF
    3549 /* confdefs.h.  */
    3550 _ACEOF
    3551 cat confdefs.h >>conftest.$ac_ext
    3552 cat >>conftest.$ac_ext <<_ACEOF
    3553 /* end confdefs.h.  */
    3554 #include <minix/config.h>
    3555 _ACEOF
    3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3558   ac_status=$?
    3559   grep -v '^ *+' conftest.er1 >conftest.err
    3560   rm -f conftest.er1
    3561   cat conftest.err >&5
    3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3563   (exit $ac_status); } >/dev/null; then
    3564   if test -s conftest.err; then
    3565     ac_cpp_err=$ac_c_preproc_warn_flag
    3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3567   else
    3568     ac_cpp_err=
    3569   fi
    3570 else
    3571   ac_cpp_err=yes
    3572 fi
    3573 if test -z "$ac_cpp_err"; then
    3574   ac_header_preproc=yes
    3575 else
    3576   echo "$as_me: failed program was:" >&5
    3577 sed 's/^/| /' conftest.$ac_ext >&5
    3578 
    3579   ac_header_preproc=no
    3580 fi
    3581 rm -f conftest.err conftest.$ac_ext
    3582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3583 echo "${ECHO_T}$ac_header_preproc" >&6
    3584 
    3585 # So?  What about this header?
    3586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3587   yes:no: )
    3588     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    3589 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3590     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    3591 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    3592     ac_header_preproc=yes
    3593     ;;
    3594   no:yes:* )
    3595     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    3596 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    3597     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    3598 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    3599     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    3600 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    3601     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    3602 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    3603     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    3604 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    3605     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    3606 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    3607     (
    3608       cat <<\_ASBOX
    3609 ## ------------------------------ ##
    3610 ## Report this to [email protected] ##
    3611 ## ------------------------------ ##
    3612 _ASBOX
    3613     ) |
    3614       sed "s/^/$as_me: WARNING:     /" >&2
    3615     ;;
    3616 esac
    3617 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3618 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3619 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3620   echo $ECHO_N "(cached) $ECHO_C" >&6
    3621 else
    3622   ac_cv_header_minix_config_h=$ac_header_preproc
    3623 fi
    3624 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3625 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3626 
    3627 fi
    3628 if test $ac_cv_header_minix_config_h = yes; then
    3629   MINIX=yes
    3630 else
    3631   MINIX=
    3632 fi
    3633 
    3634 
    3635 if test "$MINIX" = yes; then
    3636 
    3637 cat >>confdefs.h <<\_ACEOF
    3638 #define _POSIX_SOURCE 1
    3639 _ACEOF
    3640 
    3641 
    3642 cat >>confdefs.h <<\_ACEOF
    3643 #define _POSIX_1_SOURCE 2
    3644 _ACEOF
    3645 
    3646 
    3647 cat >>confdefs.h <<\_ACEOF
    3648 #define _MINIX 1
    3649 _ACEOF
    3650 
    3651 fi
    3652 
    3653 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3654 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3655 if test "${ac_cv_search_strerror+set}" = set; then
    3656   echo $ECHO_N "(cached) $ECHO_C" >&6
    3657 else
    3658   ac_func_search_save_LIBS=$LIBS
    3659 ac_cv_search_strerror=no
    3660 cat >conftest.$ac_ext <<_ACEOF
    3661 /* confdefs.h.  */
    3662 _ACEOF
    3663 cat confdefs.h >>conftest.$ac_ext
    3664 cat >>conftest.$ac_ext <<_ACEOF
    3665 /* end confdefs.h.  */
    3666 
    3667 /* Override any gcc2 internal prototype to avoid an error.  */
    3668 #ifdef __cplusplus
    3669 extern "C"
    3670 #endif
    3671 /* We use char because int might match the return type of a gcc2
    3672    builtin and then its argument prototype would still apply.  */
    3673 char strerror ();
    3674 int
    3675 main ()
    3676 {
    3677 strerror ();
    3678   ;
    3679   return 0;
    3680 }
    3681 _ACEOF
    3682 rm -f conftest.$ac_objext conftest$ac_exeext
    3683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3684   (eval $ac_link) 2>conftest.er1
    3685   ac_status=$?
    3686   grep -v '^ *+' conftest.er1 >conftest.err
    3687   rm -f conftest.er1
    3688   cat conftest.err >&5
    3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3690   (exit $ac_status); } &&
    3691          { ac_try='test -z "$ac_c_werror_flag"
    3692                          || test ! -s conftest.err'
    3693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3694   (eval $ac_try) 2>&5
    3695   ac_status=$?
    3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3697   (exit $ac_status); }; } &&
    3698          { ac_try='test -s conftest$ac_exeext'
    3699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3700   (eval $ac_try) 2>&5
    3701   ac_status=$?
    3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3703   (exit $ac_status); }; }; then
    3704   ac_cv_search_strerror="none required"
    3705 else
    3706   echo "$as_me: failed program was:" >&5
    3707 sed 's/^/| /' conftest.$ac_ext >&5
    3708 
    3709 fi
    3710 rm -f conftest.err conftest.$ac_objext \
    3711       conftest$ac_exeext conftest.$ac_ext
    3712 if test "$ac_cv_search_strerror" = no; then
    3713   for ac_lib in cposix; do
    3714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3715     cat >conftest.$ac_ext <<_ACEOF
    3716 /* confdefs.h.  */
    3717 _ACEOF
    3718 cat confdefs.h >>conftest.$ac_ext
    3719 cat >>conftest.$ac_ext <<_ACEOF
    3720 /* end confdefs.h.  */
    3721 
    3722 /* Override any gcc2 internal prototype to avoid an error.  */
    3723 #ifdef __cplusplus
    3724 extern "C"
    3725 #endif
    3726 /* We use char because int might match the return type of a gcc2
    3727    builtin and then its argument prototype would still apply.  */
    3728 char strerror ();
    3729 int
    3730 main ()
    3731 {
    3732 strerror ();
    3733   ;
    3734   return 0;
    3735 }
    3736 _ACEOF
    3737 rm -f conftest.$ac_objext conftest$ac_exeext
    3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3739   (eval $ac_link) 2>conftest.er1
    3740   ac_status=$?
    3741   grep -v '^ *+' conftest.er1 >conftest.err
    3742   rm -f conftest.er1
    3743   cat conftest.err >&5
    3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3745   (exit $ac_status); } &&
    3746          { ac_try='test -z "$ac_c_werror_flag"
    3747                          || test ! -s conftest.err'
    3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3749   (eval $ac_try) 2>&5
    3750   ac_status=$?
    3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3752   (exit $ac_status); }; } &&
    3753          { ac_try='test -s conftest$ac_exeext'
    3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3755   (eval $ac_try) 2>&5
    3756   ac_status=$?
    3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3758   (exit $ac_status); }; }; then
    3759   ac_cv_search_strerror="-l$ac_lib"
    3760 break
    3761 else
    3762   echo "$as_me: failed program was:" >&5
    3763 sed 's/^/| /' conftest.$ac_ext >&5
    3764 
    3765 fi
    3766 rm -f conftest.err conftest.$ac_objext \
    3767       conftest$ac_exeext conftest.$ac_ext
    3768   done
    3769 fi
    3770 LIBS=$ac_func_search_save_LIBS
    3771 fi
    3772 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3773 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3774 if test "$ac_cv_search_strerror" != no; then
    3775   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3776 
    3777 fi
    3778 
    3779 # Check whether --enable-largefile or --disable-largefile was given.
    3780 if test "${enable_largefile+set}" = set; then
    3781   enableval="$enable_largefile"
    3782 
    3783 fi;
    3784 if test "$enable_largefile" != no; then
    3785 
    3786   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
    3787 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
    3788 if test "${ac_cv_sys_largefile_CC+set}" = set; then
    3789   echo $ECHO_N "(cached) $ECHO_C" >&6
    3790 else
    3791   ac_cv_sys_largefile_CC=no
     7305  fi
     7306
     7307
     7308
     7309
     7310
     7311
     7312# Check whether --enable-largefile was given.
     7313if test ${enable_largefile+y}
     7314then :
     7315  enableval=$enable_largefile;
     7316fi
     7317
     7318if test "$enable_largefile" != no
     7319then :
     7320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
     7321printf %s "checking for special C compiler options needed for large files... " >&6; }
     7322if test ${ac_cv_sys_largefile_CC+y}
     7323then :
     7324  printf %s "(cached) " >&6
     7325else case e in #(
     7326  e) ac_cv_sys_largefile_CC=no
    37927327     if test "$GCC" != yes; then
    37937328       ac_save_CC=$CC
    37947329       while :; do
    3795          # IRIX 6.2 and later do not support large files by default,
    3796          # so use the C compiler's -n32 option if that helps.
    3797          cat >conftest.$ac_ext <<_ACEOF
    3798 /* confdefs.h.  */
    3799 _ACEOF
    3800 cat confdefs.h >>conftest.$ac_ext
    3801 cat >>conftest.$ac_ext <<_ACEOF
     7330         # IRIX 6.2 and later do not support large files by default,
     7331         # so use the C compiler's -n32 option if that helps.
     7332         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38027333/* end confdefs.h.  */
    38037334#include <sys/types.h>
     
    38067337    since some C++ compilers masquerading as C compilers
    38077338    incorrectly reject 9223372036854775807.  */
    3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
     7339#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
    38097340  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    38107341                       && LARGE_OFF_T % 2147483647 == 1)
    38117342                      ? 1 : -1];
    38127343int
    3813 main ()
     7344main (void)
    38147345{
    38157346
     
    38187349}
    38197350_ACEOF
    3820          rm -f conftest.$ac_objext
    3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3822   (eval $ac_compile) 2>conftest.er1
    3823   ac_status=$?
    3824   grep -v '^ *+' conftest.er1 >conftest.err
    3825   rm -f conftest.er1
    3826   cat conftest.err >&5
    3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3828   (exit $ac_status); } &&
    3829          { ac_try='test -z "$ac_c_werror_flag"
    3830                          || test ! -s conftest.err'
    3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3832   (eval $ac_try) 2>&5
    3833   ac_status=$?
    3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3835   (exit $ac_status); }; } &&
    3836          { ac_try='test -s conftest.$ac_objext'
    3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3838   (eval $ac_try) 2>&5
    3839   ac_status=$?
    3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3841   (exit $ac_status); }; }; then
     7351         if ac_fn_c_try_compile "$LINENO"
     7352then :
    38427353  break
    3843 else
    3844   echo "$as_me: failed program was:" >&5
    3845 sed 's/^/| /' conftest.$ac_ext >&5
    3846 
    3847 fi
    3848 rm -f conftest.err conftest.$ac_objext
    3849          CC="$CC -n32"
    3850          rm -f conftest.$ac_objext
    3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3852   (eval $ac_compile) 2>conftest.er1
    3853   ac_status=$?
    3854   grep -v '^ *+' conftest.er1 >conftest.err
    3855   rm -f conftest.er1
    3856   cat conftest.err >&5
    3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3858   (exit $ac_status); } &&
    3859          { ac_try='test -z "$ac_c_werror_flag"
    3860                          || test ! -s conftest.err'
    3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3862   (eval $ac_try) 2>&5
    3863   ac_status=$?
    3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3865   (exit $ac_status); }; } &&
    3866          { ac_try='test -s conftest.$ac_objext'
    3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3868   (eval $ac_try) 2>&5
    3869   ac_status=$?
    3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3871   (exit $ac_status); }; }; then
     7354fi
     7355rm -f core conftest.err conftest.$ac_objext conftest.beam
     7356         CC="$CC -n32"
     7357         if ac_fn_c_try_compile "$LINENO"
     7358then :
    38727359  ac_cv_sys_largefile_CC=' -n32'; break
    3873 else
    3874   echo "$as_me: failed program was:" >&5
    3875 sed 's/^/| /' conftest.$ac_ext >&5
    3876 
    3877 fi
    3878 rm -f conftest.err conftest.$ac_objext
     7360fi
     7361rm -f core conftest.err conftest.$ac_objext conftest.beam
    38797362         break
    38807363       done
    38817364       CC=$ac_save_CC
    38827365       rm -f conftest.$ac_ext
    3883     fi
    3884 fi
    3885 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
    3886 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
     7366    fi ;;
     7367esac
     7368fi
     7369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
     7370printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
    38877371  if test "$ac_cv_sys_largefile_CC" != no; then
    38887372    CC=$CC$ac_cv_sys_largefile_CC
    38897373  fi
    38907374
    3891   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
    3892 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
    3893 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
    3894   echo $ECHO_N "(cached) $ECHO_C" >&6
    3895 else
    3896   while :; do
    3897   ac_cv_sys_file_offset_bits=no
    3898   cat >conftest.$ac_ext <<_ACEOF
    3899 /* confdefs.h.  */
    3900 _ACEOF
    3901 cat confdefs.h >>conftest.$ac_ext
    3902 cat >>conftest.$ac_ext <<_ACEOF
     7375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
     7376printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
     7377if test ${ac_cv_sys_file_offset_bits+y}
     7378then :
     7379  printf %s "(cached) " >&6
     7380else case e in #(
     7381  e) while :; do
     7382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39037383/* end confdefs.h.  */
    39047384#include <sys/types.h>
     
    39077387    since some C++ compilers masquerading as C compilers
    39087388    incorrectly reject 9223372036854775807.  */
    3909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
     7389#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
    39107390  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    39117391                       && LARGE_OFF_T % 2147483647 == 1)
    39127392                      ? 1 : -1];
    39137393int
    3914 main ()
     7394main (void)
    39157395{
    39167396
     
    39197399}
    39207400_ACEOF
    3921 rm -f conftest.$ac_objext
    3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3923   (eval $ac_compile) 2>conftest.er1
    3924   ac_status=$?
    3925   grep -v '^ *+' conftest.er1 >conftest.err
    3926   rm -f conftest.er1
    3927   cat conftest.err >&5
    3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3929   (exit $ac_status); } &&
    3930          { ac_try='test -z "$ac_c_werror_flag"
    3931                          || test ! -s conftest.err'
    3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3933   (eval $ac_try) 2>&5
    3934   ac_status=$?
    3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3936   (exit $ac_status); }; } &&
    3937          { ac_try='test -s conftest.$ac_objext'
    3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3939   (eval $ac_try) 2>&5
    3940   ac_status=$?
    3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3942   (exit $ac_status); }; }; then
    3943   break
    3944 else
    3945   echo "$as_me: failed program was:" >&5
    3946 sed 's/^/| /' conftest.$ac_ext >&5
    3947 
    3948 fi
    3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3950   cat >conftest.$ac_ext <<_ACEOF
    3951 /* confdefs.h.  */
    3952 _ACEOF
    3953 cat confdefs.h >>conftest.$ac_ext
    3954 cat >>conftest.$ac_ext <<_ACEOF
     7401if ac_fn_c_try_compile "$LINENO"
     7402then :
     7403  ac_cv_sys_file_offset_bits=no; break
     7404fi
     7405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39557407/* end confdefs.h.  */
     7408#undef _FILE_OFFSET_BITS
    39567409#define _FILE_OFFSET_BITS 64
    39577410#include <sys/types.h>
     
    39607413    since some C++ compilers masquerading as C compilers
    39617414    incorrectly reject 9223372036854775807.  */
    3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
     7415#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
    39637416  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    39647417                       && LARGE_OFF_T % 2147483647 == 1)
    39657418                      ? 1 : -1];
    39667419int
    3967 main ()
     7420main (void)
    39687421{
    39697422
     
    39727425}
    39737426_ACEOF
    3974 rm -f conftest.$ac_objext
    3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3976   (eval $ac_compile) 2>conftest.er1
    3977   ac_status=$?
    3978   grep -v '^ *+' conftest.er1 >conftest.err
    3979   rm -f conftest.er1
    3980   cat conftest.err >&5
    3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3982   (exit $ac_status); } &&
    3983          { ac_try='test -z "$ac_c_werror_flag"
    3984                          || test ! -s conftest.err'
    3985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3986   (eval $ac_try) 2>&5
    3987   ac_status=$?
    3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3989   (exit $ac_status); }; } &&
    3990          { ac_try='test -s conftest.$ac_objext'
    3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3992   (eval $ac_try) 2>&5
    3993   ac_status=$?
    3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3995   (exit $ac_status); }; }; then
     7427if ac_fn_c_try_compile "$LINENO"
     7428then :
    39967429  ac_cv_sys_file_offset_bits=64; break
    3997 else
    3998   echo "$as_me: failed program was:" >&5
    3999 sed 's/^/| /' conftest.$ac_ext >&5
    4000 
    4001 fi
    4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7430fi
     7431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7432  ac_cv_sys_file_offset_bits=unknown
    40037433  break
    4004 done
    4005 fi
    4006 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
    4007 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
    4008 if test "$ac_cv_sys_file_offset_bits" != no; then
    4009 
    4010 cat >>confdefs.h <<_ACEOF
    4011 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
    4012 _ACEOF
    4013 
    4014 fi
    4015 rm -f conftest*
    4016   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
    4017 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
    4018 if test "${ac_cv_sys_large_files+set}" = set; then
    4019   echo $ECHO_N "(cached) $ECHO_C" >&6
    4020 else
    4021   while :; do
    4022   ac_cv_sys_large_files=no
    4023   cat >conftest.$ac_ext <<_ACEOF
    4024 /* confdefs.h.  */
    4025 _ACEOF
    4026 cat confdefs.h >>conftest.$ac_ext
    4027 cat >>conftest.$ac_ext <<_ACEOF
     7434done ;;
     7435esac
     7436fi
     7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
     7438printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
     7439case $ac_cv_sys_file_offset_bits in #(
     7440  no | unknown) ;;
     7441  *)
     7442printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
     7443;;
     7444esac
     7445rm -rf conftest*
     7446  case $ac_cv_sys_file_offset_bits in #(
     7447  unknown) :
     7448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
     7449printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
     7450if test ${ac_cv_sys_large_files+y}
     7451then :
     7452  printf %s "(cached) " >&6
     7453else case e in #(
     7454  e) while :; do
     7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    40287456/* end confdefs.h.  */
    40297457#include <sys/types.h>
     
    40327460    since some C++ compilers masquerading as C compilers
    40337461    incorrectly reject 9223372036854775807.  */
    4034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
     7462#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
    40357463  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    40367464                       && LARGE_OFF_T % 2147483647 == 1)
    40377465                      ? 1 : -1];
    40387466int
    4039 main ()
     7467main (void)
    40407468{
    40417469
     
    40447472}
    40457473_ACEOF
    4046 rm -f conftest.$ac_objext
    4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4048   (eval $ac_compile) 2>conftest.er1
    4049   ac_status=$?
    4050   grep -v '^ *+' conftest.er1 >conftest.err
    4051   rm -f conftest.er1
    4052   cat conftest.err >&5
    4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4054   (exit $ac_status); } &&
    4055          { ac_try='test -z "$ac_c_werror_flag"
    4056                          || test ! -s conftest.err'
    4057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4058   (eval $ac_try) 2>&5
    4059   ac_status=$?
    4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4061   (exit $ac_status); }; } &&
    4062          { ac_try='test -s conftest.$ac_objext'
    4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4064   (eval $ac_try) 2>&5
    4065   ac_status=$?
    4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4067   (exit $ac_status); }; }; then
    4068   break
    4069 else
    4070   echo "$as_me: failed program was:" >&5
    4071 sed 's/^/| /' conftest.$ac_ext >&5
    4072 
    4073 fi
    4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4075   cat >conftest.$ac_ext <<_ACEOF
    4076 /* confdefs.h.  */
    4077 _ACEOF
    4078 cat confdefs.h >>conftest.$ac_ext
    4079 cat >>conftest.$ac_ext <<_ACEOF
     7474if ac_fn_c_try_compile "$LINENO"
     7475then :
     7476  ac_cv_sys_large_files=no; break
     7477fi
     7478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    40807480/* end confdefs.h.  */
     7481#undef _LARGE_FILES
    40817482#define _LARGE_FILES 1
    40827483#include <sys/types.h>
     
    40857486    since some C++ compilers masquerading as C compilers
    40867487    incorrectly reject 9223372036854775807.  */
    4087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
     7488#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
    40887489  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    40897490                       && LARGE_OFF_T % 2147483647 == 1)
    40907491                      ? 1 : -1];
    40917492int
    4092 main ()
     7493main (void)
    40937494{
    40947495
     
    40977498}
    40987499_ACEOF
    4099 rm -f conftest.$ac_objext
    4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4101   (eval $ac_compile) 2>conftest.er1
    4102   ac_status=$?
    4103   grep -v '^ *+' conftest.er1 >conftest.err
    4104   rm -f conftest.er1
    4105   cat conftest.err >&5
    4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4107   (exit $ac_status); } &&
    4108          { ac_try='test -z "$ac_c_werror_flag"
    4109                          || test ! -s conftest.err'
    4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4111   (eval $ac_try) 2>&5
    4112   ac_status=$?
    4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4114   (exit $ac_status); }; } &&
    4115          { ac_try='test -s conftest.$ac_objext'
    4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4117   (eval $ac_try) 2>&5
    4118   ac_status=$?
    4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4120   (exit $ac_status); }; }; then
     7500if ac_fn_c_try_compile "$LINENO"
     7501then :
    41217502  ac_cv_sys_large_files=1; break
    4122 else
    4123   echo "$as_me: failed program was:" >&5
    4124 sed 's/^/| /' conftest.$ac_ext >&5
    4125 
    4126 fi
    4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7503fi
     7504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7505  ac_cv_sys_large_files=unknown
    41287506  break
     7507done ;;
     7508esac
     7509fi
     7510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
     7511printf "%s\n" "$ac_cv_sys_large_files" >&6; }
     7512case $ac_cv_sys_large_files in #(
     7513  no | unknown) ;;
     7514  *)
     7515printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
     7516;;
     7517esac
     7518rm -rf conftest* ;; #(
     7519  64) :
     7520
     7521 # Check whether --enable-year2038 was given.
     7522if test ${enable_year2038+y}
     7523then :
     7524  enableval=$enable_year2038;
     7525fi
     7526
     7527 if test "$enable_year2038" != no
     7528then :
     7529
     7530                            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
     7531printf %s "checking for time_t past the year 2038... " >&6; }
     7532if test ${ac_cv_type_time_t_y2038+y}
     7533then :
     7534  printf %s "(cached) " >&6
     7535else case e in #(
     7536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7537/* end confdefs.h.  */
     7538
     7539  #include <time.h>
     7540  /* Check that time_t can represent 2**32 - 1 correctly.  */
     7541  #define LARGE_TIME_T \\
     7542    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
     7543  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
     7544                           && LARGE_TIME_T % 65537 == 0)
     7545                          ? 1 : -1];
     7546
     7547_ACEOF
     7548if ac_fn_c_try_compile "$LINENO"
     7549then :
     7550  ac_cv_type_time_t_y2038=yes
     7551else case e in #(
     7552  e) ac_cv_type_time_t_y2038=no ;;
     7553esac
     7554fi
     7555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7556     ;;
     7557esac
     7558fi
     7559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_time_t_y2038" >&5
     7560printf "%s\n" "$ac_cv_type_time_t_y2038" >&6; }
     7561  if test "$ac_cv_type_time_t_y2038" = no; then
     7562    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
     7563printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
     7564if test ${ac_cv_type_time_t_bits_macro+y}
     7565then :
     7566  printf %s "(cached) " >&6
     7567else case e in #(
     7568  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7569/* end confdefs.h.  */
     7570#define _TIME_BITS 64
     7571                           #define _FILE_OFFSET_BITS 64
     7572
     7573  #include <time.h>
     7574  /* Check that time_t can represent 2**32 - 1 correctly.  */
     7575  #define LARGE_TIME_T \\
     7576    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
     7577  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
     7578                           && LARGE_TIME_T % 65537 == 0)
     7579                          ? 1 : -1];
     7580
     7581_ACEOF
     7582if ac_fn_c_try_compile "$LINENO"
     7583then :
     7584  ac_cv_type_time_t_bits_macro=yes
     7585else case e in #(
     7586  e) ac_cv_type_time_t_bits_macro=no ;;
     7587esac
     7588fi
     7589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7590       ;;
     7591esac
     7592fi
     7593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_time_t_bits_macro" >&5
     7594printf "%s\n" "$ac_cv_type_time_t_bits_macro" >&6; }
     7595    if test "$ac_cv_type_time_t_bits_macro" = yes; then
     7596
     7597printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
     7598
     7599
     7600printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
     7601
     7602      ac_cv_type_time_t_y2038=yes
     7603    fi
     7604  fi
     7605  if test $ac_cv_type_time_t_y2038 = no; then
     7606    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7607/* end confdefs.h.  */
     7608#ifdef _USE_32BIT_TIME_T
     7609             int ok;
     7610           #else
     7611             error fail
     7612           #endif
     7613
     7614_ACEOF
     7615if ac_fn_c_try_compile "$LINENO"
     7616then :
     7617  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     7618printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     7619as_fn_error $? "The 'time_t' type stops working after January 2038.
     7620          Remove _USE_32BIT_TIME_T from the compiler flags.
     7621See 'config.log' for more details" "$LINENO" 5; }
     7622else case e in #(
     7623  e) # If not cross-compiling and  says we should check,
     7624       # and 'touch' works with a large timestamp, then evidently wider time_t
     7625       # is desired and supported, so fail and ask the builder to fix the
     7626       # problem.  Otherwise, just warn the builder.
     7627
     7628       if test "$ac_warned_about_y2038" != yes; then
     7629         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
     7630            and this package needs a wider 'time_t' type
     7631            if there is any way to access timestamps after that.
     7632            Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
     7633printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
     7634            and this package needs a wider 'time_t' type
     7635            if there is any way to access timestamps after that.
     7636            Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
     7637         ac_warned_about_y2038=yes
     7638       fi
     7639       ;;
     7640esac
     7641fi
     7642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     7643  fi
     7644fi
     7645 ;; #(
     7646  *) :
     7647     ;;
     7648esac
     7649fi
     7650
     7651
     7652
     7653
     7654
     7655
     7656
     7657
     7658
     7659  # Check whether --enable-threads was given.
     7660if test ${enable_threads+y}
     7661then :
     7662  enableval=$enable_threads; gl_use_threads=$enableval
     7663else case e in #(
     7664  e) if test -n "$gl_use_threads_default"; then
     7665       gl_use_threads="$gl_use_threads_default"
     7666     else
     7667       case "$host_os" in
     7668                                    osf*) gl_use_threads=no ;;
     7669                                    cygwin*)
     7670               case `uname -r` in
     7671                 1.[0-5].*) gl_use_threads=no ;;
     7672                 *)         gl_use_threads=yes ;;
     7673               esac
     7674               ;;
     7675                  mingw*)
     7676               case "$gl_use_winpthreads_default" in
     7677                 yes) gl_use_threads=posix ;;
     7678                 no)  gl_use_threads=windows ;;
     7679                 *)   gl_use_threads=yes ;;
     7680               esac
     7681               ;;
     7682         *)    gl_use_threads=yes ;;
     7683       esac
     7684     fi
     7685     ;;
     7686esac
     7687fi
     7688
     7689  if test "$gl_use_threads" = yes \
     7690     || test "$gl_use_threads" = isoc \
     7691     || test "$gl_use_threads" = posix \
     7692     || test "$gl_use_threads" = isoc+posix; then
     7693    # For using <threads.h> or <pthread.h>:
     7694
     7695
     7696  if test -z "$gl_anythreadlib_early_done"; then
     7697    case "$host_os" in
     7698      osf*)
     7699        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
     7700        # groks <pthread.h>. cc also understands the flag -pthread, but
     7701        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
     7702        # 2. putting a flag into CPPFLAGS that has an effect on the linker
     7703        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
     7704        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
     7705        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
     7706        ;;
     7707    esac
     7708    # Some systems optimize for single-threaded programs by default, and
     7709    # need special flags to disable these optimizations. For example, the
     7710    # definition of 'errno' in <errno.h>.
     7711    case "$host_os" in
     7712      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
     7713      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
     7714    esac
     7715    gl_anythreadlib_early_done=done
     7716  fi
     7717
     7718  fi
     7719
     7720
     7721
     7722  # Pre-early section.
     7723
     7724
     7725
     7726  # Code from module absolute-header:
     7727  # Code from module accept:
     7728  # Code from module accept-tests:
     7729  # Code from module acl:
     7730  # Code from module acl-permissions:
     7731  # Code from module acl-tests:
     7732  # Code from module alignof:
     7733  # Code from module alignof-tests:
     7734  # Code from module alloca:
     7735  # Code from module alloca-opt:
     7736  # Code from module alloca-opt-tests:
     7737  # Code from module announce-gen:
     7738  # Code from module arpa_inet:
     7739  # Code from module arpa_inet-tests:
     7740  # Code from module assert:
     7741  # Code from module assert-h:
     7742  # Code from module assert-h-tests:
     7743  # Code from module attribute:
     7744  # Code from module basename-lgpl:
     7745  # Code from module binary-io:
     7746  # Code from module binary-io-tests:
     7747  # Code from module bind:
     7748  # Code from module bind-tests:
     7749  # Code from module btowc:
     7750  # Code from module btowc-tests:
     7751  # Code from module builtin-expect:
     7752  # Code from module c-ctype:
     7753  # Code from module c-ctype-tests:
     7754  # Code from module c-strcase:
     7755  # Code from module c-strcase-tests:
     7756  # Code from module c-strcaseeq:
     7757  # Code from module c99:
     7758  # Code from module calloc-gnu:
     7759  # Code from module calloc-gnu-tests:
     7760  # Code from module calloc-posix:
     7761  # Code from module canonicalize-lgpl:
     7762  # Code from module canonicalize-lgpl-tests:
     7763  # Code from module chdir:
     7764  # Code from module chdir-tests:
     7765  # Code from module clock-time:
     7766  # Code from module cloexec:
     7767  # Code from module cloexec-tests:
     7768  # Code from module close:
     7769  # Code from module close-stream:
     7770  # Code from module close-tests:
     7771  # Code from module closedir:
     7772  # Code from module closeout:
     7773  # Code from module connect:
     7774  # Code from module connect-tests:
     7775  # Code from module ctype:
     7776  # Code from module ctype-tests:
     7777  # Code from module dfa:
     7778  # Code from module dfa-tests:
     7779  # Code from module dirent:
     7780  # Code from module dirent-tests:
     7781  # Code from module dirfd:
     7782  # Code from module dirname-lgpl:
     7783  # Code from module do-release-commit-and-tag:
     7784  # Code from module double-slash-root:
     7785  # Code from module dup2:
     7786  # Code from module dup2-tests:
     7787  # Code from module eloop-threshold:
     7788  # Code from module environ:
     7789  # Code from module environ-tests:
     7790  # Code from module errno:
     7791  # Code from module errno-tests:
     7792  # Code from module error:
     7793  # Code from module exitfail:
     7794  # Code from module explicit_bzero:
     7795  # Code from module explicit_bzero-tests:
     7796  # Code from module extensions:
     7797  # Code from module extern-inline:
     7798  # Code from module fcntl:
     7799  # Code from module fcntl-h:
     7800  # Code from module fcntl-h-tests:
     7801  # Code from module fcntl-tests:
     7802  # Code from module fd-hook:
     7803  # Code from module fdopen:
     7804  # Code from module fdopen-tests:
     7805  # Code from module fflush:
     7806
     7807  # Code from module fflush-tests:
     7808  # Code from module fgetc-tests:
     7809  # Code from module file-has-acl:
     7810  # Code from module file-has-acl-tests:
     7811  # Code from module filename:
     7812  # Code from module flexmember:
     7813  # Code from module fopen:
     7814  # Code from module fopen-gnu:
     7815  # Code from module fopen-gnu-tests:
     7816  # Code from module fopen-tests:
     7817  # Code from module fpending:
     7818  # Code from module fpending-tests:
     7819  # Code from module fpurge:
     7820  # Code from module fpurge-tests:
     7821  # Code from module fputc-tests:
     7822  # Code from module fread-tests:
     7823  # Code from module freading:
     7824  # Code from module freading-tests:
     7825  # Code from module free-posix:
     7826  # Code from module free-posix-tests:
     7827  # Code from module fseek:
     7828  # Code from module fseek-tests:
     7829  # Code from module fseeko:
     7830
     7831  # Code from module fseeko-tests:
     7832  # Code from module fstat:
     7833  # Code from module fstat-tests:
     7834  # Code from module ftell:
     7835  # Code from module ftell-tests:
     7836  # Code from module ftello:
     7837
     7838  # Code from module ftello-tests:
     7839  # Code from module ftruncate:
     7840  # Code from module ftruncate-tests:
     7841  # Code from module fwrite-tests:
     7842  # Code from module fwriting:
     7843  # Code from module fwriting-tests:
     7844  # Code from module gen-header:
     7845  # Code from module gendocs:
     7846  # Code from module getcwd-lgpl:
     7847  # Code from module getcwd-lgpl-tests:
     7848  # Code from module getdelim:
     7849  # Code from module getdelim-tests:
     7850  # Code from module getdtablesize:
     7851  # Code from module getdtablesize-tests:
     7852  # Code from module getpagesize:
     7853  # Code from module getprogname:
     7854  # Code from module getprogname-tests:
     7855  # Code from module getrandom:
     7856  # Code from module getrandom-tests:
     7857  # Code from module gettext-h:
     7858  # Code from module gettimeofday:
     7859  # Code from module gettimeofday-tests:
     7860  # Code from module git-version-gen:
     7861  # Code from module gitlog-to-changelog:
     7862  # Code from module glibc-internal/dynarray:
     7863  # Code from module glibc-internal/dynarray-tests:
     7864  # Code from module glibc-internal/scratch_buffer:
     7865  # Code from module glibc-internal/scratch_buffer-tests:
     7866  # Code from module gnu-web-doc-update:
     7867  # Code from module gnumakefile:
     7868  # Code from module gnupload:
     7869  # Code from module hard-locale:
     7870  # Code from module hard-locale-tests:
     7871  # Code from module ialloc:
     7872  # Code from module idx:
     7873  # Code from module ignore-value:
     7874  # Code from module ignore-value-tests:
     7875  # Code from module include_next:
     7876  # Code from module inet_pton:
     7877  # Code from module inet_pton-tests:
     7878  # Code from module intprops:
     7879  # Code from module intprops-tests:
     7880  # Code from module inttypes:
     7881  # Code from module inttypes-incomplete:
     7882  # Code from module inttypes-tests:
     7883  # Code from module ioctl:
     7884  # Code from module ioctl-tests:
     7885  # Code from module isblank:
     7886  # Code from module isblank-tests:
     7887  # Code from module langinfo:
     7888  # Code from module langinfo-tests:
     7889  # Code from module largefile:
     7890
     7891
     7892  # Code from module libc-config:
     7893  # Code from module limits-h:
     7894  # Code from module limits-h-tests:
     7895  # Code from module link:
     7896  # Code from module link-tests:
     7897  # Code from module listen:
     7898  # Code from module listen-tests:
     7899  # Code from module localcharset:
     7900  # Code from module localcharset-tests:
     7901  # Code from module locale:
     7902  # Code from module locale-tests:
     7903  # Code from module localeconv:
     7904  # Code from module localeconv-tests:
     7905  # Code from module localename:
     7906  # Code from module localename-tests:
     7907  # Code from module lock:
     7908  # Code from module lseek:
     7909  # Code from module lseek-tests:
     7910  # Code from module lstat:
     7911  # Code from module lstat-tests:
     7912  # Code from module maintainer-makefile:
     7913  # Code from module malloc-gnu:
     7914  # Code from module malloc-gnu-tests:
     7915  # Code from module malloc-posix:
     7916  # Code from module malloca:
     7917  # Code from module malloca-tests:
     7918  # Code from module manywarnings:
     7919  # Code from module mbrlen:
     7920  # Code from module mbrtowc:
     7921  # Code from module mbrtowc-tests:
     7922  # Code from module mbsinit:
     7923  # Code from module mbsinit-tests:
     7924  # Code from module mbtowc:
     7925  # Code from module memchr:
     7926  # Code from module memchr-tests:
     7927  # Code from module mempcpy:
     7928  # Code from module memrchr:
     7929  # Code from module memrchr-tests:
     7930  # Code from module minmax:
     7931  # Code from module mkdir:
     7932  # Code from module mkdir-tests:
     7933  # Code from module mkostemp:
     7934  # Code from module msvc-inval:
     7935  # Code from module msvc-nothrow:
     7936  # Code from module multiarch:
     7937  # Code from module nanosleep:
     7938  # Code from module nanosleep-tests:
     7939  # Code from module netinet_in:
     7940  # Code from module netinet_in-tests:
     7941  # Code from module nl_langinfo:
     7942  # Code from module nl_langinfo-tests:
     7943  # Code from module nocrash:
     7944  # Code from module obstack:
     7945  # Code from module open:
     7946  # Code from module open-tests:
     7947  # Code from module opendir:
     7948  # Code from module pathmax:
     7949  # Code from module pathmax-tests:
     7950  # Code from module perl:
     7951  # Code from module perror:
     7952  # Code from module perror-tests:
     7953  # Code from module pipe-posix:
     7954  # Code from module pipe-posix-tests:
     7955  # Code from module progname:
     7956  # Code from module pselect:
     7957  # Code from module pselect-tests:
     7958  # Code from module pthread-h:
     7959
     7960
     7961  if test -z "$gl_anythreadlib_early_done"; then
     7962    case "$host_os" in
     7963      osf*)
     7964        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
     7965        # groks <pthread.h>. cc also understands the flag -pthread, but
     7966        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
     7967        # 2. putting a flag into CPPFLAGS that has an effect on the linker
     7968        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
     7969        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
     7970        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
     7971        ;;
     7972    esac
     7973    # Some systems optimize for single-threaded programs by default, and
     7974    # need special flags to disable these optimizations. For example, the
     7975    # definition of 'errno' in <errno.h>.
     7976    case "$host_os" in
     7977      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
     7978      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
     7979    esac
     7980    gl_anythreadlib_early_done=done
     7981  fi
     7982
     7983  # Code from module pthread-h-tests:
     7984  # Code from module pthread-thread:
     7985  # Code from module pthread-thread-tests:
     7986  # Code from module pthread_sigmask:
     7987  # Code from module pthread_sigmask-tests:
     7988  # Code from module putenv:
     7989  # Code from module qcopy-acl:
     7990  # Code from module qset-acl:
     7991  # Code from module quote:
     7992  # Code from module quotearg:
     7993  # Code from module quotearg-simple:
     7994  # Code from module quotearg-simple-tests:
     7995  # Code from module raise:
     7996  # Code from module raise-tests:
     7997  # Code from module rawmemchr:
     7998  # Code from module rawmemchr-tests:
     7999  # Code from module read-file:
     8000  # Code from module read-file-tests:
     8001  # Code from module readdir:
     8002  # Code from module readlink:
     8003  # Code from module readlink-tests:
     8004  # Code from module readme-release:
     8005  # Code from module realloc-gnu:
     8006  # Code from module realloc-gnu-tests:
     8007  # Code from module realloc-posix:
     8008  # Code from module reallocarray:
     8009  # Code from module reallocarray-tests:
     8010  # Code from module regex:
     8011  # Code from module regex-tests:
     8012  # Code from module rename:
     8013  # Code from module rename-tests:
     8014  # Code from module rmdir:
     8015  # Code from module rmdir-tests:
     8016  # Code from module same-inode:
     8017  # Code from module sched:
     8018  # Code from module sched-tests:
     8019  # Code from module select:
     8020  # Code from module select-tests:
     8021  # Code from module selinux-h:
     8022  # Code from module setenv:
     8023  # Code from module setenv-tests:
     8024  # Code from module setlocale:
     8025  # Code from module setlocale-null:
     8026  # Code from module setlocale-null-tests:
     8027  # Code from module setlocale-tests:
     8028  # Code from module setsockopt:
     8029  # Code from module setsockopt-tests:
     8030  # Code from module signal-h:
     8031  # Code from module signal-h-tests:
     8032  # Code from module sigprocmask:
     8033  # Code from module sigprocmask-tests:
     8034  # Code from module sleep:
     8035  # Code from module sleep-tests:
     8036  # Code from module snippet/_Noreturn:
     8037  # Code from module snippet/arg-nonnull:
     8038  # Code from module snippet/c++defs:
     8039  # Code from module snippet/warn-on-use:
     8040  # Code from module socket:
     8041  # Code from module socketlib:
     8042  # Code from module sockets:
     8043  # Code from module sockets-tests:
     8044  # Code from module socklen:
     8045  # Code from module ssize_t:
     8046  # Code from module stat:
     8047  # Code from module stat-macros:
     8048  # Code from module stat-tests:
     8049  # Code from module stat-time:
     8050  # Code from module stat-time-tests:
     8051  # Code from module std-gnu11:
     8052  # Code from module stdalign:
     8053  # Code from module stdalign-tests:
     8054  # Code from module stdarg:
     8055
     8056
     8057
     8058  # Code from module stdarg-tests:
     8059  # Code from module stdbool:
     8060  # Code from module stdbool-tests:
     8061  # Code from module stdckdint:
     8062  # Code from module stdckdint-tests:
     8063  # Code from module stddef:
     8064  # Code from module stddef-tests:
     8065  # Code from module stdint:
     8066  # Code from module stdint-tests:
     8067  # Code from module stdio:
     8068  # Code from module stdio-tests:
     8069  # Code from module stdlib:
     8070  # Code from module stdlib-tests:
     8071  # Code from module strdup-posix:
     8072  # Code from module streq:
     8073  # Code from module strerror:
     8074  # Code from module strerror-override:
     8075  # Code from module strerror-tests:
     8076  # Code from module strerror_r-posix:
     8077  # Code from module strerror_r-posix-tests:
     8078  # Code from module string:
     8079  # Code from module string-tests:
     8080  # Code from module strverscmp:
     8081  # Code from module strverscmp-tests:
     8082  # Code from module symlink:
     8083  # Code from module symlink-tests:
     8084  # Code from module sys_ioctl:
     8085  # Code from module sys_ioctl-tests:
     8086  # Code from module sys_random:
     8087  # Code from module sys_random-tests:
     8088  # Code from module sys_select:
     8089  # Code from module sys_select-tests:
     8090  # Code from module sys_socket:
     8091  # Code from module sys_socket-tests:
     8092  # Code from module sys_stat:
     8093  # Code from module sys_stat-tests:
     8094  # Code from module sys_time:
     8095  # Code from module sys_time-tests:
     8096  # Code from module sys_types:
     8097  # Code from module sys_types-tests:
     8098  # Code from module sys_uio:
     8099  # Code from module sys_uio-tests:
     8100  # Code from module tempname:
     8101  # Code from module test-framework-sh:
     8102  # Code from module test-framework-sh-tests:
     8103  # Code from module thread:
     8104  # Code from module thread-optim:
     8105  # Code from module thread-tests:
     8106  # Code from module threadlib:
     8107
     8108
     8109
     8110  # Code from module time:
     8111  # Code from module time-tests:
     8112  # Code from module unistd:
     8113  # Code from module unistd-tests:
     8114  # Code from module unlocked-io:
     8115  # Code from module unlocked-io-internal:
     8116  # Code from module unsetenv:
     8117  # Code from module unsetenv-tests:
     8118  # Code from module update-copyright:
     8119  # Code from module update-copyright-tests:
     8120  # Code from module useless-if-before-free:
     8121  # Code from module vararrays:
     8122  # Code from module vc-list-files:
     8123  # Code from module vc-list-files-tests:
     8124  # Code from module verify:
     8125  # Code from module verify-tests:
     8126  # Code from module version-etc:
     8127  # Code from module version-etc-fsf:
     8128  # Code from module version-etc-tests:
     8129  # Code from module vma-iter:
     8130  # Code from module warnings:
     8131  # Code from module wchar:
     8132  # Code from module wchar-tests:
     8133  # Code from module wcrtomb:
     8134  # Code from module wcrtomb-tests:
     8135  # Code from module wctob:
     8136  # Code from module wctomb:
     8137  # Code from module wctype-h:
     8138  # Code from module wctype-h-tests:
     8139  # Code from module windows-mutex:
     8140  # Code from module windows-once:
     8141  # Code from module windows-recmutex:
     8142  # Code from module windows-rwlock:
     8143  # Code from module windows-thread:
     8144  # Code from module windows-tls:
     8145  # Code from module xalloc:
     8146  # Code from module xalloc-die:
     8147  # Code from module xalloc-die-tests:
     8148  # Code from module xalloc-oversized:
     8149
     8150
     8151
     8152
     8153
     8154
     8155
     8156
     8157
     8158
     8159                        # Check whether --enable-cross-guesses was given.
     8160if test ${enable_cross_guesses+y}
     8161then :
     8162  enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
     8163       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
     8164printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
     8165       enableval=conservative
     8166     fi
     8167     gl_cross_guesses="$enableval"
     8168else case e in #(
     8169  e) gl_cross_guesses=conservative ;;
     8170esac
     8171fi
     8172
     8173  if test $gl_cross_guesses = risky; then
     8174    gl_cross_guess_normal="guessing yes"
     8175    gl_cross_guess_inverted="guessing no"
     8176  else
     8177    gl_cross_guess_normal="guessing no"
     8178    gl_cross_guess_inverted="guessing yes"
     8179  fi
     8180          LIBC_FATAL_STDERR_=1
     8181  export LIBC_FATAL_STDERR_
     8182
     8183
     8184
     8185  gl_need_lib_has_acl=
     8186  # Check whether --enable-acl was given.
     8187if test ${enable_acl+y}
     8188then :
     8189  enableval=$enable_acl;
     8190else case e in #(
     8191  e) enable_acl=auto ;;
     8192esac
     8193fi
     8194
     8195
     8196ac_func=
     8197for ac_item in $ac_func_c_list
     8198do
     8199  if test $ac_func; then
     8200    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
     8201    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
     8202      echo "#define $ac_item 1" >> confdefs.h
     8203    fi
     8204    ac_func=
     8205  else
     8206    ac_func=$ac_item
     8207  fi
    41298208done
    4130 fi
    4131 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
    4132 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
    4133 if test "$ac_cv_sys_large_files" != no; then
    4134 
    4135 cat >>confdefs.h <<_ACEOF
    4136 #define _LARGE_FILES $ac_cv_sys_large_files
    4137 _ACEOF
    4138 
    4139 fi
    4140 rm -f conftest*
    4141 fi
    4142 
    4143 echo "$as_me:$LINENO: checking for long file names" >&5
    4144 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
    4145 if test "${ac_cv_sys_long_file_names+set}" = set; then
    4146   echo $ECHO_N "(cached) $ECHO_C" >&6
    4147 else
    4148   ac_cv_sys_long_file_names=yes
    4149 # Test for long file names in all the places we know might matter:
    4150 #      .                the current directory, where building will happen
    4151 #      $prefix/lib      where we will be installing things
    4152 #      $exec_prefix/lib likewise
    4153 # eval it to expand exec_prefix.
    4154 #      $TMPDIR          if set, where it might want to write temporary files
    4155 # if $TMPDIR is not set:
    4156 #      /tmp             where it might want to write temporary files
    4157 #      /var/tmp         likewise
    4158 #      /usr/tmp         likewise
    4159 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
    4160   ac_tmpdirs=$TMPDIR
    4161 else
    4162   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
    4163 fi
    4164 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
    4165   test -d $ac_dir || continue
    4166   test -w $ac_dir || continue # It is less confusing to not echo anything here.
    4167   ac_xdir=$ac_dir/cf$$
    4168   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
    4169   ac_tf1=$ac_xdir/conftest9012345
    4170   ac_tf2=$ac_xdir/conftest9012346
    4171   (echo 1 >$ac_tf1) 2>/dev/null
    4172   (echo 2 >$ac_tf2) 2>/dev/null
    4173   ac_val=`cat $ac_tf1 2>/dev/null`
    4174   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    4175     ac_cv_sys_long_file_names=no
    4176     rm -rf $ac_xdir 2>/dev/null
    4177     break
    4178   fi
    4179   rm -rf $ac_xdir 2>/dev/null
    4180 done
    4181 fi
    4182 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
    4183 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
    4184 if test $ac_cv_sys_long_file_names = yes; then
    4185 
    4186 cat >>confdefs.h <<\_ACEOF
    4187 #define HAVE_LONG_FILE_NAMES 1
    4188 _ACEOF
    4189 
    4190 fi
    4191 
    4192 
    4193 echo "$as_me:$LINENO: checking whether -lcP is needed" >&5
    4194 echo $ECHO_N "checking whether -lcP is needed... $ECHO_C" >&6
    4195 if test "${sed_cv_libcp_needed+set}" = set; then
    4196   echo $ECHO_N "(cached) $ECHO_C" >&6
    4197 else
    4198 
    4199 if test "$cross_compiling" = yes; then
    4200   sed_cv_libcp_needed="assuming no"
    4201 else
    4202   cat >conftest.$ac_ext <<_ACEOF
    4203 /* confdefs.h.  */
    4204 _ACEOF
    4205 cat confdefs.h >>conftest.$ac_ext
    4206 cat >>conftest.$ac_ext <<_ACEOF
     8209ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     8210if test "x$ac_cv_type_size_t" = xyes
     8211then :
     8212
     8213else case e in #(
     8214  e)
     8215printf "%s\n" "#define size_t unsigned int" >>confdefs.h
     8216 ;;
     8217esac
     8218fi
     8219
     8220# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
     8221# for constant arguments.  Useless!
     8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     8223printf %s "checking for working alloca.h... " >&6; }
     8224if test ${ac_cv_working_alloca_h+y}
     8225then :
     8226  printf %s "(cached) " >&6
     8227else case e in #(
     8228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42078229/* end confdefs.h.  */
    4208 
    4209 #include <stdio.h>
    4210 #include <errno.h>
    4211 
    4212 int main()
     8230#include <alloca.h>
     8231int
     8232main (void)
    42138233{
    4214   FILE *fp;
    4215   int result;
    4216   errno = 0;
    4217   fp = fopen ("conftest.c", "r");
    4218   if (!fp) return 0;       /* error, assume not needed */
    4219   result = fflush (fp) == EOF && errno == 0;
    4220   fclose (fp);
    4221   return result;
    4222 }
    4223 _ACEOF
    4224 rm -f conftest$ac_exeext
    4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4226   (eval $ac_link) 2>&5
    4227   ac_status=$?
    4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4231   (eval $ac_try) 2>&5
    4232   ac_status=$?
    4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4234   (exit $ac_status); }; }; then
    4235   sed_cv_libcp_needed=no
    4236 else
    4237   echo "$as_me: program exited with status $ac_status" >&5
    4238 echo "$as_me: failed program was:" >&5
    4239 sed 's/^/| /' conftest.$ac_ext >&5
    4240 
    4241 ( exit $ac_status )
    4242 sed_cv_libcp_needed=yes
    4243 fi
    4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    4245 fi
    4246 
    4247 fi
    4248 echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5
    4249 echo "${ECHO_T}$sed_cv_libcp_needed" >&6
    4250 if test "$sed_cv_libcp_needed" = yes; then
    4251   LIBS="-lcP $LIBS"
    4252 fi
    4253 
    4254 
    4255 
    4256 
    4257 
    4258 
    4259 ac_header_dirent=no
    4260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4261   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4262 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4265   echo $ECHO_N "(cached) $ECHO_C" >&6
    4266 else
    4267   cat >conftest.$ac_ext <<_ACEOF
    4268 /* confdefs.h.  */
    4269 _ACEOF
    4270 cat confdefs.h >>conftest.$ac_ext
    4271 cat >>conftest.$ac_ext <<_ACEOF
    4272 /* end confdefs.h.  */
    4273 #include <sys/types.h>
    4274 #include <$ac_hdr>
    4275 
    4276 int
    4277 main ()
    4278 {
    4279 if ((DIR *) 0)
    4280 return 0;
     8234char *p = (char *) alloca (2 * sizeof (int));
     8235                          if (p) return 0;
    42818236  ;
    42828237  return 0;
    42838238}
    42848239_ACEOF
    4285 rm -f conftest.$ac_objext
    4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4287   (eval $ac_compile) 2>conftest.er1
    4288   ac_status=$?
    4289   grep -v '^ *+' conftest.er1 >conftest.err
    4290   rm -f conftest.er1
    4291   cat conftest.err >&5
    4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4293   (exit $ac_status); } &&
    4294          { ac_try='test -z "$ac_c_werror_flag"
    4295                          || test ! -s conftest.err'
    4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4297   (eval $ac_try) 2>&5
    4298   ac_status=$?
    4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4300   (exit $ac_status); }; } &&
    4301          { ac_try='test -s conftest.$ac_objext'
    4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4303   (eval $ac_try) 2>&5
    4304   ac_status=$?
    4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4306   (exit $ac_status); }; }; then
    4307   eval "$as_ac_Header=yes"
    4308 else
    4309   echo "$as_me: failed program was:" >&5
    4310 sed 's/^/| /' conftest.$ac_ext >&5
    4311 
    4312 eval "$as_ac_Header=no"
    4313 fi
    4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4315 fi
    4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4319   cat >>confdefs.h <<_ACEOF
    4320 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    4321 _ACEOF
    4322 
    4323 ac_header_dirent=$ac_hdr; break
    4324 fi
    4325 
    4326 done
    4327 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    4328 if test $ac_header_dirent = dirent.h; then
    4329   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4330 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4331 if test "${ac_cv_search_opendir+set}" = set; then
    4332   echo $ECHO_N "(cached) $ECHO_C" >&6
    4333 else
    4334   ac_func_search_save_LIBS=$LIBS
    4335 ac_cv_search_opendir=no
    4336 cat >conftest.$ac_ext <<_ACEOF
    4337 /* confdefs.h.  */
    4338 _ACEOF
    4339 cat confdefs.h >>conftest.$ac_ext
    4340 cat >>conftest.$ac_ext <<_ACEOF
     8240if ac_fn_c_try_link "$LINENO"
     8241then :
     8242  ac_cv_working_alloca_h=yes
     8243else case e in #(
     8244  e) ac_cv_working_alloca_h=no ;;
     8245esac
     8246fi
     8247rm -f core conftest.err conftest.$ac_objext conftest.beam \
     8248    conftest$ac_exeext conftest.$ac_ext ;;
     8249esac
     8250fi
     8251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     8252printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
     8253if test $ac_cv_working_alloca_h = yes; then
     8254
     8255printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
     8256
     8257fi
     8258
     8259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     8260printf %s "checking for alloca... " >&6; }
     8261if test ${ac_cv_func_alloca_works+y}
     8262then :
     8263  printf %s "(cached) " >&6
     8264else case e in #(
     8265  e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
     8266if test "$ac_cv_func_alloca_works" != yes
     8267then :
     8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43418269/* end confdefs.h.  */
    4342 
    4343 /* Override any gcc2 internal prototype to avoid an error.  */
    4344 #ifdef __cplusplus
     8270#include <stdlib.h>
     8271#include <stddef.h>
     8272#ifndef alloca
     8273# ifdef __GNUC__
     8274#  define alloca __builtin_alloca
     8275# elif defined _MSC_VER
     8276#  include <malloc.h>
     8277#  define alloca _alloca
     8278# else
     8279#  ifdef  __cplusplus
    43458280extern "C"
     8281#  endif
     8282void *alloca (size_t);
     8283# endif
    43468284#endif
    4347 /* We use char because int might match the return type of a gcc2
    4348    builtin and then its argument prototype would still apply.  */
    4349 char opendir ();
     8285
    43508286int
    4351 main ()
     8287main (void)
    43528288{
    4353 opendir ();
     8289char *p = (char *) alloca (1);
     8290                                    if (p) return 0;
    43548291  ;
    43558292  return 0;
    43568293}
    43578294_ACEOF
    4358 rm -f conftest.$ac_objext conftest$ac_exeext
    4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4360   (eval $ac_link) 2>conftest.er1
    4361   ac_status=$?
    4362   grep -v '^ *+' conftest.er1 >conftest.err
    4363   rm -f conftest.er1
    4364   cat conftest.err >&5
    4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4366   (exit $ac_status); } &&
    4367          { ac_try='test -z "$ac_c_werror_flag"
    4368                          || test ! -s conftest.err'
    4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4370   (eval $ac_try) 2>&5
    4371   ac_status=$?
    4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4373   (exit $ac_status); }; } &&
    4374          { ac_try='test -s conftest$ac_exeext'
    4375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4376   (eval $ac_try) 2>&5
    4377   ac_status=$?
    4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4379   (exit $ac_status); }; }; then
    4380   ac_cv_search_opendir="none required"
    4381 else
    4382   echo "$as_me: failed program was:" >&5
    4383 sed 's/^/| /' conftest.$ac_ext >&5
    4384 
    4385 fi
    4386 rm -f conftest.err conftest.$ac_objext \
    4387       conftest$ac_exeext conftest.$ac_ext
    4388 if test "$ac_cv_search_opendir" = no; then
    4389   for ac_lib in dir; do
    4390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4391     cat >conftest.$ac_ext <<_ACEOF
    4392 /* confdefs.h.  */
    4393 _ACEOF
    4394 cat confdefs.h >>conftest.$ac_ext
    4395 cat >>conftest.$ac_ext <<_ACEOF
    4396 /* end confdefs.h.  */
    4397 
    4398 /* Override any gcc2 internal prototype to avoid an error.  */
    4399 #ifdef __cplusplus
    4400 extern "C"
    4401 #endif
    4402 /* We use char because int might match the return type of a gcc2
    4403    builtin and then its argument prototype would still apply.  */
    4404 char opendir ();
    4405 int
    4406 main ()
    4407 {
    4408 opendir ();
    4409   ;
    4410   return 0;
    4411 }
    4412 _ACEOF
    4413 rm -f conftest.$ac_objext conftest$ac_exeext
    4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4415   (eval $ac_link) 2>conftest.er1
    4416   ac_status=$?
    4417   grep -v '^ *+' conftest.er1 >conftest.err
    4418   rm -f conftest.er1
    4419   cat conftest.err >&5
    4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4421   (exit $ac_status); } &&
    4422          { ac_try='test -z "$ac_c_werror_flag"
    4423                          || test ! -s conftest.err'
    4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4425   (eval $ac_try) 2>&5
    4426   ac_status=$?
    4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4428   (exit $ac_status); }; } &&
    4429          { ac_try='test -s conftest$ac_exeext'
    4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4431   (eval $ac_try) 2>&5
    4432   ac_status=$?
    4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4434   (exit $ac_status); }; }; then
    4435   ac_cv_search_opendir="-l$ac_lib"
    4436 break
    4437 else
    4438   echo "$as_me: failed program was:" >&5
    4439 sed 's/^/| /' conftest.$ac_ext >&5
    4440 
    4441 fi
    4442 rm -f conftest.err conftest.$ac_objext \
    4443       conftest$ac_exeext conftest.$ac_ext
    4444   done
    4445 fi
    4446 LIBS=$ac_func_search_save_LIBS
    4447 fi
    4448 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    4449 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    4450 if test "$ac_cv_search_opendir" != no; then
    4451   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    4452 
    4453 fi
    4454 
    4455 else
    4456   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4458 if test "${ac_cv_search_opendir+set}" = set; then
    4459   echo $ECHO_N "(cached) $ECHO_C" >&6
    4460 else
    4461   ac_func_search_save_LIBS=$LIBS
    4462 ac_cv_search_opendir=no
    4463 cat >conftest.$ac_ext <<_ACEOF
    4464 /* confdefs.h.  */
    4465 _ACEOF
    4466 cat confdefs.h >>conftest.$ac_ext
    4467 cat >>conftest.$ac_ext <<_ACEOF
    4468 /* end confdefs.h.  */
    4469 
    4470 /* Override any gcc2 internal prototype to avoid an error.  */
    4471 #ifdef __cplusplus
    4472 extern "C"
    4473 #endif
    4474 /* We use char because int might match the return type of a gcc2
    4475    builtin and then its argument prototype would still apply.  */
    4476 char opendir ();
    4477 int
    4478 main ()
    4479 {
    4480 opendir ();
    4481   ;
    4482   return 0;
    4483 }
    4484 _ACEOF
    4485 rm -f conftest.$ac_objext conftest$ac_exeext
    4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4487   (eval $ac_link) 2>conftest.er1
    4488   ac_status=$?
    4489   grep -v '^ *+' conftest.er1 >conftest.err
    4490   rm -f conftest.er1
    4491   cat conftest.err >&5
    4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4493   (exit $ac_status); } &&
    4494          { ac_try='test -z "$ac_c_werror_flag"
    4495                          || test ! -s conftest.err'
    4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4497   (eval $ac_try) 2>&5
    4498   ac_status=$?
    4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4500   (exit $ac_status); }; } &&
    4501          { ac_try='test -s conftest$ac_exeext'
    4502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4503   (eval $ac_try) 2>&5
    4504   ac_status=$?
    4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4506   (exit $ac_status); }; }; then
    4507   ac_cv_search_opendir="none required"
    4508 else
    4509   echo "$as_me: failed program was:" >&5
    4510 sed 's/^/| /' conftest.$ac_ext >&5
    4511 
    4512 fi
    4513 rm -f conftest.err conftest.$ac_objext \
    4514       conftest$ac_exeext conftest.$ac_ext
    4515 if test "$ac_cv_search_opendir" = no; then
    4516   for ac_lib in x; do
    4517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4518     cat >conftest.$ac_ext <<_ACEOF
    4519 /* confdefs.h.  */
    4520 _ACEOF
    4521 cat confdefs.h >>conftest.$ac_ext
    4522 cat >>conftest.$ac_ext <<_ACEOF
    4523 /* end confdefs.h.  */
    4524 
    4525 /* Override any gcc2 internal prototype to avoid an error.  */
    4526 #ifdef __cplusplus
    4527 extern "C"
    4528 #endif
    4529 /* We use char because int might match the return type of a gcc2
    4530    builtin and then its argument prototype would still apply.  */
    4531 char opendir ();
    4532 int
    4533 main ()
    4534 {
    4535 opendir ();
    4536   ;
    4537   return 0;
    4538 }
    4539 _ACEOF
    4540 rm -f conftest.$ac_objext conftest$ac_exeext
    4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4542   (eval $ac_link) 2>conftest.er1
    4543   ac_status=$?
    4544   grep -v '^ *+' conftest.er1 >conftest.err
    4545   rm -f conftest.er1
    4546   cat conftest.err >&5
    4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4548   (exit $ac_status); } &&
    4549          { ac_try='test -z "$ac_c_werror_flag"
    4550                          || test ! -s conftest.err'
    4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4552   (eval $ac_try) 2>&5
    4553   ac_status=$?
    4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4555   (exit $ac_status); }; } &&
    4556          { ac_try='test -s conftest$ac_exeext'
    4557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4558   (eval $ac_try) 2>&5
    4559   ac_status=$?
    4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4561   (exit $ac_status); }; }; then
    4562   ac_cv_search_opendir="-l$ac_lib"
    4563 break
    4564 else
    4565   echo "$as_me: failed program was:" >&5
    4566 sed 's/^/| /' conftest.$ac_ext >&5
    4567 
    4568 fi
    4569 rm -f conftest.err conftest.$ac_objext \
    4570       conftest$ac_exeext conftest.$ac_ext
    4571   done
    4572 fi
    4573 LIBS=$ac_func_search_save_LIBS
    4574 fi
    4575 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    4576 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    4577 if test "$ac_cv_search_opendir" != no; then
    4578   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    4579 
    4580 fi
    4581 
    4582 fi
    4583 
    4584 
    4585 
    4586 
    4587 
    4588 
    4589 
    4590 
    4591 
    4592 
    4593 
    4594 
    4595 for ac_header in io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \
    4596                  wchar.h wctype.h sys/file.h mcheck.h
    4597 do
    4598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4599 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4602   echo $ECHO_N "(cached) $ECHO_C" >&6
    4603 else
    4604   cat >conftest.$ac_ext <<_ACEOF
    4605 /* confdefs.h.  */
    4606 _ACEOF
    4607 cat confdefs.h >>conftest.$ac_ext
    4608 cat >>conftest.$ac_ext <<_ACEOF
    4609 /* end confdefs.h.  */
    4610 $ac_includes_default
    4611 
    4612 #include <$ac_header>
    4613 _ACEOF
    4614 rm -f conftest.$ac_objext
    4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4616   (eval $ac_compile) 2>conftest.er1
    4617   ac_status=$?
    4618   grep -v '^ *+' conftest.er1 >conftest.err
    4619   rm -f conftest.er1
    4620   cat conftest.err >&5
    4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4622   (exit $ac_status); } &&
    4623          { ac_try='test -z "$ac_c_werror_flag"
    4624                          || test ! -s conftest.err'
    4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4626   (eval $ac_try) 2>&5
    4627   ac_status=$?
    4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4629   (exit $ac_status); }; } &&
    4630          { ac_try='test -s conftest.$ac_objext'
    4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4632   (eval $ac_try) 2>&5
    4633   ac_status=$?
    4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4635   (exit $ac_status); }; }; then
    4636   eval "$as_ac_Header=yes"
    4637 else
    4638   echo "$as_me: failed program was:" >&5
    4639 sed 's/^/| /' conftest.$ac_ext >&5
    4640 
    4641 eval "$as_ac_Header=no"
    4642 fi
    4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4644 fi
    4645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4648   cat >>confdefs.h <<_ACEOF
    4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4650 _ACEOF
    4651 
    4652 fi
    4653 
    4654 done
    4655 
    4656 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4657 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4658 if test "${ac_cv_c_const+set}" = set; then
    4659   echo $ECHO_N "(cached) $ECHO_C" >&6
    4660 else
    4661   cat >conftest.$ac_ext <<_ACEOF
    4662 /* confdefs.h.  */
    4663 _ACEOF
    4664 cat confdefs.h >>conftest.$ac_ext
    4665 cat >>conftest.$ac_ext <<_ACEOF
    4666 /* end confdefs.h.  */
    4667 
    4668 int
    4669 main ()
    4670 {
    4671 /* FIXME: Include the comments suggested by Paul. */
    4672 #ifndef __cplusplus
    4673   /* Ultrix mips cc rejects this.  */
    4674   typedef int charset[2];
    4675   const charset x;
    4676   /* SunOS 4.1.1 cc rejects this.  */
    4677   char const *const *ccp;
    4678   char **p;
    4679   /* NEC SVR4.0.2 mips cc rejects this.  */
    4680   struct point {int x, y;};
    4681   static struct point const zero = {0,0};
    4682   /* AIX XL C 1.02.0.0 rejects this.
    4683      It does not let you subtract one const X* pointer from another in
    4684      an arm of an if-expression whose if-part is not a constant
    4685      expression */
    4686   const char *g = "string";
    4687   ccp = &g + (g ? g-g : 0);
    4688   /* HPUX 7.0 cc rejects these. */
    4689   ++ccp;
    4690   p = (char**) ccp;
    4691   ccp = (char const *const *) p;
    4692   { /* SCO 3.2v4 cc rejects this.  */
    4693     char *t;
    4694     char const *s = 0 ? (char *) 0 : (char const *) 0;
    4695 
    4696     *t++ = 0;
    4697   }
    4698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    4699     int x[] = {25, 17};
    4700     const int *foo = &x[0];
    4701     ++foo;
    4702   }
    4703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    4704     typedef const int *iptr;
    4705     iptr p = 0;
    4706     ++p;
    4707   }
    4708   { /* AIX XL C 1.02.0.0 rejects this saying
    4709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    4710     struct s { int j; const int *ap[3]; };
    4711     struct s *b; b->j = 5;
    4712   }
    4713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    4714     const int foo = 10;
    4715   }
    4716 #endif
    4717 
    4718   ;
    4719   return 0;
    4720 }
    4721 _ACEOF
    4722 rm -f conftest.$ac_objext
    4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4724   (eval $ac_compile) 2>conftest.er1
    4725   ac_status=$?
    4726   grep -v '^ *+' conftest.er1 >conftest.err
    4727   rm -f conftest.er1
    4728   cat conftest.err >&5
    4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4730   (exit $ac_status); } &&
    4731          { ac_try='test -z "$ac_c_werror_flag"
    4732                          || test ! -s conftest.err'
    4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4734   (eval $ac_try) 2>&5
    4735   ac_status=$?
    4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4737   (exit $ac_status); }; } &&
    4738          { ac_try='test -s conftest.$ac_objext'
    4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4740   (eval $ac_try) 2>&5
    4741   ac_status=$?
    4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4743   (exit $ac_status); }; }; then
    4744   ac_cv_c_const=yes
    4745 else
    4746   echo "$as_me: failed program was:" >&5
    4747 sed 's/^/| /' conftest.$ac_ext >&5
    4748 
    4749 ac_cv_c_const=no
    4750 fi
    4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4752 fi
    4753 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4754 echo "${ECHO_T}$ac_cv_c_const" >&6
    4755 if test $ac_cv_c_const = no; then
    4756 
    4757 cat >>confdefs.h <<\_ACEOF
    4758 #define const
    4759 _ACEOF
    4760 
    4761 fi
    4762 
    4763 echo "$as_me:$LINENO: checking for size_t" >&5
    4764 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4765 if test "${ac_cv_type_size_t+set}" = set; then
    4766   echo $ECHO_N "(cached) $ECHO_C" >&6
    4767 else
    4768   cat >conftest.$ac_ext <<_ACEOF
    4769 /* confdefs.h.  */
    4770 _ACEOF
    4771 cat confdefs.h >>conftest.$ac_ext
    4772 cat >>conftest.$ac_ext <<_ACEOF
    4773 /* end confdefs.h.  */
    4774 $ac_includes_default
    4775 int
    4776 main ()
    4777 {
    4778 if ((size_t *) 0)
    4779   return 0;
    4780 if (sizeof (size_t))
    4781   return 0;
    4782   ;
    4783   return 0;
    4784 }
    4785 _ACEOF
    4786 rm -f conftest.$ac_objext
    4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4788   (eval $ac_compile) 2>conftest.er1
    4789   ac_status=$?
    4790   grep -v '^ *+' conftest.er1 >conftest.err
    4791   rm -f conftest.er1
    4792   cat conftest.err >&5
    4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4794   (exit $ac_status); } &&
    4795          { ac_try='test -z "$ac_c_werror_flag"
    4796                          || test ! -s conftest.err'
    4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4798   (eval $ac_try) 2>&5
    4799   ac_status=$?
    4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4801   (exit $ac_status); }; } &&
    4802          { ac_try='test -s conftest.$ac_objext'
    4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4804   (eval $ac_try) 2>&5
    4805   ac_status=$?
    4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4807   (exit $ac_status); }; }; then
    4808   ac_cv_type_size_t=yes
    4809 else
    4810   echo "$as_me: failed program was:" >&5
    4811 sed 's/^/| /' conftest.$ac_ext >&5
    4812 
    4813 ac_cv_type_size_t=no
    4814 fi
    4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4816 fi
    4817 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4818 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4819 if test $ac_cv_type_size_t = yes; then
    4820   :
    4821 else
    4822 
    4823 cat >>confdefs.h <<_ACEOF
    4824 #define size_t unsigned
    4825 _ACEOF
    4826 
    4827 fi
    4828 
    4829 echo "$as_me:$LINENO: checking for ssize_t" >&5
    4830 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
    4831 if test "${ac_cv_type_ssize_t+set}" = set; then
    4832   echo $ECHO_N "(cached) $ECHO_C" >&6
    4833 else
    4834   cat >conftest.$ac_ext <<_ACEOF
    4835 /* confdefs.h.  */
    4836 _ACEOF
    4837 cat confdefs.h >>conftest.$ac_ext
    4838 cat >>conftest.$ac_ext <<_ACEOF
    4839 /* end confdefs.h.  */
    4840 $ac_includes_default
    4841 int
    4842 main ()
    4843 {
    4844 if ((ssize_t *) 0)
    4845   return 0;
    4846 if (sizeof (ssize_t))
    4847   return 0;
    4848   ;
    4849   return 0;
    4850 }
    4851 _ACEOF
    4852 rm -f conftest.$ac_objext
    4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4854   (eval $ac_compile) 2>conftest.er1
    4855   ac_status=$?
    4856   grep -v '^ *+' conftest.er1 >conftest.err
    4857   rm -f conftest.er1
    4858   cat conftest.err >&5
    4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4860   (exit $ac_status); } &&
    4861          { ac_try='test -z "$ac_c_werror_flag"
    4862                          || test ! -s conftest.err'
    4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4864   (eval $ac_try) 2>&5
    4865   ac_status=$?
    4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4867   (exit $ac_status); }; } &&
    4868          { ac_try='test -s conftest.$ac_objext'
    4869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4870   (eval $ac_try) 2>&5
    4871   ac_status=$?
    4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4873   (exit $ac_status); }; }; then
    4874   ac_cv_type_ssize_t=yes
    4875 else
    4876   echo "$as_me: failed program was:" >&5
    4877 sed 's/^/| /' conftest.$ac_ext >&5
    4878 
    4879 ac_cv_type_ssize_t=no
    4880 fi
    4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4882 fi
    4883 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
    4884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
    4885 if test $ac_cv_type_ssize_t = yes; then
    4886   :
    4887 else
    4888 
    4889 cat >>confdefs.h <<_ACEOF
    4890 #define ssize_t int
    4891 _ACEOF
    4892 
    4893 fi
    4894 
    4895 
    4896 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    4897 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    4898 if test "${ac_cv_header_stdbool_h+set}" = set; then
    4899   echo $ECHO_N "(cached) $ECHO_C" >&6
    4900 else
    4901   cat >conftest.$ac_ext <<_ACEOF
    4902 /* confdefs.h.  */
    4903 _ACEOF
    4904 cat confdefs.h >>conftest.$ac_ext
    4905 cat >>conftest.$ac_ext <<_ACEOF
    4906 /* end confdefs.h.  */
    4907 
    4908           #include <stdbool.h>
    4909           #ifndef bool
    4910            "error: bool is not defined"
    4911           #endif
    4912           #ifndef false
    4913            "error: false is not defined"
    4914           #endif
    4915           #if false
    4916            "error: false is not 0"
    4917           #endif
    4918           #ifndef true
    4919            "error: false is not defined"
    4920           #endif
    4921           #if true != 1
    4922            "error: true is not 1"
    4923           #endif
    4924           #ifndef __bool_true_false_are_defined
    4925            "error: __bool_true_false_are_defined is not defined"
    4926           #endif
    4927 
    4928           struct s { _Bool s: 1; _Bool t; } s;
    4929 
    4930           char a[true == 1 ? 1 : -1];
    4931           char b[false == 0 ? 1 : -1];
    4932           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
    4933           char d[(bool) -0.5 == true ? 1 : -1];
    4934           bool e = &s;
    4935           char f[(_Bool) -0.0 == false ? 1 : -1];
    4936           char g[true];
    4937           char h[sizeof (_Bool)];
    4938           char i[sizeof s.t];
    4939 
    4940 int
    4941 main ()
    4942 {
    4943  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
    4944   ;
    4945   return 0;
    4946 }
    4947 _ACEOF
    4948 rm -f conftest.$ac_objext
    4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4950   (eval $ac_compile) 2>conftest.er1
    4951   ac_status=$?
    4952   grep -v '^ *+' conftest.er1 >conftest.err
    4953   rm -f conftest.er1
    4954   cat conftest.err >&5
    4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4956   (exit $ac_status); } &&
    4957          { ac_try='test -z "$ac_c_werror_flag"
    4958                          || test ! -s conftest.err'
    4959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4960   (eval $ac_try) 2>&5
    4961   ac_status=$?
    4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4963   (exit $ac_status); }; } &&
    4964          { ac_try='test -s conftest.$ac_objext'
    4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4966   (eval $ac_try) 2>&5
    4967   ac_status=$?
    4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4969   (exit $ac_status); }; }; then
    4970   ac_cv_header_stdbool_h=yes
    4971 else
    4972   echo "$as_me: failed program was:" >&5
    4973 sed 's/^/| /' conftest.$ac_ext >&5
    4974 
    4975 ac_cv_header_stdbool_h=no
    4976 fi
    4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4978 fi
    4979 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    4980 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    4981    echo "$as_me:$LINENO: checking for _Bool" >&5
    4982 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    4983 if test "${ac_cv_type__Bool+set}" = set; then
    4984   echo $ECHO_N "(cached) $ECHO_C" >&6
    4985 else
    4986   cat >conftest.$ac_ext <<_ACEOF
    4987 /* confdefs.h.  */
    4988 _ACEOF
    4989 cat confdefs.h >>conftest.$ac_ext
    4990 cat >>conftest.$ac_ext <<_ACEOF
    4991 /* end confdefs.h.  */
    4992 $ac_includes_default
    4993 int
    4994 main ()
    4995 {
    4996 if ((_Bool *) 0)
    4997   return 0;
    4998 if (sizeof (_Bool))
    4999   return 0;
    5000   ;
    5001   return 0;
    5002 }
    5003 _ACEOF
    5004 rm -f conftest.$ac_objext
    5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5006   (eval $ac_compile) 2>conftest.er1
    5007   ac_status=$?
    5008   grep -v '^ *+' conftest.er1 >conftest.err
    5009   rm -f conftest.er1
    5010   cat conftest.err >&5
    5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5012   (exit $ac_status); } &&
    5013          { ac_try='test -z "$ac_c_werror_flag"
    5014                          || test ! -s conftest.err'
    5015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5016   (eval $ac_try) 2>&5
    5017   ac_status=$?
    5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5019   (exit $ac_status); }; } &&
    5020          { ac_try='test -s conftest.$ac_objext'
    5021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5022   (eval $ac_try) 2>&5
    5023   ac_status=$?
    5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5025   (exit $ac_status); }; }; then
    5026   ac_cv_type__Bool=yes
    5027 else
    5028   echo "$as_me: failed program was:" >&5
    5029 sed 's/^/| /' conftest.$ac_ext >&5
    5030 
    5031 ac_cv_type__Bool=no
    5032 fi
    5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5034 fi
    5035 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    5036 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    5037 if test $ac_cv_type__Bool = yes; then
    5038 
    5039 cat >>confdefs.h <<_ACEOF
    5040 #define HAVE__BOOL 1
    5041 _ACEOF
    5042 
    5043 
    5044 fi
    5045 
    5046    if test $ac_cv_header_stdbool_h = yes; then
    5047 
    5048 cat >>confdefs.h <<\_ACEOF
    5049 #define HAVE_STDBOOL_H 1
    5050 _ACEOF
    5051 
    5052    fi
    5053 if test "$ac_cv_type__Bool" = no; then
    5054   HAVE__BOOL=0
    5055 else
    5056   HAVE__BOOL=1
    5057 fi
    5058 
    5059 if test "$ac_cv_header_stdbool_h" = no; then
    5060             ac_config_files="$ac_config_files lib/stdbool.h:lib/stdbool_.h"
    5061 
    5062 fi
    5063 
    5064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    5065 # for constant arguments.  Useless!
    5066 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5067 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5068 if test "${ac_cv_working_alloca_h+set}" = set; then
    5069   echo $ECHO_N "(cached) $ECHO_C" >&6
    5070 else
    5071   cat >conftest.$ac_ext <<_ACEOF
    5072 /* confdefs.h.  */
    5073 _ACEOF
    5074 cat confdefs.h >>conftest.$ac_ext
    5075 cat >>conftest.$ac_ext <<_ACEOF
    5076 /* end confdefs.h.  */
    5077 #include <alloca.h>
    5078 int
    5079 main ()
    5080 {
    5081 char *p = (char *) alloca (2 * sizeof (int));
    5082   ;
    5083   return 0;
    5084 }
    5085 _ACEOF
    5086 rm -f conftest.$ac_objext conftest$ac_exeext
    5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5088   (eval $ac_link) 2>conftest.er1
    5089   ac_status=$?
    5090   grep -v '^ *+' conftest.er1 >conftest.err
    5091   rm -f conftest.er1
    5092   cat conftest.err >&5
    5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5094   (exit $ac_status); } &&
    5095          { ac_try='test -z "$ac_c_werror_flag"
    5096                          || test ! -s conftest.err'
    5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5098   (eval $ac_try) 2>&5
    5099   ac_status=$?
    5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5101   (exit $ac_status); }; } &&
    5102          { ac_try='test -s conftest$ac_exeext'
    5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5104   (eval $ac_try) 2>&5
    5105   ac_status=$?
    5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5107   (exit $ac_status); }; }; then
    5108   ac_cv_working_alloca_h=yes
    5109 else
    5110   echo "$as_me: failed program was:" >&5
    5111 sed 's/^/| /' conftest.$ac_ext >&5
    5112 
    5113 ac_cv_working_alloca_h=no
    5114 fi
    5115 rm -f conftest.err conftest.$ac_objext \
    5116       conftest$ac_exeext conftest.$ac_ext
    5117 fi
    5118 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5119 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    5120 if test $ac_cv_working_alloca_h = yes; then
    5121 
    5122 cat >>confdefs.h <<\_ACEOF
    5123 #define HAVE_ALLOCA_H 1
    5124 _ACEOF
    5125 
    5126 fi
    5127 
    5128 echo "$as_me:$LINENO: checking for alloca" >&5
    5129 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5130 if test "${ac_cv_func_alloca_works+set}" = set; then
    5131   echo $ECHO_N "(cached) $ECHO_C" >&6
    5132 else
    5133   cat >conftest.$ac_ext <<_ACEOF
    5134 /* confdefs.h.  */
    5135 _ACEOF
    5136 cat confdefs.h >>conftest.$ac_ext
    5137 cat >>conftest.$ac_ext <<_ACEOF
    5138 /* end confdefs.h.  */
    5139 #ifdef __GNUC__
    5140 # define alloca __builtin_alloca
    5141 #else
    5142 # ifdef _MSC_VER
    5143 #  include <malloc.h>
    5144 #  define alloca _alloca
    5145 # else
    5146 #  if HAVE_ALLOCA_H
    5147 #   include <alloca.h>
    5148 #  else
    5149 #   ifdef _AIX
    5150  #pragma alloca
    5151 #   else
    5152 #    ifndef alloca /* predefined by HP cc +Olibcalls */
    5153 char *alloca ();
    5154 #    endif
    5155 #   endif
    5156 #  endif
    5157 # endif
    5158 #endif
    5159 
    5160 int
    5161 main ()
    5162 {
    5163 char *p = (char *) alloca (1);
    5164   ;
    5165   return 0;
    5166 }
    5167 _ACEOF
    5168 rm -f conftest.$ac_objext conftest$ac_exeext
    5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5170   (eval $ac_link) 2>conftest.er1
    5171   ac_status=$?
    5172   grep -v '^ *+' conftest.er1 >conftest.err
    5173   rm -f conftest.er1
    5174   cat conftest.err >&5
    5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5176   (exit $ac_status); } &&
    5177          { ac_try='test -z "$ac_c_werror_flag"
    5178                          || test ! -s conftest.err'
    5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5180   (eval $ac_try) 2>&5
    5181   ac_status=$?
    5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5183   (exit $ac_status); }; } &&
    5184          { ac_try='test -s conftest$ac_exeext'
    5185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5186   (eval $ac_try) 2>&5
    5187   ac_status=$?
    5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5189   (exit $ac_status); }; }; then
     8295if ac_fn_c_try_link "$LINENO"
     8296then :
    51908297  ac_cv_func_alloca_works=yes
    5191 else
    5192   echo "$as_me: failed program was:" >&5
    5193 sed 's/^/| /' conftest.$ac_ext >&5
    5194 
    5195 ac_cv_func_alloca_works=no
    5196 fi
    5197 rm -f conftest.err conftest.$ac_objext \
    5198       conftest$ac_exeext conftest.$ac_ext
    5199 fi
    5200 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5201 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     8298fi
     8299rm -f core conftest.err conftest.$ac_objext conftest.beam \
     8300    conftest$ac_exeext conftest.$ac_ext
     8301fi ;;
     8302esac
     8303fi
     8304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     8305printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
    52028306
    52038307if test $ac_cv_func_alloca_works = yes; then
    52048308
    5205 cat >>confdefs.h <<\_ACEOF
    5206 #define HAVE_ALLOCA 1
    5207 _ACEOF
     8309printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
    52088310
    52098311else
     
    52138315# use ar to extract alloca.o from them instead of compiling alloca.c.
    52148316
    5215 ALLOCA=alloca.$ac_objext
    5216 
    5217 cat >>confdefs.h <<\_ACEOF
    5218 #define C_ALLOCA 1
     8317
     8318
     8319
     8320
     8321ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     8322
     8323printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
     8324
     8325
     8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     8327printf %s "checking stack direction for C alloca... " >&6; }
     8328if test ${ac_cv_c_stack_direction+y}
     8329then :
     8330  printf %s "(cached) " >&6
     8331else case e in #(
     8332  e) if test "$cross_compiling" = yes
     8333then :
     8334  ac_cv_c_stack_direction=0
     8335else case e in #(
     8336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8337/* end confdefs.h.  */
     8338$ac_includes_default
     8339int
     8340find_stack_direction (int *addr, int depth)
     8341{
     8342  int dir, dummy = 0;
     8343  if (! addr)
     8344    addr = &dummy;
     8345  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
     8346  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
     8347  return dir + dummy;
     8348}
     8349
     8350int
     8351main (int argc, char **argv)
     8352{
     8353  return find_stack_direction (0, argc + !argv + 20) < 0;
     8354}
    52198355_ACEOF
    5220 
    5221 
    5222 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5223 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5224 if test "${ac_cv_os_cray+set}" = set; then
    5225   echo $ECHO_N "(cached) $ECHO_C" >&6
    5226 else
    5227   cat >conftest.$ac_ext <<_ACEOF
    5228 /* confdefs.h.  */
     8356if ac_fn_c_try_run "$LINENO"
     8357then :
     8358  ac_cv_c_stack_direction=1
     8359else case e in #(
     8360  e) ac_cv_c_stack_direction=-1 ;;
     8361esac
     8362fi
     8363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     8364  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     8365esac
     8366fi
     8367 ;;
     8368esac
     8369fi
     8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     8371printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
     8372printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
     8373
     8374
     8375fi
     8376
     8377
     8378
     8379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
     8380printf %s "checking whether the preprocessor supports include_next... " >&6; }
     8381if test ${gl_cv_have_include_next+y}
     8382then :
     8383  printf %s "(cached) " >&6
     8384else case e in #(
     8385  e) rm -rf conftestd1a conftestd1b conftestd2
     8386     mkdir conftestd1a conftestd1b conftestd2
     8387                                                  cat <<EOF > conftestd1a/conftest.h
     8388#define DEFINED_IN_CONFTESTD1
     8389#include_next <conftest.h>
     8390#ifdef DEFINED_IN_CONFTESTD2
     8391int foo;
     8392#else
     8393#error "include_next doesn't work"
     8394#endif
     8395EOF
     8396     cat <<EOF > conftestd1b/conftest.h
     8397#define DEFINED_IN_CONFTESTD1
     8398#include <stdio.h>
     8399#include_next <conftest.h>
     8400#ifdef DEFINED_IN_CONFTESTD2
     8401int foo;
     8402#else
     8403#error "include_next doesn't work"
     8404#endif
     8405EOF
     8406     cat <<EOF > conftestd2/conftest.h
     8407#ifndef DEFINED_IN_CONFTESTD1
     8408#error "include_next test doesn't work"
     8409#endif
     8410#define DEFINED_IN_CONFTESTD2
     8411EOF
     8412     gl_save_CPPFLAGS="$CPPFLAGS"
     8413     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
     8414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8415/* end confdefs.h.  */
     8416#include <conftest.h>
    52298417_ACEOF
    5230 cat confdefs.h >>conftest.$ac_ext
    5231 cat >>conftest.$ac_ext <<_ACEOF
     8418if ac_fn_c_try_compile "$LINENO"
     8419then :
     8420  gl_cv_have_include_next=yes
     8421else case e in #(
     8422  e) CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
     8423        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52328424/* end confdefs.h.  */
    5233 #if defined(CRAY) && ! defined(CRAY2)
    5234 webecray
    5235 #else
    5236 wenotbecray
     8425#include <conftest.h>
     8426_ACEOF
     8427if ac_fn_c_try_compile "$LINENO"
     8428then :
     8429  gl_cv_have_include_next=buggy
     8430else case e in #(
     8431  e) gl_cv_have_include_next=no ;;
     8432esac
     8433fi
     8434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     8435        ;;
     8436esac
     8437fi
     8438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     8439     CPPFLAGS="$gl_save_CPPFLAGS"
     8440     rm -rf conftestd1a conftestd1b conftestd2
     8441     ;;
     8442esac
     8443fi
     8444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
     8445printf "%s\n" "$gl_cv_have_include_next" >&6; }
     8446  PRAGMA_SYSTEM_HEADER=
     8447  if test $gl_cv_have_include_next = yes; then
     8448    INCLUDE_NEXT=include_next
     8449    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
     8450    if test -n "$GCC"; then
     8451      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
     8452    fi
     8453  else
     8454    if test $gl_cv_have_include_next = buggy; then
     8455      INCLUDE_NEXT=include
     8456      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
     8457    else
     8458      INCLUDE_NEXT=include
     8459      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
     8460    fi
     8461  fi
     8462
     8463
     8464
     8465
     8466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
     8467printf %s "checking whether source code line length is unlimited... " >&6; }
     8468if test ${gl_cv_source_line_length_unlimited+y}
     8469then :
     8470  printf %s "(cached) " >&6
     8471else case e in #(
     8472  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8473/* end confdefs.h.  */
     8474
     8475#ifdef __TANDEM
     8476choke me
    52378477#endif
    52388478
    52398479_ACEOF
    52408480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5241   $EGREP "webecray" >/dev/null 2>&1; then
    5242   ac_cv_os_cray=yes
    5243 else
    5244   ac_cv_os_cray=no
    5245 fi
    5246 rm -f conftest*
    5247 
    5248 fi
    5249 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5250 echo "${ECHO_T}$ac_cv_os_cray" >&6
    5251 if test $ac_cv_os_cray = yes; then
    5252   for ac_func in _getb67 GETB67 getb67; do
    5253     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5254 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5256 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5257   echo $ECHO_N "(cached) $ECHO_C" >&6
    5258 else
    5259   cat >conftest.$ac_ext <<_ACEOF
    5260 /* confdefs.h.  */
     8481  $EGREP_TRADITIONAL "choke me" >/dev/null 2>&1
     8482then :
     8483  gl_cv_source_line_length_unlimited=no
     8484else case e in #(
     8485  e) gl_cv_source_line_length_unlimited=yes ;;
     8486esac
     8487fi
     8488rm -rf conftest*
     8489
     8490     ;;
     8491esac
     8492fi
     8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
     8494printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
     8495  if test $gl_cv_source_line_length_unlimited = no; then
     8496    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
     8497  else
     8498    PRAGMA_COLUMNS=
     8499  fi
     8500
     8501
     8502
     8503    HAVE_BTOWC=1;
     8504  HAVE_MBSINIT=1;
     8505  HAVE_MBRTOWC=1;
     8506  HAVE_MBRLEN=1;
     8507  HAVE_MBSRTOWCS=1;
     8508  HAVE_MBSNRTOWCS=1;
     8509  HAVE_WCRTOMB=1;
     8510  HAVE_WCSRTOMBS=1;
     8511  HAVE_WCSNRTOMBS=1;
     8512  HAVE_WMEMCHR=1;
     8513  HAVE_WMEMCMP=1;
     8514  HAVE_WMEMCPY=1;
     8515  HAVE_WMEMMOVE=1;
     8516  HAVE_WMEMPCPY=1;
     8517  HAVE_WMEMSET=1;
     8518  HAVE_WCSLEN=1;
     8519  HAVE_WCSNLEN=1;
     8520  HAVE_WCSCPY=1;
     8521  HAVE_WCPCPY=1;
     8522  HAVE_WCSNCPY=1;
     8523  HAVE_WCPNCPY=1;
     8524  HAVE_WCSCAT=1;
     8525  HAVE_WCSNCAT=1;
     8526  HAVE_WCSCMP=1;
     8527  HAVE_WCSNCMP=1;
     8528  HAVE_WCSCASECMP=1;
     8529  HAVE_WCSNCASECMP=1;
     8530  HAVE_WCSCOLL=1;
     8531  HAVE_WCSXFRM=1;
     8532  HAVE_WCSDUP=1;
     8533  HAVE_WCSCHR=1;
     8534  HAVE_WCSRCHR=1;
     8535  HAVE_WCSCSPN=1;
     8536  HAVE_WCSSPN=1;
     8537  HAVE_WCSPBRK=1;
     8538  HAVE_WCSSTR=1;
     8539  HAVE_WCSTOK=1;
     8540  HAVE_WCSWIDTH=1;
     8541  HAVE_WCSFTIME=1;
     8542  HAVE_DECL_WCTOB=1;
     8543  HAVE_DECL_WCSDUP=1;
     8544  HAVE_DECL_WCWIDTH=1;
     8545  REPLACE_MBSTATE_T=0;
     8546  REPLACE_BTOWC=0;
     8547  REPLACE_WCTOB=0;
     8548  REPLACE_MBSINIT=0;
     8549  REPLACE_MBRTOWC=0;
     8550  REPLACE_MBRLEN=0;
     8551  REPLACE_MBSRTOWCS=0;
     8552  REPLACE_MBSNRTOWCS=0;
     8553  REPLACE_WCRTOMB=0;
     8554  REPLACE_WCSRTOMBS=0;
     8555  REPLACE_WCSNRTOMBS=0;
     8556  REPLACE_WCWIDTH=0;
     8557  REPLACE_WCSWIDTH=0;
     8558  REPLACE_WCSFTIME=0;
     8559  REPLACE_WCSTOK=0;
     8560
     8561
     8562
     8563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
     8564printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
     8565if test ${gl_cv_header_wchar_h_correct_inline+y}
     8566then :
     8567  printf %s "(cached) " >&6
     8568else case e in #(
     8569  e) gl_cv_header_wchar_h_correct_inline=yes
     8570     case "$host_os" in
     8571       *-gnu* | gnu*)
     8572         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8573/* end confdefs.h.  */
     8574
     8575
     8576             #define wcstod renamed_wcstod
     8577             #include <wchar.h>
     8578             extern int zero (void);
     8579             int main () { return zero(); }
     8580
    52618581_ACEOF
    5262 cat confdefs.h >>conftest.$ac_ext
    5263 cat >>conftest.$ac_ext <<_ACEOF
     8582                                                      save_ac_compile="$ac_compile"
     8583         ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
     8584         if echo '#include "conftest.c"' >conftest1.c \
     8585            && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     8586  (eval $ac_compile) 2>&5
     8587  ac_status=$?
     8588  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     8589  test $ac_status = 0; }; then
     8590           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52648591/* end confdefs.h.  */
    5265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5267 #define $ac_func innocuous_$ac_func
    5268 
    5269 /* System header to define __stub macros and hopefully few prototypes,
    5270     which can conflict with char $ac_func (); below.
    5271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5272     <limits.h> exists even on freestanding compilers.  */
    5273 
    5274 #ifdef __STDC__
    5275 # include <limits.h>
    5276 #else
    5277 # include <assert.h>
    5278 #endif
    5279 
    5280 #undef $ac_func
    5281 
    5282 /* Override any gcc2 internal prototype to avoid an error.  */
    5283 #ifdef __cplusplus
    5284 extern "C"
     8592
     8593
     8594               #define wcstod renamed_wcstod
     8595               #include <wchar.h>
     8596               int zero (void) { return 0; }
     8597
     8598_ACEOF
     8599                      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
     8600           if echo '#include "conftest.c"' >conftest2.c \
     8601              && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     8602  (eval $ac_compile) 2>&5
     8603  ac_status=$?
     8604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     8605  test $ac_status = 0; }; then
     8606             if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
     8607               :
     8608             else
     8609               gl_cv_header_wchar_h_correct_inline=no
     8610             fi
     8611           fi
     8612         fi
     8613         ac_compile="$save_ac_compile"
     8614         rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
     8615         ;;
     8616     esac
     8617     ;;
     8618esac
     8619fi
     8620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
     8621printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
     8622  if test $gl_cv_header_wchar_h_correct_inline = no; then
     8623    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
     8624This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
     8625C99 mode. You have four options:
     8626  - Add the flag -fgnu89-inline to CC and reconfigure, or
     8627  - Fix your include files, using parts of
     8628    <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
     8629  - Use a gcc version older than 4.3, or
     8630  - Don't use the flags -std=c99 or -std=gnu99.
     8631Configuration aborted." "$LINENO" 5
     8632  fi
     8633
     8634
     8635
     8636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
     8637printf %s "checking for nl_langinfo and CODESET... " >&6; }
     8638if test ${am_cv_langinfo_codeset+y}
     8639then :
     8640  printf %s "(cached) " >&6
     8641else case e in #(
     8642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8643/* end confdefs.h.  */
     8644#include <langinfo.h>
     8645int
     8646main (void)
    52858647{
    5286 #endif
    5287 /* We use char because int might match the return type of a gcc2
    5288    builtin and then its argument prototype would still apply.  */
    5289 char $ac_func ();
    5290 /* The GNU C library defines this for functions which it implements
    5291     to always fail with ENOSYS.  Some functions are actually named
    5292     something starting with __ and the normal name is an alias.  */
    5293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5294 choke me
    5295 #else
    5296 char (*f) () = $ac_func;
    5297 #endif
    5298 #ifdef __cplusplus
    5299 }
    5300 #endif
    5301 
    5302 int
    5303 main ()
    5304 {
    5305 return f != $ac_func;
     8648char* cs = nl_langinfo(CODESET); return !cs;
    53068649  ;
    53078650  return 0;
    53088651}
    53098652_ACEOF
    5310 rm -f conftest.$ac_objext conftest$ac_exeext
    5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5312   (eval $ac_link) 2>conftest.er1
    5313   ac_status=$?
    5314   grep -v '^ *+' conftest.er1 >conftest.err
    5315   rm -f conftest.er1
    5316   cat conftest.err >&5
    5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5318   (exit $ac_status); } &&
    5319          { ac_try='test -z "$ac_c_werror_flag"
    5320                          || test ! -s conftest.err'
    5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5322   (eval $ac_try) 2>&5
    5323   ac_status=$?
    5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5325   (exit $ac_status); }; } &&
    5326          { ac_try='test -s conftest$ac_exeext'
    5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5328   (eval $ac_try) 2>&5
    5329   ac_status=$?
    5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5331   (exit $ac_status); }; }; then
    5332   eval "$as_ac_var=yes"
    5333 else
    5334   echo "$as_me: failed program was:" >&5
    5335 sed 's/^/| /' conftest.$ac_ext >&5
    5336 
    5337 eval "$as_ac_var=no"
    5338 fi
    5339 rm -f conftest.err conftest.$ac_objext \
    5340       conftest$ac_exeext conftest.$ac_ext
    5341 fi
    5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5344 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5345 
    5346 cat >>confdefs.h <<_ACEOF
    5347 #define CRAY_STACKSEG_END $ac_func
     8653if ac_fn_c_try_link "$LINENO"
     8654then :
     8655  am_cv_langinfo_codeset=yes
     8656else case e in #(
     8657  e) am_cv_langinfo_codeset=no ;;
     8658esac
     8659fi
     8660rm -f core conftest.err conftest.$ac_objext conftest.beam \
     8661    conftest$ac_exeext conftest.$ac_ext
     8662     ;;
     8663esac
     8664fi
     8665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
     8666printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
     8667  if test $am_cv_langinfo_codeset = yes; then
     8668
     8669printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
     8670
     8671  fi
     8672
     8673
     8674
     8675
     8676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     8677printf %s "checking for a traditional french locale... " >&6; }
     8678if test ${gt_cv_locale_fr+y}
     8679then :
     8680  printf %s "(cached) " >&6
     8681else case e in #(
     8682  e)
     8683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8684/* end confdefs.h.  */
     8685
     8686#include <locale.h>
     8687#include <time.h>
     8688#if HAVE_LANGINFO_CODESET
     8689# include <langinfo.h>
     8690#endif
     8691#include <stdlib.h>
     8692#include <string.h>
     8693struct tm t;
     8694char buf[16];
     8695int main () {
     8696  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     8697     imitates locale dependent behaviour by looking at the environment
     8698     variables, and all locales use the UTF-8 encoding.  */
     8699#if defined __BEOS__ || defined __HAIKU__
     8700  return 1;
     8701#else
     8702  /* Check whether the given locale name is recognized by the system.  */
     8703# if defined _WIN32 && !defined __CYGWIN__
     8704  /* On native Windows, setlocale(category, "") looks at the system settings,
     8705     not at the environment variables.  Also, when an encoding suffix such
     8706     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     8707     category of the locale to "C".  */
     8708  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     8709      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     8710    return 1;
     8711# else
     8712  if (setlocale (LC_ALL, "") == NULL) return 1;
     8713# endif
     8714  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     8715     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     8716     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     8717     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     8718     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     8719     some unit tests fail.
     8720     On MirBSD 10, when an unsupported locale is specified, setlocale()
     8721     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     8722# if HAVE_LANGINFO_CODESET
     8723  {
     8724    const char *cs = nl_langinfo (CODESET);
     8725    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     8726        || strcmp (cs, "UTF-8") == 0)
     8727      return 1;
     8728  }
     8729# endif
     8730# ifdef __CYGWIN__
     8731  /* On Cygwin, avoid locale names without encoding suffix, because the
     8732     locale_charset() function relies on the encoding suffix.  Note that
     8733     LC_ALL is set on the command line.  */
     8734  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     8735# endif
     8736  /* Check whether in the abbreviation of the second month, the second
     8737     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     8738     one byte long. This excludes the UTF-8 encoding.  */
     8739  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     8740  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     8741# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     8742  /* Check whether the decimal separator is a comma.
     8743     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     8744     are nl_langinfo(RADIXCHAR) are both ".".  */
     8745  if (localeconv () ->decimal_point[0] != ',') return 1;
     8746# endif
     8747  return 0;
     8748#endif
     8749}
     8750
    53488751_ACEOF
    5349 
    5350     break
    5351 fi
    5352 
    5353   done
    5354 fi
    5355 
    5356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5358 if test "${ac_cv_c_stack_direction+set}" = set; then
    5359   echo $ECHO_N "(cached) $ECHO_C" >&6
    5360 else
    5361   if test "$cross_compiling" = yes; then
    5362   ac_cv_c_stack_direction=0
    5363 else
    5364   cat >conftest.$ac_ext <<_ACEOF
    5365 /* confdefs.h.  */
    5366 _ACEOF
    5367 cat confdefs.h >>conftest.$ac_ext
    5368 cat >>conftest.$ac_ext <<_ACEOF
    5369 /* end confdefs.h.  */
    5370 int
    5371 find_stack_direction ()
    5372 {
    5373   static char *addr = 0;
    5374   auto char dummy;
    5375   if (addr == 0)
    5376     {
    5377       addr = &dummy;
    5378       return find_stack_direction ();
    5379     }
    5380   else
    5381     return (&dummy > addr) ? 1 : -1;
    5382 }
    5383 
    5384 int
    5385 main ()
    5386 {
    5387   exit (find_stack_direction () < 0);
    5388 }
    5389 _ACEOF
    5390 rm -f conftest$ac_exeext
    5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8752    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
    53928753  (eval $ac_link) 2>&5
    53938754  ac_status=$?
    5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5397   (eval $ac_try) 2>&5
    5398   ac_status=$?
    5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5400   (exit $ac_status); }; }; then
    5401   ac_cv_c_stack_direction=1
    5402 else
    5403   echo "$as_me: program exited with status $ac_status" >&5
    5404 echo "$as_me: failed program was:" >&5
    5405 sed 's/^/| /' conftest.$ac_ext >&5
    5406 
    5407 ( exit $ac_status )
    5408 ac_cv_c_stack_direction=-1
    5409 fi
    5410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5411 fi
    5412 fi
    5413 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5414 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5415 
    5416 cat >>confdefs.h <<_ACEOF
    5417 #define STACK_DIRECTION $ac_cv_c_stack_direction
    5418 _ACEOF
    5419 
    5420 
    5421 fi
    5422 
    5423 
    5424 for ac_func in vprintf
    5425 do
    5426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5427 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5429 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5430   echo $ECHO_N "(cached) $ECHO_C" >&6
    5431 else
    5432   cat >conftest.$ac_ext <<_ACEOF
    5433 /* confdefs.h.  */
    5434 _ACEOF
    5435 cat confdefs.h >>conftest.$ac_ext
    5436 cat >>conftest.$ac_ext <<_ACEOF
     8755  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     8756  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     8757      case "$host_os" in
     8758        # Handle native Windows specially, because there setlocale() interprets
     8759        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     8760        # "fr" or "fra" as "French" or "French_France.1252",
     8761        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     8762        # "ja" as "Japanese" or "Japanese_Japan.932",
     8763        # and similar.
     8764        mingw*)
     8765          # Test for the native Windows locale name.
     8766          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8767            gt_cv_locale_fr=French_France.1252
     8768          else
     8769            # None found.
     8770            gt_cv_locale_fr=none
     8771          fi
     8772          ;;
     8773        *)
     8774          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     8775          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     8776          # configure script would override the LC_ALL setting. Likewise for
     8777          # LC_CTYPE, which is also set at the beginning of the configure script.
     8778          # Test for the usual locale name.
     8779          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8780            gt_cv_locale_fr=fr_FR
     8781          else
     8782            # Test for the locale name with explicit encoding suffix.
     8783            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8784              gt_cv_locale_fr=fr_FR.ISO-8859-1
     8785            else
     8786              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     8787              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8788                gt_cv_locale_fr=fr_FR.ISO8859-1
     8789              else
     8790                # Test for the HP-UX locale name.
     8791                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8792                  gt_cv_locale_fr=fr_FR.iso88591
     8793                else
     8794                  # Test for the Solaris 7 locale name.
     8795                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     8796                    gt_cv_locale_fr=fr
     8797                  else
     8798                    # None found.
     8799                    gt_cv_locale_fr=none
     8800                  fi
     8801                fi
     8802              fi
     8803            fi
     8804          fi
     8805          ;;
     8806      esac
     8807    fi
     8808    rm -fr conftest*
     8809   ;;
     8810esac
     8811fi
     8812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     8813printf "%s\n" "$gt_cv_locale_fr" >&6; }
     8814  LOCALE_FR=$gt_cv_locale_fr
     8815
     8816
     8817
     8818
     8819  GL_GNULIB_BTOWC=0
     8820
     8821
     8822
     8823  GL_GNULIB_WCTOB=0
     8824
     8825
     8826
     8827  GL_GNULIB_MBSINIT=0
     8828
     8829
     8830
     8831  GL_GNULIB_MBRTOWC=0
     8832
     8833
     8834
     8835  GL_GNULIB_MBRLEN=0
     8836
     8837
     8838
     8839  GL_GNULIB_MBSRTOWCS=0
     8840
     8841
     8842
     8843  GL_GNULIB_MBSNRTOWCS=0
     8844
     8845
     8846
     8847  GL_GNULIB_WCRTOMB=0
     8848
     8849
     8850
     8851  GL_GNULIB_WCSRTOMBS=0
     8852
     8853
     8854
     8855  GL_GNULIB_WCSNRTOMBS=0
     8856
     8857
     8858
     8859  GL_GNULIB_WCWIDTH=0
     8860
     8861
     8862
     8863  GL_GNULIB_WMEMCHR=0
     8864
     8865
     8866
     8867  GL_GNULIB_WMEMCMP=0
     8868
     8869
     8870
     8871  GL_GNULIB_WMEMCPY=0
     8872
     8873
     8874
     8875  GL_GNULIB_WMEMMOVE=0
     8876
     8877
     8878
     8879  GL_GNULIB_WMEMPCPY=0
     8880
     8881
     8882
     8883  GL_GNULIB_WMEMSET=0
     8884
     8885
     8886
     8887  GL_GNULIB_WCSLEN=0
     8888
     8889
     8890
     8891  GL_GNULIB_WCSNLEN=0
     8892
     8893
     8894
     8895  GL_GNULIB_WCSCPY=0
     8896
     8897
     8898
     8899  GL_GNULIB_WCPCPY=0
     8900
     8901
     8902
     8903  GL_GNULIB_WCSNCPY=0
     8904
     8905
     8906
     8907  GL_GNULIB_WCPNCPY=0
     8908
     8909
     8910
     8911  GL_GNULIB_WCSCAT=0
     8912
     8913
     8914
     8915  GL_GNULIB_WCSNCAT=0
     8916
     8917
     8918
     8919  GL_GNULIB_WCSCMP=0
     8920
     8921
     8922
     8923  GL_GNULIB_WCSNCMP=0
     8924
     8925
     8926
     8927  GL_GNULIB_WCSCASECMP=0
     8928
     8929
     8930
     8931  GL_GNULIB_WCSNCASECMP=0
     8932
     8933
     8934
     8935  GL_GNULIB_WCSCOLL=0
     8936
     8937
     8938
     8939  GL_GNULIB_WCSXFRM=0
     8940
     8941
     8942
     8943  GL_GNULIB_WCSDUP=0
     8944
     8945
     8946
     8947  GL_GNULIB_WCSCHR=0
     8948
     8949
     8950
     8951  GL_GNULIB_WCSRCHR=0
     8952
     8953
     8954
     8955  GL_GNULIB_WCSCSPN=0
     8956
     8957
     8958
     8959  GL_GNULIB_WCSSPN=0
     8960
     8961
     8962
     8963  GL_GNULIB_WCSPBRK=0
     8964
     8965
     8966
     8967  GL_GNULIB_WCSSTR=0
     8968
     8969
     8970
     8971  GL_GNULIB_WCSTOK=0
     8972
     8973
     8974
     8975  GL_GNULIB_WCSWIDTH=0
     8976
     8977
     8978
     8979  GL_GNULIB_WCSFTIME=0
     8980
     8981
     8982
     8983  GL_GNULIB_MDA_WCSDUP=1
     8984
     8985
     8986
     8987
     8988
     8989  GL_GNULIB__EXIT=0
     8990
     8991
     8992
     8993  GL_GNULIB_ALIGNED_ALLOC=0
     8994
     8995
     8996
     8997  GL_GNULIB_ATOLL=0
     8998
     8999
     9000
     9001  GL_GNULIB_CALLOC_GNU=0
     9002
     9003
     9004
     9005  GL_GNULIB_CALLOC_POSIX=0
     9006
     9007
     9008
     9009  GL_GNULIB_CANONICALIZE_FILE_NAME=0
     9010
     9011
     9012
     9013  GL_GNULIB_FREE_POSIX=0
     9014
     9015
     9016
     9017  GL_GNULIB_GETLOADAVG=0
     9018
     9019
     9020
     9021  GL_GNULIB_GETSUBOPT=0
     9022
     9023
     9024
     9025  GL_GNULIB_GRANTPT=0
     9026
     9027
     9028
     9029  GL_GNULIB_MALLOC_GNU=0
     9030
     9031
     9032
     9033  GL_GNULIB_MALLOC_POSIX=0
     9034
     9035
     9036
     9037  GL_GNULIB_MBTOWC=0
     9038
     9039
     9040
     9041  GL_GNULIB_MKDTEMP=0
     9042
     9043
     9044
     9045  GL_GNULIB_MKOSTEMP=0
     9046
     9047
     9048
     9049  GL_GNULIB_MKOSTEMPS=0
     9050
     9051
     9052
     9053  GL_GNULIB_MKSTEMP=0
     9054
     9055
     9056
     9057  GL_GNULIB_MKSTEMPS=0
     9058
     9059
     9060
     9061  GL_GNULIB_POSIX_MEMALIGN=0
     9062
     9063
     9064
     9065  GL_GNULIB_POSIX_OPENPT=0
     9066
     9067
     9068
     9069  GL_GNULIB_PTSNAME=0
     9070
     9071
     9072
     9073  GL_GNULIB_PTSNAME_R=0
     9074
     9075
     9076
     9077  GL_GNULIB_PUTENV=0
     9078
     9079
     9080
     9081  GL_GNULIB_QSORT_R=0
     9082
     9083
     9084
     9085  GL_GNULIB_RANDOM=0
     9086
     9087
     9088
     9089  GL_GNULIB_RANDOM_R=0
     9090
     9091
     9092
     9093  GL_GNULIB_REALLOCARRAY=0
     9094
     9095
     9096
     9097  GL_GNULIB_REALLOC_GNU=0
     9098
     9099
     9100
     9101  GL_GNULIB_REALLOC_POSIX=0
     9102
     9103
     9104
     9105  GL_GNULIB_REALPATH=0
     9106
     9107
     9108
     9109  GL_GNULIB_RPMATCH=0
     9110
     9111
     9112
     9113  GL_GNULIB_SECURE_GETENV=0
     9114
     9115
     9116
     9117  GL_GNULIB_SETENV=0
     9118
     9119
     9120
     9121  GL_GNULIB_STRTOD=0
     9122
     9123
     9124
     9125  GL_GNULIB_STRTOL=0
     9126
     9127
     9128
     9129  GL_GNULIB_STRTOLD=0
     9130
     9131
     9132
     9133  GL_GNULIB_STRTOLL=0
     9134
     9135
     9136
     9137  GL_GNULIB_STRTOUL=0
     9138
     9139
     9140
     9141  GL_GNULIB_STRTOULL=0
     9142
     9143
     9144
     9145  GL_GNULIB_SYSTEM_POSIX=0
     9146
     9147
     9148
     9149  GL_GNULIB_UNLOCKPT=0
     9150
     9151
     9152
     9153  GL_GNULIB_UNSETENV=0
     9154
     9155
     9156
     9157  GL_GNULIB_WCTOMB=0
     9158
     9159
     9160
     9161  GL_GNULIB_MDA_ECVT=1
     9162
     9163
     9164
     9165  GL_GNULIB_MDA_FCVT=1
     9166
     9167
     9168
     9169  GL_GNULIB_MDA_GCVT=1
     9170
     9171
     9172
     9173  GL_GNULIB_MDA_MKTEMP=1
     9174
     9175
     9176
     9177  GL_GNULIB_MDA_PUTENV=1
     9178
     9179
     9180
     9181
     9182    HAVE__EXIT=1;
     9183  HAVE_ALIGNED_ALLOC=1;
     9184  HAVE_ATOLL=1;
     9185  HAVE_CANONICALIZE_FILE_NAME=1;
     9186  HAVE_DECL_ECVT=1;
     9187  HAVE_DECL_FCVT=1;
     9188  HAVE_DECL_GCVT=1;
     9189  HAVE_DECL_GETLOADAVG=1;
     9190  HAVE_GETSUBOPT=1;
     9191  HAVE_GRANTPT=1;
     9192  HAVE_INITSTATE=1;
     9193  HAVE_DECL_INITSTATE=1;
     9194  HAVE_MBTOWC=1;
     9195  HAVE_MKDTEMP=1;
     9196  HAVE_MKOSTEMP=1;
     9197  HAVE_MKOSTEMPS=1;
     9198  HAVE_MKSTEMP=1;
     9199  HAVE_MKSTEMPS=1;
     9200  HAVE_POSIX_MEMALIGN=1;
     9201  HAVE_POSIX_OPENPT=1;
     9202  HAVE_PTSNAME=1;
     9203  HAVE_PTSNAME_R=1;
     9204  HAVE_QSORT_R=1;
     9205  HAVE_RANDOM=1;
     9206  HAVE_RANDOM_H=1;
     9207  HAVE_RANDOM_R=1;
     9208  HAVE_REALLOCARRAY=1;
     9209  HAVE_REALPATH=1;
     9210  HAVE_RPMATCH=1;
     9211  HAVE_SECURE_GETENV=1;
     9212  HAVE_SETENV=1;
     9213  HAVE_DECL_SETENV=1;
     9214  HAVE_SETSTATE=1;
     9215  HAVE_DECL_SETSTATE=1;
     9216  HAVE_STRTOD=1;
     9217  HAVE_STRTOL=1;
     9218  HAVE_STRTOLD=1;
     9219  HAVE_STRTOLL=1;
     9220  HAVE_STRTOUL=1;
     9221  HAVE_STRTOULL=1;
     9222  HAVE_STRUCT_RANDOM_DATA=1;
     9223  HAVE_SYS_LOADAVG_H=0;
     9224  HAVE_UNLOCKPT=1;
     9225  HAVE_DECL_UNSETENV=1;
     9226  REPLACE_ALIGNED_ALLOC=0;
     9227  REPLACE_CALLOC_FOR_CALLOC_GNU=0;
     9228  REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
     9229  REPLACE_CANONICALIZE_FILE_NAME=0;
     9230  REPLACE_FREE=0;
     9231  REPLACE_INITSTATE=0;
     9232  REPLACE_MALLOC_FOR_MALLOC_GNU=0;
     9233  REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
     9234  REPLACE_MBTOWC=0;
     9235  REPLACE_MKSTEMP=0;
     9236  REPLACE_POSIX_MEMALIGN=0;
     9237  REPLACE_PTSNAME=0;
     9238  REPLACE_PTSNAME_R=0;
     9239  REPLACE_PUTENV=0;
     9240  REPLACE_QSORT_R=0;
     9241  REPLACE_RANDOM=0;
     9242  REPLACE_RANDOM_R=0;
     9243  REPLACE_REALLOC_FOR_REALLOC_GNU=0;
     9244  REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
     9245  REPLACE_REALLOCARRAY=0;
     9246  REPLACE_REALPATH=0;
     9247  REPLACE_SETENV=0;
     9248  REPLACE_SETSTATE=0;
     9249  REPLACE_STRTOD=0;
     9250  REPLACE_STRTOL=0;
     9251  REPLACE_STRTOLD=0;
     9252  REPLACE_STRTOLL=0;
     9253  REPLACE_STRTOUL=0;
     9254  REPLACE_STRTOULL=0;
     9255  REPLACE_UNSETENV=0;
     9256  REPLACE_WCTOMB=0;
     9257
     9258
     9259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
     9260printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
     9261if test ${gl_cv_malloc_ptrdiff+y}
     9262then :
     9263  printf %s "(cached) " >&6
     9264else case e in #(
     9265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54379266/* end confdefs.h.  */
    5438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5440 #define $ac_func innocuous_$ac_func
    5441 
    5442 /* System header to define __stub macros and hopefully few prototypes,
    5443     which can conflict with char $ac_func (); below.
    5444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5445     <limits.h> exists even on freestanding compilers.  */
    5446 
    5447 #ifdef __STDC__
    5448 # include <limits.h>
    5449 #else
    5450 # include <assert.h>
    5451 #endif
    5452 
    5453 #undef $ac_func
    5454 
    5455 /* Override any gcc2 internal prototype to avoid an error.  */
    5456 #ifdef __cplusplus
    5457 extern "C"
     9267#include <stdint.h>
     9268
     9269int
     9270main (void)
    54589271{
    5459 #endif
    5460 /* We use char because int might match the return type of a gcc2
    5461    builtin and then its argument prototype would still apply.  */
    5462 char $ac_func ();
    5463 /* The GNU C library defines this for functions which it implements
    5464     to always fail with ENOSYS.  Some functions are actually named
    5465     something starting with __ and the normal name is an alias.  */
    5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5467 choke me
    5468 #else
    5469 char (*f) () = $ac_func;
    5470 #endif
    5471 #ifdef __cplusplus
    5472 }
    5473 #endif
    5474 
    5475 int
    5476 main ()
    5477 {
    5478 return f != $ac_func;
     9272/* 64-bit ptrdiff_t is so wide that no practical platform
     9273               can exceed it.  */
     9274            #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
     9275
     9276            /* On rare machines where size_t fits in ptrdiff_t there
     9277               is no problem.  */
     9278            #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
     9279
     9280            /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
     9281               bounds even on 32-bit platforms.  We don't know which
     9282               non-glibc systems are safe.  */
     9283            #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
     9284
     9285            #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
     9286              return 0;
     9287            #else
     9288              #error "malloc might not be ptrdiff_t safe"
     9289              syntax error
     9290            #endif
     9291
    54799292  ;
    54809293  return 0;
    54819294}
    54829295_ACEOF
    5483 rm -f conftest.$ac_objext conftest$ac_exeext
    5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5485   (eval $ac_link) 2>conftest.er1
    5486   ac_status=$?
    5487   grep -v '^ *+' conftest.er1 >conftest.err
    5488   rm -f conftest.er1
    5489   cat conftest.err >&5
    5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5491   (exit $ac_status); } &&
    5492          { ac_try='test -z "$ac_c_werror_flag"
    5493                          || test ! -s conftest.err'
    5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5495   (eval $ac_try) 2>&5
    5496   ac_status=$?
    5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5498   (exit $ac_status); }; } &&
    5499          { ac_try='test -s conftest$ac_exeext'
    5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5501   (eval $ac_try) 2>&5
    5502   ac_status=$?
    5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5504   (exit $ac_status); }; }; then
    5505   eval "$as_ac_var=yes"
    5506 else
    5507   echo "$as_me: failed program was:" >&5
    5508 sed 's/^/| /' conftest.$ac_ext >&5
    5509 
    5510 eval "$as_ac_var=no"
    5511 fi
    5512 rm -f conftest.err conftest.$ac_objext \
    5513       conftest$ac_exeext conftest.$ac_ext
    5514 fi
    5515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5517 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5518   cat >>confdefs.h <<_ACEOF
    5519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5520 _ACEOF
    5521 
    5522 echo "$as_me:$LINENO: checking for _doprnt" >&5
    5523 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    5524 if test "${ac_cv_func__doprnt+set}" = set; then
    5525   echo $ECHO_N "(cached) $ECHO_C" >&6
    5526 else
    5527   cat >conftest.$ac_ext <<_ACEOF
    5528 /* confdefs.h.  */
    5529 _ACEOF
    5530 cat confdefs.h >>conftest.$ac_ext
    5531 cat >>conftest.$ac_ext <<_ACEOF
     9296if ac_fn_c_try_compile "$LINENO"
     9297then :
     9298  gl_cv_malloc_ptrdiff=yes
     9299else case e in #(
     9300  e) gl_cv_malloc_ptrdiff=no ;;
     9301esac
     9302fi
     9303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     9304     ;;
     9305esac
     9306fi
     9307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
     9308printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
     9309
     9310
     9311
     9312
     9313  test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
     9314
     9315
     9316
     9317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
     9318printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
     9319if test ${gl_cv_func_malloc_posix+y}
     9320then :
     9321  printf %s "(cached) " >&6
     9322else case e in #(
     9323  e)
     9324                                    case "$host_os" in
     9325        mingw*)
     9326          gl_cv_func_malloc_posix=no ;;
     9327        irix* | solaris*)
     9328
     9329          gl_cv_func_malloc_posix=no ;;
     9330        *)
     9331          gl_cv_func_malloc_posix=yes ;;
     9332      esac
     9333     ;;
     9334esac
     9335fi
     9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
     9337printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
     9338
     9339
     9340
     9341
     9342
     9343  if test "$gl_cv_func_malloc_posix" = yes; then
     9344
     9345printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
     9346
     9347  else
     9348    REPLACE_MALLOC_FOR_MALLOC_POSIX=1
     9349  fi
     9350
     9351
     9352
     9353
     9354  if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
     9355    REPLACE_CALLOC_FOR_CALLOC_POSIX=1
     9356  fi
     9357
     9358
     9359         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
     9360printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
     9361if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
     9362then :
     9363  printf %s "(cached) " >&6
     9364else case e in #(
     9365  e) rm -f conftest.sym conftest.file
     9366     echo >conftest.file
     9367     if test "$cross_compiling" = yes
     9368then :
     9369  case "$host_os" in
     9370          linux-* | linux)
     9371            # Guess yes on Linux systems.
     9372            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
     9373          *-gnu* | gnu*)
     9374            # Guess yes on glibc systems.
     9375            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
     9376          mingw*)
     9377            # Guess no on native Windows.
     9378            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
     9379          *)
     9380            # If we don't know, obey --enable-cross-guesses.
     9381            gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
     9382        esac
     9383
     9384else case e in #(
     9385  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55329386/* end confdefs.h.  */
    5533 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    5534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5535 #define _doprnt innocuous__doprnt
    5536 
    5537 /* System header to define __stub macros and hopefully few prototypes,
    5538     which can conflict with char _doprnt (); below.
    5539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5540     <limits.h> exists even on freestanding compilers.  */
    5541 
    5542 #ifdef __STDC__
    5543 # include <limits.h>
    5544 #else
    5545 # include <assert.h>
    5546 #endif
    5547 
    5548 #undef _doprnt
    5549 
    5550 /* Override any gcc2 internal prototype to avoid an error.  */
    5551 #ifdef __cplusplus
    5552 extern "C"
     9387$ac_includes_default
     9388int
     9389main (void)
    55539390{
    5554 #endif
    5555 /* We use char because int might match the return type of a gcc2
    5556    builtin and then its argument prototype would still apply.  */
    5557 char _doprnt ();
    5558 /* The GNU C library defines this for functions which it implements
    5559     to always fail with ENOSYS.  Some functions are actually named
    5560     something starting with __ and the normal name is an alias.  */
    5561 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    5562 choke me
    5563 #else
    5564 char (*f) () = _doprnt;
    5565 #endif
    5566 #ifdef __cplusplus
    5567 }
    5568 #endif
    5569 
    5570 int
    5571 main ()
    5572 {
    5573 return f != _doprnt;
     9391struct stat sbuf;
     9392            if (symlink ("conftest.file", "conftest.sym") != 0)
     9393              return 1;
     9394            /* Linux will dereference the symlink and fail, as required by
     9395               POSIX.  That is better in the sense that it means we will not
     9396               have to compile and use the lstat wrapper.  */
     9397            return lstat ("conftest.sym/", &sbuf) == 0;
     9398
    55749399  ;
    55759400  return 0;
    55769401}
    55779402_ACEOF
    5578 rm -f conftest.$ac_objext conftest$ac_exeext
    5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5580   (eval $ac_link) 2>conftest.er1
    5581   ac_status=$?
    5582   grep -v '^ *+' conftest.er1 >conftest.err
    5583   rm -f conftest.er1
    5584   cat conftest.err >&5
    5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5586   (exit $ac_status); } &&
    5587          { ac_try='test -z "$ac_c_werror_flag"
    5588                          || test ! -s conftest.err'
    5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5590   (eval $ac_try) 2>&5
    5591   ac_status=$?
    5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5593   (exit $ac_status); }; } &&
    5594          { ac_try='test -s conftest$ac_exeext'
    5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5596   (eval $ac_try) 2>&5
    5597   ac_status=$?
    5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5599   (exit $ac_status); }; }; then
    5600   ac_cv_func__doprnt=yes
    5601 else
    5602   echo "$as_me: failed program was:" >&5
    5603 sed 's/^/| /' conftest.$ac_ext >&5
    5604 
    5605 ac_cv_func__doprnt=no
    5606 fi
    5607 rm -f conftest.err conftest.$ac_objext \
    5608       conftest$ac_exeext conftest.$ac_ext
    5609 fi
    5610 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    5611 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    5612 if test $ac_cv_func__doprnt = yes; then
    5613 
    5614 cat >>confdefs.h <<\_ACEOF
    5615 #define HAVE_DOPRNT 1
    5616 _ACEOF
    5617 
    5618 fi
    5619 
    5620 fi
    5621 done
    5622 
    5623 
    5624   am_getline_needs_run_time_check=no
    5625   echo "$as_me:$LINENO: checking for getline" >&5
    5626 echo $ECHO_N "checking for getline... $ECHO_C" >&6
    5627 if test "${ac_cv_func_getline+set}" = set; then
    5628   echo $ECHO_N "(cached) $ECHO_C" >&6
    5629 else
    5630   cat >conftest.$ac_ext <<_ACEOF
    5631 /* confdefs.h.  */
    5632 _ACEOF
    5633 cat confdefs.h >>conftest.$ac_ext
    5634 cat >>conftest.$ac_ext <<_ACEOF
     9403if ac_fn_c_try_run "$LINENO"
     9404then :
     9405  gl_cv_func_lstat_dereferences_slashed_symlink=yes
     9406else case e in #(
     9407  e) gl_cv_func_lstat_dereferences_slashed_symlink=no ;;
     9408esac
     9409fi
     9410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     9411  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     9412esac
     9413fi
     9414
     9415     rm -f conftest.sym conftest.file
     9416     ;;
     9417esac
     9418fi
     9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
     9420printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
     9421  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
     9422    *yes)
     9423
     9424printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
     9425
     9426      ;;
     9427  esac
     9428
     9429
     9430
     9431
     9432
     9433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
     9434printf %s "checking whether // is distinct from /... " >&6; }
     9435if test ${gl_cv_double_slash_root+y}
     9436then :
     9437  printf %s "(cached) " >&6
     9438else case e in #(
     9439  e)  if test x"$cross_compiling" = xyes ; then
     9440        # When cross-compiling, there is no way to tell whether // is special
     9441        # short of a list of hosts.  However, the only known hosts to date
     9442        # that have a distinct // are Apollo DomainOS (too old to port to),
     9443        # Cygwin, and z/OS.  If anyone knows of another system for which // has
     9444        # special semantics and is distinct from /, please report it to
     9445        # <[email protected]>.
     9446        case $host in
     9447          *-cygwin | i370-ibm-openedition)
     9448            gl_cv_double_slash_root=yes ;;
     9449          *)
     9450            # Be optimistic and assume that / and // are the same when we
     9451            # don't know.
     9452            gl_cv_double_slash_root='unknown, assuming no' ;;
     9453        esac
     9454      else
     9455        set x `ls -di / // 2>/dev/null`
     9456        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
     9457          gl_cv_double_slash_root=no
     9458        else
     9459          gl_cv_double_slash_root=yes
     9460        fi
     9461      fi ;;
     9462esac
     9463fi
     9464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
     9465printf "%s\n" "$gl_cv_double_slash_root" >&6; }
     9466  if test "$gl_cv_double_slash_root" = yes; then
     9467
     9468printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
     9469
     9470  fi
     9471
     9472
     9473
     9474
     9475
     9476     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
     9477printf %s "checking whether realpath works... " >&6; }
     9478if test ${gl_cv_func_realpath_works+y}
     9479then :
     9480  printf %s "(cached) " >&6
     9481else case e in #(
     9482  e)
     9483    rm -rf conftest.a conftest.d
     9484    touch conftest.a
     9485    # Assume that if we have lstat, we can also check symlinks.
     9486    if test $ac_cv_func_lstat = yes; then
     9487      ln -s conftest.a conftest.l
     9488    fi
     9489    mkdir conftest.d
     9490    if test "$cross_compiling" = yes
     9491then :
     9492  case "$host_os" in
     9493                       # Guess yes on glibc systems.
     9494        *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
     9495                       # Guess 'nearly' on musl systems.
     9496        *-musl*)       gl_cv_func_realpath_works="guessing nearly" ;;
     9497                       # Guess no on Cygwin.
     9498        cygwin*)       gl_cv_func_realpath_works="guessing no" ;;
     9499                       # Guess no on native Windows.
     9500        mingw*)        gl_cv_func_realpath_works="guessing no" ;;
     9501                       # If we don't know, obey --enable-cross-guesses.
     9502        *)             gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
     9503      esac
     9504
     9505else case e in #(
     9506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56359507/* end confdefs.h.  */
    5636 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
    5637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5638 #define getline innocuous_getline
    5639 
    5640 /* System header to define __stub macros and hopefully few prototypes,
    5641     which can conflict with char getline (); below.
    5642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5643     <limits.h> exists even on freestanding compilers.  */
    5644 
    5645 #ifdef __STDC__
    5646 # include <limits.h>
     9508
     9509
     9510
     9511#include <stdlib.h>
     9512#if defined __MACH__ && defined __APPLE__
     9513/* Avoid a crash on Mac OS X.  */
     9514#include <mach/mach.h>
     9515#include <mach/mach_error.h>
     9516#include <mach/thread_status.h>
     9517#include <mach/exception.h>
     9518#include <mach/task.h>
     9519#include <pthread.h>
     9520/* The exception port on which our thread listens.  */
     9521static mach_port_t our_exception_port;
     9522/* The main function of the thread listening for exceptions of type
     9523   EXC_BAD_ACCESS.  */
     9524static void *
     9525mach_exception_thread (void *arg)
     9526{
     9527  /* Buffer for a message to be received.  */
     9528  struct {
     9529    mach_msg_header_t head;
     9530    mach_msg_body_t msgh_body;
     9531    char data[1024];
     9532  } msg;
     9533  mach_msg_return_t retval;
     9534  /* Wait for a message on the exception port.  */
     9535  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
     9536                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
     9537  if (retval != MACH_MSG_SUCCESS)
     9538    abort ();
     9539  exit (1);
     9540}
     9541static void
     9542nocrash_init (void)
     9543{
     9544  mach_port_t self = mach_task_self ();
     9545  /* Allocate a port on which the thread shall listen for exceptions.  */
     9546  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
     9547      == KERN_SUCCESS) {
     9548    /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
     9549    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
     9550                                MACH_MSG_TYPE_MAKE_SEND)
     9551        == KERN_SUCCESS) {
     9552      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
     9553         for us.  */
     9554      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
     9555      /* Create the thread listening on the exception port.  */
     9556      pthread_attr_t attr;
     9557      pthread_t thread;
     9558      if (pthread_attr_init (&attr) == 0
     9559          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
     9560          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
     9561        pthread_attr_destroy (&attr);
     9562        /* Replace the exception port info for these exceptions with our own.
     9563           Note that we replace the exception port for the entire task, not only
     9564           for a particular thread.  This has the effect that when our exception
     9565           port gets the message, the thread specific exception port has already
     9566           been asked, and we don't need to bother about it.
     9567           See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
     9568        task_set_exception_ports (self, mask, our_exception_port,
     9569                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
     9570      }
     9571    }
     9572  }
     9573}
     9574#elif defined _WIN32 && ! defined __CYGWIN__
     9575/* Avoid a crash on native Windows.  */
     9576#define WIN32_LEAN_AND_MEAN
     9577#include <windows.h>
     9578#include <winerror.h>
     9579static LONG WINAPI
     9580exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
     9581{
     9582  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
     9583    {
     9584    case EXCEPTION_ACCESS_VIOLATION:
     9585    case EXCEPTION_IN_PAGE_ERROR:
     9586    case EXCEPTION_STACK_OVERFLOW:
     9587    case EXCEPTION_GUARD_PAGE:
     9588    case EXCEPTION_PRIV_INSTRUCTION:
     9589    case EXCEPTION_ILLEGAL_INSTRUCTION:
     9590    case EXCEPTION_DATATYPE_MISALIGNMENT:
     9591    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
     9592    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
     9593      exit (1);
     9594    }
     9595  return EXCEPTION_CONTINUE_SEARCH;
     9596}
     9597static void
     9598nocrash_init (void)
     9599{
     9600  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
     9601}
    56479602#else
    5648 # include <assert.h>
     9603/* Avoid a crash on POSIX systems.  */
     9604#include <signal.h>
     9605#include <unistd.h>
     9606/* A POSIX signal handler.  */
     9607static void
     9608exception_handler (int sig)
     9609{
     9610  _exit (1);
     9611}
     9612static void
     9613nocrash_init (void)
     9614{
     9615#ifdef SIGSEGV
     9616  signal (SIGSEGV, exception_handler);
    56499617#endif
    5650 
    5651 #undef getline
    5652 
    5653 /* Override any gcc2 internal prototype to avoid an error.  */
    5654 #ifdef __cplusplus
    5655 extern "C"
    5656 {
     9618#ifdef SIGBUS
     9619  signal (SIGBUS, exception_handler);
    56579620#endif
    5658 /* We use char because int might match the return type of a gcc2
    5659    builtin and then its argument prototype would still apply.  */
    5660 char getline ();
    5661 /* The GNU C library defines this for functions which it implements
    5662     to always fail with ENOSYS.  Some functions are actually named
    5663     something starting with __ and the normal name is an alias.  */
    5664 #if defined (__stub_getline) || defined (__stub___getline)
    5665 choke me
    5666 #else
    5667 char (*f) () = getline;
    5668 #endif
    5669 #ifdef __cplusplus
    56709621}
    56719622#endif
    56729623
     9624        #include <errno.h>
     9625        #include <stdlib.h>
     9626        #include <string.h>
     9627
    56739628int
    5674 main ()
     9629main (void)
    56759630{
    5676 return f != getline;
     9631
     9632        int result = 0;
     9633        /* This test fails on Solaris 10.  */
     9634        {
     9635          char *name = realpath ("conftest.a", NULL);
     9636          if (!(name && *name == '/'))
     9637            result |= 1;
     9638          free (name);
     9639        }
     9640        /* This test fails on older versions of Cygwin.  */
     9641        {
     9642          char *name = realpath ("conftest.b/../conftest.a", NULL);
     9643          if (name != NULL)
     9644            result |= 2;
     9645          free (name);
     9646        }
     9647        /* This test fails on Cygwin 2.9.  */
     9648        #if HAVE_LSTAT
     9649        {
     9650          char *name = realpath ("conftest.l/../conftest.a", NULL);
     9651          if (name != NULL || errno != ENOTDIR)
     9652            result |= 4;
     9653          free (name);
     9654        }
     9655        #endif
     9656        /* This test fails on Mac OS X 10.13, OpenBSD 6.0.  */
     9657        {
     9658          char *name = realpath ("conftest.a/", NULL);
     9659          if (name != NULL)
     9660            result |= 8;
     9661          free (name);
     9662        }
     9663        /* This test fails on AIX 7, Solaris 10.  */
     9664        {
     9665          char *name1 = realpath (".", NULL);
     9666          char *name2 = realpath ("conftest.d//./..", NULL);
     9667          if (! name1 || ! name2 || strcmp (name1, name2))
     9668            result |= 16;
     9669          free (name1);
     9670          free (name2);
     9671        }
     9672        #ifdef __linux__
     9673        /* On Linux, // is the same as /. See also double-slash-root.m4.
     9674           realpath() should respect this.
     9675           This test fails on musl libc 1.2.2.  */
     9676        {
     9677          char *name = realpath ("//", NULL);
     9678          if (! name || strcmp (name, "/"))
     9679            result |= 32;
     9680          free (name);
     9681        }
     9682        #endif
     9683        return result;
     9684
    56779685  ;
    56789686  return 0;
    56799687}
     9688
    56809689_ACEOF
    5681 rm -f conftest.$ac_objext conftest$ac_exeext
    5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5683   (eval $ac_link) 2>conftest.er1
    5684   ac_status=$?
    5685   grep -v '^ *+' conftest.er1 >conftest.err
    5686   rm -f conftest.er1
    5687   cat conftest.err >&5
    5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5689   (exit $ac_status); } &&
    5690          { ac_try='test -z "$ac_c_werror_flag"
    5691                          || test ! -s conftest.err'
    5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5693   (eval $ac_try) 2>&5
    5694   ac_status=$?
    5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5696   (exit $ac_status); }; } &&
    5697          { ac_try='test -s conftest$ac_exeext'
    5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5699   (eval $ac_try) 2>&5
    5700   ac_status=$?
    5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5702   (exit $ac_status); }; }; then
    5703   ac_cv_func_getline=yes
    5704 else
    5705   echo "$as_me: failed program was:" >&5
    5706 sed 's/^/| /' conftest.$ac_ext >&5
    5707 
    5708 ac_cv_func_getline=no
    5709 fi
    5710 rm -f conftest.err conftest.$ac_objext \
    5711       conftest$ac_exeext conftest.$ac_ext
    5712 fi
    5713 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
    5714 echo "${ECHO_T}$ac_cv_func_getline" >&6
    5715 if test $ac_cv_func_getline = yes; then
    5716                 am_getline_needs_run_time_check=yes
    5717 else
    5718   am_cv_func_working_getline=no
    5719 fi
    5720 
    5721   if test $am_getline_needs_run_time_check = yes; then
    5722     echo "$as_me:$LINENO: checking for working getline function" >&5
    5723 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
    5724 if test "${am_cv_func_working_getline+set}" = set; then
    5725   echo $ECHO_N "(cached) $ECHO_C" >&6
    5726 else
    5727   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
    5728     if test "$cross_compiling" = yes; then
    5729   am_cv_func_working_getline=no
    5730 else
    5731   cat >conftest.$ac_ext <<_ACEOF
    5732 /* confdefs.h.  */
     9690if ac_fn_c_try_run "$LINENO"
     9691then :
     9692  gl_cv_func_realpath_works=yes
     9693else case e in #(
     9694  e) case $? in
     9695        32) gl_cv_func_realpath_works=nearly ;;
     9696        *)  gl_cv_func_realpath_works=no ;;
     9697      esac
     9698      ;;
     9699esac
     9700fi
     9701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     9702  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     9703esac
     9704fi
     9705
     9706    rm -rf conftest.a conftest.l conftest.d
     9707   ;;
     9708esac
     9709fi
     9710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
     9711printf "%s\n" "$gl_cv_func_realpath_works" >&6; }
     9712  case "$gl_cv_func_realpath_works" in
     9713    *yes)
     9714
     9715printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
     9716
     9717      ;;
     9718    *nearly)
     9719
     9720printf "%s\n" "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h
     9721
     9722      ;;
     9723  esac
     9724
     9725
     9726
     9727
     9728
     9729
     9730
     9731
     9732  case "$host_os" in
     9733    mingw*) ;;
     9734    *)      ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
     9735if test "x$ac_cv_func_getcwd" = xyes
     9736then :
     9737  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
     9738
     9739fi
     9740 ;;
     9741  esac
     9742
     9743
     9744
     9745
     9746
     9747
     9748
     9749  GL_GNULIB_ACCESS=0
     9750
     9751
     9752
     9753  GL_GNULIB_CHDIR=0
     9754
     9755
     9756
     9757  GL_GNULIB_CHOWN=0
     9758
     9759
     9760
     9761  GL_GNULIB_CLOSE=0
     9762
     9763
     9764
     9765  GL_GNULIB_COPY_FILE_RANGE=0
     9766
     9767
     9768
     9769  GL_GNULIB_DUP=0
     9770
     9771
     9772
     9773  GL_GNULIB_DUP2=0
     9774
     9775
     9776
     9777  GL_GNULIB_DUP3=0
     9778
     9779
     9780
     9781  GL_GNULIB_ENVIRON=0
     9782
     9783
     9784
     9785  GL_GNULIB_EUIDACCESS=0
     9786
     9787
     9788
     9789  GL_GNULIB_EXECL=0
     9790
     9791
     9792
     9793  GL_GNULIB_EXECLE=0
     9794
     9795
     9796
     9797  GL_GNULIB_EXECLP=0
     9798
     9799
     9800
     9801  GL_GNULIB_EXECV=0
     9802
     9803
     9804
     9805  GL_GNULIB_EXECVE=0
     9806
     9807
     9808
     9809  GL_GNULIB_EXECVP=0
     9810
     9811
     9812
     9813  GL_GNULIB_EXECVPE=0
     9814
     9815
     9816
     9817  GL_GNULIB_FACCESSAT=0
     9818
     9819
     9820
     9821  GL_GNULIB_FCHDIR=0
     9822
     9823
     9824
     9825  GL_GNULIB_FCHOWNAT=0
     9826
     9827
     9828
     9829  GL_GNULIB_FDATASYNC=0
     9830
     9831
     9832
     9833  GL_GNULIB_FSYNC=0
     9834
     9835
     9836
     9837  GL_GNULIB_FTRUNCATE=0
     9838
     9839
     9840
     9841  GL_GNULIB_GETCWD=0
     9842
     9843
     9844
     9845  GL_GNULIB_GETDOMAINNAME=0
     9846
     9847
     9848
     9849  GL_GNULIB_GETDTABLESIZE=0
     9850
     9851
     9852
     9853  GL_GNULIB_GETENTROPY=0
     9854
     9855
     9856
     9857  GL_GNULIB_GETGROUPS=0
     9858
     9859
     9860
     9861  GL_GNULIB_GETHOSTNAME=0
     9862
     9863
     9864
     9865  GL_GNULIB_GETLOGIN=0
     9866
     9867
     9868
     9869  GL_GNULIB_GETLOGIN_R=0
     9870
     9871
     9872
     9873  GL_GNULIB_GETOPT_POSIX=0
     9874
     9875
     9876
     9877  GL_GNULIB_GETPAGESIZE=0
     9878
     9879
     9880
     9881  GL_GNULIB_GETPASS=0
     9882
     9883
     9884
     9885  GL_GNULIB_GETPASS_GNU=0
     9886
     9887
     9888
     9889  GL_GNULIB_GETUSERSHELL=0
     9890
     9891
     9892
     9893  GL_GNULIB_GROUP_MEMBER=0
     9894
     9895
     9896
     9897  GL_GNULIB_ISATTY=0
     9898
     9899
     9900
     9901  GL_GNULIB_LCHOWN=0
     9902
     9903
     9904
     9905  GL_GNULIB_LINK=0
     9906
     9907
     9908
     9909  GL_GNULIB_LINKAT=0
     9910
     9911
     9912
     9913  GL_GNULIB_LSEEK=0
     9914
     9915
     9916
     9917  GL_GNULIB_PIPE=0
     9918
     9919
     9920
     9921  GL_GNULIB_PIPE2=0
     9922
     9923
     9924
     9925  GL_GNULIB_PREAD=0
     9926
     9927
     9928
     9929  GL_GNULIB_PWRITE=0
     9930
     9931
     9932
     9933  GL_GNULIB_READ=0
     9934
     9935
     9936
     9937  GL_GNULIB_READLINK=0
     9938
     9939
     9940
     9941  GL_GNULIB_READLINKAT=0
     9942
     9943
     9944
     9945  GL_GNULIB_RMDIR=0
     9946
     9947
     9948
     9949  GL_GNULIB_SETHOSTNAME=0
     9950
     9951
     9952
     9953  GL_GNULIB_SLEEP=0
     9954
     9955
     9956
     9957  GL_GNULIB_SYMLINK=0
     9958
     9959
     9960
     9961  GL_GNULIB_SYMLINKAT=0
     9962
     9963
     9964
     9965  GL_GNULIB_TRUNCATE=0
     9966
     9967
     9968
     9969  GL_GNULIB_TTYNAME_R=0
     9970
     9971
     9972
     9973  GL_GNULIB_UNISTD_H_GETOPT=0
     9974
     9975
     9976
     9977  GL_GNULIB_UNISTD_H_NONBLOCKING=0
     9978
     9979
     9980
     9981  GL_GNULIB_UNISTD_H_SIGPIPE=0
     9982
     9983
     9984
     9985  GL_GNULIB_UNLINK=0
     9986
     9987
     9988
     9989  GL_GNULIB_UNLINKAT=0
     9990
     9991
     9992
     9993  GL_GNULIB_USLEEP=0
     9994
     9995
     9996
     9997  GL_GNULIB_WRITE=0
     9998
     9999
     10000
     10001  GL_GNULIB_MDA_ACCESS=1
     10002
     10003
     10004
     10005  GL_GNULIB_MDA_CHDIR=1
     10006
     10007
     10008
     10009  GL_GNULIB_MDA_CLOSE=1
     10010
     10011
     10012
     10013  GL_GNULIB_MDA_DUP=1
     10014
     10015
     10016
     10017  GL_GNULIB_MDA_DUP2=1
     10018
     10019
     10020
     10021  GL_GNULIB_MDA_EXECL=1
     10022
     10023
     10024
     10025  GL_GNULIB_MDA_EXECLE=1
     10026
     10027
     10028
     10029  GL_GNULIB_MDA_EXECLP=1
     10030
     10031
     10032
     10033  GL_GNULIB_MDA_EXECV=1
     10034
     10035
     10036
     10037  GL_GNULIB_MDA_EXECVE=1
     10038
     10039
     10040
     10041  GL_GNULIB_MDA_EXECVP=1
     10042
     10043
     10044
     10045  GL_GNULIB_MDA_EXECVPE=1
     10046
     10047
     10048
     10049  GL_GNULIB_MDA_GETCWD=1
     10050
     10051
     10052
     10053  GL_GNULIB_MDA_GETPID=1
     10054
     10055
     10056
     10057  GL_GNULIB_MDA_ISATTY=1
     10058
     10059
     10060
     10061  GL_GNULIB_MDA_LSEEK=1
     10062
     10063
     10064
     10065  GL_GNULIB_MDA_READ=1
     10066
     10067
     10068
     10069  GL_GNULIB_MDA_RMDIR=1
     10070
     10071
     10072
     10073  GL_GNULIB_MDA_SWAB=1
     10074
     10075
     10076
     10077  GL_GNULIB_MDA_UNLINK=1
     10078
     10079
     10080
     10081  GL_GNULIB_MDA_WRITE=1
     10082
     10083
     10084
     10085
     10086    HAVE_CHOWN=1;
     10087  HAVE_COPY_FILE_RANGE=1;
     10088  HAVE_DUP3=1;
     10089  HAVE_EUIDACCESS=1;
     10090  HAVE_EXECVPE=1;
     10091  HAVE_FACCESSAT=1;
     10092  HAVE_FCHDIR=1;
     10093  HAVE_FCHOWNAT=1;
     10094  HAVE_FDATASYNC=1;
     10095  HAVE_FSYNC=1;
     10096  HAVE_FTRUNCATE=1;
     10097  HAVE_GETDTABLESIZE=1;
     10098  HAVE_GETENTROPY=1;
     10099  HAVE_GETGROUPS=1;
     10100  HAVE_GETHOSTNAME=1;
     10101  HAVE_GETLOGIN=1;
     10102  HAVE_GETPAGESIZE=1;
     10103  HAVE_GETPASS=1;
     10104  HAVE_GROUP_MEMBER=1;
     10105  HAVE_LCHOWN=1;
     10106  HAVE_LINK=1;
     10107  HAVE_LINKAT=1;
     10108  HAVE_PIPE=1;
     10109  HAVE_PIPE2=1;
     10110  HAVE_PREAD=1;
     10111  HAVE_PWRITE=1;
     10112  HAVE_READLINK=1;
     10113  HAVE_READLINKAT=1;
     10114  HAVE_SETHOSTNAME=1;
     10115  HAVE_SLEEP=1;
     10116  HAVE_SYMLINK=1;
     10117  HAVE_SYMLINKAT=1;
     10118  HAVE_UNLINKAT=1;
     10119  HAVE_USLEEP=1;
     10120  HAVE_DECL_ENVIRON=1;
     10121  HAVE_DECL_EXECVPE=1;
     10122  HAVE_DECL_FCHDIR=1;
     10123  HAVE_DECL_FDATASYNC=1;
     10124  HAVE_DECL_GETDOMAINNAME=1;
     10125  HAVE_DECL_GETLOGIN=1;
     10126  HAVE_DECL_GETLOGIN_R=1;
     10127  HAVE_DECL_GETPAGESIZE=1;
     10128  HAVE_DECL_GETUSERSHELL=1;
     10129  HAVE_DECL_SETHOSTNAME=1;
     10130  HAVE_DECL_TRUNCATE=1;
     10131  HAVE_DECL_TTYNAME_R=1;
     10132  HAVE_OS_H=0;
     10133  HAVE_SYS_PARAM_H=0;
     10134  REPLACE_ACCESS=0;
     10135  REPLACE_CHOWN=0;
     10136  REPLACE_CLOSE=0;
     10137  REPLACE_COPY_FILE_RANGE=0;
     10138  REPLACE_DUP=0;
     10139  REPLACE_DUP2=0;
     10140  REPLACE_EXECL=0;
     10141  REPLACE_EXECLE=0;
     10142  REPLACE_EXECLP=0;
     10143  REPLACE_EXECV=0;
     10144  REPLACE_EXECVE=0;
     10145  REPLACE_EXECVP=0;
     10146  REPLACE_EXECVPE=0;
     10147  REPLACE_FACCESSAT=0;
     10148  REPLACE_FCHOWNAT=0;
     10149  REPLACE_FTRUNCATE=0;
     10150  REPLACE_GETCWD=0;
     10151  REPLACE_GETDOMAINNAME=0;
     10152  REPLACE_GETDTABLESIZE=0;
     10153  REPLACE_GETLOGIN_R=0;
     10154  REPLACE_GETGROUPS=0;
     10155  REPLACE_GETPAGESIZE=0;
     10156  REPLACE_GETPASS=0;
     10157  REPLACE_GETPASS_FOR_GETPASS_GNU=0;
     10158  REPLACE_ISATTY=0;
     10159  REPLACE_LCHOWN=0;
     10160  REPLACE_LINK=0;
     10161  REPLACE_LINKAT=0;
     10162  REPLACE_LSEEK=0;
     10163  REPLACE_PREAD=0;
     10164  REPLACE_PWRITE=0;
     10165  REPLACE_READ=0;
     10166  REPLACE_READLINK=0;
     10167  REPLACE_READLINKAT=0;
     10168  REPLACE_RMDIR=0;
     10169  REPLACE_SLEEP=0;
     10170  REPLACE_SYMLINK=0;
     10171  REPLACE_SYMLINKAT=0;
     10172  REPLACE_TRUNCATE=0;
     10173  REPLACE_TTYNAME_R=0;
     10174  REPLACE_UNLINK=0;
     10175  REPLACE_UNLINKAT=0;
     10176  REPLACE_USLEEP=0;
     10177  REPLACE_WRITE=0;
     10178  UNISTD_H_HAVE_SYS_RANDOM_H=0;
     10179  UNISTD_H_HAVE_WINSOCK2_H=0;
     10180  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
     10181
     10182
     10183
     10184
     10185
     10186  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
     10187    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
     10188
     10189printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
     10190
     10191  else
     10192    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
     10193  fi
     10194
     10195
     10196
     10197    SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
     10198  SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
     10199
     10200  REPLACE_IOCTL=0;
     10201
     10202
     10203
     10204    HAVE_ISBLANK=1;
     10205
     10206
     10207
     10208
     10209
     10210
     10211
     10212
     10213
     10214
     10215
     10216
     10217     if test $gl_cv_have_include_next = yes; then
     10218       gl_cv_next_ctype_h='<'ctype.h'>'
     10219     else
     10220       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
     10221printf %s "checking absolute name of <ctype.h>... " >&6; }
     10222if test ${gl_cv_next_ctype_h+y}
     10223then :
     10224  printf %s "(cached) " >&6
     10225else case e in #(
     10226  e)
     10227
     10228
     10229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10230/* end confdefs.h.  */
     10231#include <ctype.h>
    573310232_ACEOF
    5734 cat confdefs.h >>conftest.$ac_ext
    5735 cat >>conftest.$ac_ext <<_ACEOF
    5736 /* end confdefs.h.  */
    5737 
    5738 #    include <stdio.h>
    5739 #    include <sys/types.h>
    5740 #    include <string.h>
    5741     int main ()
    5742     { /* Based on a test program from Karl Heuer.  */
    5743       char *line = NULL;
    5744       size_t siz = 0;
    5745       int len;
    5746       FILE *in = fopen ("./conftest.data", "r");
    5747       if (!in)
    5748         return 1;
    5749       len = getline (&line, &siz, in);
    5750       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
    5751     }
    5752 
    5753 _ACEOF
    5754 rm -f conftest$ac_exeext
    5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5756   (eval $ac_link) 2>&5
    5757   ac_status=$?
    5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5761   (eval $ac_try) 2>&5
    5762   ac_status=$?
    5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5764   (exit $ac_status); }; }; then
    5765   am_cv_func_working_getline=yes
    5766 else
    5767   echo "$as_me: program exited with status $ac_status" >&5
    5768 echo "$as_me: failed program was:" >&5
    5769 sed 's/^/| /' conftest.$ac_ext >&5
    5770 
    5771 ( exit $ac_status )
    5772 am_cv_func_working_getline=no
    5773 fi
    5774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5775 fi
    5776 fi
    5777 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
    5778 echo "${ECHO_T}$am_cv_func_working_getline" >&6
    5779   fi
    5780 
    5781   if test $am_cv_func_working_getline = no; then
    5782     case $LIBOBJS in
    5783     "getline.$ac_objext"   | \
    5784   *" getline.$ac_objext"   | \
    5785     "getline.$ac_objext "* | \
    5786   *" getline.$ac_objext "* ) ;;
    5787   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
    5788 esac
    5789 
    5790   fi
    5791 
    5792 echo "$as_me:$LINENO: checking for obstacks" >&5
    5793 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
    5794 if test "${ac_cv_func_obstack+set}" = set; then
    5795   echo $ECHO_N "(cached) $ECHO_C" >&6
    5796 else
    5797   cat >conftest.$ac_ext <<_ACEOF
    5798 /* confdefs.h.  */
    5799 _ACEOF
    5800 cat confdefs.h >>conftest.$ac_ext
    5801 cat >>conftest.$ac_ext <<_ACEOF
    5802 /* end confdefs.h.  */
    5803 #include "obstack.h"
    5804 int
    5805 main ()
    5806 {
    5807 struct obstack *mem; obstack_free(mem,(char *) 0)
    5808   ;
    5809   return 0;
    5810 }
    5811 _ACEOF
    5812 rm -f conftest.$ac_objext conftest$ac_exeext
    5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5814   (eval $ac_link) 2>conftest.er1
    5815   ac_status=$?
    5816   grep -v '^ *+' conftest.er1 >conftest.err
    5817   rm -f conftest.er1
    5818   cat conftest.err >&5
    5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5820   (exit $ac_status); } &&
    5821          { ac_try='test -z "$ac_c_werror_flag"
    5822                          || test ! -s conftest.err'
    5823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5824   (eval $ac_try) 2>&5
    5825   ac_status=$?
    5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5827   (exit $ac_status); }; } &&
    5828          { ac_try='test -s conftest$ac_exeext'
    5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5830   (eval $ac_try) 2>&5
    5831   ac_status=$?
    5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5833   (exit $ac_status); }; }; then
    5834   ac_cv_func_obstack=yes
    5835 else
    5836   echo "$as_me: failed program was:" >&5
    5837 sed 's/^/| /' conftest.$ac_ext >&5
    5838 
    5839 ac_cv_func_obstack=no
    5840 fi
    5841 rm -f conftest.err conftest.$ac_objext \
    5842       conftest$ac_exeext conftest.$ac_ext
    5843 fi
    5844 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
    5845 echo "${ECHO_T}$ac_cv_func_obstack" >&6
    5846 if test $ac_cv_func_obstack = yes; then
    5847 
    5848 cat >>confdefs.h <<\_ACEOF
    5849 #define HAVE_OBSTACK 1
    5850 _ACEOF
    5851 
    5852 else
    5853   case $LIBOBJS in
    5854     "obstack.$ac_objext"   | \
    5855   *" obstack.$ac_objext"   | \
    5856     "obstack.$ac_objext "* | \
    5857   *" obstack.$ac_objext "* ) ;;
    5858   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
    5859 esac
    5860 
    5861 fi
    5862 
    5863 
    5864   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
    5865 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
    5866 if test "${ac_cv_func_mbrtowc+set}" = set; then
    5867   echo $ECHO_N "(cached) $ECHO_C" >&6
    5868 else
    5869   cat >conftest.$ac_ext <<_ACEOF
    5870 /* confdefs.h.  */
    5871 _ACEOF
    5872 cat confdefs.h >>conftest.$ac_ext
    5873 cat >>conftest.$ac_ext <<_ACEOF
    5874 /* end confdefs.h.  */
    5875 #include <wchar.h>
    5876 int
    5877 main ()
    5878 {
    5879 mbstate_t state; return ! (sizeof state && mbrtowc);
    5880   ;
    5881   return 0;
    5882 }
    5883 _ACEOF
    5884 rm -f conftest.$ac_objext conftest$ac_exeext
    5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5886   (eval $ac_link) 2>conftest.er1
    5887   ac_status=$?
    5888   grep -v '^ *+' conftest.er1 >conftest.err
    5889   rm -f conftest.er1
    5890   cat conftest.err >&5
    5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5892   (exit $ac_status); } &&
    5893          { ac_try='test -z "$ac_c_werror_flag"
    5894                          || test ! -s conftest.err'
    5895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5896   (eval $ac_try) 2>&5
    5897   ac_status=$?
    5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5899   (exit $ac_status); }; } &&
    5900          { ac_try='test -s conftest$ac_exeext'
    5901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5902   (eval $ac_try) 2>&5
    5903   ac_status=$?
    5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5905   (exit $ac_status); }; }; then
    5906   ac_cv_func_mbrtowc=yes
    5907 else
    5908   echo "$as_me: failed program was:" >&5
    5909 sed 's/^/| /' conftest.$ac_ext >&5
    5910 
    5911 ac_cv_func_mbrtowc=no
    5912 fi
    5913 rm -f conftest.err conftest.$ac_objext \
    5914       conftest$ac_exeext conftest.$ac_ext
    5915 fi
    5916 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
    5917 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
    5918   if test $ac_cv_func_mbrtowc = yes; then
    5919 
    5920 cat >>confdefs.h <<\_ACEOF
    5921 #define HAVE_MBRTOWC 1
    5922 _ACEOF
    5923 
    5924   fi
    5925 
    5926 echo "$as_me:$LINENO: checking for mbstate_t" >&5
    5927 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
    5928 if test "${ac_cv_type_mbstate_t+set}" = set; then
    5929   echo $ECHO_N "(cached) $ECHO_C" >&6
    5930 else
    5931   cat >conftest.$ac_ext <<_ACEOF
    5932 /* confdefs.h.  */
    5933 _ACEOF
    5934 cat confdefs.h >>conftest.$ac_ext
    5935 cat >>conftest.$ac_ext <<_ACEOF
    5936 /* end confdefs.h.  */
    5937 $ac_includes_default
    5938 #           include <wchar.h>
    5939 int
    5940 main ()
    5941 {
    5942 mbstate_t x; return sizeof x;
    5943   ;
    5944   return 0;
    5945 }
    5946 _ACEOF
    5947 rm -f conftest.$ac_objext
    5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5949   (eval $ac_compile) 2>conftest.er1
    5950   ac_status=$?
    5951   grep -v '^ *+' conftest.er1 >conftest.err
    5952   rm -f conftest.er1
    5953   cat conftest.err >&5
    5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5955   (exit $ac_status); } &&
    5956          { ac_try='test -z "$ac_c_werror_flag"
    5957                          || test ! -s conftest.err'
    5958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5959   (eval $ac_try) 2>&5
    5960   ac_status=$?
    5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5962   (exit $ac_status); }; } &&
    5963          { ac_try='test -s conftest.$ac_objext'
    5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5965   (eval $ac_try) 2>&5
    5966   ac_status=$?
    5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5968   (exit $ac_status); }; }; then
    5969   ac_cv_type_mbstate_t=yes
    5970 else
    5971   echo "$as_me: failed program was:" >&5
    5972 sed 's/^/| /' conftest.$ac_ext >&5
    5973 
    5974 ac_cv_type_mbstate_t=no
    5975 fi
    5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5977 fi
    5978 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
    5979 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
    5980    if test $ac_cv_type_mbstate_t = yes; then
    5981 
    5982 cat >>confdefs.h <<\_ACEOF
    5983 #define HAVE_MBSTATE_T 1
    5984 _ACEOF
    5985 
    5986    else
    5987 
    5988 cat >>confdefs.h <<\_ACEOF
    5989 #define mbstate_t int
    5990 _ACEOF
    5991 
    5992    fi
    5993 
    5994 
    5995 
    5996 
    5997 for ac_func in strverscmp
    5998 do
    5999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6000 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6002 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6003   echo $ECHO_N "(cached) $ECHO_C" >&6
    6004 else
    6005   cat >conftest.$ac_ext <<_ACEOF
    6006 /* confdefs.h.  */
    6007 _ACEOF
    6008 cat confdefs.h >>conftest.$ac_ext
    6009 cat >>conftest.$ac_ext <<_ACEOF
    6010 /* end confdefs.h.  */
    6011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6013 #define $ac_func innocuous_$ac_func
    6014 
    6015 /* System header to define __stub macros and hopefully few prototypes,
    6016     which can conflict with char $ac_func (); below.
    6017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6018     <limits.h> exists even on freestanding compilers.  */
    6019 
    6020 #ifdef __STDC__
    6021 # include <limits.h>
    6022 #else
    6023 # include <assert.h>
    6024 #endif
    6025 
    6026 #undef $ac_func
    6027 
    6028 /* Override any gcc2 internal prototype to avoid an error.  */
    6029 #ifdef __cplusplus
    6030 extern "C"
    6031 {
    6032 #endif
    6033 /* We use char because int might match the return type of a gcc2
    6034    builtin and then its argument prototype would still apply.  */
    6035 char $ac_func ();
    6036 /* The GNU C library defines this for functions which it implements
    6037     to always fail with ENOSYS.  Some functions are actually named
    6038     something starting with __ and the normal name is an alias.  */
    6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6040 choke me
    6041 #else
    6042 char (*f) () = $ac_func;
    6043 #endif
    6044 #ifdef __cplusplus
    6045 }
    6046 #endif
    6047 
    6048 int
    6049 main ()
    6050 {
    6051 return f != $ac_func;
    6052   ;
    6053   return 0;
    6054 }
    6055 _ACEOF
    6056 rm -f conftest.$ac_objext conftest$ac_exeext
    6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6058   (eval $ac_link) 2>conftest.er1
    6059   ac_status=$?
    6060   grep -v '^ *+' conftest.er1 >conftest.err
    6061   rm -f conftest.er1
    6062   cat conftest.err >&5
    6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6064   (exit $ac_status); } &&
    6065          { ac_try='test -z "$ac_c_werror_flag"
    6066                          || test ! -s conftest.err'
    6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6068   (eval $ac_try) 2>&5
    6069   ac_status=$?
    6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6071   (exit $ac_status); }; } &&
    6072          { ac_try='test -s conftest$ac_exeext'
    6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6074   (eval $ac_try) 2>&5
    6075   ac_status=$?
    6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6077   (exit $ac_status); }; }; then
    6078   eval "$as_ac_var=yes"
    6079 else
    6080   echo "$as_me: failed program was:" >&5
    6081 sed 's/^/| /' conftest.$ac_ext >&5
    6082 
    6083 eval "$as_ac_var=no"
    6084 fi
    6085 rm -f conftest.err conftest.$ac_objext \
    6086       conftest$ac_exeext conftest.$ac_ext
    6087 fi
    6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6090 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6091   cat >>confdefs.h <<_ACEOF
    6092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6093 _ACEOF
    6094 
    6095 else
    6096   case $LIBOBJS in
    6097     "$ac_func.$ac_objext"   | \
    6098   *" $ac_func.$ac_objext"   | \
    6099     "$ac_func.$ac_objext "* | \
    6100   *" $ac_func.$ac_objext "* ) ;;
    6101   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
    6102 esac
    6103 
    6104 fi
    6105 done
    6106 
    6107 
    6108   if test $ac_cv_func_strverscmp = no; then
    6109 
    6110   :
    6111 
    6112   fi
    6113 
    6114 
    6115 
    6116 
    6117 
    6118 
    6119 for ac_func in memchr memcmp memmove strerror mkstemp
    6120 do
    6121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6122 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6124 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6125   echo $ECHO_N "(cached) $ECHO_C" >&6
    6126 else
    6127   cat >conftest.$ac_ext <<_ACEOF
    6128 /* confdefs.h.  */
    6129 _ACEOF
    6130 cat confdefs.h >>conftest.$ac_ext
    6131 cat >>conftest.$ac_ext <<_ACEOF
    6132 /* end confdefs.h.  */
    6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6135 #define $ac_func innocuous_$ac_func
    6136 
    6137 /* System header to define __stub macros and hopefully few prototypes,
    6138     which can conflict with char $ac_func (); below.
    6139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6140     <limits.h> exists even on freestanding compilers.  */
    6141 
    6142 #ifdef __STDC__
    6143 # include <limits.h>
    6144 #else
    6145 # include <assert.h>
    6146 #endif
    6147 
    6148 #undef $ac_func
    6149 
    6150 /* Override any gcc2 internal prototype to avoid an error.  */
    6151 #ifdef __cplusplus
    6152 extern "C"
    6153 {
    6154 #endif
    6155 /* We use char because int might match the return type of a gcc2
    6156    builtin and then its argument prototype would still apply.  */
    6157 char $ac_func ();
    6158 /* The GNU C library defines this for functions which it implements
    6159     to always fail with ENOSYS.  Some functions are actually named
    6160     something starting with __ and the normal name is an alias.  */
    6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6162 choke me
    6163 #else
    6164 char (*f) () = $ac_func;
    6165 #endif
    6166 #ifdef __cplusplus
    6167 }
    6168 #endif
    6169 
    6170 int
    6171 main ()
    6172 {
    6173 return f != $ac_func;
    6174   ;
    6175   return 0;
    6176 }
    6177 _ACEOF
    6178 rm -f conftest.$ac_objext conftest$ac_exeext
    6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6180   (eval $ac_link) 2>conftest.er1
    6181   ac_status=$?
    6182   grep -v '^ *+' conftest.er1 >conftest.err
    6183   rm -f conftest.er1
    6184   cat conftest.err >&5
    6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6186   (exit $ac_status); } &&
    6187          { ac_try='test -z "$ac_c_werror_flag"
    6188                          || test ! -s conftest.err'
    6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6190   (eval $ac_try) 2>&5
    6191   ac_status=$?
    6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6193   (exit $ac_status); }; } &&
    6194          { ac_try='test -s conftest$ac_exeext'
    6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6196   (eval $ac_try) 2>&5
    6197   ac_status=$?
    6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6199   (exit $ac_status); }; }; then
    6200   eval "$as_ac_var=yes"
    6201 else
    6202   echo "$as_me: failed program was:" >&5
    6203 sed 's/^/| /' conftest.$ac_ext >&5
    6204 
    6205 eval "$as_ac_var=no"
    6206 fi
    6207 rm -f conftest.err conftest.$ac_objext \
    6208       conftest$ac_exeext conftest.$ac_ext
    6209 fi
    6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6213   cat >>confdefs.h <<_ACEOF
    6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6215 _ACEOF
    6216 
    6217 else
    6218   case $LIBOBJS in
    6219     "$ac_func.$ac_objext"   | \
    6220   *" $ac_func.$ac_objext"   | \
    6221     "$ac_func.$ac_objext "* | \
    6222   *" $ac_func.$ac_objext "* ) ;;
    6223   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
    6224 esac
    6225 
    6226 fi
    6227 done
    6228 
    6229 
    6230 
    6231 
    6232 
    6233 
    6234 
    6235 
    6236 
    6237 
    6238 
    6239 
    6240 
    6241 
    6242 
    6243 
    6244 
    6245 
    6246 
    6247 for ac_func in isatty bcopy bzero isascii memcpy memset strchr strtoul popen \
    6248                 pathconf isblank fchown fchmod setlocale wcrtomb wcscoll btowc
    6249 do
    6250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6251 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6253 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6254   echo $ECHO_N "(cached) $ECHO_C" >&6
    6255 else
    6256   cat >conftest.$ac_ext <<_ACEOF
    6257 /* confdefs.h.  */
    6258 _ACEOF
    6259 cat confdefs.h >>conftest.$ac_ext
    6260 cat >>conftest.$ac_ext <<_ACEOF
    6261 /* end confdefs.h.  */
    6262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6264 #define $ac_func innocuous_$ac_func
    6265 
    6266 /* System header to define __stub macros and hopefully few prototypes,
    6267     which can conflict with char $ac_func (); below.
    6268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6269     <limits.h> exists even on freestanding compilers.  */
    6270 
    6271 #ifdef __STDC__
    6272 # include <limits.h>
    6273 #else
    6274 # include <assert.h>
    6275 #endif
    6276 
    6277 #undef $ac_func
    6278 
    6279 /* Override any gcc2 internal prototype to avoid an error.  */
    6280 #ifdef __cplusplus
    6281 extern "C"
    6282 {
    6283 #endif
    6284 /* We use char because int might match the return type of a gcc2
    6285    builtin and then its argument prototype would still apply.  */
    6286 char $ac_func ();
    6287 /* The GNU C library defines this for functions which it implements
    6288     to always fail with ENOSYS.  Some functions are actually named
    6289     something starting with __ and the normal name is an alias.  */
    6290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6291 choke me
    6292 #else
    6293 char (*f) () = $ac_func;
    6294 #endif
    6295 #ifdef __cplusplus
    6296 }
    6297 #endif
    6298 
    6299 int
    6300 main ()
    6301 {
    6302 return f != $ac_func;
    6303   ;
    6304   return 0;
    6305 }
    6306 _ACEOF
    6307 rm -f conftest.$ac_objext conftest$ac_exeext
    6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6309   (eval $ac_link) 2>conftest.er1
    6310   ac_status=$?
    6311   grep -v '^ *+' conftest.er1 >conftest.err
    6312   rm -f conftest.er1
    6313   cat conftest.err >&5
    6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6315   (exit $ac_status); } &&
    6316          { ac_try='test -z "$ac_c_werror_flag"
    6317                          || test ! -s conftest.err'
    6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6319   (eval $ac_try) 2>&5
    6320   ac_status=$?
    6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6322   (exit $ac_status); }; } &&
    6323          { ac_try='test -s conftest$ac_exeext'
    6324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6325   (eval $ac_try) 2>&5
    6326   ac_status=$?
    6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6328   (exit $ac_status); }; }; then
    6329   eval "$as_ac_var=yes"
    6330 else
    6331   echo "$as_me: failed program was:" >&5
    6332 sed 's/^/| /' conftest.$ac_ext >&5
    6333 
    6334 eval "$as_ac_var=no"
    6335 fi
    6336 rm -f conftest.err conftest.$ac_objext \
    6337       conftest$ac_exeext conftest.$ac_ext
    6338 fi
    6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6341 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6342   cat >>confdefs.h <<_ACEOF
    6343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6344 _ACEOF
    6345 
    6346 fi
    6347 done
    6348 
    6349 
    6350 # Check whether --enable-i18n or --disable-i18n was given.
    6351 if test "${enable_i18n+set}" = set; then
    6352   enableval="$enable_i18n"
    6353 
    6354 else
    6355   enable_i18n=yes
    6356 fi;
    6357 if test "x$enable_i18n" = xno; then
    6358   ac_cv_func_wcscoll=false
    6359 fi
    6360 
    6361 
    6362 # Check whether --with-included-regex or --without-included-regex was given.
    6363 if test "${with_included_regex+set}" = set; then
    6364   withval="$with_included_regex"
    6365 
    6366 else
    6367   with_included_regex=yes
    6368 fi;
    6369 
    6370 if test "x$with_included_regex" = xno; then
    6371 
    6372 for ac_header in regex.h
    6373 do
    6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    6375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6376   echo "$as_me:$LINENO: checking for $ac_header" >&5
    6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6379   echo $ECHO_N "(cached) $ECHO_C" >&6
    6380 fi
    6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6383 else
    6384   # Is the header compilable?
    6385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    6386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    6387 cat >conftest.$ac_ext <<_ACEOF
    6388 /* confdefs.h.  */
    6389 _ACEOF
    6390 cat confdefs.h >>conftest.$ac_ext
    6391 cat >>conftest.$ac_ext <<_ACEOF
    6392 /* end confdefs.h.  */
    6393 $ac_includes_default
    6394 #include <$ac_header>
    6395 _ACEOF
    6396 rm -f conftest.$ac_objext
    6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6398   (eval $ac_compile) 2>conftest.er1
    6399   ac_status=$?
    6400   grep -v '^ *+' conftest.er1 >conftest.err
    6401   rm -f conftest.er1
    6402   cat conftest.err >&5
    6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6404   (exit $ac_status); } &&
    6405          { ac_try='test -z "$ac_c_werror_flag"
    6406                          || test ! -s conftest.err'
    6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6408   (eval $ac_try) 2>&5
    6409   ac_status=$?
    6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6411   (exit $ac_status); }; } &&
    6412          { ac_try='test -s conftest.$ac_objext'
    6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6414   (eval $ac_try) 2>&5
    6415   ac_status=$?
    6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6417   (exit $ac_status); }; }; then
    6418   ac_header_compiler=yes
    6419 else
    6420   echo "$as_me: failed program was:" >&5
    6421 sed 's/^/| /' conftest.$ac_ext >&5
    6422 
    6423 ac_header_compiler=no
    6424 fi
    6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    6427 echo "${ECHO_T}$ac_header_compiler" >&6
    6428 
    6429 # Is the header present?
    6430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    6431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    6432 cat >conftest.$ac_ext <<_ACEOF
    6433 /* confdefs.h.  */
    6434 _ACEOF
    6435 cat confdefs.h >>conftest.$ac_ext
    6436 cat >>conftest.$ac_ext <<_ACEOF
    6437 /* end confdefs.h.  */
    6438 #include <$ac_header>
    6439 _ACEOF
    6440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    6441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    6442   ac_status=$?
    6443   grep -v '^ *+' conftest.er1 >conftest.err
    6444   rm -f conftest.er1
    6445   cat conftest.err >&5
    6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6447   (exit $ac_status); } >/dev/null; then
    6448   if test -s conftest.err; then
    6449     ac_cpp_err=$ac_c_preproc_warn_flag
    6450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    6451   else
    6452     ac_cpp_err=
    6453   fi
    6454 else
    6455   ac_cpp_err=yes
    6456 fi
    6457 if test -z "$ac_cpp_err"; then
    6458   ac_header_preproc=yes
    6459 else
    6460   echo "$as_me: failed program was:" >&5
    6461 sed 's/^/| /' conftest.$ac_ext >&5
    6462 
    6463   ac_header_preproc=no
    6464 fi
    6465 rm -f conftest.err conftest.$ac_ext
    6466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    6467 echo "${ECHO_T}$ac_header_preproc" >&6
    6468 
    6469 # So?  What about this header?
    6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    6471   yes:no: )
    6472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    6473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    6474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    6475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    6476     ac_header_preproc=yes
    6477     ;;
    6478   no:yes:* )
    6479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    6480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    6481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    6482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    6483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    6484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    6485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    6486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    6487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    6488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    6489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    6490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    6491     (
    6492       cat <<\_ASBOX
    6493 ## ------------------------------ ##
    6494 ## Report this to [email protected] ##
    6495 ## ------------------------------ ##
    6496 _ASBOX
    6497     ) |
    6498       sed "s/^/$as_me: WARNING:     /" >&2
    6499     ;;
    6500 esac
    6501 echo "$as_me:$LINENO: checking for $ac_header" >&5
    6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6504   echo $ECHO_N "(cached) $ECHO_C" >&6
    6505 else
    6506   eval "$as_ac_Header=\$ac_header_preproc"
    6507 fi
    6508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6510 
    6511 fi
    6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    6513   cat >>confdefs.h <<_ACEOF
    6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    6515 _ACEOF
    6516 
    6517 fi
    6518 
    6519 done
    6520 
    6521 
    6522 echo "$as_me:$LINENO: checking for re_search in -lregex" >&5
    6523 echo $ECHO_N "checking for re_search in -lregex... $ECHO_C" >&6
    6524 if test "${ac_cv_lib_regex_re_search+set}" = set; then
    6525   echo $ECHO_N "(cached) $ECHO_C" >&6
    6526 else
    6527   ac_check_lib_save_LIBS=$LIBS
    6528 LIBS="-lregex  $LIBS"
    6529 cat >conftest.$ac_ext <<_ACEOF
    6530 /* confdefs.h.  */
    6531 _ACEOF
    6532 cat confdefs.h >>conftest.$ac_ext
    6533 cat >>conftest.$ac_ext <<_ACEOF
    6534 /* end confdefs.h.  */
    6535 
    6536 /* Override any gcc2 internal prototype to avoid an error.  */
    6537 #ifdef __cplusplus
    6538 extern "C"
    6539 #endif
    6540 /* We use char because int might match the return type of a gcc2
    6541    builtin and then its argument prototype would still apply.  */
    6542 char re_search ();
    6543 int
    6544 main ()
    6545 {
    6546 re_search ();
    6547   ;
    6548   return 0;
    6549 }
    6550 _ACEOF
    6551 rm -f conftest.$ac_objext conftest$ac_exeext
    6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6553   (eval $ac_link) 2>conftest.er1
    6554   ac_status=$?
    6555   grep -v '^ *+' conftest.er1 >conftest.err
    6556   rm -f conftest.er1
    6557   cat conftest.err >&5
    6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6559   (exit $ac_status); } &&
    6560          { ac_try='test -z "$ac_c_werror_flag"
    6561                          || test ! -s conftest.err'
    6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6563   (eval $ac_try) 2>&5
    6564   ac_status=$?
    6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6566   (exit $ac_status); }; } &&
    6567          { ac_try='test -s conftest$ac_exeext'
    6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6569   (eval $ac_try) 2>&5
    6570   ac_status=$?
    6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6572   (exit $ac_status); }; }; then
    6573   ac_cv_lib_regex_re_search=yes
    6574 else
    6575   echo "$as_me: failed program was:" >&5
    6576 sed 's/^/| /' conftest.$ac_ext >&5
    6577 
    6578 ac_cv_lib_regex_re_search=no
    6579 fi
    6580 rm -f conftest.err conftest.$ac_objext \
    6581       conftest$ac_exeext conftest.$ac_ext
    6582 LIBS=$ac_check_lib_save_LIBS
    6583 fi
    6584 echo "$as_me:$LINENO: result: $ac_cv_lib_regex_re_search" >&5
    6585 echo "${ECHO_T}$ac_cv_lib_regex_re_search" >&6
    6586 if test $ac_cv_lib_regex_re_search = yes; then
    6587   cat >>confdefs.h <<_ACEOF
    6588 #define HAVE_LIBREGEX 1
    6589 _ACEOF
    6590 
    6591   LIBS="-lregex $LIBS"
    6592 
    6593 fi
    6594 
    6595   echo "$as_me:$LINENO: checking for re_search" >&5
    6596 echo $ECHO_N "checking for re_search... $ECHO_C" >&6
    6597 if test "${ac_cv_func_re_search+set}" = set; then
    6598   echo $ECHO_N "(cached) $ECHO_C" >&6
    6599 else
    6600   cat >conftest.$ac_ext <<_ACEOF
    6601 /* confdefs.h.  */
    6602 _ACEOF
    6603 cat confdefs.h >>conftest.$ac_ext
    6604 cat >>conftest.$ac_ext <<_ACEOF
    6605 /* end confdefs.h.  */
    6606 /* Define re_search to an innocuous variant, in case <limits.h> declares re_search.
    6607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6608 #define re_search innocuous_re_search
    6609 
    6610 /* System header to define __stub macros and hopefully few prototypes,
    6611     which can conflict with char re_search (); below.
    6612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6613     <limits.h> exists even on freestanding compilers.  */
    6614 
    6615 #ifdef __STDC__
    6616 # include <limits.h>
    6617 #else
    6618 # include <assert.h>
    6619 #endif
    6620 
    6621 #undef re_search
    6622 
    6623 /* Override any gcc2 internal prototype to avoid an error.  */
    6624 #ifdef __cplusplus
    6625 extern "C"
    6626 {
    6627 #endif
    6628 /* We use char because int might match the return type of a gcc2
    6629    builtin and then its argument prototype would still apply.  */
    6630 char re_search ();
    6631 /* The GNU C library defines this for functions which it implements
    6632     to always fail with ENOSYS.  Some functions are actually named
    6633     something starting with __ and the normal name is an alias.  */
    6634 #if defined (__stub_re_search) || defined (__stub___re_search)
    6635 choke me
    6636 #else
    6637 char (*f) () = re_search;
    6638 #endif
    6639 #ifdef __cplusplus
    6640 }
    6641 #endif
    6642 
    6643 int
    6644 main ()
    6645 {
    6646 return f != re_search;
    6647   ;
    6648   return 0;
    6649 }
    6650 _ACEOF
    6651 rm -f conftest.$ac_objext conftest$ac_exeext
    6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6653   (eval $ac_link) 2>conftest.er1
    6654   ac_status=$?
    6655   grep -v '^ *+' conftest.er1 >conftest.err
    6656   rm -f conftest.er1
    6657   cat conftest.err >&5
    6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6659   (exit $ac_status); } &&
    6660          { ac_try='test -z "$ac_c_werror_flag"
    6661                          || test ! -s conftest.err'
    6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6663   (eval $ac_try) 2>&5
    6664   ac_status=$?
    6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6666   (exit $ac_status); }; } &&
    6667          { ac_try='test -s conftest$ac_exeext'
    6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6669   (eval $ac_try) 2>&5
    6670   ac_status=$?
    6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6672   (exit $ac_status); }; }; then
    6673   ac_cv_func_re_search=yes
    6674 else
    6675   echo "$as_me: failed program was:" >&5
    6676 sed 's/^/| /' conftest.$ac_ext >&5
    6677 
    6678 ac_cv_func_re_search=no
    6679 fi
    6680 rm -f conftest.err conftest.$ac_objext \
    6681       conftest$ac_exeext conftest.$ac_ext
    6682 fi
    6683 echo "$as_me:$LINENO: result: $ac_cv_func_re_search" >&5
    6684 echo "${ECHO_T}$ac_cv_func_re_search" >&6
    6685 
    6686   if test $ac_cv_header_regex_h = no || test $ac_cv_func_re_search = no; then
    6687     { echo "$as_me:$LINENO: WARNING: GNU regex not found, falling back to the included version" >&5
    6688 echo "$as_me: WARNING: GNU regex not found, falling back to the included version" >&2;}
    6689     with_included_regex=yes
    6690   fi
    6691 fi
    6692 
    6693 # Check whether --enable-regex-tests or --disable-regex-tests was given.
    6694 if test "${enable_regex_tests+set}" = set; then
    6695   enableval="$enable_regex_tests"
    6696   if test "x$with_included_regex" = xno; then
    6697   enable_regex_tests=no
    6698 fi
    6699 else
    6700   enable_regex_tests=$with_included_regex
    6701 fi;
    6702 
    6703 
    6704 
    6705 if test "x$enable_regex_tests" != xno; then
    6706   TEST_REGEX_TRUE=
    6707   TEST_REGEX_FALSE='#'
    6708 else
    6709   TEST_REGEX_TRUE='#'
    6710   TEST_REGEX_FALSE=
    6711 fi
    6712 
    6713 if test "x$with_included_regex" != xno; then
    6714             ac_config_links="$ac_config_links lib/regex.h:lib/regex_.h"
    6715 
    6716   case $LIBOBJS in
    6717     "regex.$ac_objext"   | \
    6718   *" regex.$ac_objext"   | \
    6719     "regex.$ac_objext "* | \
    6720   *" regex.$ac_objext "* ) ;;
    6721   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
    6722 esac
    6723 
    6724 fi
    6725 if test "x$enable_regex_tests" = xyes; then
    6726 
    6727 cat >>confdefs.h <<_ACEOF
    6728 #define _REGEX_RE_COMP 1
    6729 _ACEOF
    6730 
    6731 fi
    6732 
    6733 # Check whether --enable-html or --disable-html was given.
    6734 if test "${enable_html+set}" = set; then
    6735   enableval="$enable_html"
    6736 
    6737 else
    6738   enable_html=no
    6739 fi;
    6740 
    6741 
    6742 
    6743 if test "x$enable_html" != xno; then
    6744   BUILD_HTML_TRUE=
    6745   BUILD_HTML_FALSE='#'
    6746 else
    6747   BUILD_HTML_TRUE='#'
    6748   BUILD_HTML_FALSE=
    6749 fi
    6750 
    6751 
    6752 : ${TEXI2HTML=texi2html -monolithic}
    6753 
    6754 
    6755 echo "$as_me:$LINENO: checking how to build HTML documentation" >&5
    6756 echo $ECHO_N "checking how to build HTML documentation... $ECHO_C" >&6
    6757 if eval $am_missing_run makeinfo --help 2>&1 | grep .-html > /dev/null; then
    6758   echo "$as_me:$LINENO: result: with makeinfo" >&5
    6759 echo "${ECHO_T}with makeinfo" >&6
    6760   enable_html=makeinfo
    6761 else
    6762   if $TEXI2HTML --help 2>&1 | grep monolithic > /dev/null; then
    6763     echo "$as_me:$LINENO: result: with texi2html" >&5
    6764 echo "${ECHO_T}with texi2html" >&6
    6765     enable_html=texi2html
    6766   else
    6767     echo "$as_me:$LINENO: result: not built" >&5
    6768 echo "${ECHO_T}not built" >&6
    6769     if test "x$enable_html" != xno; then
    6770       { { echo "$as_me:$LINENO: error: cannot build HTML documentation" >&5
    6771 echo "$as_me: error: cannot build HTML documentation" >&2;}
    6772    { (exit install makeinfo 4.0 or texi2html); exit install makeinfo 4.0 or texi2html; }; }
    6773     fi
    6774     enable_html=no
    6775   fi
    6776 fi
    6777 
    6778 
    6779 
    6780 if test "x$enable_html" = xmakeinfo; then
    6781   MAKEINFO_HTML_TRUE=
    6782   MAKEINFO_HTML_FALSE='#'
    6783 else
    6784   MAKEINFO_HTML_TRUE='#'
    6785   MAKEINFO_HTML_FALSE=
    6786 fi
    6787 
    6788 
    6789 
    6790 if test "x$enable_html" = xtexi2html; then
    6791   TEXI2HTML_HTML_TRUE=
    6792   TEXI2HTML_HTML_FALSE='#'
    6793 else
    6794   TEXI2HTML_HTML_TRUE='#'
    6795   TEXI2HTML_HTML_FALSE=
    6796 fi
    6797 
    6798 
    6799 
    6800 
    6801 
    6802 MKINSTALLDIRS="$mkdir_p"
    6803 
    6804 
    6805 
    6806         # Extract the first word of "msgfmt", so it can be a program name with args.
    6807 set dummy msgfmt; ac_word=$2
    6808 echo "$as_me:$LINENO: checking for $ac_word" >&5
    6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    6810 if test "${ac_cv_path_MSGFMT+set}" = set; then
    6811   echo $ECHO_N "(cached) $ECHO_C" >&6
    6812 else
    6813   case "$MSGFMT" in
    6814   /*)
    6815   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
    6816   ;;
    6817   *)
    6818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    6819   for ac_dir in $PATH; do
    6820     test -z "$ac_dir" && ac_dir=.
    6821     if test -f $ac_dir/$ac_word; then
    6822       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
    6823      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
    6824         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
    6825         break
    6826       fi
    6827     fi
    6828   done
    6829   IFS="$ac_save_ifs"
    6830   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
    6831   ;;
    6832 esac
    6833 fi
    6834 MSGFMT="$ac_cv_path_MSGFMT"
    6835 if test "$MSGFMT" != ":"; then
    6836   echo "$as_me:$LINENO: result: $MSGFMT" >&5
    6837 echo "${ECHO_T}$MSGFMT" >&6
    6838 else
    6839   echo "$as_me:$LINENO: result: no" >&5
    6840 echo "${ECHO_T}no" >&6
    6841 fi
    6842 
    6843   # Extract the first word of "gmsgfmt", so it can be a program name with args.
    6844 set dummy gmsgfmt; ac_word=$2
    6845 echo "$as_me:$LINENO: checking for $ac_word" >&5
    6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    6847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
    6848   echo $ECHO_N "(cached) $ECHO_C" >&6
    6849 else
    6850   case $GMSGFMT in
    6851   [\\/]* | ?:[\\/]*)
    6852   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
    6853   ;;
    6854   *)
    6855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    6856 for as_dir in $PATH
    6857 do
    6858   IFS=$as_save_IFS
    6859   test -z "$as_dir" && as_dir=.
    6860   for ac_exec_ext in '' $ac_executable_extensions; do
    6861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    6862     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
    6863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    6864     break 2
    6865   fi
    6866 done
    6867 done
    6868 
    6869   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
    6870   ;;
    6871 esac
    6872 fi
    6873 GMSGFMT=$ac_cv_path_GMSGFMT
    6874 
    6875 if test -n "$GMSGFMT"; then
    6876   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
    6877 echo "${ECHO_T}$GMSGFMT" >&6
    6878 else
    6879   echo "$as_me:$LINENO: result: no" >&5
    6880 echo "${ECHO_T}no" >&6
    6881 fi
    6882 
    6883 
    6884         # Extract the first word of "xgettext", so it can be a program name with args.
    6885 set dummy xgettext; ac_word=$2
    6886 echo "$as_me:$LINENO: checking for $ac_word" >&5
    6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    6888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
    6889   echo $ECHO_N "(cached) $ECHO_C" >&6
    6890 else
    6891   case "$XGETTEXT" in
    6892   /*)
    6893   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
    6894   ;;
    6895   *)
    6896   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    6897   for ac_dir in $PATH; do
    6898     test -z "$ac_dir" && ac_dir=.
    6899     if test -f $ac_dir/$ac_word; then
    6900       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
    6901      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
    6902         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
    6903         break
    6904       fi
    6905     fi
    6906   done
    6907   IFS="$ac_save_ifs"
    6908   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
    6909   ;;
    6910 esac
    6911 fi
    6912 XGETTEXT="$ac_cv_path_XGETTEXT"
    6913 if test "$XGETTEXT" != ":"; then
    6914   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
    6915 echo "${ECHO_T}$XGETTEXT" >&6
    6916 else
    6917   echo "$as_me:$LINENO: result: no" >&5
    6918 echo "${ECHO_T}no" >&6
    6919 fi
    6920 
    6921     rm -f messages.po
    6922 
    6923     # Extract the first word of "msgmerge", so it can be a program name with args.
    6924 set dummy msgmerge; ac_word=$2
    6925 echo "$as_me:$LINENO: checking for $ac_word" >&5
    6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    6927 if test "${ac_cv_path_MSGMERGE+set}" = set; then
    6928   echo $ECHO_N "(cached) $ECHO_C" >&6
    6929 else
    6930   case "$MSGMERGE" in
    6931   /*)
    6932   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
    6933   ;;
    6934   *)
    6935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    6936   for ac_dir in $PATH; do
    6937     test -z "$ac_dir" && ac_dir=.
    6938     if test -f $ac_dir/$ac_word; then
    6939       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
    6940         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
    6941         break
    6942       fi
    6943     fi
    6944   done
    6945   IFS="$ac_save_ifs"
    6946   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
    6947   ;;
    6948 esac
    6949 fi
    6950 MSGMERGE="$ac_cv_path_MSGMERGE"
    6951 if test "$MSGMERGE" != ":"; then
    6952   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
    6953 echo "${ECHO_T}$MSGMERGE" >&6
    6954 else
    6955   echo "$as_me:$LINENO: result: no" >&5
    6956 echo "${ECHO_T}no" >&6
    6957 fi
    6958 
    6959 
    6960       if test "$GMSGFMT" != ":"; then
    6961             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
    6962        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
    6963       : ;
    6964     else
    6965       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
    6966       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
    6967 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
    6968       GMSGFMT=":"
    6969     fi
    6970   fi
    6971 
    6972       if test "$XGETTEXT" != ":"; then
    6973             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
    6974        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
    6975       : ;
    6976     else
    6977       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
    6978 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
    6979       XGETTEXT=":"
    6980     fi
    6981         rm -f messages.po
    6982   fi
    6983 
    6984             ac_config_commands="$ac_config_commands default-1"
    6985 
    6986 
    6987 # Make sure we can run config.sub.
    6988 $ac_config_sub sun4 >/dev/null 2>&1 ||
    6989   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    6990 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    6991    { (exit 1); exit 1; }; }
    6992 
    6993 echo "$as_me:$LINENO: checking build system type" >&5
    6994 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    6995 if test "${ac_cv_build+set}" = set; then
    6996   echo $ECHO_N "(cached) $ECHO_C" >&6
    6997 else
    6998   ac_cv_build_alias=$build_alias
    6999 test -z "$ac_cv_build_alias" &&
    7000   ac_cv_build_alias=`$ac_config_guess`
    7001 test -z "$ac_cv_build_alias" &&
    7002   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    7003 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    7004    { (exit 1); exit 1; }; }
    7005 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    7006   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    7007 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    7008    { (exit 1); exit 1; }; }
    7009 
    7010 fi
    7011 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    7012 echo "${ECHO_T}$ac_cv_build" >&6
    7013 build=$ac_cv_build
    7014 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    7015 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    7016 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    7017 
    7018 
    7019 echo "$as_me:$LINENO: checking host system type" >&5
    7020 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    7021 if test "${ac_cv_host+set}" = set; then
    7022   echo $ECHO_N "(cached) $ECHO_C" >&6
    7023 else
    7024   ac_cv_host_alias=$host_alias
    7025 test -z "$ac_cv_host_alias" &&
    7026   ac_cv_host_alias=$ac_cv_build_alias
    7027 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    7028   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    7029 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    7030    { (exit 1); exit 1; }; }
    7031 
    7032 fi
    7033 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    7034 echo "${ECHO_T}$ac_cv_host" >&6
    7035 host=$ac_cv_host
    7036 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    7037 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    7038 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    7039 
    7040 
    7041 echo "$as_me:$LINENO: checking for inline" >&5
    7042 echo $ECHO_N "checking for inline... $ECHO_C" >&6
    7043 if test "${ac_cv_c_inline+set}" = set; then
    7044   echo $ECHO_N "(cached) $ECHO_C" >&6
    7045 else
    7046   ac_cv_c_inline=no
     10233                case "$host_os" in
     10234    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     10235    *)    gl_absname_cpp="$ac_cpp" ;;
     10236  esac
     10237
     10238  case "$host_os" in
     10239    mingw*)
     10240                                          gl_dirsep_regex='[/\\]'
     10241      ;;
     10242    *)
     10243      gl_dirsep_regex='\/'
     10244      ;;
     10245  esac
     10246      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     10247  gl_header_literal_regex=`echo 'ctype.h' \
     10248                           | sed -e "$gl_make_literal_regex_sed"`
     10249  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     10250      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     10251      s|^/[^/]|//&|
     10252      p
     10253      q
     10254    }'
     10255
     10256        gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     10257  sed -n "$gl_absolute_header_sed"`
     10258
     10259          gl_header=$gl_cv_absolute_ctype_h
     10260          gl_cv_next_ctype_h='"'$gl_header'"'
     10261
     10262          ;;
     10263esac
     10264fi
     10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
     10266printf "%s\n" "$gl_cv_next_ctype_h" >&6; }
     10267     fi
     10268     NEXT_CTYPE_H=$gl_cv_next_ctype_h
     10269
     10270     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     10271       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     10272       gl_next_as_first_directive='<'ctype.h'>'
     10273     else
     10274       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     10275       gl_next_as_first_directive=$gl_cv_next_ctype_h
     10276     fi
     10277     NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
     10278
     10279
     10280
     10281
     10282
     10283
     10284
     10285
     10286
     10287
     10288
     10289  GL_GNULIB_ISBLANK=0
     10290
     10291
     10292
     10293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
     10294printf %s "checking for inline... " >&6; }
     10295if test ${ac_cv_c_inline+y}
     10296then :
     10297  printf %s "(cached) " >&6
     10298else case e in #(
     10299  e) ac_cv_c_inline=no
    704710300for ac_kw in inline __inline__ __inline; do
    7048   cat >conftest.$ac_ext <<_ACEOF
    7049 /* confdefs.h.  */
    7050 _ACEOF
    7051 cat confdefs.h >>conftest.$ac_ext
    7052 cat >>conftest.$ac_ext <<_ACEOF
     10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    705310302/* end confdefs.h.  */
    705410303#ifndef __cplusplus
    705510304typedef int foo_t;
    7056 static $ac_kw foo_t static_foo () {return 0; }
    7057 $ac_kw foo_t foo () {return 0; }
     10305static $ac_kw foo_t static_foo (void) {return 0; }
     10306$ac_kw foo_t foo (void) {return 0; }
    705810307#endif
    705910308
    706010309_ACEOF
    7061 rm -f conftest.$ac_objext
    7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7063   (eval $ac_compile) 2>conftest.er1
    7064   ac_status=$?
    7065   grep -v '^ *+' conftest.er1 >conftest.err
    7066   rm -f conftest.er1
    7067   cat conftest.err >&5
    7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7069   (exit $ac_status); } &&
    7070          { ac_try='test -z "$ac_c_werror_flag"
    7071                          || test ! -s conftest.err'
    7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7073   (eval $ac_try) 2>&5
    7074   ac_status=$?
    7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7076   (exit $ac_status); }; } &&
    7077          { ac_try='test -s conftest.$ac_objext'
    7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7079   (eval $ac_try) 2>&5
    7080   ac_status=$?
    7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7082   (exit $ac_status); }; }; then
    7083   ac_cv_c_inline=$ac_kw; break
    7084 else
    7085   echo "$as_me: failed program was:" >&5
    7086 sed 's/^/| /' conftest.$ac_ext >&5
    7087 
    7088 fi
    7089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     10310if ac_fn_c_try_compile "$LINENO"
     10311then :
     10312  ac_cv_c_inline=$ac_kw
     10313fi
     10314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     10315  test "$ac_cv_c_inline" != no && break
    709010316done
    7091 
    7092 fi
    7093 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
    7094 echo "${ECHO_T}$ac_cv_c_inline" >&6
    7095 
     10317 ;;
     10318esac
     10319fi
     10320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
     10321printf "%s\n" "$ac_cv_c_inline" >&6; }
    709610322
    709710323case $ac_cv_c_inline in
     
    711010336esac
    711110337
    7112 echo "$as_me:$LINENO: checking for off_t" >&5
    7113 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    7114 if test "${ac_cv_type_off_t+set}" = set; then
    7115   echo $ECHO_N "(cached) $ECHO_C" >&6
    7116 else
    7117   cat >conftest.$ac_ext <<_ACEOF
    7118 /* confdefs.h.  */
     10338gl_mda_defines='
     10339#if defined _WIN32 && !defined __CYGWIN__
     10340#define access    _access
     10341#define chdir     _chdir
     10342#define chmod     _chmod
     10343#define close     _close
     10344#define creat     _creat
     10345#define dup       _dup
     10346#define dup2      _dup2
     10347#define ecvt      _ecvt
     10348#define execl     _execl
     10349#define execle    _execle
     10350#define execlp    _execlp
     10351#define execv     _execv
     10352#define execve    _execve
     10353#define execvp    _execvp
     10354#define execvpe   _execvpe
     10355#define fcloseall _fcloseall
     10356#define fcvt      _fcvt
     10357#define fdopen    _fdopen
     10358#define fileno    _fileno
     10359#define gcvt      _gcvt
     10360#define getcwd    _getcwd
     10361#define getpid    _getpid
     10362#define getw      _getw
     10363#define isatty    _isatty
     10364#define j0        _j0
     10365#define j1        _j1
     10366#define jn        _jn
     10367#define lfind     _lfind
     10368#define lsearch   _lsearch
     10369#define lseek     _lseek
     10370#define memccpy   _memccpy
     10371#define mkdir     _mkdir
     10372#define mktemp    _mktemp
     10373#define open      _open
     10374#define putenv    _putenv
     10375#define putw      _putw
     10376#define read      _read
     10377#define rmdir     _rmdir
     10378#define strdup    _strdup
     10379#define swab      _swab
     10380#define tempnam   _tempnam
     10381#define tzset     _tzset
     10382#define umask     _umask
     10383#define unlink    _unlink
     10384#define utime     _utime
     10385#define wcsdup    _wcsdup
     10386#define write     _write
     10387#define y0        _y0
     10388#define y1        _y1
     10389#define yn        _yn
     10390#endif
     10391'
     10392
     10393
     10394
     10395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
     10396printf %s "checking for complete errno.h... " >&6; }
     10397if test ${gl_cv_header_errno_h_complete+y}
     10398then :
     10399  printf %s "(cached) " >&6
     10400else case e in #(
     10401  e)
     10402    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10403/* end confdefs.h.  */
     10404
     10405#include <errno.h>
     10406#if !defined ETXTBSY
     10407booboo
     10408#endif
     10409#if !defined ENOMSG
     10410booboo
     10411#endif
     10412#if !defined EIDRM
     10413booboo
     10414#endif
     10415#if !defined ENOLINK
     10416booboo
     10417#endif
     10418#if !defined EPROTO
     10419booboo
     10420#endif
     10421#if !defined EMULTIHOP
     10422booboo
     10423#endif
     10424#if !defined EBADMSG
     10425booboo
     10426#endif
     10427#if !defined EOVERFLOW
     10428booboo
     10429#endif
     10430#if !defined ENOTSUP
     10431booboo
     10432#endif
     10433#if !defined ENETRESET
     10434booboo
     10435#endif
     10436#if !defined ECONNABORTED
     10437booboo
     10438#endif
     10439#if !defined ESTALE
     10440booboo
     10441#endif
     10442#if !defined EDQUOT
     10443booboo
     10444#endif
     10445#if !defined ECANCELED
     10446booboo
     10447#endif
     10448#if !defined EOWNERDEAD
     10449booboo
     10450#endif
     10451#if !defined ENOTRECOVERABLE
     10452booboo
     10453#endif
     10454#if !defined EILSEQ
     10455booboo
     10456#endif
     10457
    711910458_ACEOF
    7120 cat confdefs.h >>conftest.$ac_ext
    7121 cat >>conftest.$ac_ext <<_ACEOF
     10459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10460  $EGREP_TRADITIONAL "booboo" >/dev/null 2>&1
     10461then :
     10462  gl_cv_header_errno_h_complete=no
     10463else case e in #(
     10464  e) gl_cv_header_errno_h_complete=yes ;;
     10465esac
     10466fi
     10467rm -rf conftest*
     10468
     10469   ;;
     10470esac
     10471fi
     10472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
     10473printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
     10474  if test $gl_cv_header_errno_h_complete = yes; then
     10475    GL_GENERATE_ERRNO_H=false
     10476  else
     10477
     10478
     10479
     10480
     10481
     10482
     10483
     10484
     10485     if test $gl_cv_have_include_next = yes; then
     10486       gl_cv_next_errno_h='<'errno.h'>'
     10487     else
     10488       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
     10489printf %s "checking absolute name of <errno.h>... " >&6; }
     10490if test ${gl_cv_next_errno_h+y}
     10491then :
     10492  printf %s "(cached) " >&6
     10493else case e in #(
     10494  e)
     10495
     10496
     10497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    712210498/* end confdefs.h.  */
    7123 $ac_includes_default
     10499#include <errno.h>
     10500_ACEOF
     10501                case "$host_os" in
     10502    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     10503    *)    gl_absname_cpp="$ac_cpp" ;;
     10504  esac
     10505
     10506  case "$host_os" in
     10507    mingw*)
     10508                                          gl_dirsep_regex='[/\\]'
     10509      ;;
     10510    *)
     10511      gl_dirsep_regex='\/'
     10512      ;;
     10513  esac
     10514      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     10515  gl_header_literal_regex=`echo 'errno.h' \
     10516                           | sed -e "$gl_make_literal_regex_sed"`
     10517  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     10518      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     10519      s|^/[^/]|//&|
     10520      p
     10521      q
     10522    }'
     10523
     10524        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     10525  sed -n "$gl_absolute_header_sed"`
     10526
     10527          gl_header=$gl_cv_absolute_errno_h
     10528          gl_cv_next_errno_h='"'$gl_header'"'
     10529
     10530          ;;
     10531esac
     10532fi
     10533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
     10534printf "%s\n" "$gl_cv_next_errno_h" >&6; }
     10535     fi
     10536     NEXT_ERRNO_H=$gl_cv_next_errno_h
     10537
     10538     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     10539       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     10540       gl_next_as_first_directive='<'errno.h'>'
     10541     else
     10542       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     10543       gl_next_as_first_directive=$gl_cv_next_errno_h
     10544     fi
     10545     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
     10546
     10547
     10548
     10549
     10550    GL_GENERATE_ERRNO_H=true
     10551  fi
     10552
     10553  if $GL_GENERATE_ERRNO_H; then
     10554    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
     10555printf %s "checking for EMULTIHOP value... " >&6; }
     10556if test ${gl_cv_header_errno_h_EMULTIHOP+y}
     10557then :
     10558  printf %s "(cached) " >&6
     10559else case e in #(
     10560  e)
     10561      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10562/* end confdefs.h.  */
     10563
     10564#include <errno.h>
     10565#ifdef EMULTIHOP
     10566yes
     10567#endif
     10568
     10569_ACEOF
     10570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10571  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10572then :
     10573  gl_cv_header_errno_h_EMULTIHOP=yes
     10574else case e in #(
     10575  e) gl_cv_header_errno_h_EMULTIHOP=no ;;
     10576esac
     10577fi
     10578rm -rf conftest*
     10579
     10580      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
     10581        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10582/* end confdefs.h.  */
     10583
     10584#define _XOPEN_SOURCE_EXTENDED 1
     10585#include <errno.h>
     10586#ifdef EMULTIHOP
     10587yes
     10588#endif
     10589
     10590_ACEOF
     10591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10592  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10593then :
     10594  gl_cv_header_errno_h_EMULTIHOP=hidden
     10595fi
     10596rm -rf conftest*
     10597
     10598        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
     10599                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
     10600#define _XOPEN_SOURCE_EXTENDED 1
     10601#include <errno.h>
     10602/* The following two lines are a workaround against an autoconf-2.52 bug.  */
     10603#include <stdio.h>
     10604#include <stdlib.h>
     10605"
     10606then :
     10607
     10608fi
     10609
     10610        fi
     10611      fi
     10612     ;;
     10613esac
     10614fi
     10615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
     10616printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
     10617    case $gl_cv_header_errno_h_EMULTIHOP in
     10618      yes | no)
     10619        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
     10620        ;;
     10621      *)
     10622        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
     10623        ;;
     10624    esac
     10625
     10626
     10627  fi
     10628
     10629
     10630  if $GL_GENERATE_ERRNO_H; then
     10631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
     10632printf %s "checking for ENOLINK value... " >&6; }
     10633if test ${gl_cv_header_errno_h_ENOLINK+y}
     10634then :
     10635  printf %s "(cached) " >&6
     10636else case e in #(
     10637  e)
     10638      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10639/* end confdefs.h.  */
     10640
     10641#include <errno.h>
     10642#ifdef ENOLINK
     10643yes
     10644#endif
     10645
     10646_ACEOF
     10647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10648  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10649then :
     10650  gl_cv_header_errno_h_ENOLINK=yes
     10651else case e in #(
     10652  e) gl_cv_header_errno_h_ENOLINK=no ;;
     10653esac
     10654fi
     10655rm -rf conftest*
     10656
     10657      if test $gl_cv_header_errno_h_ENOLINK = no; then
     10658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10659/* end confdefs.h.  */
     10660
     10661#define _XOPEN_SOURCE_EXTENDED 1
     10662#include <errno.h>
     10663#ifdef ENOLINK
     10664yes
     10665#endif
     10666
     10667_ACEOF
     10668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10669  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10670then :
     10671  gl_cv_header_errno_h_ENOLINK=hidden
     10672fi
     10673rm -rf conftest*
     10674
     10675        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
     10676                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
     10677#define _XOPEN_SOURCE_EXTENDED 1
     10678#include <errno.h>
     10679/* The following two lines are a workaround against an autoconf-2.52 bug.  */
     10680#include <stdio.h>
     10681#include <stdlib.h>
     10682"
     10683then :
     10684
     10685fi
     10686
     10687        fi
     10688      fi
     10689     ;;
     10690esac
     10691fi
     10692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
     10693printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
     10694    case $gl_cv_header_errno_h_ENOLINK in
     10695      yes | no)
     10696        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
     10697        ;;
     10698      *)
     10699        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
     10700        ;;
     10701    esac
     10702
     10703
     10704  fi
     10705
     10706
     10707  if $GL_GENERATE_ERRNO_H; then
     10708    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
     10709printf %s "checking for EOVERFLOW value... " >&6; }
     10710if test ${gl_cv_header_errno_h_EOVERFLOW+y}
     10711then :
     10712  printf %s "(cached) " >&6
     10713else case e in #(
     10714  e)
     10715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10716/* end confdefs.h.  */
     10717
     10718#include <errno.h>
     10719#ifdef EOVERFLOW
     10720yes
     10721#endif
     10722
     10723_ACEOF
     10724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10725  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10726then :
     10727  gl_cv_header_errno_h_EOVERFLOW=yes
     10728else case e in #(
     10729  e) gl_cv_header_errno_h_EOVERFLOW=no ;;
     10730esac
     10731fi
     10732rm -rf conftest*
     10733
     10734      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
     10735        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10736/* end confdefs.h.  */
     10737
     10738#define _XOPEN_SOURCE_EXTENDED 1
     10739#include <errno.h>
     10740#ifdef EOVERFLOW
     10741yes
     10742#endif
     10743
     10744_ACEOF
     10745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     10746  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
     10747then :
     10748  gl_cv_header_errno_h_EOVERFLOW=hidden
     10749fi
     10750rm -rf conftest*
     10751
     10752        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
     10753                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
     10754#define _XOPEN_SOURCE_EXTENDED 1
     10755#include <errno.h>
     10756/* The following two lines are a workaround against an autoconf-2.52 bug.  */
     10757#include <stdio.h>
     10758#include <stdlib.h>
     10759"
     10760then :
     10761
     10762fi
     10763
     10764        fi
     10765      fi
     10766     ;;
     10767esac
     10768fi
     10769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
     10770printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
     10771    case $gl_cv_header_errno_h_EOVERFLOW in
     10772      yes | no)
     10773        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
     10774        ;;
     10775      *)
     10776        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
     10777        ;;
     10778    esac
     10779
     10780
     10781  fi
     10782
     10783
     10784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
     10785printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
     10786if test ${ac_cv_c_undeclared_builtin_options+y}
     10787then :
     10788  printf %s "(cached) " >&6
     10789else case e in #(
     10790  e) ac_save_CFLAGS=$CFLAGS
     10791   ac_cv_c_undeclared_builtin_options='cannot detect'
     10792   for ac_arg in '' -fno-builtin; do
     10793     CFLAGS="$ac_save_CFLAGS $ac_arg"
     10794     # This test program should *not* compile successfully.
     10795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10796/* end confdefs.h.  */
     10797
    712410798int
    7125 main ()
     10799main (void)
    712610800{
    7127 if ((off_t *) 0)
    7128   return 0;
    7129 if (sizeof (off_t))
    7130   return 0;
     10801(void) strchr;
    713110802  ;
    713210803  return 0;
    713310804}
    713410805_ACEOF
    7135 rm -f conftest.$ac_objext
    7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7137   (eval $ac_compile) 2>conftest.er1
    7138   ac_status=$?
    7139   grep -v '^ *+' conftest.er1 >conftest.err
    7140   rm -f conftest.er1
    7141   cat conftest.err >&5
    7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7143   (exit $ac_status); } &&
    7144          { ac_try='test -z "$ac_c_werror_flag"
    7145                          || test ! -s conftest.err'
    7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7147   (eval $ac_try) 2>&5
    7148   ac_status=$?
    7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7150   (exit $ac_status); }; } &&
    7151          { ac_try='test -s conftest.$ac_objext'
    7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7153   (eval $ac_try) 2>&5
    7154   ac_status=$?
    7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7156   (exit $ac_status); }; }; then
    7157   ac_cv_type_off_t=yes
    7158 else
    7159   echo "$as_me: failed program was:" >&5
    7160 sed 's/^/| /' conftest.$ac_ext >&5
    7161 
    7162 ac_cv_type_off_t=no
    7163 fi
    7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7165 fi
    7166 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    7167 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    7168 if test $ac_cv_type_off_t = yes; then
    7169   :
    7170 else
    7171 
    7172 cat >>confdefs.h <<_ACEOF
    7173 #define off_t long
    7174 _ACEOF
    7175 
    7176 fi
    7177 
    7178 
    7179 
    7180 for ac_header in stdlib.h unistd.h
    7181 do
    7182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    7184   echo "$as_me:$LINENO: checking for $ac_header" >&5
    7185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    7186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    7187   echo $ECHO_N "(cached) $ECHO_C" >&6
    7188 fi
    7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    7190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    7191 else
    7192   # Is the header compilable?
    7193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    7194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    7195 cat >conftest.$ac_ext <<_ACEOF
    7196 /* confdefs.h.  */
    7197 _ACEOF
    7198 cat confdefs.h >>conftest.$ac_ext
    7199 cat >>conftest.$ac_ext <<_ACEOF
     10806if ac_fn_c_try_compile "$LINENO"
     10807then :
     10808
     10809else case e in #(
     10810  e) # This test program should compile successfully.
     10811        # No library function is consistently available on
     10812        # freestanding implementations, so test against a dummy
     10813        # declaration.  Include always-available headers on the
     10814        # off chance that they somehow elicit warnings.
     10815        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    720010816/* end confdefs.h.  */
    7201 $ac_includes_default
    7202 #include <$ac_header>
    7203 _ACEOF
    7204 rm -f conftest.$ac_objext
    7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7206   (eval $ac_compile) 2>conftest.er1
    7207   ac_status=$?
    7208   grep -v '^ *+' conftest.er1 >conftest.err
    7209   rm -f conftest.er1
    7210   cat conftest.err >&5
    7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7212   (exit $ac_status); } &&
    7213          { ac_try='test -z "$ac_c_werror_flag"
    7214                          || test ! -s conftest.err'
    7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7216   (eval $ac_try) 2>&5
    7217   ac_status=$?
    7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7219   (exit $ac_status); }; } &&
    7220          { ac_try='test -s conftest.$ac_objext'
    7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7222   (eval $ac_try) 2>&5
    7223   ac_status=$?
    7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7225   (exit $ac_status); }; }; then
    7226   ac_header_compiler=yes
    7227 else
    7228   echo "$as_me: failed program was:" >&5
    7229 sed 's/^/| /' conftest.$ac_ext >&5
    7230 
    7231 ac_header_compiler=no
    7232 fi
    7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    7235 echo "${ECHO_T}$ac_header_compiler" >&6
    7236 
    7237 # Is the header present?
    7238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    7239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    7240 cat >conftest.$ac_ext <<_ACEOF
    7241 /* confdefs.h.  */
    7242 _ACEOF
    7243 cat confdefs.h >>conftest.$ac_ext
    7244 cat >>conftest.$ac_ext <<_ACEOF
    7245 /* end confdefs.h.  */
    7246 #include <$ac_header>
    7247 _ACEOF
    7248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    7249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    7250   ac_status=$?
    7251   grep -v '^ *+' conftest.er1 >conftest.err
    7252   rm -f conftest.er1
    7253   cat conftest.err >&5
    7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7255   (exit $ac_status); } >/dev/null; then
    7256   if test -s conftest.err; then
    7257     ac_cpp_err=$ac_c_preproc_warn_flag
    7258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    7259   else
    7260     ac_cpp_err=
    7261   fi
    7262 else
    7263   ac_cpp_err=yes
    7264 fi
    7265 if test -z "$ac_cpp_err"; then
    7266   ac_header_preproc=yes
    7267 else
    7268   echo "$as_me: failed program was:" >&5
    7269 sed 's/^/| /' conftest.$ac_ext >&5
    7270 
    7271   ac_header_preproc=no
    7272 fi
    7273 rm -f conftest.err conftest.$ac_ext
    7274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    7275 echo "${ECHO_T}$ac_header_preproc" >&6
    7276 
    7277 # So?  What about this header?
    7278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    7279   yes:no: )
    7280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    7281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    7282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    7283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    7284     ac_header_preproc=yes
    7285     ;;
    7286   no:yes:* )
    7287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    7288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    7289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    7290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    7291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    7292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    7293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    7294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    7295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    7297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    7298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    7299     (
    7300       cat <<\_ASBOX
    7301 ## ------------------------------ ##
    7302 ## Report this to [email protected] ##
    7303 ## ------------------------------ ##
    7304 _ASBOX
    7305     ) |
    7306       sed "s/^/$as_me: WARNING:     /" >&2
    7307     ;;
    7308 esac
    7309 echo "$as_me:$LINENO: checking for $ac_header" >&5
    7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    7312   echo $ECHO_N "(cached) $ECHO_C" >&6
    7313 else
    7314   eval "$as_ac_Header=\$ac_header_preproc"
    7315 fi
    7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    7318 
    7319 fi
    7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    7321   cat >>confdefs.h <<_ACEOF
    7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    7323 _ACEOF
    7324 
    7325 fi
    7326 
    7327 done
    7328 
    7329 
    7330 for ac_func in getpagesize
    7331 do
    7332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    7333 echo "$as_me:$LINENO: checking for $ac_func" >&5
    7334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    7335 if eval "test \"\${$as_ac_var+set}\" = set"; then
    7336   echo $ECHO_N "(cached) $ECHO_C" >&6
    7337 else
    7338   cat >conftest.$ac_ext <<_ACEOF
    7339 /* confdefs.h.  */
    7340 _ACEOF
    7341 cat confdefs.h >>conftest.$ac_ext
    7342 cat >>conftest.$ac_ext <<_ACEOF
    7343 /* end confdefs.h.  */
    7344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    7345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7346 #define $ac_func innocuous_$ac_func
    7347 
    7348 /* System header to define __stub macros and hopefully few prototypes,
    7349     which can conflict with char $ac_func (); below.
    7350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7351     <limits.h> exists even on freestanding compilers.  */
    7352 
    7353 #ifdef __STDC__
    7354 # include <limits.h>
    7355 #else
    7356 # include <assert.h>
    7357 #endif
    7358 
    7359 #undef $ac_func
    7360 
    7361 /* Override any gcc2 internal prototype to avoid an error.  */
    7362 #ifdef __cplusplus
    7363 extern "C"
     10817#include <float.h>
     10818#include <limits.h>
     10819#include <stdarg.h>
     10820#include <stddef.h>
     10821extern void ac_decl (int, char *);
     10822
     10823int
     10824main (void)
    736410825{
    7365 #endif
    7366 /* We use char because int might match the return type of a gcc2
    7367    builtin and then its argument prototype would still apply.  */
    7368 char $ac_func ();
    7369 /* The GNU C library defines this for functions which it implements
    7370     to always fail with ENOSYS.  Some functions are actually named
    7371     something starting with __ and the normal name is an alias.  */
    7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    7373 choke me
    7374 #else
    7375 char (*f) () = $ac_func;
    7376 #endif
    7377 #ifdef __cplusplus
    7378 }
    7379 #endif
    7380 
    7381 int
    7382 main ()
    7383 {
    7384 return f != $ac_func;
     10826(void) ac_decl (0, (char *) 0);
     10827  (void) ac_decl;
     10828
    738510829  ;
    738610830  return 0;
    738710831}
    738810832_ACEOF
    7389 rm -f conftest.$ac_objext conftest$ac_exeext
    7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7391   (eval $ac_link) 2>conftest.er1
     10833if ac_fn_c_try_compile "$LINENO"
     10834then :
     10835  if test x"$ac_arg" = x
     10836then :
     10837  ac_cv_c_undeclared_builtin_options='none needed'
     10838else case e in #(
     10839  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
     10840esac
     10841fi
     10842          break
     10843fi
     10844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     10845esac
     10846fi
     10847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     10848    done
     10849    CFLAGS=$ac_save_CFLAGS
     10850   ;;
     10851esac
     10852fi
     10853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
     10854printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
     10855  case $ac_cv_c_undeclared_builtin_options in #(
     10856  'cannot detect') :
     10857    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     10858printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     10859as_fn_error $? "cannot make $CC report undeclared builtins
     10860See 'config.log' for more details" "$LINENO" 5; } ;; #(
     10861  'none needed') :
     10862    ac_c_undeclared_builtin_options='' ;; #(
     10863  *) :
     10864    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
     10865esac
     10866
     10867ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     10868if test "x$ac_cv_have_decl_strerror_r" = xyes
     10869then :
     10870  ac_have_decl=1
     10871else case e in #(
     10872  e) ac_have_decl=0 ;;
     10873esac
     10874fi
     10875printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
     10876
     10877
     10878if test $ac_cv_have_decl_strerror_r = yes; then
     10879  # For backward compatibility's sake, define HAVE_STRERROR_R.
     10880  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
     10881  # as AC_CHECK_DECLS_ONCE.)
     10882
     10883printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
     10884
     10885fi
     10886
     10887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
     10888printf %s "checking whether strerror_r returns char *... " >&6; }
     10889if test ${ac_cv_func_strerror_r_char_p+y}
     10890then :
     10891  printf %s "(cached) " >&6
     10892else case e in #(
     10893  e)
     10894    ac_cv_func_strerror_r_char_p=no
     10895    if test $ac_cv_have_decl_strerror_r = yes; then
     10896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10897/* end confdefs.h.  */
     10898#include <string.h>
     10899int
     10900main (void)
     10901{
     10902
     10903          char buf[100];
     10904          char x = *strerror_r (0, buf, sizeof buf);
     10905          char *p = strerror_r (0, buf, sizeof buf);
     10906          return !p || x;
     10907
     10908  ;
     10909  return 0;
     10910}
     10911_ACEOF
     10912if ac_fn_c_try_compile "$LINENO"
     10913then :
     10914  ac_cv_func_strerror_r_char_p=yes
     10915fi
     10916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     10917
     10918    fi
     10919   ;;
     10920esac
     10921fi
     10922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
     10923printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
     10924if test $ac_cv_func_strerror_r_char_p = yes; then
     10925
     10926printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
     10927
     10928fi
     10929
     10930
     10931  XGETTEXT_EXTRA_OPTIONS=
     10932
     10933
     10934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
     10935printf %s "checking whether ctype.h defines __header_inline... " >&6; }
     10936if test ${gl_cv_have___header_inline+y}
     10937then :
     10938  printf %s "(cached) " >&6
     10939else case e in #(
     10940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10941/* end confdefs.h.  */
     10942#include <ctype.h>
     10943                         #ifndef __header_inline
     10944                          #error "<ctype.h> does not define __header_inline"
     10945                         #endif
     10946
     10947_ACEOF
     10948if ac_fn_c_try_cpp "$LINENO"
     10949then :
     10950  gl_cv_have___header_inline=yes
     10951else case e in #(
     10952  e) gl_cv_have___header_inline=no ;;
     10953esac
     10954fi
     10955rm -f conftest.err conftest.i conftest.$ac_ext ;;
     10956esac
     10957fi
     10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
     10959printf "%s\n" "$gl_cv_have___header_inline" >&6; }
     10960  if test "$gl_cv_have___header_inline" = yes; then
     10961
     10962printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
     10963
     10964  fi
     10965
     10966
     10967
     10968
     10969    HAVE_FCNTL=1;
     10970  HAVE_OPENAT=1;
     10971  REPLACE_CREAT=0;
     10972  REPLACE_FCNTL=0;
     10973  REPLACE_OPEN=0;
     10974  REPLACE_OPENAT=0;
     10975
     10976
     10977
     10978
     10979  GL_GNULIB_CREAT=0
     10980
     10981
     10982
     10983  GL_GNULIB_FCNTL=0
     10984
     10985
     10986
     10987  GL_GNULIB_NONBLOCKING=0
     10988
     10989
     10990
     10991  GL_GNULIB_OPEN=0
     10992
     10993
     10994
     10995  GL_GNULIB_OPENAT=0
     10996
     10997
     10998
     10999  GL_GNULIB_MDA_CREAT=1
     11000
     11001
     11002
     11003  GL_GNULIB_MDA_OPEN=1
     11004
     11005
     11006
     11007
     11008
     11009
     11010
     11011
     11012
     11013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
     11014printf %s "checking for working fcntl.h... " >&6; }
     11015if test ${gl_cv_header_working_fcntl_h+y}
     11016then :
     11017  printf %s "(cached) " >&6
     11018else case e in #(
     11019  e) if test "$cross_compiling" = yes
     11020then :
     11021  case "$host_os" in
     11022                  # Guess 'no' on native Windows.
     11023          mingw*) gl_cv_header_working_fcntl_h='no' ;;
     11024          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
     11025        esac
     11026
     11027else case e in #(
     11028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11029/* end confdefs.h.  */
     11030#include <sys/types.h>
     11031           #include <sys/stat.h>
     11032           #if HAVE_UNISTD_H
     11033           # include <unistd.h>
     11034           #else /* on Windows with MSVC */
     11035           # include <io.h>
     11036           # include <stdlib.h>
     11037           # defined sleep(n) _sleep ((n) * 1000)
     11038           #endif
     11039           #include <fcntl.h>
     11040
     11041
     11042$gl_mda_defines
     11043
     11044           #ifndef O_NOATIME
     11045            #define O_NOATIME 0
     11046           #endif
     11047           #ifndef O_NOFOLLOW
     11048            #define O_NOFOLLOW 0
     11049           #endif
     11050           static int const constants[] =
     11051            {
     11052              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
     11053              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
     11054            };
     11055
     11056int
     11057main (void)
     11058{
     11059
     11060            int result = !constants;
     11061            #if HAVE_SYMLINK
     11062            {
     11063              static char const sym[] = "conftest.sym";
     11064              if (symlink ("/dev/null", sym) != 0)
     11065                result |= 2;
     11066              else
     11067                {
     11068                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
     11069                  if (fd >= 0)
     11070                    {
     11071                      close (fd);
     11072                      result |= 4;
     11073                    }
     11074                }
     11075              if (unlink (sym) != 0 || symlink (".", sym) != 0)
     11076                result |= 2;
     11077              else
     11078                {
     11079                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
     11080                  if (fd >= 0)
     11081                    {
     11082                      close (fd);
     11083                      result |= 4;
     11084                    }
     11085                }
     11086              unlink (sym);
     11087            }
     11088            #endif
     11089            {
     11090              static char const file[] = "confdefs.h";
     11091              int fd = open (file, O_RDONLY | O_NOATIME);
     11092              if (fd < 0)
     11093                result |= 8;
     11094              else
     11095                {
     11096                  struct stat st0;
     11097                  if (fstat (fd, &st0) != 0)
     11098                    result |= 16;
     11099                  else
     11100                    {
     11101                      char c;
     11102                      sleep (1);
     11103                      if (read (fd, &c, 1) != 1)
     11104                        result |= 24;
     11105                      else
     11106                        {
     11107                          if (close (fd) != 0)
     11108                            result |= 32;
     11109                          else
     11110                            {
     11111                              struct stat st1;
     11112                              if (stat (file, &st1) != 0)
     11113                                result |= 40;
     11114                              else
     11115                                if (st0.st_atime != st1.st_atime)
     11116                                  result |= 64;
     11117                            }
     11118                        }
     11119                    }
     11120                }
     11121            }
     11122            return result;
     11123  ;
     11124  return 0;
     11125}
     11126_ACEOF
     11127if ac_fn_c_try_run "$LINENO"
     11128then :
     11129  gl_cv_header_working_fcntl_h=yes
     11130else case e in #(
     11131  e) case $? in #(
     11132        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
     11133        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
     11134        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
     11135         *) gl_cv_header_working_fcntl_h='no';;
     11136        esac ;;
     11137esac
     11138fi
     11139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     11140  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     11141esac
     11142fi
     11143
     11144     ;;
     11145esac
     11146fi
     11147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
     11148printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
     11149
     11150  case $gl_cv_header_working_fcntl_h in #(
     11151  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
     11152  *) ac_val=1;;
     11153  esac
     11154
     11155printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
     11156
     11157
     11158  case $gl_cv_header_working_fcntl_h in #(
     11159  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
     11160  *) ac_val=1;;
     11161  esac
     11162
     11163printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
     11164
     11165
     11166
     11167  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
     11168"
     11169if test "x$ac_cv_type_pid_t" = xyes
     11170then :
     11171
     11172else case e in #(
     11173  e)                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11174/* end confdefs.h.  */
     11175
     11176          #if defined _WIN64 && !defined __CYGWIN__
     11177          LLP64
     11178          #endif
     11179
     11180int
     11181main (void)
     11182{
     11183
     11184  ;
     11185  return 0;
     11186}
     11187
     11188_ACEOF
     11189if ac_fn_c_try_compile "$LINENO"
     11190then :
     11191  ac_pid_type='int'
     11192else case e in #(
     11193  e) ac_pid_type='__int64' ;;
     11194esac
     11195fi
     11196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     11197
     11198printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
     11199
     11200     ;;
     11201esac
     11202fi
     11203
     11204
     11205ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
     11206if test "x$ac_cv_type_mode_t" = xyes
     11207then :
     11208
     11209else case e in #(
     11210  e)
     11211printf "%s\n" "#define mode_t int" >>confdefs.h
     11212 ;;
     11213esac
     11214fi
     11215
     11216
     11217
     11218
     11219
     11220
     11221
     11222
     11223
     11224
     11225
     11226
     11227     if test $gl_cv_have_include_next = yes; then
     11228       gl_cv_next_fcntl_h='<'fcntl.h'>'
     11229     else
     11230       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
     11231printf %s "checking absolute name of <fcntl.h>... " >&6; }
     11232if test ${gl_cv_next_fcntl_h+y}
     11233then :
     11234  printf %s "(cached) " >&6
     11235else case e in #(
     11236  e)
     11237
     11238
     11239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11240/* end confdefs.h.  */
     11241#include <fcntl.h>
     11242_ACEOF
     11243                case "$host_os" in
     11244    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     11245    *)    gl_absname_cpp="$ac_cpp" ;;
     11246  esac
     11247
     11248  case "$host_os" in
     11249    mingw*)
     11250                                          gl_dirsep_regex='[/\\]'
     11251      ;;
     11252    *)
     11253      gl_dirsep_regex='\/'
     11254      ;;
     11255  esac
     11256      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     11257  gl_header_literal_regex=`echo 'fcntl.h' \
     11258                           | sed -e "$gl_make_literal_regex_sed"`
     11259  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     11260      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     11261      s|^/[^/]|//&|
     11262      p
     11263      q
     11264    }'
     11265
     11266        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     11267  sed -n "$gl_absolute_header_sed"`
     11268
     11269          gl_header=$gl_cv_absolute_fcntl_h
     11270          gl_cv_next_fcntl_h='"'$gl_header'"'
     11271
     11272          ;;
     11273esac
     11274fi
     11275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
     11276printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
     11277     fi
     11278     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
     11279
     11280     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     11281       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     11282       gl_next_as_first_directive='<'fcntl.h'>'
     11283     else
     11284       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     11285       gl_next_as_first_directive=$gl_cv_next_fcntl_h
     11286     fi
     11287     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
     11288
     11289
     11290
     11291
     11292
     11293
     11294
     11295
     11296
     11297
     11298
     11299
     11300
     11301
     11302
     11303    HAVE_FCHMODAT=1;
     11304  HAVE_FSTATAT=1;
     11305  HAVE_FUTIMENS=1;
     11306  HAVE_GETUMASK=1;
     11307  HAVE_LCHMOD=1;
     11308  HAVE_LSTAT=1;
     11309  HAVE_MKDIRAT=1;
     11310  HAVE_MKFIFO=1;
     11311  HAVE_MKFIFOAT=1;
     11312  HAVE_MKNOD=1;
     11313  HAVE_MKNODAT=1;
     11314  HAVE_UTIMENSAT=1;
     11315  REPLACE_CHMOD=0;
     11316  REPLACE_FCHMODAT=0;
     11317  REPLACE_FSTAT=0;
     11318  REPLACE_FSTATAT=0;
     11319  REPLACE_FUTIMENS=0;
     11320  REPLACE_LSTAT=0;
     11321  REPLACE_MKDIR=0;
     11322  REPLACE_MKFIFO=0;
     11323  REPLACE_MKFIFOAT=0;
     11324  REPLACE_MKNOD=0;
     11325  REPLACE_MKNODAT=0;
     11326  REPLACE_STAT=0;
     11327  REPLACE_UTIMENSAT=0;
     11328
     11329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
     11330printf %s "checking whether stat file-mode macros are broken... " >&6; }
     11331if test ${ac_cv_header_stat_broken+y}
     11332then :
     11333  printf %s "(cached) " >&6
     11334else case e in #(
     11335  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11336/* end confdefs.h.  */
     11337#include <sys/types.h>
     11338#include <sys/stat.h>
     11339
     11340#if defined S_ISBLK && defined S_IFDIR
     11341extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
     11342#endif
     11343
     11344#if defined S_ISBLK && defined S_IFCHR
     11345extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
     11346#endif
     11347
     11348#if defined S_ISLNK && defined S_IFREG
     11349extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
     11350#endif
     11351
     11352#if defined S_ISSOCK && defined S_IFREG
     11353extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
     11354#endif
     11355
     11356_ACEOF
     11357if ac_fn_c_try_compile "$LINENO"
     11358then :
     11359  ac_cv_header_stat_broken=no
     11360else case e in #(
     11361  e) ac_cv_header_stat_broken=yes ;;
     11362esac
     11363fi
     11364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     11365esac
     11366fi
     11367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
     11368printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
     11369if test $ac_cv_header_stat_broken = yes; then
     11370
     11371printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
     11372
     11373fi
     11374
     11375
     11376
     11377  case "$host_os" in
     11378    mingw*)
     11379                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
     11380printf %s "checking for 64-bit off_t... " >&6; }
     11381if test ${gl_cv_type_off_t_64+y}
     11382then :
     11383  printf %s "(cached) " >&6
     11384else case e in #(
     11385  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11386/* end confdefs.h.  */
     11387#include <sys/types.h>
     11388                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
     11389
     11390int
     11391main (void)
     11392{
     11393
     11394  ;
     11395  return 0;
     11396}
     11397_ACEOF
     11398if ac_fn_c_try_compile "$LINENO"
     11399then :
     11400  gl_cv_type_off_t_64=yes
     11401else case e in #(
     11402  e) gl_cv_type_off_t_64=no ;;
     11403esac
     11404fi
     11405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     11406         ;;
     11407esac
     11408fi
     11409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
     11410printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
     11411      if test $gl_cv_type_off_t_64 = no; then
     11412        WINDOWS_64_BIT_OFF_T=1
     11413      else
     11414        WINDOWS_64_BIT_OFF_T=0
     11415      fi
     11416                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
     11417printf %s "checking for 64-bit st_size... " >&6; }
     11418if test ${gl_cv_member_st_size_64+y}
     11419then :
     11420  printf %s "(cached) " >&6
     11421else case e in #(
     11422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11423/* end confdefs.h.  */
     11424#include <sys/types.h>
     11425                struct stat buf;
     11426                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
     11427
     11428int
     11429main (void)
     11430{
     11431
     11432  ;
     11433  return 0;
     11434}
     11435_ACEOF
     11436if ac_fn_c_try_compile "$LINENO"
     11437then :
     11438  gl_cv_member_st_size_64=yes
     11439else case e in #(
     11440  e) gl_cv_member_st_size_64=no ;;
     11441esac
     11442fi
     11443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     11444         ;;
     11445esac
     11446fi
     11447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
     11448printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
     11449      if test $gl_cv_member_st_size_64 = no; then
     11450        WINDOWS_64_BIT_ST_SIZE=1
     11451      else
     11452        WINDOWS_64_BIT_ST_SIZE=0
     11453      fi
     11454      ;;
     11455    *)
     11456                                                      WINDOWS_64_BIT_OFF_T=0
     11457      WINDOWS_64_BIT_ST_SIZE=0
     11458      ;;
     11459  esac
     11460
     11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
     11462printf %s "checking for C/C++ restrict keyword... " >&6; }
     11463if test ${ac_cv_c_restrict+y}
     11464then :
     11465  printf %s "(cached) " >&6
     11466else case e in #(
     11467  e) ac_cv_c_restrict=no
     11468   # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
     11469   # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
     11470   # Put 'restrict' last, because C++ lacks it.
     11471   for ac_kw in __restrict__ __restrict _Restrict restrict; do
     11472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11473/* end confdefs.h.  */
     11474typedef int *int_ptr;
     11475           int foo (int_ptr $ac_kw ip) { return ip[0]; }
     11476           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
     11477           int bar (int ip[$ac_kw]) { return ip[0]; }
     11478
     11479int
     11480main (void)
     11481{
     11482int s[1];
     11483           int *$ac_kw t = s;
     11484           t[0] = 0;
     11485           return foo (t) + bar (t);
     11486
     11487  ;
     11488  return 0;
     11489}
     11490_ACEOF
     11491if ac_fn_c_try_compile "$LINENO"
     11492then :
     11493  ac_cv_c_restrict=$ac_kw
     11494fi
     11495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     11496     test "$ac_cv_c_restrict" != no && break
     11497   done
     11498   ;;
     11499esac
     11500fi
     11501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
     11502printf "%s\n" "$ac_cv_c_restrict" >&6; }
     11503
     11504 case $ac_cv_c_restrict in
     11505   restrict) ;;
     11506   no) printf "%s\n" "#define restrict /**/" >>confdefs.h
     11507 ;;
     11508   *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
     11509 ;;
     11510 esac
     11511
     11512
     11513
     11514
     11515
     11516
     11517
     11518
     11519
     11520
     11521
     11522
     11523
     11524
     11525
     11526     if test $gl_cv_have_include_next = yes; then
     11527       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
     11528     else
     11529       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
     11530printf %s "checking absolute name of <sys/stat.h>... " >&6; }
     11531if test ${gl_cv_next_sys_stat_h+y}
     11532then :
     11533  printf %s "(cached) " >&6
     11534else case e in #(
     11535  e)
     11536             if test $ac_cv_header_sys_stat_h = yes; then
     11537
     11538
     11539
     11540
     11541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11542/* end confdefs.h.  */
     11543#include <sys/stat.h>
     11544_ACEOF
     11545                case "$host_os" in
     11546    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     11547    *)    gl_absname_cpp="$ac_cpp" ;;
     11548  esac
     11549
     11550  case "$host_os" in
     11551    mingw*)
     11552                                          gl_dirsep_regex='[/\\]'
     11553      ;;
     11554    *)
     11555      gl_dirsep_regex='\/'
     11556      ;;
     11557  esac
     11558      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     11559  gl_header_literal_regex=`echo 'sys/stat.h' \
     11560                           | sed -e "$gl_make_literal_regex_sed"`
     11561  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     11562      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     11563      s|^/[^/]|//&|
     11564      p
     11565      q
     11566    }'
     11567
     11568        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     11569  sed -n "$gl_absolute_header_sed"`
     11570
     11571          gl_header=$gl_cv_absolute_sys_stat_h
     11572          gl_cv_next_sys_stat_h='"'$gl_header'"'
     11573          else
     11574               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
     11575             fi
     11576
     11577          ;;
     11578esac
     11579fi
     11580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
     11581printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
     11582     fi
     11583     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
     11584
     11585     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     11586       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     11587       gl_next_as_first_directive='<'sys/stat.h'>'
     11588     else
     11589       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     11590       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
     11591     fi
     11592     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
     11593
     11594
     11595
     11596
     11597
     11598
     11599
     11600
     11601    WINDOWS_STAT_TIMESPEC=0
     11602
     11603
     11604
     11605
     11606
     11607
     11608
     11609
     11610      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
     11611     #include <sys/stat.h>
     11612"
     11613if test "x$ac_cv_type_nlink_t" = xyes
     11614then :
     11615
     11616else case e in #(
     11617  e)
     11618printf "%s\n" "#define nlink_t int" >>confdefs.h
     11619 ;;
     11620esac
     11621fi
     11622
     11623
     11624
     11625
     11626
     11627
     11628
     11629
     11630
     11631
     11632  case "$host_os" in
     11633    mingw*)
     11634      ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
     11635if test "x$ac_cv_header_sdkddkver_h" = xyes
     11636then :
     11637  printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
     11638
     11639fi
     11640
     11641      ;;
     11642  esac
     11643
     11644
     11645
     11646
     11647
     11648
     11649
     11650  GL_GNULIB_CHMOD=0
     11651
     11652
     11653
     11654  GL_GNULIB_FCHMODAT=0
     11655
     11656
     11657
     11658  GL_GNULIB_FSTAT=0
     11659
     11660
     11661
     11662  GL_GNULIB_FSTATAT=0
     11663
     11664
     11665
     11666  GL_GNULIB_FUTIMENS=0
     11667
     11668
     11669
     11670  GL_GNULIB_GETUMASK=0
     11671
     11672
     11673
     11674  GL_GNULIB_LCHMOD=0
     11675
     11676
     11677
     11678  GL_GNULIB_LSTAT=0
     11679
     11680
     11681
     11682  GL_GNULIB_MKDIR=0
     11683
     11684
     11685
     11686  GL_GNULIB_MKDIRAT=0
     11687
     11688
     11689
     11690  GL_GNULIB_MKFIFO=0
     11691
     11692
     11693
     11694  GL_GNULIB_MKFIFOAT=0
     11695
     11696
     11697
     11698  GL_GNULIB_MKNOD=0
     11699
     11700
     11701
     11702  GL_GNULIB_MKNODAT=0
     11703
     11704
     11705
     11706  GL_GNULIB_STAT=0
     11707
     11708
     11709
     11710  GL_GNULIB_UTIMENSAT=0
     11711
     11712
     11713
     11714  GL_GNULIB_OVERRIDES_STRUCT_STAT=0
     11715
     11716
     11717
     11718  GL_GNULIB_MDA_CHMOD=1
     11719
     11720
     11721
     11722  GL_GNULIB_MDA_MKDIR=1
     11723
     11724
     11725
     11726  GL_GNULIB_MDA_UMASK=1
     11727
     11728
     11729
     11730
     11731
     11732    HAVE_DECL_FCLOSEALL=1;
     11733  HAVE_DECL_FPURGE=1;
     11734  HAVE_DECL_FSEEKO=1;
     11735  HAVE_DECL_FTELLO=1;
     11736  HAVE_DECL_GETDELIM=1;
     11737  HAVE_DECL_GETLINE=1;
     11738  HAVE_DECL_OBSTACK_PRINTF=1;
     11739  HAVE_DECL_SNPRINTF=1;
     11740  HAVE_DECL_VSNPRINTF=1;
     11741  HAVE_DPRINTF=1;
     11742  HAVE_FSEEKO=1;
     11743  HAVE_FTELLO=1;
     11744  HAVE_PCLOSE=1;
     11745  HAVE_POPEN=1;
     11746  HAVE_RENAMEAT=1;
     11747  HAVE_VASPRINTF=1;
     11748  HAVE_VDPRINTF=1;
     11749  REPLACE_DPRINTF=0;
     11750  REPLACE_FCLOSE=0;
     11751  REPLACE_FDOPEN=0;
     11752  REPLACE_FFLUSH=0;
     11753  REPLACE_FOPEN=0;
     11754  REPLACE_FOPEN_FOR_FOPEN_GNU=0;
     11755  REPLACE_FPRINTF=0;
     11756  REPLACE_FPURGE=0;
     11757  REPLACE_FREOPEN=0;
     11758  REPLACE_FSEEK=0;
     11759  REPLACE_FSEEKO=0;
     11760  REPLACE_FTELL=0;
     11761  REPLACE_FTELLO=0;
     11762  REPLACE_GETDELIM=0;
     11763  REPLACE_GETLINE=0;
     11764  REPLACE_OBSTACK_PRINTF=0;
     11765  REPLACE_PERROR=0;
     11766  REPLACE_POPEN=0;
     11767  REPLACE_PRINTF=0;
     11768  REPLACE_REMOVE=0;
     11769  REPLACE_RENAME=0;
     11770  REPLACE_RENAMEAT=0;
     11771  REPLACE_SNPRINTF=0;
     11772  REPLACE_SPRINTF=0;
     11773  REPLACE_STDIO_READ_FUNCS=0;
     11774  REPLACE_STDIO_WRITE_FUNCS=0;
     11775  REPLACE_TMPFILE=0;
     11776  REPLACE_VASPRINTF=0;
     11777  REPLACE_VDPRINTF=0;
     11778  REPLACE_VFPRINTF=0;
     11779  REPLACE_VPRINTF=0;
     11780  REPLACE_VSNPRINTF=0;
     11781  REPLACE_VSPRINTF=0;
     11782
     11783ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     11784if test "x$ac_cv_have_decl_getdelim" = xyes
     11785then :
     11786  ac_have_decl=1
     11787else case e in #(
     11788  e) ac_have_decl=0 ;;
     11789esac
     11790fi
     11791printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
     11792
     11793
     11794
     11795
     11796  GL_GNULIB_DPRINTF=0
     11797
     11798
     11799
     11800  GL_GNULIB_FCLOSE=0
     11801
     11802
     11803
     11804  GL_GNULIB_FDOPEN=0
     11805
     11806
     11807
     11808  GL_GNULIB_FFLUSH=0
     11809
     11810
     11811
     11812  GL_GNULIB_FGETC=0
     11813
     11814
     11815
     11816  GL_GNULIB_FGETS=0
     11817
     11818
     11819
     11820  GL_GNULIB_FOPEN=0
     11821
     11822
     11823
     11824  GL_GNULIB_FOPEN_GNU=0
     11825
     11826
     11827
     11828  GL_GNULIB_FPRINTF=0
     11829
     11830
     11831
     11832  GL_GNULIB_FPRINTF_POSIX=0
     11833
     11834
     11835
     11836  GL_GNULIB_FPURGE=0
     11837
     11838
     11839
     11840  GL_GNULIB_FPUTC=0
     11841
     11842
     11843
     11844  GL_GNULIB_FPUTS=0
     11845
     11846
     11847
     11848  GL_GNULIB_FREAD=0
     11849
     11850
     11851
     11852  GL_GNULIB_FREOPEN=0
     11853
     11854
     11855
     11856  GL_GNULIB_FSCANF=0
     11857
     11858
     11859
     11860  GL_GNULIB_FSEEK=0
     11861
     11862
     11863
     11864  GL_GNULIB_FSEEKO=0
     11865
     11866
     11867
     11868  GL_GNULIB_FTELL=0
     11869
     11870
     11871
     11872  GL_GNULIB_FTELLO=0
     11873
     11874
     11875
     11876  GL_GNULIB_FWRITE=0
     11877
     11878
     11879
     11880  GL_GNULIB_GETC=0
     11881
     11882
     11883
     11884  GL_GNULIB_GETCHAR=0
     11885
     11886
     11887
     11888  GL_GNULIB_GETDELIM=0
     11889
     11890
     11891
     11892  GL_GNULIB_GETLINE=0
     11893
     11894
     11895
     11896  GL_GNULIB_OBSTACK_PRINTF=0
     11897
     11898
     11899
     11900  GL_GNULIB_OBSTACK_PRINTF_POSIX=0
     11901
     11902
     11903
     11904  GL_GNULIB_PCLOSE=0
     11905
     11906
     11907
     11908  GL_GNULIB_PERROR=0
     11909
     11910
     11911
     11912  GL_GNULIB_POPEN=0
     11913
     11914
     11915
     11916  GL_GNULIB_PRINTF=0
     11917
     11918
     11919
     11920  GL_GNULIB_PRINTF_POSIX=0
     11921
     11922
     11923
     11924  GL_GNULIB_PUTC=0
     11925
     11926
     11927
     11928  GL_GNULIB_PUTCHAR=0
     11929
     11930
     11931
     11932  GL_GNULIB_PUTS=0
     11933
     11934
     11935
     11936  GL_GNULIB_REMOVE=0
     11937
     11938
     11939
     11940  GL_GNULIB_RENAME=0
     11941
     11942
     11943
     11944  GL_GNULIB_RENAMEAT=0
     11945
     11946
     11947
     11948  GL_GNULIB_SCANF=0
     11949
     11950
     11951
     11952  GL_GNULIB_SNPRINTF=0
     11953
     11954
     11955
     11956  GL_GNULIB_SPRINTF_POSIX=0
     11957
     11958
     11959
     11960  GL_GNULIB_STDIO_H_NONBLOCKING=0
     11961
     11962
     11963
     11964  GL_GNULIB_STDIO_H_SIGPIPE=0
     11965
     11966
     11967
     11968  GL_GNULIB_TMPFILE=0
     11969
     11970
     11971
     11972  GL_GNULIB_VASPRINTF=0
     11973
     11974
     11975
     11976  GL_GNULIB_VFSCANF=0
     11977
     11978
     11979
     11980  GL_GNULIB_VSCANF=0
     11981
     11982
     11983
     11984  GL_GNULIB_VDPRINTF=0
     11985
     11986
     11987
     11988  GL_GNULIB_VFPRINTF=0
     11989
     11990
     11991
     11992  GL_GNULIB_VFPRINTF_POSIX=0
     11993
     11994
     11995
     11996  GL_GNULIB_VPRINTF=0
     11997
     11998
     11999
     12000  GL_GNULIB_VPRINTF_POSIX=0
     12001
     12002
     12003
     12004  GL_GNULIB_VSNPRINTF=0
     12005
     12006
     12007
     12008  GL_GNULIB_VSPRINTF_POSIX=0
     12009
     12010
     12011
     12012  GL_GNULIB_MDA_FCLOSEALL=1
     12013
     12014
     12015
     12016  GL_GNULIB_MDA_FDOPEN=1
     12017
     12018
     12019
     12020  GL_GNULIB_MDA_FILENO=1
     12021
     12022
     12023
     12024  GL_GNULIB_MDA_GETW=1
     12025
     12026
     12027
     12028  GL_GNULIB_MDA_PUTW=1
     12029
     12030
     12031
     12032  GL_GNULIB_MDA_TEMPNAM=1
     12033
     12034
     12035
     12036
     12037ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     12038if test "x$ac_cv_have_decl_getdtablesize" = xyes
     12039then :
     12040  ac_have_decl=1
     12041else case e in #(
     12042  e) ac_have_decl=0 ;;
     12043esac
     12044fi
     12045printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
     12046
     12047
     12048
     12049
     12050    HAVE_GETRANDOM=1;
     12051  REPLACE_GETRANDOM=0;
     12052
     12053
     12054
     12055
     12056  GL_GNULIB_GETRANDOM=0
     12057
     12058
     12059
     12060
     12061
     12062
     12063
     12064  if test -z "$gl_pthreadlib_body_done"; then
     12065    gl_pthread_api=no
     12066    LIBPTHREAD=
     12067    LIBPMULTITHREAD=
     12068    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
     12069    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
     12070    ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
     12071if test "x$ac_cv_header_pthread_h" = xyes
     12072then :
     12073  gl_have_pthread_h=yes
     12074else case e in #(
     12075  e) gl_have_pthread_h=no ;;
     12076esac
     12077fi
     12078
     12079    if test "$gl_have_pthread_h" = yes; then
     12080      # Other possible tests:
     12081      #   -lpthreads (FSU threads, PCthreads)
     12082      #   -lgthreads
     12083      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
     12084      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
     12085      # the second one only in libpthread, and lock.c needs it.
     12086      #
     12087      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
     12088      # needs -pthread for some reason.  See:
     12089      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
     12090      save_LIBS=$LIBS
     12091      for gl_pthread in '' '-pthread'; do
     12092        LIBS="$LIBS $gl_pthread"
     12093        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12094/* end confdefs.h.  */
     12095#include <pthread.h>
     12096               pthread_mutex_t m;
     12097               pthread_mutexattr_t ma;
     12098
     12099int
     12100main (void)
     12101{
     12102pthread_mutex_lock (&m);
     12103               pthread_mutexattr_init (&ma);
     12104  ;
     12105  return 0;
     12106}
     12107_ACEOF
     12108if ac_fn_c_try_link "$LINENO"
     12109then :
     12110  gl_pthread_api=yes
     12111           LIBPTHREAD=$gl_pthread
     12112           LIBPMULTITHREAD=$gl_pthread
     12113fi
     12114rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12115    conftest$ac_exeext conftest.$ac_ext
     12116        LIBS=$save_LIBS
     12117        test $gl_pthread_api = yes && break
     12118      done
     12119      echo "$as_me:12119: gl_pthread_api=$gl_pthread_api" >&5
     12120      echo "$as_me:12120: LIBPTHREAD=$LIBPTHREAD" >&5
     12121
     12122      gl_pthread_in_glibc=no
     12123      # On Linux with glibc >= 2.34, libc contains the fully functional
     12124      # pthread functions.
     12125      case "$host_os" in
     12126        linux*)
     12127          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12128/* end confdefs.h.  */
     12129#include <features.h>
     12130             #ifdef __GNU_LIBRARY__
     12131              #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
     12132               Lucky user
     12133              #endif
     12134             #endif
     12135
     12136_ACEOF
     12137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     12138  $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
     12139then :
     12140  gl_pthread_in_glibc=yes
     12141fi
     12142rm -rf conftest*
     12143
     12144          ;;
     12145      esac
     12146      echo "$as_me:12146: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
     12147
     12148      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
     12149      # since it is defined as a macro on OSF/1.)
     12150      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
     12151        # The program links fine without libpthread. But it may actually
     12152        # need to link with libpthread in order to create multiple threads.
     12153        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     12154printf %s "checking for pthread_kill in -lpthread... " >&6; }
     12155if test ${ac_cv_lib_pthread_pthread_kill+y}
     12156then :
     12157  printf %s "(cached) " >&6
     12158else case e in #(
     12159  e) ac_check_lib_save_LIBS=$LIBS
     12160LIBS="-lpthread  $LIBS"
     12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12162/* end confdefs.h.  */
     12163
     12164/* Override any GCC internal prototype to avoid an error.
     12165   Use char because int might match the return type of a GCC
     12166   builtin and then its argument prototype would still apply.
     12167   The 'extern "C"' is for builds by C++ compilers;
     12168   although this is not generally supported in C code, supporting it here
     12169   has little cost and some practical benefit (sr 110532).  */
     12170#ifdef __cplusplus
     12171extern "C"
     12172#endif
     12173char pthread_kill (void);
     12174int
     12175main (void)
     12176{
     12177return pthread_kill ();
     12178  ;
     12179  return 0;
     12180}
     12181_ACEOF
     12182if ac_fn_c_try_link "$LINENO"
     12183then :
     12184  ac_cv_lib_pthread_pthread_kill=yes
     12185else case e in #(
     12186  e) ac_cv_lib_pthread_pthread_kill=no ;;
     12187esac
     12188fi
     12189rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12190    conftest$ac_exeext conftest.$ac_ext
     12191LIBS=$ac_check_lib_save_LIBS ;;
     12192esac
     12193fi
     12194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     12195printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     12196if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     12197then :
     12198  if test $gl_pthread_in_glibc = yes; then
     12199             LIBPMULTITHREAD=
     12200           else
     12201             LIBPMULTITHREAD=-lpthread
     12202             # On Solaris and HP-UX, most pthread functions exist also in libc.
     12203             # Therefore pthread_in_use() needs to actually try to create a
     12204             # thread: pthread_create from libc will fail, whereas
     12205             # pthread_create will actually create a thread.
     12206             # On Solaris 10 or newer, this test is no longer needed, because
     12207             # libc contains the fully functional pthread functions.
     12208             case "$host_os" in
     12209               solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
     12210
     12211printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
     12212
     12213             esac
     12214           fi
     12215
     12216fi
     12217
     12218      elif test $gl_pthread_api != yes; then
     12219        # Some library is needed. Try libpthread and libc_r.
     12220        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     12221printf %s "checking for pthread_kill in -lpthread... " >&6; }
     12222if test ${ac_cv_lib_pthread_pthread_kill+y}
     12223then :
     12224  printf %s "(cached) " >&6
     12225else case e in #(
     12226  e) ac_check_lib_save_LIBS=$LIBS
     12227LIBS="-lpthread  $LIBS"
     12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12229/* end confdefs.h.  */
     12230
     12231/* Override any GCC internal prototype to avoid an error.
     12232   Use char because int might match the return type of a GCC
     12233   builtin and then its argument prototype would still apply.
     12234   The 'extern "C"' is for builds by C++ compilers;
     12235   although this is not generally supported in C code, supporting it here
     12236   has little cost and some practical benefit (sr 110532).  */
     12237#ifdef __cplusplus
     12238extern "C"
     12239#endif
     12240char pthread_kill (void);
     12241int
     12242main (void)
     12243{
     12244return pthread_kill ();
     12245  ;
     12246  return 0;
     12247}
     12248_ACEOF
     12249if ac_fn_c_try_link "$LINENO"
     12250then :
     12251  ac_cv_lib_pthread_pthread_kill=yes
     12252else case e in #(
     12253  e) ac_cv_lib_pthread_pthread_kill=no ;;
     12254esac
     12255fi
     12256rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12257    conftest$ac_exeext conftest.$ac_ext
     12258LIBS=$ac_check_lib_save_LIBS ;;
     12259esac
     12260fi
     12261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     12262printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     12263if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     12264then :
     12265  gl_pthread_api=yes
     12266           LIBPTHREAD=-lpthread
     12267           LIBPMULTITHREAD=-lpthread
     12268fi
     12269
     12270        if test $gl_pthread_api != yes; then
     12271          # For FreeBSD 4.
     12272          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
     12273printf %s "checking for pthread_kill in -lc_r... " >&6; }
     12274if test ${ac_cv_lib_c_r_pthread_kill+y}
     12275then :
     12276  printf %s "(cached) " >&6
     12277else case e in #(
     12278  e) ac_check_lib_save_LIBS=$LIBS
     12279LIBS="-lc_r  $LIBS"
     12280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12281/* end confdefs.h.  */
     12282
     12283/* Override any GCC internal prototype to avoid an error.
     12284   Use char because int might match the return type of a GCC
     12285   builtin and then its argument prototype would still apply.
     12286   The 'extern "C"' is for builds by C++ compilers;
     12287   although this is not generally supported in C code, supporting it here
     12288   has little cost and some practical benefit (sr 110532).  */
     12289#ifdef __cplusplus
     12290extern "C"
     12291#endif
     12292char pthread_kill (void);
     12293int
     12294main (void)
     12295{
     12296return pthread_kill ();
     12297  ;
     12298  return 0;
     12299}
     12300_ACEOF
     12301if ac_fn_c_try_link "$LINENO"
     12302then :
     12303  ac_cv_lib_c_r_pthread_kill=yes
     12304else case e in #(
     12305  e) ac_cv_lib_c_r_pthread_kill=no ;;
     12306esac
     12307fi
     12308rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12309    conftest$ac_exeext conftest.$ac_ext
     12310LIBS=$ac_check_lib_save_LIBS ;;
     12311esac
     12312fi
     12313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
     12314printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
     12315if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
     12316then :
     12317  gl_pthread_api=yes
     12318             LIBPTHREAD=-lc_r
     12319             LIBPMULTITHREAD=-lc_r
     12320fi
     12321
     12322        fi
     12323      fi
     12324      echo "$as_me:12324: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
     12325    fi
     12326    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
     12327printf %s "checking whether POSIX threads API is available... " >&6; }
     12328    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
     12329printf "%s\n" "$gl_pthread_api" >&6; }
     12330
     12331
     12332    if test $gl_pthread_api = yes; then
     12333
     12334printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
     12335
     12336    fi
     12337
     12338        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12339/* end confdefs.h.  */
     12340#include <sched.h>
     12341int
     12342main (void)
     12343{
     12344sched_yield ();
     12345  ;
     12346  return 0;
     12347}
     12348_ACEOF
     12349if ac_fn_c_try_link "$LINENO"
     12350then :
     12351  LIB_SCHED_YIELD=
     12352
     12353else case e in #(
     12354  e)        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
     12355printf %s "checking for sched_yield in -lrt... " >&6; }
     12356if test ${ac_cv_lib_rt_sched_yield+y}
     12357then :
     12358  printf %s "(cached) " >&6
     12359else case e in #(
     12360  e) ac_check_lib_save_LIBS=$LIBS
     12361LIBS="-lrt  $LIBS"
     12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12363/* end confdefs.h.  */
     12364
     12365/* Override any GCC internal prototype to avoid an error.
     12366   Use char because int might match the return type of a GCC
     12367   builtin and then its argument prototype would still apply.
     12368   The 'extern "C"' is for builds by C++ compilers;
     12369   although this is not generally supported in C code, supporting it here
     12370   has little cost and some practical benefit (sr 110532).  */
     12371#ifdef __cplusplus
     12372extern "C"
     12373#endif
     12374char sched_yield (void);
     12375int
     12376main (void)
     12377{
     12378return sched_yield ();
     12379  ;
     12380  return 0;
     12381}
     12382_ACEOF
     12383if ac_fn_c_try_link "$LINENO"
     12384then :
     12385  ac_cv_lib_rt_sched_yield=yes
     12386else case e in #(
     12387  e) ac_cv_lib_rt_sched_yield=no ;;
     12388esac
     12389fi
     12390rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12391    conftest$ac_exeext conftest.$ac_ext
     12392LIBS=$ac_check_lib_save_LIBS ;;
     12393esac
     12394fi
     12395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
     12396printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
     12397if test "x$ac_cv_lib_rt_sched_yield" = xyes
     12398then :
     12399  LIB_SCHED_YIELD=-lrt
     12400else case e in #(
     12401  e)           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
     12402printf %s "checking for sched_yield in -lposix4... " >&6; }
     12403if test ${ac_cv_lib_posix4_sched_yield+y}
     12404then :
     12405  printf %s "(cached) " >&6
     12406else case e in #(
     12407  e) ac_check_lib_save_LIBS=$LIBS
     12408LIBS="-lposix4  $LIBS"
     12409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12410/* end confdefs.h.  */
     12411
     12412/* Override any GCC internal prototype to avoid an error.
     12413   Use char because int might match the return type of a GCC
     12414   builtin and then its argument prototype would still apply.
     12415   The 'extern "C"' is for builds by C++ compilers;
     12416   although this is not generally supported in C code, supporting it here
     12417   has little cost and some practical benefit (sr 110532).  */
     12418#ifdef __cplusplus
     12419extern "C"
     12420#endif
     12421char sched_yield (void);
     12422int
     12423main (void)
     12424{
     12425return sched_yield ();
     12426  ;
     12427  return 0;
     12428}
     12429_ACEOF
     12430if ac_fn_c_try_link "$LINENO"
     12431then :
     12432  ac_cv_lib_posix4_sched_yield=yes
     12433else case e in #(
     12434  e) ac_cv_lib_posix4_sched_yield=no ;;
     12435esac
     12436fi
     12437rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12438    conftest$ac_exeext conftest.$ac_ext
     12439LIBS=$ac_check_lib_save_LIBS ;;
     12440esac
     12441fi
     12442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
     12443printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
     12444if test "x$ac_cv_lib_posix4_sched_yield" = xyes
     12445then :
     12446  LIB_SCHED_YIELD=-lposix4
     12447fi
     12448 ;;
     12449esac
     12450fi
     12451
     12452       ;;
     12453esac
     12454fi
     12455rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12456    conftest$ac_exeext conftest.$ac_ext
     12457
     12458
     12459    gl_pthreadlib_body_done=done
     12460  fi
     12461
     12462
     12463
     12464
     12465
     12466
     12467
     12468
     12469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
     12470printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
     12471if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
     12472then :
     12473  printf %s "(cached) " >&6
     12474else case e in #(
     12475  e) case "$host_os" in
     12476       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
     12477       *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
     12478         gl_cv_func_setlocale_null_all_mtsafe=no ;;
     12479       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
     12480       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
     12481         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
     12482       # If we don't know, obey --enable-cross-guesses.
     12483       *)
     12484         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
     12485     esac
     12486     ;;
     12487esac
     12488fi
     12489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
     12490printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
     12491    case "$host_os" in
     12492    mingw*) ;;
     12493    *)
     12494      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
     12495        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
     12496      fi
     12497      ;;
     12498  esac
     12499  case "$gl_cv_func_setlocale_null_all_mtsafe" in
     12500    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
     12501    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
     12502  esac
     12503
     12504printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
     12505
     12506
     12507    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
     12508printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
     12509if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
     12510then :
     12511  printf %s "(cached) " >&6
     12512else case e in #(
     12513  e) case "$host_os" in
     12514       # Guess no on OpenBSD, AIX.
     12515       openbsd* | aix*)
     12516         gl_cv_func_setlocale_null_one_mtsafe=no ;;
     12517       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
     12518       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
     12519         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
     12520       # If we don't know, obey --enable-cross-guesses.
     12521       *)
     12522         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
     12523     esac
     12524     ;;
     12525esac
     12526fi
     12527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
     12528printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
     12529    case "$host_os" in
     12530    mingw*) ;;
     12531    *)
     12532      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
     12533        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
     12534      fi
     12535      ;;
     12536  esac
     12537  case "$gl_cv_func_setlocale_null_one_mtsafe" in
     12538    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
     12539    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
     12540  esac
     12541
     12542printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
     12543
     12544
     12545    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
     12546    case "$host_os" in
     12547      mingw*) LIB_SETLOCALE_NULL= ;;
     12548      *)
     12549
     12550
     12551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
     12552printf %s "checking whether imported symbols can be declared weak... " >&6; }
     12553if test ${gl_cv_have_weak+y}
     12554then :
     12555  printf %s "(cached) " >&6
     12556else case e in #(
     12557  e) case "$host_os" in
     12558       cygwin*)
     12559                                    gl_cv_have_weak="guessing no"
     12560         ;;
     12561       *)
     12562         gl_cv_have_weak=no
     12563                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12564/* end confdefs.h.  */
     12565extern void xyzzy ();
     12566#pragma weak xyzzy
     12567int
     12568main (void)
     12569{
     12570xyzzy();
     12571  ;
     12572  return 0;
     12573}
     12574_ACEOF
     12575if ac_fn_c_try_link "$LINENO"
     12576then :
     12577  gl_cv_have_weak=maybe
     12578fi
     12579rm -f core conftest.err conftest.$ac_objext conftest.beam \
     12580    conftest$ac_exeext conftest.$ac_ext
     12581         if test $gl_cv_have_weak = maybe; then
     12582                                 if test "$cross_compiling" = yes
     12583then :
     12584                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12585/* end confdefs.h.  */
     12586#ifdef __ELF__
     12587                 Extensible Linking Format
     12588                 #endif
     12589
     12590_ACEOF
     12591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     12592  $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
     12593then :
     12594  gl_cv_have_weak="guessing yes"
     12595else case e in #(
     12596  e) gl_cv_have_weak="guessing no" ;;
     12597esac
     12598fi
     12599rm -rf conftest*
     12600
     12601
     12602else case e in #(
     12603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12604/* end confdefs.h.  */
     12605
     12606#include <stdio.h>
     12607#pragma weak fputs
     12608int main ()
     12609{
     12610  return (fputs == NULL);
     12611}
     12612_ACEOF
     12613if ac_fn_c_try_run "$LINENO"
     12614then :
     12615  gl_cv_have_weak=yes
     12616else case e in #(
     12617  e) gl_cv_have_weak=no ;;
     12618esac
     12619fi
     12620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     12621  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     12622esac
     12623fi
     12624
     12625         fi
     12626         ;;
     12627     esac
     12628          case " $LDFLAGS " in
     12629       *" -static "*) gl_cv_have_weak=no ;;
     12630     esac
     12631                    case "$gl_cv_have_weak" in
     12632       *yes)
     12633         case "$host_os" in
     12634           freebsd* | dragonfly* | midnightbsd*)
     12635             : > conftest1.c
     12636             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
     12637             cat <<EOF > conftest2.c
     12638#include <pthread.h>
     12639#pragma weak pthread_mutexattr_gettype
     12640int main ()
     12641{
     12642  return (pthread_mutexattr_gettype != NULL);
     12643}
     12644EOF
     12645             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
     12646               || gl_cv_have_weak=no
     12647             rm -f conftest1.c libempty.so conftest2.c conftest
     12648             ;;
     12649         esac
     12650         ;;
     12651     esac
     12652     ;;
     12653esac
     12654fi
     12655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
     12656printf "%s\n" "$gl_cv_have_weak" >&6; }
     12657  case "$gl_cv_have_weak" in
     12658    *yes)
     12659
     12660printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
     12661
     12662      ;;
     12663  esac
     12664
     12665        case "$gl_cv_have_weak" in
     12666          *yes) LIB_SETLOCALE_NULL= ;;
     12667          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
     12668        esac
     12669        ;;
     12670    esac
     12671  else
     12672    LIB_SETLOCALE_NULL=
     12673  fi
     12674
     12675
     12676
     12677
     12678
     12679
     12680
     12681
     12682
     12683
     12684
     12685
     12686
     12687     if test $gl_cv_have_include_next = yes; then
     12688       gl_cv_next_limits_h='<'limits.h'>'
     12689     else
     12690       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
     12691printf %s "checking absolute name of <limits.h>... " >&6; }
     12692if test ${gl_cv_next_limits_h+y}
     12693then :
     12694  printf %s "(cached) " >&6
     12695else case e in #(
     12696  e)
     12697             if test $ac_cv_header_limits_h = yes; then
     12698
     12699
     12700
     12701
     12702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12703/* end confdefs.h.  */
     12704#include <limits.h>
     12705_ACEOF
     12706                case "$host_os" in
     12707    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     12708    *)    gl_absname_cpp="$ac_cpp" ;;
     12709  esac
     12710
     12711  case "$host_os" in
     12712    mingw*)
     12713                                          gl_dirsep_regex='[/\\]'
     12714      ;;
     12715    *)
     12716      gl_dirsep_regex='\/'
     12717      ;;
     12718  esac
     12719      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     12720  gl_header_literal_regex=`echo 'limits.h' \
     12721                           | sed -e "$gl_make_literal_regex_sed"`
     12722  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     12723      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     12724      s|^/[^/]|//&|
     12725      p
     12726      q
     12727    }'
     12728
     12729        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     12730  sed -n "$gl_absolute_header_sed"`
     12731
     12732          gl_header=$gl_cv_absolute_limits_h
     12733          gl_cv_next_limits_h='"'$gl_header'"'
     12734          else
     12735               gl_cv_next_limits_h='<'limits.h'>'
     12736             fi
     12737
     12738          ;;
     12739esac
     12740fi
     12741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
     12742printf "%s\n" "$gl_cv_next_limits_h" >&6; }
     12743     fi
     12744     NEXT_LIMITS_H=$gl_cv_next_limits_h
     12745
     12746     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     12747       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     12748       gl_next_as_first_directive='<'limits.h'>'
     12749     else
     12750       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     12751       gl_next_as_first_directive=$gl_cv_next_limits_h
     12752     fi
     12753     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
     12754
     12755
     12756
     12757
     12758
     12759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
     12760printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
     12761if test ${gl_cv_header_limits_width+y}
     12762then :
     12763  printf %s "(cached) " >&6
     12764else case e in #(
     12765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12766/* end confdefs.h.  */
     12767#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
     12768             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
     12769            #endif
     12770            #include <limits.h>
     12771            long long llm = LLONG_MAX;
     12772            int wb = WORD_BIT;
     12773            int ullw = ULLONG_WIDTH;
     12774            int bw = BOOL_WIDTH;
     12775
     12776int
     12777main (void)
     12778{
     12779
     12780  ;
     12781  return 0;
     12782}
     12783_ACEOF
     12784if ac_fn_c_try_compile "$LINENO"
     12785then :
     12786  gl_cv_header_limits_width=yes
     12787else case e in #(
     12788  e) gl_cv_header_limits_width=no ;;
     12789esac
     12790fi
     12791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     12792esac
     12793fi
     12794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
     12795printf "%s\n" "$gl_cv_header_limits_width" >&6; }
     12796  if test "$gl_cv_header_limits_width" = yes; then
     12797    GL_GENERATE_LIMITS_H=false
     12798  else
     12799    GL_GENERATE_LIMITS_H=true
     12800  fi
     12801
     12802
     12803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
     12804printf %s "checking for wint_t... " >&6; }
     12805if test ${gt_cv_c_wint_t+y}
     12806then :
     12807  printf %s "(cached) " >&6
     12808else case e in #(
     12809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12810/* end confdefs.h.  */
     12811#include <wchar.h>
     12812            wint_t foo = (wchar_t)'\0';
     12813int
     12814main (void)
     12815{
     12816
     12817  ;
     12818  return 0;
     12819}
     12820_ACEOF
     12821if ac_fn_c_try_compile "$LINENO"
     12822then :
     12823  gt_cv_c_wint_t=yes
     12824else case e in #(
     12825  e) gt_cv_c_wint_t=no ;;
     12826esac
     12827fi
     12828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     12829esac
     12830fi
     12831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
     12832printf "%s\n" "$gt_cv_c_wint_t" >&6; }
     12833  if test $gt_cv_c_wint_t = yes; then
     12834
     12835printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
     12836
     12837
     12838            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
     12839printf %s "checking whether wint_t is large enough... " >&6; }
     12840if test ${gl_cv_type_wint_t_large_enough+y}
     12841then :
     12842  printf %s "(cached) " >&6
     12843else case e in #(
     12844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12845/* end confdefs.h.  */
     12846#include <wchar.h>
     12847              int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
     12848
     12849int
     12850main (void)
     12851{
     12852
     12853  ;
     12854  return 0;
     12855}
     12856_ACEOF
     12857if ac_fn_c_try_compile "$LINENO"
     12858then :
     12859  gl_cv_type_wint_t_large_enough=yes
     12860else case e in #(
     12861  e) gl_cv_type_wint_t_large_enough=no ;;
     12862esac
     12863fi
     12864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     12865esac
     12866fi
     12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
     12868printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
     12869    if test $gl_cv_type_wint_t_large_enough = no; then
     12870      GNULIBHEADERS_OVERRIDE_WINT_T=1
     12871    else
     12872      GNULIBHEADERS_OVERRIDE_WINT_T=0
     12873    fi
     12874  else
     12875    GNULIBHEADERS_OVERRIDE_WINT_T=0
     12876  fi
     12877
     12878
     12879
     12880    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
     12881printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
     12882if test ${gl_cv_c_multiarch+y}
     12883then :
     12884  printf %s "(cached) " >&6
     12885else case e in #(
     12886  e) gl_cv_c_multiarch=no
     12887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12888/* end confdefs.h.  */
     12889#ifndef __APPLE_CC__
     12890            not a universal capable compiler
     12891           #endif
     12892           typedef int dummy;
     12893
     12894_ACEOF
     12895if ac_fn_c_try_compile "$LINENO"
     12896then :
     12897
     12898                        arch=
     12899        prev=
     12900        for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
     12901          if test -n "$prev"; then
     12902            case $word in
     12903              i?86 | x86_64 | ppc | ppc64 | arm | arm64)
     12904                if test -z "$arch" || test "$arch" = "$word"; then
     12905                  arch="$word"
     12906                else
     12907                  gl_cv_c_multiarch=yes
     12908                fi
     12909                ;;
     12910            esac
     12911            prev=
     12912          else
     12913            if test "x$word" = "x-arch"; then
     12914              prev=arch
     12915            fi
     12916          fi
     12917        done
     12918
     12919fi
     12920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     12921     ;;
     12922esac
     12923fi
     12924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
     12925printf "%s\n" "$gl_cv_c_multiarch" >&6; }
     12926  if test $gl_cv_c_multiarch = yes; then
     12927    APPLE_UNIVERSAL_BUILD=1
     12928  else
     12929    APPLE_UNIVERSAL_BUILD=0
     12930  fi
     12931
     12932
     12933
     12934
     12935
     12936
     12937
     12938
     12939printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
     12940
     12941
     12942printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
     12943
     12944
     12945
     12946  if test $ac_cv_header_wchar_h = yes; then
     12947    HAVE_WCHAR_H=1
     12948  else
     12949    HAVE_WCHAR_H=0
     12950  fi
     12951
     12952
     12953
     12954  if test $ac_cv_header_inttypes_h = yes; then
     12955    HAVE_INTTYPES_H=1
     12956  else
     12957    HAVE_INTTYPES_H=0
     12958  fi
     12959
     12960
     12961
     12962  if test $ac_cv_header_sys_types_h = yes; then
     12963    HAVE_SYS_TYPES_H=1
     12964  else
     12965    HAVE_SYS_TYPES_H=0
     12966  fi
     12967
     12968
     12969
     12970
     12971
     12972
     12973
     12974
     12975
     12976
     12977
     12978     if test $gl_cv_have_include_next = yes; then
     12979       gl_cv_next_stdint_h='<'stdint.h'>'
     12980     else
     12981       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
     12982printf %s "checking absolute name of <stdint.h>... " >&6; }
     12983if test ${gl_cv_next_stdint_h+y}
     12984then :
     12985  printf %s "(cached) " >&6
     12986else case e in #(
     12987  e)
     12988             if test $ac_cv_header_stdint_h = yes; then
     12989
     12990
     12991
     12992
     12993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12994/* end confdefs.h.  */
     12995#include <stdint.h>
     12996_ACEOF
     12997                case "$host_os" in
     12998    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     12999    *)    gl_absname_cpp="$ac_cpp" ;;
     13000  esac
     13001
     13002  case "$host_os" in
     13003    mingw*)
     13004                                          gl_dirsep_regex='[/\\]'
     13005      ;;
     13006    *)
     13007      gl_dirsep_regex='\/'
     13008      ;;
     13009  esac
     13010      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     13011  gl_header_literal_regex=`echo 'stdint.h' \
     13012                           | sed -e "$gl_make_literal_regex_sed"`
     13013  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     13014      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     13015      s|^/[^/]|//&|
     13016      p
     13017      q
     13018    }'
     13019
     13020        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     13021  sed -n "$gl_absolute_header_sed"`
     13022
     13023          gl_header=$gl_cv_absolute_stdint_h
     13024          gl_cv_next_stdint_h='"'$gl_header'"'
     13025          else
     13026               gl_cv_next_stdint_h='<'stdint.h'>'
     13027             fi
     13028
     13029          ;;
     13030esac
     13031fi
     13032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
     13033printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
     13034     fi
     13035     NEXT_STDINT_H=$gl_cv_next_stdint_h
     13036
     13037     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     13038       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     13039       gl_next_as_first_directive='<'stdint.h'>'
     13040     else
     13041       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     13042       gl_next_as_first_directive=$gl_cv_next_stdint_h
     13043     fi
     13044     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
     13045
     13046
     13047
     13048
     13049  if test $ac_cv_header_stdint_h = yes; then
     13050    HAVE_STDINT_H=1
     13051  else
     13052    HAVE_STDINT_H=0
     13053  fi
     13054
     13055
     13056    if test $ac_cv_header_stdint_h = yes; then
     13057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
     13058printf %s "checking whether stdint.h conforms to C99... " >&6; }
     13059if test ${gl_cv_header_working_stdint_h+y}
     13060then :
     13061  printf %s "(cached) " >&6
     13062else case e in #(
     13063  e) gl_cv_header_working_stdint_h=no
     13064       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13065/* end confdefs.h.  */
     13066
     13067
     13068#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
     13069#define __STDC_CONSTANT_MACROS 1
     13070#define __STDC_LIMIT_MACROS 1
     13071#include <stdint.h>
     13072/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
     13073#if !(defined WCHAR_MIN && defined WCHAR_MAX)
     13074#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
     13075#endif
     13076
     13077
     13078  #include <stddef.h>
     13079  #include <signal.h>
     13080  #if HAVE_WCHAR_H
     13081  # include <wchar.h>
     13082  #endif
     13083
     13084
     13085#ifdef INT8_MAX
     13086int8_t a1 = INT8_MAX;
     13087int8_t a1min = INT8_MIN;
     13088#endif
     13089#ifdef INT16_MAX
     13090int16_t a2 = INT16_MAX;
     13091int16_t a2min = INT16_MIN;
     13092#endif
     13093#ifdef INT32_MAX
     13094int32_t a3 = INT32_MAX;
     13095int32_t a3min = INT32_MIN;
     13096#endif
     13097#ifdef INT64_MAX
     13098int64_t a4 = INT64_MAX;
     13099int64_t a4min = INT64_MIN;
     13100#endif
     13101#ifdef UINT8_MAX
     13102uint8_t b1 = UINT8_MAX;
     13103#else
     13104typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
     13105#endif
     13106#ifdef UINT16_MAX
     13107uint16_t b2 = UINT16_MAX;
     13108#endif
     13109#ifdef UINT32_MAX
     13110uint32_t b3 = UINT32_MAX;
     13111#endif
     13112#ifdef UINT64_MAX
     13113uint64_t b4 = UINT64_MAX;
     13114#endif
     13115int_least8_t c1 = INT8_C (0x7f);
     13116int_least8_t c1max = INT_LEAST8_MAX;
     13117int_least8_t c1min = INT_LEAST8_MIN;
     13118int_least16_t c2 = INT16_C (0x7fff);
     13119int_least16_t c2max = INT_LEAST16_MAX;
     13120int_least16_t c2min = INT_LEAST16_MIN;
     13121int_least32_t c3 = INT32_C (0x7fffffff);
     13122int_least32_t c3max = INT_LEAST32_MAX;
     13123int_least32_t c3min = INT_LEAST32_MIN;
     13124int_least64_t c4 = INT64_C (0x7fffffffffffffff);
     13125int_least64_t c4max = INT_LEAST64_MAX;
     13126int_least64_t c4min = INT_LEAST64_MIN;
     13127uint_least8_t d1 = UINT8_C (0xff);
     13128uint_least8_t d1max = UINT_LEAST8_MAX;
     13129uint_least16_t d2 = UINT16_C (0xffff);
     13130uint_least16_t d2max = UINT_LEAST16_MAX;
     13131uint_least32_t d3 = UINT32_C (0xffffffff);
     13132uint_least32_t d3max = UINT_LEAST32_MAX;
     13133uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
     13134uint_least64_t d4max = UINT_LEAST64_MAX;
     13135int_fast8_t e1 = INT_FAST8_MAX;
     13136int_fast8_t e1min = INT_FAST8_MIN;
     13137int_fast16_t e2 = INT_FAST16_MAX;
     13138int_fast16_t e2min = INT_FAST16_MIN;
     13139int_fast32_t e3 = INT_FAST32_MAX;
     13140int_fast32_t e3min = INT_FAST32_MIN;
     13141int_fast64_t e4 = INT_FAST64_MAX;
     13142int_fast64_t e4min = INT_FAST64_MIN;
     13143uint_fast8_t f1 = UINT_FAST8_MAX;
     13144uint_fast16_t f2 = UINT_FAST16_MAX;
     13145uint_fast32_t f3 = UINT_FAST32_MAX;
     13146uint_fast64_t f4 = UINT_FAST64_MAX;
     13147#ifdef INTPTR_MAX
     13148intptr_t g = INTPTR_MAX;
     13149intptr_t gmin = INTPTR_MIN;
     13150#endif
     13151#ifdef UINTPTR_MAX
     13152uintptr_t h = UINTPTR_MAX;
     13153#endif
     13154intmax_t i = INTMAX_MAX;
     13155uintmax_t j = UINTMAX_MAX;
     13156
     13157/* Check that SIZE_MAX has the correct type, if possible.  */
     13158#if 201112 <= __STDC_VERSION__
     13159int k = _Generic (SIZE_MAX, size_t: 0);
     13160#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
     13161       || (0x5110 <= __SUNPRO_C && !__STDC__))
     13162extern size_t k;
     13163extern __typeof__ (SIZE_MAX) k;
     13164#endif
     13165
     13166#include <limits.h> /* for CHAR_BIT */
     13167#define TYPE_MINIMUM(t) \
     13168  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
     13169#define TYPE_MAXIMUM(t) \
     13170  ((t) ((t) 0 < (t) -1 \
     13171        ? (t) -1 \
     13172        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
     13173struct s {
     13174  int check_PTRDIFF:
     13175      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
     13176      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
     13177      ? 1 : -1;
     13178  /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64.  */
     13179  int check_SIG_ATOMIC:
     13180      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
     13181      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
     13182      ? 1 : -1;
     13183  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
     13184  int check_WCHAR:
     13185      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
     13186      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
     13187      ? 1 : -1;
     13188  /* Detect bug in mingw.  */
     13189  int check_WINT:
     13190      WINT_MIN == TYPE_MINIMUM (wint_t)
     13191      && WINT_MAX == TYPE_MAXIMUM (wint_t)
     13192      ? 1 : -1;
     13193
     13194  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
     13195  int check_UINT8_C:
     13196        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
     13197  int check_UINT16_C:
     13198        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
     13199
     13200  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
     13201#ifdef UINT8_MAX
     13202  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
     13203#endif
     13204#ifdef UINT16_MAX
     13205  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
     13206#endif
     13207#ifdef UINT32_MAX
     13208  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
     13209#endif
     13210#ifdef UINT64_MAX
     13211  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
     13212#endif
     13213  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
     13214  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
     13215  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
     13216  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
     13217  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
     13218  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
     13219  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
     13220  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
     13221  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
     13222  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
     13223  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
     13224};
     13225
     13226int
     13227main (void)
     13228{
     13229
     13230  ;
     13231  return 0;
     13232}
     13233_ACEOF
     13234if ac_fn_c_try_compile "$LINENO"
     13235then :
     13236                                                    if test "$cross_compiling" = yes
     13237then :
     13238  case "$host_os" in
     13239                         # Guess yes on native Windows.
     13240                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
     13241                         # In general, assume it works.
     13242                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
     13243               esac
     13244
     13245else case e in #(
     13246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13247/* end confdefs.h.  */
     13248
     13249
     13250#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
     13251#define __STDC_CONSTANT_MACROS 1
     13252#define __STDC_LIMIT_MACROS 1
     13253#include <stdint.h>
     13254
     13255
     13256  #include <stddef.h>
     13257  #include <signal.h>
     13258  #if HAVE_WCHAR_H
     13259  # include <wchar.h>
     13260  #endif
     13261
     13262
     13263#include <stdio.h>
     13264#include <string.h>
     13265#define MVAL(macro) MVAL1(macro)
     13266#define MVAL1(expression) #expression
     13267static const char *macro_values[] =
     13268  {
     13269#ifdef INT8_MAX
     13270    MVAL (INT8_MAX),
     13271#endif
     13272#ifdef INT16_MAX
     13273    MVAL (INT16_MAX),
     13274#endif
     13275#ifdef INT32_MAX
     13276    MVAL (INT32_MAX),
     13277#endif
     13278#ifdef INT64_MAX
     13279    MVAL (INT64_MAX),
     13280#endif
     13281#ifdef UINT8_MAX
     13282    MVAL (UINT8_MAX),
     13283#endif
     13284#ifdef UINT16_MAX
     13285    MVAL (UINT16_MAX),
     13286#endif
     13287#ifdef UINT32_MAX
     13288    MVAL (UINT32_MAX),
     13289#endif
     13290#ifdef UINT64_MAX
     13291    MVAL (UINT64_MAX),
     13292#endif
     13293    NULL
     13294  };
     13295
     13296int
     13297main (void)
     13298{
     13299
     13300  const char **mv;
     13301  for (mv = macro_values; *mv != NULL; mv++)
     13302    {
     13303      const char *value = *mv;
     13304      /* Test whether it looks like a cast expression.  */
     13305      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
     13306          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
     13307          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
     13308          || strncmp (value, "((int)"/*)*/, 6) == 0
     13309          || strncmp (value, "((signed short)"/*)*/, 15) == 0
     13310          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
     13311        return mv - macro_values + 1;
     13312    }
     13313  return 0;
     13314
     13315  ;
     13316  return 0;
     13317}
     13318_ACEOF
     13319if ac_fn_c_try_run "$LINENO"
     13320then :
     13321  gl_cv_header_working_stdint_h=yes
     13322fi
     13323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     13324  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     13325esac
     13326fi
     13327
     13328
     13329fi
     13330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     13331       ;;
     13332esac
     13333fi
     13334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
     13335printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
     13336  fi
     13337
     13338  HAVE_C99_STDINT_H=0
     13339  HAVE_SYS_BITYPES_H=0
     13340  HAVE_SYS_INTTYPES_H=0
     13341  GL_GENERATE_STDINT_H=true
     13342  case "$gl_cv_header_working_stdint_h" in
     13343    *yes)
     13344      HAVE_C99_STDINT_H=1
     13345                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
     13346printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
     13347if test ${gl_cv_header_stdint_without_STDC_macros+y}
     13348then :
     13349  printf %s "(cached) " >&6
     13350else case e in #(
     13351  e) gl_cv_header_stdint_without_STDC_macros=no
     13352         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13353/* end confdefs.h.  */
     13354
     13355
     13356#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
     13357#include <stdint.h>
     13358
     13359
     13360  #include <stddef.h>
     13361  #include <signal.h>
     13362  #if HAVE_WCHAR_H
     13363  # include <wchar.h>
     13364  #endif
     13365
     13366
     13367intmax_t im = INTMAX_MAX;
     13368int32_t i32 = INT32_C (0x7fffffff);
     13369
     13370int
     13371main (void)
     13372{
     13373
     13374  ;
     13375  return 0;
     13376}
     13377_ACEOF
     13378if ac_fn_c_try_compile "$LINENO"
     13379then :
     13380  gl_cv_header_stdint_without_STDC_macros=yes
     13381fi
     13382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     13383         ;;
     13384esac
     13385fi
     13386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
     13387printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
     13388
     13389      if test $gl_cv_header_stdint_without_STDC_macros = no; then
     13390
     13391printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
     13392
     13393
     13394printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
     13395
     13396      fi
     13397      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
     13398printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
     13399if test ${gl_cv_header_stdint_width+y}
     13400then :
     13401  printf %s "(cached) " >&6
     13402else case e in #(
     13403  e) gl_cv_header_stdint_width=no
     13404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13405/* end confdefs.h.  */
     13406
     13407              /* Work if build is not clean.  */
     13408              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
     13409              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
     13410               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
     13411              #endif
     13412              #include <stdint.h>
     13413
     13414  #include <stddef.h>
     13415  #include <signal.h>
     13416  #if HAVE_WCHAR_H
     13417  # include <wchar.h>
     13418  #endif
     13419
     13420              int iw = UINTMAX_WIDTH;
     13421
     13422int
     13423main (void)
     13424{
     13425
     13426  ;
     13427  return 0;
     13428}
     13429_ACEOF
     13430if ac_fn_c_try_compile "$LINENO"
     13431then :
     13432  gl_cv_header_stdint_width=yes
     13433fi
     13434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     13435esac
     13436fi
     13437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
     13438printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
     13439      if test "$gl_cv_header_stdint_width" = yes; then
     13440        GL_GENERATE_STDINT_H=false
     13441      fi
     13442      ;;
     13443    *)
     13444                  ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
     13445if test "x$ac_cv_header_sys_inttypes_h" = xyes
     13446then :
     13447  printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
     13448
     13449fi
     13450ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
     13451if test "x$ac_cv_header_sys_bitypes_h" = xyes
     13452then :
     13453  printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
     13454
     13455fi
     13456
     13457      if test $ac_cv_header_sys_inttypes_h = yes; then
     13458        HAVE_SYS_INTTYPES_H=1
     13459      fi
     13460      if test $ac_cv_header_sys_bitypes_h = yes; then
     13461        HAVE_SYS_BITYPES_H=1
     13462      fi
     13463
     13464
     13465  if test $APPLE_UNIVERSAL_BUILD = 0; then
     13466
     13467
     13468  for gltype in ptrdiff_t size_t ; do
     13469    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
     13470printf %s "checking for bit size of $gltype... " >&6; }
     13471if eval test \${gl_cv_bitsizeof_${gltype}+y}
     13472then :
     13473  printf %s "(cached) " >&6
     13474else case e in #(
     13475  e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
     13476  #include <stddef.h>
     13477  #include <signal.h>
     13478  #if HAVE_WCHAR_H
     13479  # include <wchar.h>
     13480  #endif
     13481
     13482#include <limits.h>"
     13483then :
     13484
     13485else case e in #(
     13486  e) result=unknown ;;
     13487esac
     13488fi
     13489
     13490       eval gl_cv_bitsizeof_${gltype}=\$result
     13491       ;;
     13492esac
     13493fi
     13494eval ac_res=\$gl_cv_bitsizeof_${gltype}
     13495               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     13496printf "%s\n" "$ac_res" >&6; }
     13497    eval result=\$gl_cv_bitsizeof_${gltype}
     13498    if test $result = unknown; then
     13499                                                result=0
     13500    fi
     13501    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     13502    printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
     13503
     13504    eval BITSIZEOF_${GLTYPE}=\$result
     13505  done
     13506
     13507
     13508  fi
     13509
     13510
     13511  for gltype in sig_atomic_t wchar_t wint_t ; do
     13512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
     13513printf %s "checking for bit size of $gltype... " >&6; }
     13514if eval test \${gl_cv_bitsizeof_${gltype}+y}
     13515then :
     13516  printf %s "(cached) " >&6
     13517else case e in #(
     13518  e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
     13519  #include <stddef.h>
     13520  #include <signal.h>
     13521  #if HAVE_WCHAR_H
     13522  # include <wchar.h>
     13523  #endif
     13524
     13525#include <limits.h>"
     13526then :
     13527
     13528else case e in #(
     13529  e) result=unknown ;;
     13530esac
     13531fi
     13532
     13533       eval gl_cv_bitsizeof_${gltype}=\$result
     13534       ;;
     13535esac
     13536fi
     13537eval ac_res=\$gl_cv_bitsizeof_${gltype}
     13538               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     13539printf "%s\n" "$ac_res" >&6; }
     13540    eval result=\$gl_cv_bitsizeof_${gltype}
     13541    if test $result = unknown; then
     13542                                                result=0
     13543    fi
     13544    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     13545    printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
     13546
     13547    eval BITSIZEOF_${GLTYPE}=\$result
     13548  done
     13549
     13550
     13551
     13552
     13553  for gltype in sig_atomic_t wchar_t wint_t ; do
     13554    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
     13555printf %s "checking whether $gltype is signed... " >&6; }
     13556if eval test \${gl_cv_type_${gltype}_signed+y}
     13557then :
     13558  printf %s "(cached) " >&6
     13559else case e in #(
     13560  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13561/* end confdefs.h.  */
     13562
     13563  #include <stddef.h>
     13564  #include <signal.h>
     13565  #if HAVE_WCHAR_H
     13566  # include <wchar.h>
     13567  #endif
     13568
     13569            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
     13570int
     13571main (void)
     13572{
     13573
     13574  ;
     13575  return 0;
     13576}
     13577_ACEOF
     13578if ac_fn_c_try_compile "$LINENO"
     13579then :
     13580  result=yes
     13581else case e in #(
     13582  e) result=no ;;
     13583esac
     13584fi
     13585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     13586       eval gl_cv_type_${gltype}_signed=\$result
     13587       ;;
     13588esac
     13589fi
     13590eval ac_res=\$gl_cv_type_${gltype}_signed
     13591               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     13592printf "%s\n" "$ac_res" >&6; }
     13593    eval result=\$gl_cv_type_${gltype}_signed
     13594    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     13595    if test "$result" = yes; then
     13596      printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
     13597
     13598      eval HAVE_SIGNED_${GLTYPE}=1
     13599    else
     13600      eval HAVE_SIGNED_${GLTYPE}=0
     13601    fi
     13602  done
     13603
     13604
     13605  gl_cv_type_ptrdiff_t_signed=yes
     13606  gl_cv_type_size_t_signed=no
     13607  if test $APPLE_UNIVERSAL_BUILD = 0; then
     13608
     13609
     13610  for gltype in ptrdiff_t size_t ; do
     13611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
     13612printf %s "checking for $gltype integer literal suffix... " >&6; }
     13613if eval test \${gl_cv_type_${gltype}_suffix+y}
     13614then :
     13615  printf %s "(cached) " >&6
     13616else case e in #(
     13617  e) eval gl_cv_type_${gltype}_suffix=no
     13618       eval result=\$gl_cv_type_${gltype}_signed
     13619       if test "$result" = yes; then
     13620         glsufu=
     13621       else
     13622         glsufu=u
     13623       fi
     13624       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
     13625         case $glsuf in
     13626           '')  gltype1='int';;
     13627           l)   gltype1='long int';;
     13628           ll)  gltype1='long long int';;
     13629           i64) gltype1='__int64';;
     13630           u)   gltype1='unsigned int';;
     13631           ul)  gltype1='unsigned long int';;
     13632           ull) gltype1='unsigned long long int';;
     13633           ui64)gltype1='unsigned __int64';;
     13634         esac
     13635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13636/* end confdefs.h.  */
     13637
     13638  #include <stddef.h>
     13639  #include <signal.h>
     13640  #if HAVE_WCHAR_H
     13641  # include <wchar.h>
     13642  #endif
     13643
     13644              extern $gltype foo;
     13645              extern $gltype1 foo;
     13646int
     13647main (void)
     13648{
     13649
     13650  ;
     13651  return 0;
     13652}
     13653_ACEOF
     13654if ac_fn_c_try_compile "$LINENO"
     13655then :
     13656  eval gl_cv_type_${gltype}_suffix=\$glsuf
     13657fi
     13658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     13659         eval result=\$gl_cv_type_${gltype}_suffix
     13660         test "$result" != no && break
     13661       done ;;
     13662esac
     13663fi
     13664eval ac_res=\$gl_cv_type_${gltype}_suffix
     13665               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     13666printf "%s\n" "$ac_res" >&6; }
     13667    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     13668    eval result=\$gl_cv_type_${gltype}_suffix
     13669    test "$result" = no && result=
     13670    eval ${GLTYPE}_SUFFIX=\$result
     13671    printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
     13672
     13673  done
     13674
     13675
     13676  fi
     13677
     13678
     13679  for gltype in sig_atomic_t wchar_t wint_t ; do
     13680    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
     13681printf %s "checking for $gltype integer literal suffix... " >&6; }
     13682if eval test \${gl_cv_type_${gltype}_suffix+y}
     13683then :
     13684  printf %s "(cached) " >&6
     13685else case e in #(
     13686  e) eval gl_cv_type_${gltype}_suffix=no
     13687       eval result=\$gl_cv_type_${gltype}_signed
     13688       if test "$result" = yes; then
     13689         glsufu=
     13690       else
     13691         glsufu=u
     13692       fi
     13693       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
     13694         case $glsuf in
     13695           '')  gltype1='int';;
     13696           l)   gltype1='long int';;
     13697           ll)  gltype1='long long int';;
     13698           i64) gltype1='__int64';;
     13699           u)   gltype1='unsigned int';;
     13700           ul)  gltype1='unsigned long int';;
     13701           ull) gltype1='unsigned long long int';;
     13702           ui64)gltype1='unsigned __int64';;
     13703         esac
     13704         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13705/* end confdefs.h.  */
     13706
     13707  #include <stddef.h>
     13708  #include <signal.h>
     13709  #if HAVE_WCHAR_H
     13710  # include <wchar.h>
     13711  #endif
     13712
     13713              extern $gltype foo;
     13714              extern $gltype1 foo;
     13715int
     13716main (void)
     13717{
     13718
     13719  ;
     13720  return 0;
     13721}
     13722_ACEOF
     13723if ac_fn_c_try_compile "$LINENO"
     13724then :
     13725  eval gl_cv_type_${gltype}_suffix=\$glsuf
     13726fi
     13727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     13728         eval result=\$gl_cv_type_${gltype}_suffix
     13729         test "$result" != no && break
     13730       done ;;
     13731esac
     13732fi
     13733eval ac_res=\$gl_cv_type_${gltype}_suffix
     13734               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     13735printf "%s\n" "$ac_res" >&6; }
     13736    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     13737    eval result=\$gl_cv_type_${gltype}_suffix
     13738    test "$result" = no && result=
     13739    eval ${GLTYPE}_SUFFIX=\$result
     13740    printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
     13741
     13742  done
     13743
     13744
     13745
     13746          if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
     13747    BITSIZEOF_WINT_T=32
     13748  fi
     13749
     13750      ;;
     13751  esac
     13752
     13753
     13754
     13755  GL_GENERATE_LIMITS_H=true
     13756
     13757
     13758
     13759
     13760
     13761
     13762
     13763    HAVE_DECL_IMAXABS=1;
     13764  HAVE_DECL_IMAXDIV=1;
     13765  HAVE_DECL_STRTOIMAX=1;
     13766  HAVE_DECL_STRTOUMAX=1;
     13767  HAVE_IMAXDIV_T=1;
     13768  REPLACE_STRTOIMAX=0;
     13769  REPLACE_STRTOUMAX=0;
     13770  INT32_MAX_LT_INTMAX_MAX=1;
     13771  INT64_MAX_EQ_LONG_MAX='defined _LP64';
     13772  PRIPTR_PREFIX=__PRIPTR_PREFIX;
     13773  UINT32_MAX_LT_UINTMAX_MAX=1;
     13774  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
     13775
     13776
     13777
     13778
     13779
     13780
     13781
     13782
     13783
     13784
     13785
     13786
     13787
     13788
     13789
     13790     if test $gl_cv_have_include_next = yes; then
     13791       gl_cv_next_inttypes_h='<'inttypes.h'>'
     13792     else
     13793       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
     13794printf %s "checking absolute name of <inttypes.h>... " >&6; }
     13795if test ${gl_cv_next_inttypes_h+y}
     13796then :
     13797  printf %s "(cached) " >&6
     13798else case e in #(
     13799  e)
     13800             if test $ac_cv_header_inttypes_h = yes; then
     13801
     13802
     13803
     13804
     13805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13806/* end confdefs.h.  */
     13807#include <inttypes.h>
     13808_ACEOF
     13809                case "$host_os" in
     13810    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     13811    *)    gl_absname_cpp="$ac_cpp" ;;
     13812  esac
     13813
     13814  case "$host_os" in
     13815    mingw*)
     13816                                          gl_dirsep_regex='[/\\]'
     13817      ;;
     13818    *)
     13819      gl_dirsep_regex='\/'
     13820      ;;
     13821  esac
     13822      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     13823  gl_header_literal_regex=`echo 'inttypes.h' \
     13824                           | sed -e "$gl_make_literal_regex_sed"`
     13825  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     13826      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     13827      s|^/[^/]|//&|
     13828      p
     13829      q
     13830    }'
     13831
     13832        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     13833  sed -n "$gl_absolute_header_sed"`
     13834
     13835          gl_header=$gl_cv_absolute_inttypes_h
     13836          gl_cv_next_inttypes_h='"'$gl_header'"'
     13837          else
     13838               gl_cv_next_inttypes_h='<'inttypes.h'>'
     13839             fi
     13840
     13841          ;;
     13842esac
     13843fi
     13844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
     13845printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
     13846     fi
     13847     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
     13848
     13849     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     13850       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     13851       gl_next_as_first_directive='<'inttypes.h'>'
     13852     else
     13853       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     13854       gl_next_as_first_directive=$gl_cv_next_inttypes_h
     13855     fi
     13856     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
     13857
     13858
     13859
     13860
     13861
     13862
     13863
     13864
     13865
     13866
     13867
     13868
     13869
     13870
     13871
     13872  GL_GNULIB_IMAXABS=0
     13873
     13874
     13875
     13876  GL_GNULIB_IMAXDIV=0
     13877
     13878
     13879
     13880  GL_GNULIB_STRTOIMAX=0
     13881
     13882
     13883
     13884  GL_GNULIB_STRTOUMAX=0
     13885
     13886
     13887
     13888
     13889    HAVE_NL_LANGINFO=1;
     13890  REPLACE_NL_LANGINFO=0;
     13891
     13892
     13893
     13894
     13895
     13896
     13897
     13898
     13899
     13900
     13901
     13902
     13903
     13904
     13905
     13906
     13907     if test $gl_cv_have_include_next = yes; then
     13908       gl_cv_next_langinfo_h='<'langinfo.h'>'
     13909     else
     13910       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
     13911printf %s "checking absolute name of <langinfo.h>... " >&6; }
     13912if test ${gl_cv_next_langinfo_h+y}
     13913then :
     13914  printf %s "(cached) " >&6
     13915else case e in #(
     13916  e)
     13917             if test $ac_cv_header_langinfo_h = yes; then
     13918
     13919
     13920
     13921
     13922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13923/* end confdefs.h.  */
     13924#include <langinfo.h>
     13925_ACEOF
     13926                case "$host_os" in
     13927    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     13928    *)    gl_absname_cpp="$ac_cpp" ;;
     13929  esac
     13930
     13931  case "$host_os" in
     13932    mingw*)
     13933                                          gl_dirsep_regex='[/\\]'
     13934      ;;
     13935    *)
     13936      gl_dirsep_regex='\/'
     13937      ;;
     13938  esac
     13939      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     13940  gl_header_literal_regex=`echo 'langinfo.h' \
     13941                           | sed -e "$gl_make_literal_regex_sed"`
     13942  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     13943      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     13944      s|^/[^/]|//&|
     13945      p
     13946      q
     13947    }'
     13948
     13949        gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     13950  sed -n "$gl_absolute_header_sed"`
     13951
     13952          gl_header=$gl_cv_absolute_langinfo_h
     13953          gl_cv_next_langinfo_h='"'$gl_header'"'
     13954          else
     13955               gl_cv_next_langinfo_h='<'langinfo.h'>'
     13956             fi
     13957
     13958          ;;
     13959esac
     13960fi
     13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
     13962printf "%s\n" "$gl_cv_next_langinfo_h" >&6; }
     13963     fi
     13964     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
     13965
     13966     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     13967       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     13968       gl_next_as_first_directive='<'langinfo.h'>'
     13969     else
     13970       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     13971       gl_next_as_first_directive=$gl_cv_next_langinfo_h
     13972     fi
     13973     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
     13974
     13975
     13976
     13977
     13978
     13979    HAVE_LANGINFO_CODESET=0
     13980  HAVE_LANGINFO_T_FMT_AMPM=0
     13981  HAVE_LANGINFO_ALTMON=0
     13982  HAVE_LANGINFO_ERA=0
     13983  HAVE_LANGINFO_YESEXPR=0
     13984
     13985  if test $ac_cv_header_langinfo_h = yes; then
     13986    HAVE_LANGINFO_H=1
     13987                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
     13988printf %s "checking whether langinfo.h defines CODESET... " >&6; }
     13989if test ${gl_cv_header_langinfo_codeset+y}
     13990then :
     13991  printf %s "(cached) " >&6
     13992else case e in #(
     13993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13994/* end confdefs.h.  */
     13995#include <langinfo.h>
     13996int a = CODESET;
     13997
     13998int
     13999main (void)
     14000{
     14001
     14002  ;
     14003  return 0;
     14004}
     14005_ACEOF
     14006if ac_fn_c_try_compile "$LINENO"
     14007then :
     14008  gl_cv_header_langinfo_codeset=yes
     14009else case e in #(
     14010  e) gl_cv_header_langinfo_codeset=no ;;
     14011esac
     14012fi
     14013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14014       ;;
     14015esac
     14016fi
     14017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
     14018printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; }
     14019    if test $gl_cv_header_langinfo_codeset = yes; then
     14020      HAVE_LANGINFO_CODESET=1
     14021    fi
     14022    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
     14023printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
     14024if test ${gl_cv_header_langinfo_t_fmt_ampm+y}
     14025then :
     14026  printf %s "(cached) " >&6
     14027else case e in #(
     14028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14029/* end confdefs.h.  */
     14030#include <langinfo.h>
     14031int a = T_FMT_AMPM;
     14032
     14033int
     14034main (void)
     14035{
     14036
     14037  ;
     14038  return 0;
     14039}
     14040_ACEOF
     14041if ac_fn_c_try_compile "$LINENO"
     14042then :
     14043  gl_cv_header_langinfo_t_fmt_ampm=yes
     14044else case e in #(
     14045  e) gl_cv_header_langinfo_t_fmt_ampm=no ;;
     14046esac
     14047fi
     14048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14049       ;;
     14050esac
     14051fi
     14052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
     14053printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
     14054    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
     14055      HAVE_LANGINFO_T_FMT_AMPM=1
     14056    fi
     14057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
     14058printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; }
     14059if test ${gl_cv_header_langinfo_altmon+y}
     14060then :
     14061  printf %s "(cached) " >&6
     14062else case e in #(
     14063  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14064/* end confdefs.h.  */
     14065#include <langinfo.h>
     14066int a = ALTMON_1;
     14067
     14068int
     14069main (void)
     14070{
     14071
     14072  ;
     14073  return 0;
     14074}
     14075_ACEOF
     14076if ac_fn_c_try_compile "$LINENO"
     14077then :
     14078  gl_cv_header_langinfo_altmon=yes
     14079else case e in #(
     14080  e) gl_cv_header_langinfo_altmon=no ;;
     14081esac
     14082fi
     14083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14084       ;;
     14085esac
     14086fi
     14087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
     14088printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; }
     14089    if test $gl_cv_header_langinfo_altmon = yes; then
     14090      HAVE_LANGINFO_ALTMON=1
     14091    fi
     14092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
     14093printf %s "checking whether langinfo.h defines ERA... " >&6; }
     14094if test ${gl_cv_header_langinfo_era+y}
     14095then :
     14096  printf %s "(cached) " >&6
     14097else case e in #(
     14098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14099/* end confdefs.h.  */
     14100#include <langinfo.h>
     14101int a = ERA;
     14102
     14103int
     14104main (void)
     14105{
     14106
     14107  ;
     14108  return 0;
     14109}
     14110_ACEOF
     14111if ac_fn_c_try_compile "$LINENO"
     14112then :
     14113  gl_cv_header_langinfo_era=yes
     14114else case e in #(
     14115  e) gl_cv_header_langinfo_era=no ;;
     14116esac
     14117fi
     14118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14119       ;;
     14120esac
     14121fi
     14122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
     14123printf "%s\n" "$gl_cv_header_langinfo_era" >&6; }
     14124    if test $gl_cv_header_langinfo_era = yes; then
     14125      HAVE_LANGINFO_ERA=1
     14126    fi
     14127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
     14128printf %s "checking whether langinfo.h defines YESEXPR... " >&6; }
     14129if test ${gl_cv_header_langinfo_yesexpr+y}
     14130then :
     14131  printf %s "(cached) " >&6
     14132else case e in #(
     14133  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14134/* end confdefs.h.  */
     14135#include <langinfo.h>
     14136int a = YESEXPR;
     14137
     14138int
     14139main (void)
     14140{
     14141
     14142  ;
     14143  return 0;
     14144}
     14145_ACEOF
     14146if ac_fn_c_try_compile "$LINENO"
     14147then :
     14148  gl_cv_header_langinfo_yesexpr=yes
     14149else case e in #(
     14150  e) gl_cv_header_langinfo_yesexpr=no ;;
     14151esac
     14152fi
     14153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14154       ;;
     14155esac
     14156fi
     14157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
     14158printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; }
     14159    if test $gl_cv_header_langinfo_yesexpr = yes; then
     14160      HAVE_LANGINFO_YESEXPR=1
     14161    fi
     14162  else
     14163    HAVE_LANGINFO_H=0
     14164  fi
     14165
     14166
     14167
     14168
     14169
     14170
     14171
     14172
     14173
     14174
     14175
     14176
     14177
     14178  GL_GNULIB_NL_LANGINFO=0
     14179
     14180
     14181
     14182
     14183    HAVE_NEWLOCALE=1;
     14184  HAVE_DUPLOCALE=1;
     14185  HAVE_FREELOCALE=1;
     14186  REPLACE_LOCALECONV=0;
     14187  REPLACE_SETLOCALE=0;
     14188  REPLACE_NEWLOCALE=0;
     14189  REPLACE_DUPLOCALE=0;
     14190  REPLACE_FREELOCALE=0;
     14191  REPLACE_STRUCT_LCONV=0;
     14192  LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
     14193
     14194
     14195    REPLACE_NULL=0;
     14196  HAVE_MAX_ALIGN_T=1;
     14197  HAVE_WCHAR_T=1;
     14198
     14199
     14200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
     14201printf %s "checking for wchar_t... " >&6; }
     14202if test ${gt_cv_c_wchar_t+y}
     14203then :
     14204  printf %s "(cached) " >&6
     14205else case e in #(
     14206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14207/* end confdefs.h.  */
     14208#include <stddef.h>
     14209            wchar_t foo = (wchar_t)'\0';
     14210int
     14211main (void)
     14212{
     14213
     14214  ;
     14215  return 0;
     14216}
     14217_ACEOF
     14218if ac_fn_c_try_compile "$LINENO"
     14219then :
     14220  gt_cv_c_wchar_t=yes
     14221else case e in #(
     14222  e) gt_cv_c_wchar_t=no ;;
     14223esac
     14224fi
     14225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     14226esac
     14227fi
     14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
     14229printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
     14230  if test $gt_cv_c_wchar_t = yes; then
     14231
     14232printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
     14233
     14234  fi
     14235
     14236
     14237
     14238
     14239
     14240
     14241
     14242  GL_GENERATE_STDDEF_H=false
     14243
     14244      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
     14245printf %s "checking for good max_align_t... " >&6; }
     14246if test ${gl_cv_type_max_align_t+y}
     14247then :
     14248  printf %s "(cached) " >&6
     14249else case e in #(
     14250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14251/* end confdefs.h.  */
     14252#include <stddef.h>
     14253            unsigned int s = sizeof (max_align_t);
     14254            #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
     14255            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
     14256            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
     14257            #endif
     14258            typedef struct { char a; max_align_t b; } max_helper;
     14259            typedef struct { char a; long b; } long_helper;
     14260            typedef struct { char a; double b; } double_helper;
     14261            typedef struct { char a; long double b; } long_double_helper;
     14262            int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
     14263            int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
     14264            int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
     14265
     14266int
     14267main (void)
     14268{
     14269
     14270  ;
     14271  return 0;
     14272}
     14273_ACEOF
     14274if ac_fn_c_try_compile "$LINENO"
     14275then :
     14276  gl_cv_type_max_align_t=yes
     14277else case e in #(
     14278  e) gl_cv_type_max_align_t=no ;;
     14279esac
     14280fi
     14281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14282     ;;
     14283esac
     14284fi
     14285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
     14286printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
     14287  if test $gl_cv_type_max_align_t = no; then
     14288    HAVE_MAX_ALIGN_T=0
     14289    GL_GENERATE_STDDEF_H=true
     14290  fi
     14291
     14292  if test $gt_cv_c_wchar_t = no; then
     14293    HAVE_WCHAR_T=0
     14294    GL_GENERATE_STDDEF_H=true
     14295  fi
     14296
     14297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
     14298printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
     14299if test ${gl_cv_decl_null_works+y}
     14300then :
     14301  printf %s "(cached) " >&6
     14302else case e in #(
     14303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14304/* end confdefs.h.  */
     14305#include <stddef.h>
     14306      int test[2 * (sizeof NULL == sizeof (void *)) -1];
     14307
     14308int
     14309main (void)
     14310{
     14311
     14312  ;
     14313  return 0;
     14314}
     14315_ACEOF
     14316if ac_fn_c_try_compile "$LINENO"
     14317then :
     14318  gl_cv_decl_null_works=yes
     14319else case e in #(
     14320  e) gl_cv_decl_null_works=no ;;
     14321esac
     14322fi
     14323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     14324esac
     14325fi
     14326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
     14327printf "%s\n" "$gl_cv_decl_null_works" >&6; }
     14328  if test $gl_cv_decl_null_works = no; then
     14329    REPLACE_NULL=1
     14330    GL_GENERATE_STDDEF_H=true
     14331  fi
     14332
     14333  if $GL_GENERATE_STDDEF_H; then
     14334
     14335
     14336
     14337
     14338
     14339
     14340
     14341
     14342     if test $gl_cv_have_include_next = yes; then
     14343       gl_cv_next_stddef_h='<'stddef.h'>'
     14344     else
     14345       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
     14346printf %s "checking absolute name of <stddef.h>... " >&6; }
     14347if test ${gl_cv_next_stddef_h+y}
     14348then :
     14349  printf %s "(cached) " >&6
     14350else case e in #(
     14351  e)
     14352
     14353
     14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14355/* end confdefs.h.  */
     14356#include <stddef.h>
     14357_ACEOF
     14358                case "$host_os" in
     14359    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     14360    *)    gl_absname_cpp="$ac_cpp" ;;
     14361  esac
     14362
     14363  case "$host_os" in
     14364    mingw*)
     14365                                          gl_dirsep_regex='[/\\]'
     14366      ;;
     14367    *)
     14368      gl_dirsep_regex='\/'
     14369      ;;
     14370  esac
     14371      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     14372  gl_header_literal_regex=`echo 'stddef.h' \
     14373                           | sed -e "$gl_make_literal_regex_sed"`
     14374  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     14375      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     14376      s|^/[^/]|//&|
     14377      p
     14378      q
     14379    }'
     14380
     14381        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     14382  sed -n "$gl_absolute_header_sed"`
     14383
     14384          gl_header=$gl_cv_absolute_stddef_h
     14385          gl_cv_next_stddef_h='"'$gl_header'"'
     14386
     14387          ;;
     14388esac
     14389fi
     14390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
     14391printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
     14392     fi
     14393     NEXT_STDDEF_H=$gl_cv_next_stddef_h
     14394
     14395     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     14396       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     14397       gl_next_as_first_directive='<'stddef.h'>'
     14398     else
     14399       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     14400       gl_next_as_first_directive=$gl_cv_next_stddef_h
     14401     fi
     14402     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
     14403
     14404
     14405
     14406
     14407  fi
     14408
     14409
     14410
     14411
     14412
     14413        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
     14414printf %s "checking whether locale.h defines locale_t... " >&6; }
     14415if test ${gl_cv_header_locale_has_locale_t+y}
     14416then :
     14417  printf %s "(cached) " >&6
     14418else case e in #(
     14419  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14420/* end confdefs.h.  */
     14421#include <locale.h>
     14422            locale_t x;
     14423int
     14424main (void)
     14425{
     14426
     14427  ;
     14428  return 0;
     14429}
     14430_ACEOF
     14431if ac_fn_c_try_compile "$LINENO"
     14432then :
     14433  gl_cv_header_locale_has_locale_t=yes
     14434else case e in #(
     14435  e) gl_cv_header_locale_has_locale_t=no ;;
     14436esac
     14437fi
     14438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14439     ;;
     14440esac
     14441fi
     14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
     14443printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; }
     14444
     14445
     14446  if test $ac_cv_header_xlocale_h = yes; then
     14447    HAVE_XLOCALE_H=1
     14448    if test $gl_cv_header_locale_has_locale_t = yes; then
     14449      gl_cv_header_locale_h_needs_xlocale_h=no
     14450    else
     14451      gl_cv_header_locale_h_needs_xlocale_h=yes
     14452    fi
     14453    HAVE_LOCALE_T=1
     14454  else
     14455    HAVE_XLOCALE_H=0
     14456    gl_cv_header_locale_h_needs_xlocale_h=no
     14457    if test $gl_cv_header_locale_has_locale_t = yes; then
     14458      HAVE_LOCALE_T=1
     14459    else
     14460      HAVE_LOCALE_T=0
     14461    fi
     14462  fi
     14463
     14464
     14465
     14466
     14467
     14468
     14469
     14470
     14471
     14472
     14473
     14474
     14475  case "$host_os" in
     14476    solaris*)
     14477
     14478printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h
     14479
     14480      ;;
     14481  esac
     14482
     14483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
     14484printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; }
     14485if test ${gl_cv_header_locale_h_posix2001+y}
     14486then :
     14487  printf %s "(cached) " >&6
     14488else case e in #(
     14489  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14490/* end confdefs.h.  */
     14491#include <locale.h>
     14492            int x = LC_MESSAGES;
     14493            int y = sizeof (((struct lconv *) 0)->decimal_point);
     14494int
     14495main (void)
     14496{
     14497
     14498  ;
     14499  return 0;
     14500}
     14501_ACEOF
     14502if ac_fn_c_try_compile "$LINENO"
     14503then :
     14504  gl_cv_header_locale_h_posix2001=yes
     14505else case e in #(
     14506  e) gl_cv_header_locale_h_posix2001=no ;;
     14507esac
     14508fi
     14509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     14510esac
     14511fi
     14512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
     14513printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; }
     14514
     14515          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
     14516printf %s "checking whether struct lconv is properly defined... " >&6; }
     14517if test ${gl_cv_sys_struct_lconv_ok+y}
     14518then :
     14519  printf %s "(cached) " >&6
     14520else case e in #(
     14521  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14522/* end confdefs.h.  */
     14523#include <locale.h>
     14524            struct lconv l;
     14525            int x = sizeof (l.decimal_point);
     14526            int y = sizeof (l.int_p_cs_precedes);
     14527int
     14528main (void)
     14529{
     14530
     14531  ;
     14532  return 0;
     14533}
     14534_ACEOF
     14535if ac_fn_c_try_compile "$LINENO"
     14536then :
     14537  gl_cv_sys_struct_lconv_ok=yes
     14538else case e in #(
     14539  e) gl_cv_sys_struct_lconv_ok=no ;;
     14540esac
     14541fi
     14542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     14543     ;;
     14544esac
     14545fi
     14546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
     14547printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; }
     14548  if test $gl_cv_sys_struct_lconv_ok = no; then
     14549            case "$host_os" in
     14550      mingw*)
     14551        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14552/* end confdefs.h.  */
     14553
     14554#ifdef _MSC_VER
     14555 Special
     14556#endif
     14557
     14558_ACEOF
     14559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     14560  $EGREP_TRADITIONAL "Special" >/dev/null 2>&1
     14561then :
     14562
     14563else case e in #(
     14564  e) REPLACE_STRUCT_LCONV=1 ;;
     14565esac
     14566fi
     14567rm -rf conftest*
     14568
     14569        ;;
     14570      *) REPLACE_STRUCT_LCONV=1 ;;
     14571    esac
     14572  fi
     14573
     14574
     14575
     14576
     14577
     14578
     14579
     14580
     14581
     14582     if test $gl_cv_have_include_next = yes; then
     14583       gl_cv_next_locale_h='<'locale.h'>'
     14584     else
     14585       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
     14586printf %s "checking absolute name of <locale.h>... " >&6; }
     14587if test ${gl_cv_next_locale_h+y}
     14588then :
     14589  printf %s "(cached) " >&6
     14590else case e in #(
     14591  e)
     14592
     14593
     14594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14595/* end confdefs.h.  */
     14596#include <locale.h>
     14597_ACEOF
     14598                case "$host_os" in
     14599    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     14600    *)    gl_absname_cpp="$ac_cpp" ;;
     14601  esac
     14602
     14603  case "$host_os" in
     14604    mingw*)
     14605                                          gl_dirsep_regex='[/\\]'
     14606      ;;
     14607    *)
     14608      gl_dirsep_regex='\/'
     14609      ;;
     14610  esac
     14611      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     14612  gl_header_literal_regex=`echo 'locale.h' \
     14613                           | sed -e "$gl_make_literal_regex_sed"`
     14614  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     14615      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     14616      s|^/[^/]|//&|
     14617      p
     14618      q
     14619    }'
     14620
     14621        gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     14622  sed -n "$gl_absolute_header_sed"`
     14623
     14624          gl_header=$gl_cv_absolute_locale_h
     14625          gl_cv_next_locale_h='"'$gl_header'"'
     14626
     14627          ;;
     14628esac
     14629fi
     14630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
     14631printf "%s\n" "$gl_cv_next_locale_h" >&6; }
     14632     fi
     14633     NEXT_LOCALE_H=$gl_cv_next_locale_h
     14634
     14635     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     14636       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     14637       gl_next_as_first_directive='<'locale.h'>'
     14638     else
     14639       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     14640       gl_next_as_first_directive=$gl_cv_next_locale_h
     14641     fi
     14642     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
     14643
     14644
     14645
     14646
     14647
     14648
     14649
     14650
     14651
     14652
     14653
     14654  GL_GNULIB_LOCALECONV=0
     14655
     14656
     14657
     14658  GL_GNULIB_SETLOCALE=0
     14659
     14660
     14661
     14662  GL_GNULIB_SETLOCALE_NULL=0
     14663
     14664
     14665
     14666  GL_GNULIB_DUPLOCALE=0
     14667
     14668
     14669
     14670  GL_GNULIB_LOCALENAME=0
     14671
     14672
     14673
     14674
     14675
     14676  gl_threads_api=none
     14677  LIBTHREAD=
     14678  LTLIBTHREAD=
     14679  LIBMULTITHREAD=
     14680  LTLIBMULTITHREAD=
     14681  if test "$gl_use_threads" != no; then
     14682
     14683
     14684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
     14685printf %s "checking whether imported symbols can be declared weak... " >&6; }
     14686if test ${gl_cv_have_weak+y}
     14687then :
     14688  printf %s "(cached) " >&6
     14689else case e in #(
     14690  e) case "$host_os" in
     14691       cygwin*)
     14692                                    gl_cv_have_weak="guessing no"
     14693         ;;
     14694       *)
     14695         gl_cv_have_weak=no
     14696                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14697/* end confdefs.h.  */
     14698extern void xyzzy ();
     14699#pragma weak xyzzy
     14700int
     14701main (void)
     14702{
     14703xyzzy();
     14704  ;
     14705  return 0;
     14706}
     14707_ACEOF
     14708if ac_fn_c_try_link "$LINENO"
     14709then :
     14710  gl_cv_have_weak=maybe
     14711fi
     14712rm -f core conftest.err conftest.$ac_objext conftest.beam \
     14713    conftest$ac_exeext conftest.$ac_ext
     14714         if test $gl_cv_have_weak = maybe; then
     14715                                 if test "$cross_compiling" = yes
     14716then :
     14717                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14718/* end confdefs.h.  */
     14719#ifdef __ELF__
     14720                 Extensible Linking Format
     14721                 #endif
     14722
     14723_ACEOF
     14724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     14725  $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
     14726then :
     14727  gl_cv_have_weak="guessing yes"
     14728else case e in #(
     14729  e) gl_cv_have_weak="guessing no" ;;
     14730esac
     14731fi
     14732rm -rf conftest*
     14733
     14734
     14735else case e in #(
     14736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14737/* end confdefs.h.  */
     14738
     14739#include <stdio.h>
     14740#pragma weak fputs
     14741int main ()
     14742{
     14743  return (fputs == NULL);
     14744}
     14745_ACEOF
     14746if ac_fn_c_try_run "$LINENO"
     14747then :
     14748  gl_cv_have_weak=yes
     14749else case e in #(
     14750  e) gl_cv_have_weak=no ;;
     14751esac
     14752fi
     14753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     14754  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     14755esac
     14756fi
     14757
     14758         fi
     14759         ;;
     14760     esac
     14761          case " $LDFLAGS " in
     14762       *" -static "*) gl_cv_have_weak=no ;;
     14763     esac
     14764                    case "$gl_cv_have_weak" in
     14765       *yes)
     14766         case "$host_os" in
     14767           freebsd* | dragonfly* | midnightbsd*)
     14768             : > conftest1.c
     14769             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
     14770             cat <<EOF > conftest2.c
     14771#include <pthread.h>
     14772#pragma weak pthread_mutexattr_gettype
     14773int main ()
     14774{
     14775  return (pthread_mutexattr_gettype != NULL);
     14776}
     14777EOF
     14778             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
     14779               || gl_cv_have_weak=no
     14780             rm -f conftest1.c libempty.so conftest2.c conftest
     14781             ;;
     14782         esac
     14783         ;;
     14784     esac
     14785     ;;
     14786esac
     14787fi
     14788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
     14789printf "%s\n" "$gl_cv_have_weak" >&6; }
     14790  case "$gl_cv_have_weak" in
     14791    *yes)
     14792
     14793printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
     14794
     14795      ;;
     14796  esac
     14797
     14798    if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
     14799
     14800      :
     14801    fi
     14802    if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
     14803
     14804      gl_have_isoc_threads="$ac_cv_header_threads_h"
     14805    fi
     14806    if test "$gl_use_threads" = yes \
     14807       || test "$gl_use_threads" = posix \
     14808       || test "$gl_use_threads" = isoc+posix; then
     14809
     14810
     14811  if test -z "$gl_pthreadlib_body_done"; then
     14812    gl_pthread_api=no
     14813    LIBPTHREAD=
     14814    LIBPMULTITHREAD=
     14815    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
     14816    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
     14817    ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
     14818if test "x$ac_cv_header_pthread_h" = xyes
     14819then :
     14820  gl_have_pthread_h=yes
     14821else case e in #(
     14822  e) gl_have_pthread_h=no ;;
     14823esac
     14824fi
     14825
     14826    if test "$gl_have_pthread_h" = yes; then
     14827      # Other possible tests:
     14828      #   -lpthreads (FSU threads, PCthreads)
     14829      #   -lgthreads
     14830      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
     14831      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
     14832      # the second one only in libpthread, and lock.c needs it.
     14833      #
     14834      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
     14835      # needs -pthread for some reason.  See:
     14836      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
     14837      save_LIBS=$LIBS
     14838      for gl_pthread in '' '-pthread'; do
     14839        LIBS="$LIBS $gl_pthread"
     14840        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14841/* end confdefs.h.  */
     14842#include <pthread.h>
     14843               pthread_mutex_t m;
     14844               pthread_mutexattr_t ma;
     14845
     14846int
     14847main (void)
     14848{
     14849pthread_mutex_lock (&m);
     14850               pthread_mutexattr_init (&ma);
     14851  ;
     14852  return 0;
     14853}
     14854_ACEOF
     14855if ac_fn_c_try_link "$LINENO"
     14856then :
     14857  gl_pthread_api=yes
     14858           LIBPTHREAD=$gl_pthread
     14859           LIBPMULTITHREAD=$gl_pthread
     14860fi
     14861rm -f core conftest.err conftest.$ac_objext conftest.beam \
     14862    conftest$ac_exeext conftest.$ac_ext
     14863        LIBS=$save_LIBS
     14864        test $gl_pthread_api = yes && break
     14865      done
     14866      echo "$as_me:14866: gl_pthread_api=$gl_pthread_api" >&5
     14867      echo "$as_me:14867: LIBPTHREAD=$LIBPTHREAD" >&5
     14868
     14869      gl_pthread_in_glibc=no
     14870      # On Linux with glibc >= 2.34, libc contains the fully functional
     14871      # pthread functions.
     14872      case "$host_os" in
     14873        linux*)
     14874          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14875/* end confdefs.h.  */
     14876#include <features.h>
     14877             #ifdef __GNU_LIBRARY__
     14878              #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
     14879               Lucky user
     14880              #endif
     14881             #endif
     14882
     14883_ACEOF
     14884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     14885  $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
     14886then :
     14887  gl_pthread_in_glibc=yes
     14888fi
     14889rm -rf conftest*
     14890
     14891          ;;
     14892      esac
     14893      echo "$as_me:14893: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
     14894
     14895      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
     14896      # since it is defined as a macro on OSF/1.)
     14897      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
     14898        # The program links fine without libpthread. But it may actually
     14899        # need to link with libpthread in order to create multiple threads.
     14900        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     14901printf %s "checking for pthread_kill in -lpthread... " >&6; }
     14902if test ${ac_cv_lib_pthread_pthread_kill+y}
     14903then :
     14904  printf %s "(cached) " >&6
     14905else case e in #(
     14906  e) ac_check_lib_save_LIBS=$LIBS
     14907LIBS="-lpthread  $LIBS"
     14908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14909/* end confdefs.h.  */
     14910
     14911/* Override any GCC internal prototype to avoid an error.
     14912   Use char because int might match the return type of a GCC
     14913   builtin and then its argument prototype would still apply.
     14914   The 'extern "C"' is for builds by C++ compilers;
     14915   although this is not generally supported in C code, supporting it here
     14916   has little cost and some practical benefit (sr 110532).  */
     14917#ifdef __cplusplus
     14918extern "C"
     14919#endif
     14920char pthread_kill (void);
     14921int
     14922main (void)
     14923{
     14924return pthread_kill ();
     14925  ;
     14926  return 0;
     14927}
     14928_ACEOF
     14929if ac_fn_c_try_link "$LINENO"
     14930then :
     14931  ac_cv_lib_pthread_pthread_kill=yes
     14932else case e in #(
     14933  e) ac_cv_lib_pthread_pthread_kill=no ;;
     14934esac
     14935fi
     14936rm -f core conftest.err conftest.$ac_objext conftest.beam \
     14937    conftest$ac_exeext conftest.$ac_ext
     14938LIBS=$ac_check_lib_save_LIBS ;;
     14939esac
     14940fi
     14941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     14942printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     14943if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     14944then :
     14945  if test $gl_pthread_in_glibc = yes; then
     14946             LIBPMULTITHREAD=
     14947           else
     14948             LIBPMULTITHREAD=-lpthread
     14949             # On Solaris and HP-UX, most pthread functions exist also in libc.
     14950             # Therefore pthread_in_use() needs to actually try to create a
     14951             # thread: pthread_create from libc will fail, whereas
     14952             # pthread_create will actually create a thread.
     14953             # On Solaris 10 or newer, this test is no longer needed, because
     14954             # libc contains the fully functional pthread functions.
     14955             case "$host_os" in
     14956               solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
     14957
     14958printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
     14959
     14960             esac
     14961           fi
     14962
     14963fi
     14964
     14965      elif test $gl_pthread_api != yes; then
     14966        # Some library is needed. Try libpthread and libc_r.
     14967        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     14968printf %s "checking for pthread_kill in -lpthread... " >&6; }
     14969if test ${ac_cv_lib_pthread_pthread_kill+y}
     14970then :
     14971  printf %s "(cached) " >&6
     14972else case e in #(
     14973  e) ac_check_lib_save_LIBS=$LIBS
     14974LIBS="-lpthread  $LIBS"
     14975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14976/* end confdefs.h.  */
     14977
     14978/* Override any GCC internal prototype to avoid an error.
     14979   Use char because int might match the return type of a GCC
     14980   builtin and then its argument prototype would still apply.
     14981   The 'extern "C"' is for builds by C++ compilers;
     14982   although this is not generally supported in C code, supporting it here
     14983   has little cost and some practical benefit (sr 110532).  */
     14984#ifdef __cplusplus
     14985extern "C"
     14986#endif
     14987char pthread_kill (void);
     14988int
     14989main (void)
     14990{
     14991return pthread_kill ();
     14992  ;
     14993  return 0;
     14994}
     14995_ACEOF
     14996if ac_fn_c_try_link "$LINENO"
     14997then :
     14998  ac_cv_lib_pthread_pthread_kill=yes
     14999else case e in #(
     15000  e) ac_cv_lib_pthread_pthread_kill=no ;;
     15001esac
     15002fi
     15003rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15004    conftest$ac_exeext conftest.$ac_ext
     15005LIBS=$ac_check_lib_save_LIBS ;;
     15006esac
     15007fi
     15008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     15009printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     15010if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     15011then :
     15012  gl_pthread_api=yes
     15013           LIBPTHREAD=-lpthread
     15014           LIBPMULTITHREAD=-lpthread
     15015fi
     15016
     15017        if test $gl_pthread_api != yes; then
     15018          # For FreeBSD 4.
     15019          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
     15020printf %s "checking for pthread_kill in -lc_r... " >&6; }
     15021if test ${ac_cv_lib_c_r_pthread_kill+y}
     15022then :
     15023  printf %s "(cached) " >&6
     15024else case e in #(
     15025  e) ac_check_lib_save_LIBS=$LIBS
     15026LIBS="-lc_r  $LIBS"
     15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15028/* end confdefs.h.  */
     15029
     15030/* Override any GCC internal prototype to avoid an error.
     15031   Use char because int might match the return type of a GCC
     15032   builtin and then its argument prototype would still apply.
     15033   The 'extern "C"' is for builds by C++ compilers;
     15034   although this is not generally supported in C code, supporting it here
     15035   has little cost and some practical benefit (sr 110532).  */
     15036#ifdef __cplusplus
     15037extern "C"
     15038#endif
     15039char pthread_kill (void);
     15040int
     15041main (void)
     15042{
     15043return pthread_kill ();
     15044  ;
     15045  return 0;
     15046}
     15047_ACEOF
     15048if ac_fn_c_try_link "$LINENO"
     15049then :
     15050  ac_cv_lib_c_r_pthread_kill=yes
     15051else case e in #(
     15052  e) ac_cv_lib_c_r_pthread_kill=no ;;
     15053esac
     15054fi
     15055rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15056    conftest$ac_exeext conftest.$ac_ext
     15057LIBS=$ac_check_lib_save_LIBS ;;
     15058esac
     15059fi
     15060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
     15061printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
     15062if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
     15063then :
     15064  gl_pthread_api=yes
     15065             LIBPTHREAD=-lc_r
     15066             LIBPMULTITHREAD=-lc_r
     15067fi
     15068
     15069        fi
     15070      fi
     15071      echo "$as_me:15071: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
     15072    fi
     15073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
     15074printf %s "checking whether POSIX threads API is available... " >&6; }
     15075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
     15076printf "%s\n" "$gl_pthread_api" >&6; }
     15077
     15078
     15079    if test $gl_pthread_api = yes; then
     15080
     15081printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
     15082
     15083    fi
     15084
     15085        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15086/* end confdefs.h.  */
     15087#include <sched.h>
     15088int
     15089main (void)
     15090{
     15091sched_yield ();
     15092  ;
     15093  return 0;
     15094}
     15095_ACEOF
     15096if ac_fn_c_try_link "$LINENO"
     15097then :
     15098  LIB_SCHED_YIELD=
     15099
     15100else case e in #(
     15101  e)        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
     15102printf %s "checking for sched_yield in -lrt... " >&6; }
     15103if test ${ac_cv_lib_rt_sched_yield+y}
     15104then :
     15105  printf %s "(cached) " >&6
     15106else case e in #(
     15107  e) ac_check_lib_save_LIBS=$LIBS
     15108LIBS="-lrt  $LIBS"
     15109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15110/* end confdefs.h.  */
     15111
     15112/* Override any GCC internal prototype to avoid an error.
     15113   Use char because int might match the return type of a GCC
     15114   builtin and then its argument prototype would still apply.
     15115   The 'extern "C"' is for builds by C++ compilers;
     15116   although this is not generally supported in C code, supporting it here
     15117   has little cost and some practical benefit (sr 110532).  */
     15118#ifdef __cplusplus
     15119extern "C"
     15120#endif
     15121char sched_yield (void);
     15122int
     15123main (void)
     15124{
     15125return sched_yield ();
     15126  ;
     15127  return 0;
     15128}
     15129_ACEOF
     15130if ac_fn_c_try_link "$LINENO"
     15131then :
     15132  ac_cv_lib_rt_sched_yield=yes
     15133else case e in #(
     15134  e) ac_cv_lib_rt_sched_yield=no ;;
     15135esac
     15136fi
     15137rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15138    conftest$ac_exeext conftest.$ac_ext
     15139LIBS=$ac_check_lib_save_LIBS ;;
     15140esac
     15141fi
     15142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
     15143printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
     15144if test "x$ac_cv_lib_rt_sched_yield" = xyes
     15145then :
     15146  LIB_SCHED_YIELD=-lrt
     15147else case e in #(
     15148  e)           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
     15149printf %s "checking for sched_yield in -lposix4... " >&6; }
     15150if test ${ac_cv_lib_posix4_sched_yield+y}
     15151then :
     15152  printf %s "(cached) " >&6
     15153else case e in #(
     15154  e) ac_check_lib_save_LIBS=$LIBS
     15155LIBS="-lposix4  $LIBS"
     15156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15157/* end confdefs.h.  */
     15158
     15159/* Override any GCC internal prototype to avoid an error.
     15160   Use char because int might match the return type of a GCC
     15161   builtin and then its argument prototype would still apply.
     15162   The 'extern "C"' is for builds by C++ compilers;
     15163   although this is not generally supported in C code, supporting it here
     15164   has little cost and some practical benefit (sr 110532).  */
     15165#ifdef __cplusplus
     15166extern "C"
     15167#endif
     15168char sched_yield (void);
     15169int
     15170main (void)
     15171{
     15172return sched_yield ();
     15173  ;
     15174  return 0;
     15175}
     15176_ACEOF
     15177if ac_fn_c_try_link "$LINENO"
     15178then :
     15179  ac_cv_lib_posix4_sched_yield=yes
     15180else case e in #(
     15181  e) ac_cv_lib_posix4_sched_yield=no ;;
     15182esac
     15183fi
     15184rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15185    conftest$ac_exeext conftest.$ac_ext
     15186LIBS=$ac_check_lib_save_LIBS ;;
     15187esac
     15188fi
     15189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
     15190printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
     15191if test "x$ac_cv_lib_posix4_sched_yield" = xyes
     15192then :
     15193  LIB_SCHED_YIELD=-lposix4
     15194fi
     15195 ;;
     15196esac
     15197fi
     15198
     15199       ;;
     15200esac
     15201fi
     15202rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15203    conftest$ac_exeext conftest.$ac_ext
     15204
     15205
     15206    gl_pthreadlib_body_done=done
     15207  fi
     15208
     15209      LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
     15210      LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
     15211      if test $gl_pthread_api = yes; then
     15212        if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
     15213          gl_threads_api='isoc+posix'
     15214
     15215printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
     15216
     15217          LIBTHREAD= LTLIBTHREAD=
     15218        else
     15219          gl_threads_api=posix
     15220
     15221printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
     15222
     15223          if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then
     15224
     15225printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h
     15226
     15227          else
     15228            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
     15229
     15230printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
     15231
     15232              LIBTHREAD= LTLIBTHREAD=
     15233            else
     15234              case "$host_os" in
     15235                freebsd* | dragonfly* | midnightbsd*)
     15236                  if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
     15237
     15238printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
     15239
     15240                  fi
     15241                  ;;
     15242              esac
     15243            fi
     15244          fi
     15245        fi
     15246      fi
     15247    fi
     15248    if test $gl_threads_api = none; then
     15249      if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
     15250
     15251
     15252
     15253  if test -z "$gl_stdthreadlib_body_done"; then
     15254
     15255
     15256    case "$host_os" in
     15257      mingw*)
     15258        LIBSTDTHREAD=
     15259        ;;
     15260      *)
     15261
     15262
     15263  if test -z "$gl_pthreadlib_body_done"; then
     15264    gl_pthread_api=no
     15265    LIBPTHREAD=
     15266    LIBPMULTITHREAD=
     15267    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
     15268    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
     15269    ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
     15270if test "x$ac_cv_header_pthread_h" = xyes
     15271then :
     15272  gl_have_pthread_h=yes
     15273else case e in #(
     15274  e) gl_have_pthread_h=no ;;
     15275esac
     15276fi
     15277
     15278    if test "$gl_have_pthread_h" = yes; then
     15279      # Other possible tests:
     15280      #   -lpthreads (FSU threads, PCthreads)
     15281      #   -lgthreads
     15282      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
     15283      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
     15284      # the second one only in libpthread, and lock.c needs it.
     15285      #
     15286      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
     15287      # needs -pthread for some reason.  See:
     15288      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
     15289      save_LIBS=$LIBS
     15290      for gl_pthread in '' '-pthread'; do
     15291        LIBS="$LIBS $gl_pthread"
     15292        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15293/* end confdefs.h.  */
     15294#include <pthread.h>
     15295               pthread_mutex_t m;
     15296               pthread_mutexattr_t ma;
     15297
     15298int
     15299main (void)
     15300{
     15301pthread_mutex_lock (&m);
     15302               pthread_mutexattr_init (&ma);
     15303  ;
     15304  return 0;
     15305}
     15306_ACEOF
     15307if ac_fn_c_try_link "$LINENO"
     15308then :
     15309  gl_pthread_api=yes
     15310           LIBPTHREAD=$gl_pthread
     15311           LIBPMULTITHREAD=$gl_pthread
     15312fi
     15313rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15314    conftest$ac_exeext conftest.$ac_ext
     15315        LIBS=$save_LIBS
     15316        test $gl_pthread_api = yes && break
     15317      done
     15318      echo "$as_me:15318: gl_pthread_api=$gl_pthread_api" >&5
     15319      echo "$as_me:15319: LIBPTHREAD=$LIBPTHREAD" >&5
     15320
     15321      gl_pthread_in_glibc=no
     15322      # On Linux with glibc >= 2.34, libc contains the fully functional
     15323      # pthread functions.
     15324      case "$host_os" in
     15325        linux*)
     15326          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15327/* end confdefs.h.  */
     15328#include <features.h>
     15329             #ifdef __GNU_LIBRARY__
     15330              #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
     15331               Lucky user
     15332              #endif
     15333             #endif
     15334
     15335_ACEOF
     15336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     15337  $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1
     15338then :
     15339  gl_pthread_in_glibc=yes
     15340fi
     15341rm -rf conftest*
     15342
     15343          ;;
     15344      esac
     15345      echo "$as_me:15345: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
     15346
     15347      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
     15348      # since it is defined as a macro on OSF/1.)
     15349      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
     15350        # The program links fine without libpthread. But it may actually
     15351        # need to link with libpthread in order to create multiple threads.
     15352        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     15353printf %s "checking for pthread_kill in -lpthread... " >&6; }
     15354if test ${ac_cv_lib_pthread_pthread_kill+y}
     15355then :
     15356  printf %s "(cached) " >&6
     15357else case e in #(
     15358  e) ac_check_lib_save_LIBS=$LIBS
     15359LIBS="-lpthread  $LIBS"
     15360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15361/* end confdefs.h.  */
     15362
     15363/* Override any GCC internal prototype to avoid an error.
     15364   Use char because int might match the return type of a GCC
     15365   builtin and then its argument prototype would still apply.
     15366   The 'extern "C"' is for builds by C++ compilers;
     15367   although this is not generally supported in C code, supporting it here
     15368   has little cost and some practical benefit (sr 110532).  */
     15369#ifdef __cplusplus
     15370extern "C"
     15371#endif
     15372char pthread_kill (void);
     15373int
     15374main (void)
     15375{
     15376return pthread_kill ();
     15377  ;
     15378  return 0;
     15379}
     15380_ACEOF
     15381if ac_fn_c_try_link "$LINENO"
     15382then :
     15383  ac_cv_lib_pthread_pthread_kill=yes
     15384else case e in #(
     15385  e) ac_cv_lib_pthread_pthread_kill=no ;;
     15386esac
     15387fi
     15388rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15389    conftest$ac_exeext conftest.$ac_ext
     15390LIBS=$ac_check_lib_save_LIBS ;;
     15391esac
     15392fi
     15393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     15394printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     15395if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     15396then :
     15397  if test $gl_pthread_in_glibc = yes; then
     15398             LIBPMULTITHREAD=
     15399           else
     15400             LIBPMULTITHREAD=-lpthread
     15401             # On Solaris and HP-UX, most pthread functions exist also in libc.
     15402             # Therefore pthread_in_use() needs to actually try to create a
     15403             # thread: pthread_create from libc will fail, whereas
     15404             # pthread_create will actually create a thread.
     15405             # On Solaris 10 or newer, this test is no longer needed, because
     15406             # libc contains the fully functional pthread functions.
     15407             case "$host_os" in
     15408               solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
     15409
     15410printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
     15411
     15412             esac
     15413           fi
     15414
     15415fi
     15416
     15417      elif test $gl_pthread_api != yes; then
     15418        # Some library is needed. Try libpthread and libc_r.
     15419        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
     15420printf %s "checking for pthread_kill in -lpthread... " >&6; }
     15421if test ${ac_cv_lib_pthread_pthread_kill+y}
     15422then :
     15423  printf %s "(cached) " >&6
     15424else case e in #(
     15425  e) ac_check_lib_save_LIBS=$LIBS
     15426LIBS="-lpthread  $LIBS"
     15427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15428/* end confdefs.h.  */
     15429
     15430/* Override any GCC internal prototype to avoid an error.
     15431   Use char because int might match the return type of a GCC
     15432   builtin and then its argument prototype would still apply.
     15433   The 'extern "C"' is for builds by C++ compilers;
     15434   although this is not generally supported in C code, supporting it here
     15435   has little cost and some practical benefit (sr 110532).  */
     15436#ifdef __cplusplus
     15437extern "C"
     15438#endif
     15439char pthread_kill (void);
     15440int
     15441main (void)
     15442{
     15443return pthread_kill ();
     15444  ;
     15445  return 0;
     15446}
     15447_ACEOF
     15448if ac_fn_c_try_link "$LINENO"
     15449then :
     15450  ac_cv_lib_pthread_pthread_kill=yes
     15451else case e in #(
     15452  e) ac_cv_lib_pthread_pthread_kill=no ;;
     15453esac
     15454fi
     15455rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15456    conftest$ac_exeext conftest.$ac_ext
     15457LIBS=$ac_check_lib_save_LIBS ;;
     15458esac
     15459fi
     15460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
     15461printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
     15462if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
     15463then :
     15464  gl_pthread_api=yes
     15465           LIBPTHREAD=-lpthread
     15466           LIBPMULTITHREAD=-lpthread
     15467fi
     15468
     15469        if test $gl_pthread_api != yes; then
     15470          # For FreeBSD 4.
     15471          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
     15472printf %s "checking for pthread_kill in -lc_r... " >&6; }
     15473if test ${ac_cv_lib_c_r_pthread_kill+y}
     15474then :
     15475  printf %s "(cached) " >&6
     15476else case e in #(
     15477  e) ac_check_lib_save_LIBS=$LIBS
     15478LIBS="-lc_r  $LIBS"
     15479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15480/* end confdefs.h.  */
     15481
     15482/* Override any GCC internal prototype to avoid an error.
     15483   Use char because int might match the return type of a GCC
     15484   builtin and then its argument prototype would still apply.
     15485   The 'extern "C"' is for builds by C++ compilers;
     15486   although this is not generally supported in C code, supporting it here
     15487   has little cost and some practical benefit (sr 110532).  */
     15488#ifdef __cplusplus
     15489extern "C"
     15490#endif
     15491char pthread_kill (void);
     15492int
     15493main (void)
     15494{
     15495return pthread_kill ();
     15496  ;
     15497  return 0;
     15498}
     15499_ACEOF
     15500if ac_fn_c_try_link "$LINENO"
     15501then :
     15502  ac_cv_lib_c_r_pthread_kill=yes
     15503else case e in #(
     15504  e) ac_cv_lib_c_r_pthread_kill=no ;;
     15505esac
     15506fi
     15507rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15508    conftest$ac_exeext conftest.$ac_ext
     15509LIBS=$ac_check_lib_save_LIBS ;;
     15510esac
     15511fi
     15512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
     15513printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
     15514if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
     15515then :
     15516  gl_pthread_api=yes
     15517             LIBPTHREAD=-lc_r
     15518             LIBPMULTITHREAD=-lc_r
     15519fi
     15520
     15521        fi
     15522      fi
     15523      echo "$as_me:15523: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
     15524    fi
     15525    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
     15526printf %s "checking whether POSIX threads API is available... " >&6; }
     15527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
     15528printf "%s\n" "$gl_pthread_api" >&6; }
     15529
     15530
     15531    if test $gl_pthread_api = yes; then
     15532
     15533printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
     15534
     15535    fi
     15536
     15537        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15538/* end confdefs.h.  */
     15539#include <sched.h>
     15540int
     15541main (void)
     15542{
     15543sched_yield ();
     15544  ;
     15545  return 0;
     15546}
     15547_ACEOF
     15548if ac_fn_c_try_link "$LINENO"
     15549then :
     15550  LIB_SCHED_YIELD=
     15551
     15552else case e in #(
     15553  e)        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
     15554printf %s "checking for sched_yield in -lrt... " >&6; }
     15555if test ${ac_cv_lib_rt_sched_yield+y}
     15556then :
     15557  printf %s "(cached) " >&6
     15558else case e in #(
     15559  e) ac_check_lib_save_LIBS=$LIBS
     15560LIBS="-lrt  $LIBS"
     15561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15562/* end confdefs.h.  */
     15563
     15564/* Override any GCC internal prototype to avoid an error.
     15565   Use char because int might match the return type of a GCC
     15566   builtin and then its argument prototype would still apply.
     15567   The 'extern "C"' is for builds by C++ compilers;
     15568   although this is not generally supported in C code, supporting it here
     15569   has little cost and some practical benefit (sr 110532).  */
     15570#ifdef __cplusplus
     15571extern "C"
     15572#endif
     15573char sched_yield (void);
     15574int
     15575main (void)
     15576{
     15577return sched_yield ();
     15578  ;
     15579  return 0;
     15580}
     15581_ACEOF
     15582if ac_fn_c_try_link "$LINENO"
     15583then :
     15584  ac_cv_lib_rt_sched_yield=yes
     15585else case e in #(
     15586  e) ac_cv_lib_rt_sched_yield=no ;;
     15587esac
     15588fi
     15589rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15590    conftest$ac_exeext conftest.$ac_ext
     15591LIBS=$ac_check_lib_save_LIBS ;;
     15592esac
     15593fi
     15594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
     15595printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
     15596if test "x$ac_cv_lib_rt_sched_yield" = xyes
     15597then :
     15598  LIB_SCHED_YIELD=-lrt
     15599else case e in #(
     15600  e)           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
     15601printf %s "checking for sched_yield in -lposix4... " >&6; }
     15602if test ${ac_cv_lib_posix4_sched_yield+y}
     15603then :
     15604  printf %s "(cached) " >&6
     15605else case e in #(
     15606  e) ac_check_lib_save_LIBS=$LIBS
     15607LIBS="-lposix4  $LIBS"
     15608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15609/* end confdefs.h.  */
     15610
     15611/* Override any GCC internal prototype to avoid an error.
     15612   Use char because int might match the return type of a GCC
     15613   builtin and then its argument prototype would still apply.
     15614   The 'extern "C"' is for builds by C++ compilers;
     15615   although this is not generally supported in C code, supporting it here
     15616   has little cost and some practical benefit (sr 110532).  */
     15617#ifdef __cplusplus
     15618extern "C"
     15619#endif
     15620char sched_yield (void);
     15621int
     15622main (void)
     15623{
     15624return sched_yield ();
     15625  ;
     15626  return 0;
     15627}
     15628_ACEOF
     15629if ac_fn_c_try_link "$LINENO"
     15630then :
     15631  ac_cv_lib_posix4_sched_yield=yes
     15632else case e in #(
     15633  e) ac_cv_lib_posix4_sched_yield=no ;;
     15634esac
     15635fi
     15636rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15637    conftest$ac_exeext conftest.$ac_ext
     15638LIBS=$ac_check_lib_save_LIBS ;;
     15639esac
     15640fi
     15641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
     15642printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
     15643if test "x$ac_cv_lib_posix4_sched_yield" = xyes
     15644then :
     15645  LIB_SCHED_YIELD=-lposix4
     15646fi
     15647 ;;
     15648esac
     15649fi
     15650
     15651       ;;
     15652esac
     15653fi
     15654rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15655    conftest$ac_exeext conftest.$ac_ext
     15656
     15657
     15658    gl_pthreadlib_body_done=done
     15659  fi
     15660
     15661        if test $ac_cv_header_threads_h = yes; then
     15662                                                            ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
     15663if test "x$ac_cv_func_thrd_create" = xyes
     15664then :
     15665  printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h
     15666
     15667fi
     15668
     15669          if test $ac_cv_func_thrd_create = yes; then
     15670            LIBSTDTHREAD=
     15671          else
     15672            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
     15673printf %s "checking for thrd_create in -lstdthreads... " >&6; }
     15674if test ${ac_cv_lib_stdthreads_thrd_create+y}
     15675then :
     15676  printf %s "(cached) " >&6
     15677else case e in #(
     15678  e) ac_check_lib_save_LIBS=$LIBS
     15679LIBS="-lstdthreads  $LIBS"
     15680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15681/* end confdefs.h.  */
     15682
     15683/* Override any GCC internal prototype to avoid an error.
     15684   Use char because int might match the return type of a GCC
     15685   builtin and then its argument prototype would still apply.
     15686   The 'extern "C"' is for builds by C++ compilers;
     15687   although this is not generally supported in C code, supporting it here
     15688   has little cost and some practical benefit (sr 110532).  */
     15689#ifdef __cplusplus
     15690extern "C"
     15691#endif
     15692char thrd_create (void);
     15693int
     15694main (void)
     15695{
     15696return thrd_create ();
     15697  ;
     15698  return 0;
     15699}
     15700_ACEOF
     15701if ac_fn_c_try_link "$LINENO"
     15702then :
     15703  ac_cv_lib_stdthreads_thrd_create=yes
     15704else case e in #(
     15705  e) ac_cv_lib_stdthreads_thrd_create=no ;;
     15706esac
     15707fi
     15708rm -f core conftest.err conftest.$ac_objext conftest.beam \
     15709    conftest$ac_exeext conftest.$ac_ext
     15710LIBS=$ac_check_lib_save_LIBS ;;
     15711esac
     15712fi
     15713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
     15714printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; }
     15715if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
     15716then :
     15717
     15718              LIBSTDTHREAD='-lstdthreads -lpthread'
     15719
     15720else case e in #(
     15721  e)
     15722                            LIBSTDTHREAD="$LIBPMULTITHREAD"
     15723             ;;
     15724esac
     15725fi
     15726
     15727          fi
     15728        else
     15729                    LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
     15730        fi
     15731        ;;
     15732    esac
     15733
     15734
     15735    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
     15736printf %s "checking whether ISO C threads API is available... " >&6; }
     15737    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
     15738printf "%s\n" "$ac_cv_header_threads_h" >&6; }
     15739    gl_stdthreadlib_body_done=done
     15740  fi
     15741
     15742        LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
     15743        LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
     15744        gl_threads_api=isoc
     15745
     15746printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h
     15747
     15748      fi
     15749    fi
     15750    if test $gl_threads_api = none; then
     15751      case "$gl_use_threads" in
     15752        yes | windows | win32) # The 'win32' is for backward compatibility.
     15753          if { case "$host_os" in
     15754                 mingw*) true;;
     15755                 *) false;;
     15756               esac
     15757             }; then
     15758            gl_threads_api=windows
     15759
     15760printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
     15761
     15762          fi
     15763          ;;
     15764      esac
     15765    fi
     15766  fi
     15767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
     15768printf %s "checking for multithread API to use... " >&6; }
     15769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
     15770printf "%s\n" "$gl_threads_api" >&6; }
     15771
     15772
     15773
     15774
     15775
     15776
     15777
     15778
     15779
     15780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
     15781printf %s "checking for a sed that does not truncate output... " >&6; }
     15782if test ${ac_cv_path_SED+y}
     15783then :
     15784  printf %s "(cached) " >&6
     15785else case e in #(
     15786  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     15787     for ac_i in 1 2 3 4 5 6 7; do
     15788       ac_script="$ac_script$as_nl$ac_script"
     15789     done
     15790     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     15791     { ac_script=; unset ac_script;}
     15792     if test -z "$SED"; then
     15793  ac_path_SED_found=false
     15794  # Loop through the user's path and test for each of PROGNAME-LIST
     15795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     15796for as_dir in $PATH
     15797do
     15798  IFS=$as_save_IFS
     15799  case $as_dir in #(((
     15800    '') as_dir=./ ;;
     15801    */) ;;
     15802    *) as_dir=$as_dir/ ;;
     15803  esac
     15804    for ac_prog in sed gsed
     15805   do
     15806    for ac_exec_ext in '' $ac_executable_extensions; do
     15807      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
     15808      as_fn_executable_p "$ac_path_SED" || continue
     15809# Check for GNU ac_path_SED and select it if it is found.
     15810  # Check for GNU $ac_path_SED
     15811case `"$ac_path_SED" --version 2>&1` in
     15812*GNU*)
     15813  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
     15814*)
     15815  ac_count=0
     15816  printf %s 0123456789 >"conftest.in"
     15817  while :
     15818  do
     15819    cat "conftest.in" "conftest.in" >"conftest.tmp"
     15820    mv "conftest.tmp" "conftest.in"
     15821    cp "conftest.in" "conftest.nl"
     15822    printf "%s\n" '' >> "conftest.nl"
     15823    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
     15824    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     15825    as_fn_arith $ac_count + 1 && ac_count=$as_val
     15826    if test $ac_count -gt ${ac_path_SED_max-0}; then
     15827      # Best one so far, save it but keep looking for a better one
     15828      ac_cv_path_SED="$ac_path_SED"
     15829      ac_path_SED_max=$ac_count
     15830    fi
     15831    # 10*(2^10) chars as input seems more than enough
     15832    test $ac_count -gt 10 && break
     15833  done
     15834  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     15835esac
     15836
     15837      $ac_path_SED_found && break 3
     15838    done
     15839  done
     15840  done
     15841IFS=$as_save_IFS
     15842  if test -z "$ac_cv_path_SED"; then
     15843    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
     15844  fi
     15845else
     15846  ac_cv_path_SED=$SED
     15847fi
     15848 ;;
     15849esac
     15850fi
     15851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
     15852printf "%s\n" "$ac_cv_path_SED" >&6; }
     15853 SED="$ac_cv_path_SED"
     15854  rm -f conftest.sed
     15855
     15856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     15857printf %s "checking for grep that handles long lines and -e... " >&6; }
     15858if test ${ac_cv_path_GREP+y}
     15859then :
     15860  printf %s "(cached) " >&6
     15861else case e in #(
     15862  e) if test -z "$GREP"; then
     15863  ac_path_GREP_found=false
     15864  # Loop through the user's path and test for each of PROGNAME-LIST
     15865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     15866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     15867do
     15868  IFS=$as_save_IFS
     15869  case $as_dir in #(((
     15870    '') as_dir=./ ;;
     15871    */) ;;
     15872    *) as_dir=$as_dir/ ;;
     15873  esac
     15874    for ac_prog in grep ggrep
     15875   do
     15876    for ac_exec_ext in '' $ac_executable_extensions; do
     15877      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
     15878      as_fn_executable_p "$ac_path_GREP" || continue
     15879# Check for GNU ac_path_GREP and select it if it is found.
     15880  # Check for GNU $ac_path_GREP
     15881case `"$ac_path_GREP" --version 2>&1` in
     15882*GNU*)
     15883  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     15884*)
     15885  ac_count=0
     15886  printf %s 0123456789 >"conftest.in"
     15887  while :
     15888  do
     15889    cat "conftest.in" "conftest.in" >"conftest.tmp"
     15890    mv "conftest.tmp" "conftest.in"
     15891    cp "conftest.in" "conftest.nl"
     15892    printf "%s\n" 'GREP' >> "conftest.nl"
     15893    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     15894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     15895    as_fn_arith $ac_count + 1 && ac_count=$as_val
     15896    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     15897      # Best one so far, save it but keep looking for a better one
     15898      ac_cv_path_GREP="$ac_path_GREP"
     15899      ac_path_GREP_max=$ac_count
     15900    fi
     15901    # 10*(2^10) chars as input seems more than enough
     15902    test $ac_count -gt 10 && break
     15903  done
     15904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     15905esac
     15906
     15907      $ac_path_GREP_found && break 3
     15908    done
     15909  done
     15910  done
     15911IFS=$as_save_IFS
     15912  if test -z "$ac_cv_path_GREP"; then
     15913    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     15914  fi
     15915else
     15916  ac_cv_path_GREP=$GREP
     15917fi
     15918 ;;
     15919esac
     15920fi
     15921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     15922printf "%s\n" "$ac_cv_path_GREP" >&6; }
     15923 GREP="$ac_cv_path_GREP"
     15924
     15925
     15926
     15927
     15928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
     15929printf %s "checking whether malloc (0) returns nonnull... " >&6; }
     15930if test ${ac_cv_func_malloc_0_nonnull+y}
     15931then :
     15932  printf %s "(cached) " >&6
     15933else case e in #(
     15934  e) if test "$cross_compiling" = yes
     15935then :
     15936  case "$host_os" in
     15937          # Guess yes on platforms where we know the result.
     15938          *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
     15939          | gnu* | *-musl* | midnightbsd* \
     15940          | hpux* | solaris* | cygwin* | mingw* | msys* )
     15941            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
     15942          # If we don't know, obey --enable-cross-guesses.
     15943          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
     15944        esac
     15945
     15946else case e in #(
     15947  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15948/* end confdefs.h.  */
     15949#include <stdlib.h>
     15950
     15951int
     15952main (void)
     15953{
     15954void *p = malloc (0);
     15955            int result = !p;
     15956            free (p);
     15957            return result;
     15958  ;
     15959  return 0;
     15960}
     15961
     15962_ACEOF
     15963if ac_fn_c_try_run "$LINENO"
     15964then :
     15965  ac_cv_func_malloc_0_nonnull=yes
     15966else case e in #(
     15967  e) ac_cv_func_malloc_0_nonnull=no ;;
     15968esac
     15969fi
     15970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     15971  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     15972esac
     15973fi
     15974
     15975     ;;
     15976esac
     15977fi
     15978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
     15979printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
     15980  case $ac_cv_func_malloc_0_nonnull in #(
     15981  *yes) :
     15982    gl_cv_func_malloc_0_nonnull=1 ;; #(
     15983  *) :
     15984    gl_cv_func_malloc_0_nonnull=0 ;;
     15985esac
     15986
     15987
     15988printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
     15989
     15990
     15991
     15992
     15993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
     15994printf %s "checking for mbstate_t... " >&6; }
     15995if test ${ac_cv_type_mbstate_t+y}
     15996then :
     15997  printf %s "(cached) " >&6
     15998else case e in #(
     15999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16000/* end confdefs.h.  */
     16001$ac_includes_default
     16002             #include <wchar.h>
     16003int
     16004main (void)
     16005{
     16006mbstate_t x; return sizeof x;
     16007  ;
     16008  return 0;
     16009}
     16010_ACEOF
     16011if ac_fn_c_try_compile "$LINENO"
     16012then :
     16013  ac_cv_type_mbstate_t=yes
     16014else case e in #(
     16015  e) ac_cv_type_mbstate_t=no ;;
     16016esac
     16017fi
     16018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16019esac
     16020fi
     16021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
     16022printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
     16023   if test $ac_cv_type_mbstate_t = yes; then
     16024
     16025printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
     16026
     16027   else
     16028
     16029printf "%s\n" "#define mbstate_t int" >>confdefs.h
     16030
     16031   fi
     16032
     16033
     16034
     16035
     16036
     16037
     16038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
     16039printf %s "checking for a traditional japanese locale... " >&6; }
     16040if test ${gt_cv_locale_ja+y}
     16041then :
     16042  printf %s "(cached) " >&6
     16043else case e in #(
     16044  e)
     16045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16046/* end confdefs.h.  */
     16047
     16048#include <locale.h>
     16049#include <time.h>
     16050#if HAVE_LANGINFO_CODESET
     16051# include <langinfo.h>
     16052#endif
     16053#include <stdlib.h>
     16054#include <string.h>
     16055struct tm t;
     16056char buf[16];
     16057int main ()
     16058{
     16059  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     16060     imitates locale dependent behaviour by looking at the environment
     16061     variables, and all locales use the UTF-8 encoding.  */
     16062#if defined __BEOS__ || defined __HAIKU__
     16063  return 1;
     16064#else
     16065  /* Check whether the given locale name is recognized by the system.  */
     16066# if defined _WIN32 && !defined __CYGWIN__
     16067  /* On native Windows, setlocale(category, "") looks at the system settings,
     16068     not at the environment variables.  Also, when an encoding suffix such
     16069     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     16070     category of the locale to "C".  */
     16071  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     16072      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     16073    return 1;
     16074# else
     16075  if (setlocale (LC_ALL, "") == NULL) return 1;
     16076# endif
     16077  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     16078     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     16079     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     16080     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     16081     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     16082     some unit tests fail.
     16083     On MirBSD 10, when an unsupported locale is specified, setlocale()
     16084     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     16085# if HAVE_LANGINFO_CODESET
     16086  {
     16087    const char *cs = nl_langinfo (CODESET);
     16088    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     16089        || strcmp (cs, "UTF-8") == 0)
     16090      return 1;
     16091  }
     16092# endif
     16093# ifdef __CYGWIN__
     16094  /* On Cygwin, avoid locale names without encoding suffix, because the
     16095     locale_charset() function relies on the encoding suffix.  Note that
     16096     LC_ALL is set on the command line.  */
     16097  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     16098# endif
     16099  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
     16100     on Cygwin 1.5.x.  */
     16101  if (MB_CUR_MAX == 1)
     16102    return 1;
     16103  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     16104     This excludes the UTF-8 encoding (except on MirBSD).  */
     16105  {
     16106    const char *p;
     16107    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     16108    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     16109    for (p = buf; *p != '\0'; p++)
     16110      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     16111        return 1;
     16112  }
     16113  return 0;
     16114#endif
     16115}
     16116
     16117_ACEOF
     16118    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     16119  (eval $ac_link) 2>&5
    739216120  ac_status=$?
    7393   grep -v '^ *+' conftest.er1 >conftest.err
    7394   rm -f conftest.er1
    7395   cat conftest.err >&5
    7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7397   (exit $ac_status); } &&
    7398          { ac_try='test -z "$ac_c_werror_flag"
    7399                          || test ! -s conftest.err'
    7400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     16121  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     16122  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     16123      case "$host_os" in
     16124        # Handle native Windows specially, because there setlocale() interprets
     16125        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     16126        # "fr" or "fra" as "French" or "French_France.1252",
     16127        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     16128        # "ja" as "Japanese" or "Japanese_Japan.932",
     16129        # and similar.
     16130        mingw*)
     16131          # Note that on native Windows, the Japanese locale is
     16132          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
     16133          # cannot use it here.
     16134          gt_cv_locale_ja=none
     16135          ;;
     16136        *)
     16137          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     16138          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     16139          # configure script would override the LC_ALL setting. Likewise for
     16140          # LC_CTYPE, which is also set at the beginning of the configure script.
     16141          # Test for the AIX locale name.
     16142          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16143            gt_cv_locale_ja=ja_JP
     16144          else
     16145            # Test for the locale name with explicit encoding suffix.
     16146            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16147              gt_cv_locale_ja=ja_JP.EUC-JP
     16148            else
     16149              # Test for the HP-UX, OSF/1, NetBSD locale name.
     16150              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16151                gt_cv_locale_ja=ja_JP.eucJP
     16152              else
     16153                # Test for the IRIX, FreeBSD locale name.
     16154                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16155                  gt_cv_locale_ja=ja_JP.EUC
     16156                else
     16157                  # Test for the Solaris 7 locale name.
     16158                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16159                    gt_cv_locale_ja=ja
     16160                  else
     16161                    # Special test for NetBSD 1.6.
     16162                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
     16163                      gt_cv_locale_ja=ja_JP.eucJP
     16164                    else
     16165                      # None found.
     16166                      gt_cv_locale_ja=none
     16167                    fi
     16168                  fi
     16169                fi
     16170              fi
     16171            fi
     16172          fi
     16173          ;;
     16174      esac
     16175    fi
     16176    rm -fr conftest*
     16177   ;;
     16178esac
     16179fi
     16180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
     16181printf "%s\n" "$gt_cv_locale_ja" >&6; }
     16182  LOCALE_JA=$gt_cv_locale_ja
     16183
     16184
     16185
     16186
     16187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     16188printf %s "checking for a french Unicode locale... " >&6; }
     16189if test ${gt_cv_locale_fr_utf8+y}
     16190then :
     16191  printf %s "(cached) " >&6
     16192else case e in #(
     16193  e)
     16194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16195/* end confdefs.h.  */
     16196
     16197#include <locale.h>
     16198#include <time.h>
     16199#if HAVE_LANGINFO_CODESET
     16200# include <langinfo.h>
     16201#endif
     16202#include <stdlib.h>
     16203#include <string.h>
     16204struct tm t;
     16205char buf[16];
     16206int main () {
     16207  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     16208     imitates locale dependent behaviour by looking at the environment
     16209     variables, and all locales use the UTF-8 encoding.  */
     16210#if !(defined __BEOS__ || defined __HAIKU__)
     16211  /* Check whether the given locale name is recognized by the system.  */
     16212# if defined _WIN32 && !defined __CYGWIN__
     16213  /* On native Windows, setlocale(category, "") looks at the system settings,
     16214     not at the environment variables.  Also, when an encoding suffix such
     16215     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     16216     category of the locale to "C".  */
     16217  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     16218      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     16219    return 1;
     16220# else
     16221  if (setlocale (LC_ALL, "") == NULL) return 1;
     16222# endif
     16223  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     16224     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     16225     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     16226     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     16227     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     16228     some unit tests fail.  */
     16229# if HAVE_LANGINFO_CODESET
     16230  {
     16231    const char *cs = nl_langinfo (CODESET);
     16232    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     16233      return 1;
     16234  }
     16235# endif
     16236# ifdef __CYGWIN__
     16237  /* On Cygwin, avoid locale names without encoding suffix, because the
     16238     locale_charset() function relies on the encoding suffix.  Note that
     16239     LC_ALL is set on the command line.  */
     16240  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     16241# endif
     16242  /* Check whether in the abbreviation of the second month, the second
     16243     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     16244     two bytes long, with UTF-8 encoding.  */
     16245  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     16246  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     16247      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     16248    return 1;
     16249#endif
     16250#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     16251  /* Check whether the decimal separator is a comma.
     16252     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     16253     are nl_langinfo(RADIXCHAR) are both ".".  */
     16254  if (localeconv () ->decimal_point[0] != ',') return 1;
     16255#endif
     16256  return 0;
     16257}
     16258
     16259_ACEOF
     16260    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     16261  (eval $ac_link) 2>&5
     16262  ac_status=$?
     16263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     16264  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     16265      case "$host_os" in
     16266        # Handle native Windows specially, because there setlocale() interprets
     16267        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     16268        # "fr" or "fra" as "French" or "French_France.1252",
     16269        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     16270        # "ja" as "Japanese" or "Japanese_Japan.932",
     16271        # and similar.
     16272        mingw*)
     16273          # Test for the hypothetical native Windows locale name.
     16274          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16275            gt_cv_locale_fr_utf8=French_France.65001
     16276          else
     16277            # None found.
     16278            gt_cv_locale_fr_utf8=none
     16279          fi
     16280          ;;
     16281        *)
     16282          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     16283          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     16284          # configure script would override the LC_ALL setting. Likewise for
     16285          # LC_CTYPE, which is also set at the beginning of the configure script.
     16286          # Test for the usual locale name.
     16287          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16288            gt_cv_locale_fr_utf8=fr_FR
     16289          else
     16290            # Test for the locale name with explicit encoding suffix.
     16291            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16292              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     16293            else
     16294              # Test for the Solaris 7 locale name.
     16295              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16296                gt_cv_locale_fr_utf8=fr.UTF-8
     16297              else
     16298                # None found.
     16299                gt_cv_locale_fr_utf8=none
     16300              fi
     16301            fi
     16302          fi
     16303          ;;
     16304      esac
     16305    fi
     16306    rm -fr conftest*
     16307   ;;
     16308esac
     16309fi
     16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     16311printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     16312  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     16313
     16314
     16315
     16316
     16317
     16318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
     16319printf %s "checking for a transitional chinese locale... " >&6; }
     16320if test ${gt_cv_locale_zh_CN+y}
     16321then :
     16322  printf %s "(cached) " >&6
     16323else case e in #(
     16324  e)
     16325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16326/* end confdefs.h.  */
     16327
     16328#include <locale.h>
     16329#include <stdlib.h>
     16330#include <time.h>
     16331#if HAVE_LANGINFO_CODESET
     16332# include <langinfo.h>
     16333#endif
     16334#include <stdlib.h>
     16335#include <string.h>
     16336struct tm t;
     16337char buf[16];
     16338int main ()
     16339{
     16340  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     16341     imitates locale dependent behaviour by looking at the environment
     16342     variables, and all locales use the UTF-8 encoding.  */
     16343#if defined __BEOS__ || defined __HAIKU__
     16344  return 1;
     16345#else
     16346  /* Check whether the given locale name is recognized by the system.  */
     16347# if defined _WIN32 && !defined __CYGWIN__
     16348  /* On native Windows, setlocale(category, "") looks at the system settings,
     16349     not at the environment variables.  Also, when an encoding suffix such
     16350     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     16351     category of the locale to "C".  */
     16352  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     16353      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     16354    return 1;
     16355# else
     16356  if (setlocale (LC_ALL, "") == NULL) return 1;
     16357# endif
     16358  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     16359     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     16360     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     16361     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     16362     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     16363     some unit tests fail.
     16364     On MirBSD 10, when an unsupported locale is specified, setlocale()
     16365     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     16366# if HAVE_LANGINFO_CODESET
     16367  {
     16368    const char *cs = nl_langinfo (CODESET);
     16369    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     16370        || strcmp (cs, "UTF-8") == 0)
     16371      return 1;
     16372  }
     16373# endif
     16374# ifdef __CYGWIN__
     16375  /* On Cygwin, avoid locale names without encoding suffix, because the
     16376     locale_charset() function relies on the encoding suffix.  Note that
     16377     LC_ALL is set on the command line.  */
     16378  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     16379# endif
     16380  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     16381     This excludes the UTF-8 encoding (except on MirBSD).  */
     16382  {
     16383    const char *p;
     16384    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     16385    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     16386    for (p = buf; *p != '\0'; p++)
     16387      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     16388        return 1;
     16389  }
     16390  /* Check whether a typical GB18030 multibyte sequence is recognized as a
     16391     single wide character.  This excludes the GB2312 and GBK encodings.  */
     16392  if (mblen ("\203\062\332\066", 5) != 4)
     16393    return 1;
     16394  return 0;
     16395#endif
     16396}
     16397
     16398_ACEOF
     16399    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     16400  (eval $ac_link) 2>&5
     16401  ac_status=$?
     16402  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     16403  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     16404      case "$host_os" in
     16405        # Handle native Windows specially, because there setlocale() interprets
     16406        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     16407        # "fr" or "fra" as "French" or "French_France.1252",
     16408        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     16409        # "ja" as "Japanese" or "Japanese_Japan.932",
     16410        # and similar.
     16411        mingw*)
     16412          # Test for the hypothetical native Windows locale name.
     16413          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16414            gt_cv_locale_zh_CN=Chinese_China.54936
     16415          else
     16416            # None found.
     16417            gt_cv_locale_zh_CN=none
     16418          fi
     16419          ;;
     16420        solaris2.8)
     16421          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
     16422          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
     16423          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
     16424          gt_cv_locale_zh_CN=none
     16425          ;;
     16426        *)
     16427          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     16428          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     16429          # configure script would override the LC_ALL setting. Likewise for
     16430          # LC_CTYPE, which is also set at the beginning of the configure script.
     16431          # Test for the locale name without encoding suffix.
     16432          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16433            gt_cv_locale_zh_CN=zh_CN
     16434          else
     16435            # Test for the locale name with explicit encoding suffix.
     16436            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     16437              gt_cv_locale_zh_CN=zh_CN.GB18030
     16438            else
     16439              # None found.
     16440              gt_cv_locale_zh_CN=none
     16441            fi
     16442          fi
     16443          ;;
     16444      esac
     16445    else
     16446      # If there was a link error, due to mblen(), the system is so old that
     16447      # it certainly doesn't have a chinese locale.
     16448      gt_cv_locale_zh_CN=none
     16449    fi
     16450    rm -fr conftest*
     16451   ;;
     16452esac
     16453fi
     16454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
     16455printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
     16456  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
     16457
     16458
     16459
     16460
     16461
     16462
     16463
     16464
     16465
     16466
     16467
     16468
     16469
     16470
     16471
     16472        if case "$host_os" in
     16473       mingw*) true ;;
     16474       *) test $ac_cv_func_mbsinit = yes ;;
     16475     esac \
     16476    && test $ac_cv_func_mbrtowc = yes; then
     16477
     16478
     16479
     16480
     16481     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
     16482printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
     16483if test ${gl_cv_func_mbrtowc_incomplete_state+y}
     16484then :
     16485  printf %s "(cached) " >&6
     16486else case e in #(
     16487  e)
     16488                  case "$host_os" in
     16489                     # Guess no on AIX and OSF/1.
     16490        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
     16491                     # Guess yes otherwise.
     16492        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
     16493      esac
     16494      if test $LOCALE_JA != none; then
     16495        if test "$cross_compiling" = yes
     16496then :
     16497  :
     16498else case e in #(
     16499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16500/* end confdefs.h.  */
     16501
     16502#include <locale.h>
     16503#include <string.h>
     16504#include <wchar.h>
     16505int main ()
     16506{
     16507  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     16508    {
     16509      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     16510      mbstate_t state;
     16511      wchar_t wc;
     16512
     16513      memset (&state, '\0', sizeof (mbstate_t));
     16514      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     16515        if (mbsinit (&state))
     16516          return 2;
     16517    }
     16518  return 0;
     16519}
     16520_ACEOF
     16521if ac_fn_c_try_run "$LINENO"
     16522then :
     16523  gl_cv_func_mbrtowc_incomplete_state=yes
     16524else case e in #(
     16525  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     16526esac
     16527fi
     16528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16529  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16530esac
     16531fi
     16532
     16533      else
     16534        if test $LOCALE_FR_UTF8 != none; then
     16535          if test "$cross_compiling" = yes
     16536then :
     16537  :
     16538else case e in #(
     16539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16540/* end confdefs.h.  */
     16541
     16542#include <locale.h>
     16543#include <string.h>
     16544#include <wchar.h>
     16545int main ()
     16546{
     16547  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     16548    {
     16549      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
     16550      mbstate_t state;
     16551      wchar_t wc;
     16552
     16553      memset (&state, '\0', sizeof (mbstate_t));
     16554      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     16555        if (mbsinit (&state))
     16556          return 2;
     16557    }
     16558  return 0;
     16559}
     16560_ACEOF
     16561if ac_fn_c_try_run "$LINENO"
     16562then :
     16563  gl_cv_func_mbrtowc_incomplete_state=yes
     16564else case e in #(
     16565  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     16566esac
     16567fi
     16568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16569  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16570esac
     16571fi
     16572
     16573        fi
     16574      fi
     16575     ;;
     16576esac
     16577fi
     16578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
     16579printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
     16580
     16581
     16582
     16583
     16584     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
     16585printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
     16586if test ${gl_cv_func_mbrtowc_sanitycheck+y}
     16587then :
     16588  printf %s "(cached) " >&6
     16589else case e in #(
     16590  e)
     16591                  case "$host_os" in
     16592                    # Guess no on Solaris 8.
     16593        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
     16594                    # Guess yes otherwise.
     16595        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
     16596      esac
     16597      if test $LOCALE_ZH_CN != none; then
     16598        if test "$cross_compiling" = yes
     16599then :
     16600  :
     16601else case e in #(
     16602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16603/* end confdefs.h.  */
     16604
     16605#include <locale.h>
     16606#include <stdlib.h>
     16607#include <string.h>
     16608#include <wchar.h>
     16609int main ()
     16610{
     16611  /* This fails on Solaris 8:
     16612     mbrtowc returns 2, and sets wc to 0x00F0.
     16613     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
     16614  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     16615    {
     16616      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
     16617      mbstate_t state;
     16618      wchar_t wc;
     16619
     16620      memset (&state, '\0', sizeof (mbstate_t));
     16621      if (mbrtowc (&wc, input + 3, 6, &state) != 4
     16622          && mbtowc (&wc, input + 3, 6) == 4)
     16623        return 2;
     16624    }
     16625  return 0;
     16626}
     16627_ACEOF
     16628if ac_fn_c_try_run "$LINENO"
     16629then :
     16630  gl_cv_func_mbrtowc_sanitycheck=yes
     16631else case e in #(
     16632  e) gl_cv_func_mbrtowc_sanitycheck=no ;;
     16633esac
     16634fi
     16635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16636  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16637esac
     16638fi
     16639
     16640      fi
     16641     ;;
     16642esac
     16643fi
     16644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
     16645printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
     16646
     16647    REPLACE_MBSTATE_T=0
     16648    case "$gl_cv_func_mbrtowc_incomplete_state" in
     16649      *yes) ;;
     16650      *) REPLACE_MBSTATE_T=1 ;;
     16651    esac
     16652    case "$gl_cv_func_mbrtowc_sanitycheck" in
     16653      *yes) ;;
     16654      *) REPLACE_MBSTATE_T=1 ;;
     16655    esac
     16656  else
     16657    REPLACE_MBSTATE_T=1
     16658  fi
     16659
     16660
     16661
     16662  if test $ac_cv_func_mbrtowc = no; then
     16663    HAVE_MBRTOWC=0
     16664    ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
     16665      #include <wchar.h>
     16666
     16667" "$ac_c_undeclared_builtin_options" "CFLAGS"
     16668if test "x$ac_cv_have_decl_mbrtowc" = xyes
     16669then :
     16670  ac_have_decl=1
     16671else case e in #(
     16672  e) ac_have_decl=0 ;;
     16673esac
     16674fi
     16675printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h
     16676
     16677    if test $ac_cv_have_decl_mbrtowc = yes; then
     16678                        REPLACE_MBRTOWC=1
     16679    fi
     16680  else
     16681    if test $REPLACE_MBSTATE_T = 1; then
     16682      REPLACE_MBRTOWC=1
     16683    else
     16684
     16685
     16686
     16687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
     16688printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
     16689if test ${gl_cv_func_mbrtowc_null_arg1+y}
     16690then :
     16691  printf %s "(cached) " >&6
     16692else case e in #(
     16693  e)
     16694                  case "$host_os" in
     16695                  # Guess no on Solaris.
     16696        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
     16697                  # Guess yes otherwise.
     16698        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
     16699      esac
     16700      if test $LOCALE_FR_UTF8 != none; then
     16701        if test "$cross_compiling" = yes
     16702then :
     16703  :
     16704else case e in #(
     16705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16706/* end confdefs.h.  */
     16707
     16708#include <locale.h>
     16709#include <stdlib.h>
     16710#include <string.h>
     16711#include <wchar.h>
     16712int main ()
     16713{
     16714  int result = 0;
     16715
     16716  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     16717    {
     16718      char input[] = "\303\237er";
     16719      mbstate_t state;
     16720      wchar_t wc;
     16721      size_t ret;
     16722
     16723      memset (&state, '\0', sizeof (mbstate_t));
     16724      wc = (wchar_t) 0xBADFACE;
     16725      ret = mbrtowc (&wc, input, 5, &state);
     16726      if (ret != 2)
     16727        result |= 1;
     16728      if (!mbsinit (&state))
     16729        result |= 2;
     16730
     16731      memset (&state, '\0', sizeof (mbstate_t));
     16732      ret = mbrtowc (NULL, input, 5, &state);
     16733      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
     16734        result |= 4;
     16735      if (!mbsinit (&state))
     16736        result |= 8;
     16737    }
     16738  return result;
     16739}
     16740_ACEOF
     16741if ac_fn_c_try_run "$LINENO"
     16742then :
     16743  gl_cv_func_mbrtowc_null_arg1=yes
     16744else case e in #(
     16745  e) gl_cv_func_mbrtowc_null_arg1=no ;;
     16746esac
     16747fi
     16748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16749  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16750esac
     16751fi
     16752
     16753      fi
     16754     ;;
     16755esac
     16756fi
     16757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
     16758printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; }
     16759
     16760
     16761
     16762
     16763     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
     16764printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; }
     16765if test ${gl_cv_func_mbrtowc_null_arg2+y}
     16766then :
     16767  printf %s "(cached) " >&6
     16768else case e in #(
     16769  e)
     16770                  case "$host_os" in
     16771              # Guess no on OSF/1.
     16772        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
     16773              # Guess yes otherwise.
     16774        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
     16775      esac
     16776      if test $LOCALE_FR_UTF8 != none; then
     16777        if test "$cross_compiling" = yes
     16778then :
     16779  :
     16780else case e in #(
     16781  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16782/* end confdefs.h.  */
     16783
     16784#include <locale.h>
     16785#include <string.h>
     16786#include <wchar.h>
     16787int main ()
     16788{
     16789  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     16790    {
     16791      mbstate_t state;
     16792      wchar_t wc;
     16793      int ret;
     16794
     16795      memset (&state, '\0', sizeof (mbstate_t));
     16796      wc = (wchar_t) 0xBADFACE;
     16797      mbrtowc (&wc, NULL, 5, &state);
     16798      /* Check that wc was not modified.  */
     16799      if (wc != (wchar_t) 0xBADFACE)
     16800        return 2;
     16801    }
     16802  return 0;
     16803}
     16804_ACEOF
     16805if ac_fn_c_try_run "$LINENO"
     16806then :
     16807  gl_cv_func_mbrtowc_null_arg2=yes
     16808else case e in #(
     16809  e) gl_cv_func_mbrtowc_null_arg2=no ;;
     16810esac
     16811fi
     16812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16813  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16814esac
     16815fi
     16816
     16817      fi
     16818     ;;
     16819esac
     16820fi
     16821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
     16822printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; }
     16823
     16824
     16825
     16826
     16827
     16828
     16829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
     16830printf %s "checking whether mbrtowc has a correct return value... " >&6; }
     16831if test ${gl_cv_func_mbrtowc_retval+y}
     16832then :
     16833  printf %s "(cached) " >&6
     16834else case e in #(
     16835  e)
     16836                  case "$host_os" in
     16837                                   # Guess no on HP-UX, Solaris, native Windows.
     16838        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
     16839                                   # Guess yes otherwise.
     16840        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
     16841      esac
     16842      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
     16843         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
     16844        if test "$cross_compiling" = yes
     16845then :
     16846  :
     16847else case e in #(
     16848  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16849/* end confdefs.h.  */
     16850
     16851#include <locale.h>
     16852#include <string.h>
     16853#include <wchar.h>
     16854int main ()
     16855{
     16856  int result = 0;
     16857  int found_some_locale = 0;
     16858  /* This fails on Solaris.  */
     16859  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     16860    {
     16861      char input[] = "B\303\274\303\237er"; /* "Büßer" */
     16862      mbstate_t state;
     16863      wchar_t wc;
     16864
     16865      memset (&state, '\0', sizeof (mbstate_t));
     16866      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     16867        {
     16868          input[1] = '\0';
     16869          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
     16870            result |= 1;
     16871        }
     16872      found_some_locale = 1;
     16873    }
     16874  /* This fails on HP-UX 11.11.  */
     16875  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     16876    {
     16877      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     16878      mbstate_t state;
     16879      wchar_t wc;
     16880
     16881      memset (&state, '\0', sizeof (mbstate_t));
     16882      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     16883        {
     16884          input[1] = '\0';
     16885          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
     16886            result |= 2;
     16887        }
     16888      found_some_locale = 1;
     16889    }
     16890  /* This fails on native Windows.  */
     16891  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
     16892    {
     16893      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
     16894      mbstate_t state;
     16895      wchar_t wc;
     16896
     16897      memset (&state, '\0', sizeof (mbstate_t));
     16898      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     16899        {
     16900          input[3] = '\0';
     16901          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     16902            result |= 4;
     16903        }
     16904      found_some_locale = 1;
     16905    }
     16906  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
     16907    {
     16908      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
     16909      mbstate_t state;
     16910      wchar_t wc;
     16911
     16912      memset (&state, '\0', sizeof (mbstate_t));
     16913      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     16914        {
     16915          input[3] = '\0';
     16916          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     16917            result |= 8;
     16918        }
     16919      found_some_locale = 1;
     16920    }
     16921  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
     16922    {
     16923      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
     16924      mbstate_t state;
     16925      wchar_t wc;
     16926
     16927      memset (&state, '\0', sizeof (mbstate_t));
     16928      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     16929        {
     16930          input[3] = '\0';
     16931          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     16932            result |= 16;
     16933        }
     16934      found_some_locale = 1;
     16935    }
     16936  return (found_some_locale ? result : 77);
     16937}
     16938_ACEOF
     16939if ac_fn_c_try_run "$LINENO"
     16940then :
     16941  gl_cv_func_mbrtowc_retval=yes
     16942else case e in #(
     16943  e) if test $? != 77; then
     16944             gl_cv_func_mbrtowc_retval=no
     16945           fi
     16946           ;;
     16947esac
     16948fi
     16949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16950  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     16951esac
     16952fi
     16953
     16954      fi
     16955     ;;
     16956esac
     16957fi
     16958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
     16959printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; }
     16960
     16961
     16962
     16963
     16964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
     16965printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
     16966if test ${gl_cv_func_mbrtowc_nul_retval+y}
     16967then :
     16968  printf %s "(cached) " >&6
     16969else case e in #(
     16970  e)
     16971                  case "$host_os" in
     16972                       # Guess no on Solaris 8 and 9.
     16973        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
     16974                       # Guess yes otherwise.
     16975        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
     16976      esac
     16977      if test $LOCALE_ZH_CN != none; then
     16978        if test "$cross_compiling" = yes
     16979then :
     16980  :
     16981else case e in #(
     16982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16983/* end confdefs.h.  */
     16984
     16985#include <locale.h>
     16986#include <string.h>
     16987#include <wchar.h>
     16988int main ()
     16989{
     16990  /* This fails on Solaris 8 and 9.  */
     16991  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     16992    {
     16993      mbstate_t state;
     16994      wchar_t wc;
     16995
     16996      memset (&state, '\0', sizeof (mbstate_t));
     16997      if (mbrtowc (&wc, "", 1, &state) != 0)
     16998        return 2;
     16999    }
     17000  return 0;
     17001}
     17002_ACEOF
     17003if ac_fn_c_try_run "$LINENO"
     17004then :
     17005  gl_cv_func_mbrtowc_nul_retval=yes
     17006else case e in #(
     17007  e) gl_cv_func_mbrtowc_nul_retval=no ;;
     17008esac
     17009fi
     17010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17011  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17012esac
     17013fi
     17014
     17015      fi
     17016     ;;
     17017esac
     17018fi
     17019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
     17020printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; }
     17021
     17022
     17023
     17024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
     17025printf %s "checking whether mbrtowc stores incomplete characters... " >&6; }
     17026if test ${gl_cv_func_mbrtowc_stores_incomplete+y}
     17027then :
     17028  printf %s "(cached) " >&6
     17029else case e in #(
     17030  e)
     17031               case "$host_os" in
     17032               # Guess yes on native Windows.
     17033       mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
     17034       *)      gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
     17035     esac
     17036     case "$host_os" in
     17037       mingw*)
     17038         if test "$cross_compiling" = yes
     17039then :
     17040  :
     17041else case e in #(
     17042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17043/* end confdefs.h.  */
     17044
     17045#include <locale.h>
     17046#include <string.h>
     17047#include <wchar.h>
     17048int main ()
     17049{
     17050  int result = 0;
     17051  if (setlocale (LC_ALL, "French_France.65001") != NULL)
     17052    {
     17053      wchar_t wc = (wchar_t) 0xBADFACE;
     17054      mbstate_t state;
     17055
     17056      memset (&state, '\0', sizeof (mbstate_t));
     17057      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
     17058          && wc != (wchar_t) 0xBADFACE)
     17059        result |= 1;
     17060    }
     17061  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
     17062    {
     17063      wchar_t wc = (wchar_t) 0xBADFACE;
     17064      mbstate_t state;
     17065
     17066      memset (&state, '\0', sizeof (mbstate_t));
     17067      if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
     17068          && wc != (wchar_t) 0xBADFACE)
     17069        result |= 2;
     17070    }
     17071  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
     17072    {
     17073      wchar_t wc = (wchar_t) 0xBADFACE;
     17074      mbstate_t state;
     17075
     17076      memset (&state, '\0', sizeof (mbstate_t));
     17077      if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
     17078          && wc != (wchar_t) 0xBADFACE)
     17079        result |= 4;
     17080    }
     17081  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
     17082    {
     17083      wchar_t wc = (wchar_t) 0xBADFACE;
     17084      mbstate_t state;
     17085
     17086      memset (&state, '\0', sizeof (mbstate_t));
     17087      if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
     17088          && wc != (wchar_t) 0xBADFACE)
     17089        result |= 8;
     17090    }
     17091  return result;
     17092}
     17093_ACEOF
     17094if ac_fn_c_try_run "$LINENO"
     17095then :
     17096  gl_cv_func_mbrtowc_stores_incomplete=no
     17097else case e in #(
     17098  e) gl_cv_func_mbrtowc_stores_incomplete=yes ;;
     17099esac
     17100fi
     17101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17102  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17103esac
     17104fi
     17105
     17106         ;;
     17107       *)
     17108
     17109         if test $LOCALE_FR_UTF8 != none; then
     17110           if test "$cross_compiling" = yes
     17111then :
     17112  :
     17113else case e in #(
     17114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17115/* end confdefs.h.  */
     17116
     17117#include <locale.h>
     17118#include <string.h>
     17119#include <wchar.h>
     17120int main ()
     17121{
     17122  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     17123    {
     17124      wchar_t wc = (wchar_t) 0xBADFACE;
     17125      mbstate_t state;
     17126
     17127      memset (&state, '\0', sizeof (mbstate_t));
     17128      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
     17129          && wc != (wchar_t) 0xBADFACE)
     17130        return 1;
     17131    }
     17132  return 0;
     17133}
     17134_ACEOF
     17135if ac_fn_c_try_run "$LINENO"
     17136then :
     17137  gl_cv_func_mbrtowc_stores_incomplete=no
     17138else case e in #(
     17139  e) gl_cv_func_mbrtowc_stores_incomplete=yes ;;
     17140esac
     17141fi
     17142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17143  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17144esac
     17145fi
     17146
     17147         fi
     17148         ;;
     17149     esac
     17150     ;;
     17151esac
     17152fi
     17153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
     17154printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
     17155
     17156
     17157
     17158     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
     17159printf %s "checking whether mbrtowc works on empty input... " >&6; }
     17160if test ${gl_cv_func_mbrtowc_empty_input+y}
     17161then :
     17162  printf %s "(cached) " >&6
     17163else case e in #(
     17164  e)
     17165                  case "$host_os" in
     17166                              # Guess no on AIX and glibc systems.
     17167        aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
     17168                              # Guess yes on native Windows.
     17169        mingw*)               gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
     17170        *)                    gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
     17171      esac
     17172      if test "$cross_compiling" = yes
     17173then :
     17174  :
     17175else case e in #(
     17176  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17177/* end confdefs.h.  */
     17178
     17179           #include <wchar.h>
     17180           static wchar_t wc;
     17181           static mbstate_t mbs;
     17182           int
     17183           main (void)
     17184           {
     17185             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
     17186           }
     17187_ACEOF
     17188if ac_fn_c_try_run "$LINENO"
     17189then :
     17190  gl_cv_func_mbrtowc_empty_input=yes
     17191else case e in #(
     17192  e) gl_cv_func_mbrtowc_empty_input=no ;;
     17193esac
     17194fi
     17195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17196  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17197esac
     17198fi
     17199
     17200     ;;
     17201esac
     17202fi
     17203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
     17204printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; }
     17205
     17206
     17207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
     17208printf %s "checking whether the C locale is free of encoding errors... " >&6; }
     17209if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y}
     17210then :
     17211  printf %s "(cached) " >&6
     17212else case e in #(
     17213  e)
     17214               gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
     17215
     17216     if test "$cross_compiling" = yes
     17217then :
     17218  case "$host_os" in
     17219                 # Guess yes on native Windows.
     17220         mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
     17221       esac
     17222
     17223else case e in #(
     17224  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17225/* end confdefs.h.  */
     17226#include <limits.h>
     17227            #include <locale.h>
     17228            #include <wchar.h>
     17229
     17230int
     17231main (void)
     17232{
     17233
     17234            int i;
     17235            char *locale = setlocale (LC_ALL, "C");
     17236            if (! locale)
     17237              return 2;
     17238            for (i = CHAR_MIN; i <= CHAR_MAX; i++)
     17239              {
     17240                char c = i;
     17241                wchar_t wc;
     17242                mbstate_t mbs = { 0, };
     17243                size_t ss = mbrtowc (&wc, &c, 1, &mbs);
     17244                if (1 < ss)
     17245                  return 3;
     17246              }
     17247            return 0;
     17248
     17249  ;
     17250  return 0;
     17251}
     17252_ACEOF
     17253if ac_fn_c_try_run "$LINENO"
     17254then :
     17255  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
     17256else case e in #(
     17257  e) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no ;;
     17258esac
     17259fi
     17260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17261  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17262esac
     17263fi
     17264
     17265     ;;
     17266esac
     17267fi
     17268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
     17269printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
     17270
     17271      case "$gl_cv_func_mbrtowc_null_arg1" in
     17272        *yes) ;;
     17273        *)
     17274printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
     17275
     17276           REPLACE_MBRTOWC=1
     17277           ;;
     17278      esac
     17279      case "$gl_cv_func_mbrtowc_null_arg2" in
     17280        *yes) ;;
     17281        *)
     17282printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
     17283
     17284           REPLACE_MBRTOWC=1
     17285           ;;
     17286      esac
     17287      case "$gl_cv_func_mbrtowc_retval" in
     17288        *yes) ;;
     17289        *)
     17290printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
     17291
     17292           REPLACE_MBRTOWC=1
     17293           ;;
     17294      esac
     17295      case "$gl_cv_func_mbrtowc_nul_retval" in
     17296        *yes) ;;
     17297        *)
     17298printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
     17299
     17300           REPLACE_MBRTOWC=1
     17301           ;;
     17302      esac
     17303      case "$gl_cv_func_mbrtowc_stores_incomplete" in
     17304        *no) ;;
     17305        *)
     17306printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
     17307
     17308           REPLACE_MBRTOWC=1
     17309           ;;
     17310      esac
     17311      case "$gl_cv_func_mbrtowc_empty_input" in
     17312        *yes) ;;
     17313        *)
     17314printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
     17315
     17316           REPLACE_MBRTOWC=1
     17317           ;;
     17318      esac
     17319      case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
     17320        *yes) ;;
     17321        *)
     17322printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
     17323
     17324           REPLACE_MBRTOWC=1
     17325           ;;
     17326      esac
     17327    fi
     17328  fi
     17329  if test $REPLACE_MBSTATE_T = 1; then
     17330    case "$host_os" in
     17331      mingw*) LIB_MBRTOWC= ;;
     17332      *)
     17333
     17334
     17335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
     17336printf %s "checking whether imported symbols can be declared weak... " >&6; }
     17337if test ${gl_cv_have_weak+y}
     17338then :
     17339  printf %s "(cached) " >&6
     17340else case e in #(
     17341  e) case "$host_os" in
     17342       cygwin*)
     17343                                    gl_cv_have_weak="guessing no"
     17344         ;;
     17345       *)
     17346         gl_cv_have_weak=no
     17347                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17348/* end confdefs.h.  */
     17349extern void xyzzy ();
     17350#pragma weak xyzzy
     17351int
     17352main (void)
     17353{
     17354xyzzy();
     17355  ;
     17356  return 0;
     17357}
     17358_ACEOF
     17359if ac_fn_c_try_link "$LINENO"
     17360then :
     17361  gl_cv_have_weak=maybe
     17362fi
     17363rm -f core conftest.err conftest.$ac_objext conftest.beam \
     17364    conftest$ac_exeext conftest.$ac_ext
     17365         if test $gl_cv_have_weak = maybe; then
     17366                                 if test "$cross_compiling" = yes
     17367then :
     17368                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17369/* end confdefs.h.  */
     17370#ifdef __ELF__
     17371                 Extensible Linking Format
     17372                 #endif
     17373
     17374_ACEOF
     17375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     17376  $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
     17377then :
     17378  gl_cv_have_weak="guessing yes"
     17379else case e in #(
     17380  e) gl_cv_have_weak="guessing no" ;;
     17381esac
     17382fi
     17383rm -rf conftest*
     17384
     17385
     17386else case e in #(
     17387  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17388/* end confdefs.h.  */
     17389
     17390#include <stdio.h>
     17391#pragma weak fputs
     17392int main ()
     17393{
     17394  return (fputs == NULL);
     17395}
     17396_ACEOF
     17397if ac_fn_c_try_run "$LINENO"
     17398then :
     17399  gl_cv_have_weak=yes
     17400else case e in #(
     17401  e) gl_cv_have_weak=no ;;
     17402esac
     17403fi
     17404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17405  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17406esac
     17407fi
     17408
     17409         fi
     17410         ;;
     17411     esac
     17412          case " $LDFLAGS " in
     17413       *" -static "*) gl_cv_have_weak=no ;;
     17414     esac
     17415                    case "$gl_cv_have_weak" in
     17416       *yes)
     17417         case "$host_os" in
     17418           freebsd* | dragonfly* | midnightbsd*)
     17419             : > conftest1.c
     17420             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
     17421             cat <<EOF > conftest2.c
     17422#include <pthread.h>
     17423#pragma weak pthread_mutexattr_gettype
     17424int main ()
     17425{
     17426  return (pthread_mutexattr_gettype != NULL);
     17427}
     17428EOF
     17429             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
     17430               || gl_cv_have_weak=no
     17431             rm -f conftest1.c libempty.so conftest2.c conftest
     17432             ;;
     17433         esac
     17434         ;;
     17435     esac
     17436     ;;
     17437esac
     17438fi
     17439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
     17440printf "%s\n" "$gl_cv_have_weak" >&6; }
     17441  case "$gl_cv_have_weak" in
     17442    *yes)
     17443
     17444printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
     17445
     17446      ;;
     17447  esac
     17448
     17449        case "$gl_cv_have_weak" in
     17450          *yes) LIB_MBRTOWC= ;;
     17451          *)    LIB_MBRTOWC="$LIBPTHREAD" ;;
     17452        esac
     17453        ;;
     17454    esac
     17455  else
     17456    LIB_MBRTOWC=
     17457  fi
     17458
     17459
     17460
     17461
     17462
     17463
     17464  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
     17465  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
     17466  # irrelevant for anonymous mappings.
     17467  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
     17468if test "x$ac_cv_func_mmap" = xyes
     17469then :
     17470  gl_have_mmap=yes
     17471else case e in #(
     17472  e) gl_have_mmap=no ;;
     17473esac
     17474fi
     17475
     17476
     17477  # Try to allow MAP_ANONYMOUS.
     17478  gl_have_mmap_anonymous=no
     17479  if test $gl_have_mmap = yes; then
     17480    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
     17481printf %s "checking for MAP_ANONYMOUS... " >&6; }
     17482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17483/* end confdefs.h.  */
     17484
     17485#include <sys/mman.h>
     17486#ifdef MAP_ANONYMOUS
     17487    I cannot identify this map
     17488#endif
     17489
     17490_ACEOF
     17491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     17492  $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1
     17493then :
     17494  gl_have_mmap_anonymous=yes
     17495fi
     17496rm -rf conftest*
     17497
     17498    if test $gl_have_mmap_anonymous != yes; then
     17499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17500/* end confdefs.h.  */
     17501
     17502#include <sys/mman.h>
     17503#ifdef MAP_ANON
     17504    I cannot identify this map
     17505#endif
     17506
     17507_ACEOF
     17508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     17509  $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1
     17510then :
     17511
     17512printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
     17513
     17514         gl_have_mmap_anonymous=yes
     17515fi
     17516rm -rf conftest*
     17517
     17518    fi
     17519    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
     17520printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
     17521    if test $gl_have_mmap_anonymous = yes; then
     17522
     17523printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
     17524
     17525    fi
     17526  fi
     17527
     17528
     17529
     17530
     17531  HAVE_MBSLEN=0;
     17532    HAVE_EXPLICIT_BZERO=1;
     17533  HAVE_FFSL=1;
     17534  HAVE_FFSLL=1;
     17535  HAVE_DECL_MEMMEM=1;
     17536  HAVE_MEMPCPY=1;
     17537  HAVE_DECL_MEMRCHR=1;
     17538  HAVE_RAWMEMCHR=1;
     17539  HAVE_STPCPY=1;
     17540  HAVE_STPNCPY=1;
     17541  HAVE_STRCHRNUL=1;
     17542  HAVE_DECL_STRDUP=1;
     17543  HAVE_DECL_STRNDUP=1;
     17544  HAVE_DECL_STRNLEN=1;
     17545  HAVE_STRPBRK=1;
     17546  HAVE_STRSEP=1;
     17547  HAVE_STRCASESTR=1;
     17548  HAVE_DECL_STRTOK_R=1;
     17549  HAVE_DECL_STRERROR_R=1;
     17550  HAVE_STRERRORNAME_NP=1;
     17551  HAVE_SIGABBREV_NP=1;
     17552  HAVE_SIGDESCR_NP=1;
     17553  HAVE_DECL_STRSIGNAL=1;
     17554  HAVE_STRVERSCMP=1;
     17555  REPLACE_FFSLL=0;
     17556  REPLACE_MEMCHR=0;
     17557  REPLACE_MEMMEM=0;
     17558  REPLACE_STPNCPY=0;
     17559  REPLACE_STRCHRNUL=0;
     17560  REPLACE_STRDUP=0;
     17561  REPLACE_STRNCAT=0;
     17562  REPLACE_STRNDUP=0;
     17563  REPLACE_STRNLEN=0;
     17564  REPLACE_STRSTR=0;
     17565  REPLACE_STRCASESTR=0;
     17566  REPLACE_STRTOK_R=0;
     17567  REPLACE_STRERROR=0;
     17568  REPLACE_STRERROR_R=0;
     17569  REPLACE_STRERRORNAME_NP=0;
     17570  REPLACE_STRSIGNAL=0;
     17571  UNDEFINE_STRTOK_R=0;
     17572
     17573
     17574
     17575
     17576
     17577
     17578
     17579
     17580  # Detect platform-specific bugs in some versions of glibc:
     17581  # memchr should not dereference anything with length 0
     17582  #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
     17583  # memchr should not dereference overestimated length after a match
     17584  #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
     17585  #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
     17586  # memchr should cast the second argument to 'unsigned char'.
     17587  #   This bug exists in Android 4.3.
     17588  # Assume that memchr works on platforms that lack mprotect.
     17589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
     17590printf %s "checking whether memchr works... " >&6; }
     17591if test ${gl_cv_func_memchr_works+y}
     17592then :
     17593  printf %s "(cached) " >&6
     17594else case e in #(
     17595  e) if test "$cross_compiling" = yes
     17596then :
     17597  case "$host_os" in
     17598                           # Guess no on Android.
     17599          linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
     17600                           # Guess yes on native Windows.
     17601          mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
     17602                           # If we don't know, obey --enable-cross-guesses.
     17603          *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
     17604        esac
     17605
     17606else case e in #(
     17607  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17608/* end confdefs.h.  */
     17609
     17610#include <string.h>
     17611#if HAVE_SYS_MMAN_H
     17612# include <fcntl.h>
     17613# include <unistd.h>
     17614# include <sys/types.h>
     17615# include <sys/mman.h>
     17616# ifndef MAP_FILE
     17617#  define MAP_FILE 0
     17618# endif
     17619#endif
     17620
     17621int
     17622main (void)
     17623{
     17624
     17625  int result = 0;
     17626  char *fence = NULL;
     17627#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
     17628# if HAVE_MAP_ANONYMOUS
     17629  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
     17630  const int fd = -1;
     17631# else /* !HAVE_MAP_ANONYMOUS */
     17632  const int flags = MAP_FILE | MAP_PRIVATE;
     17633  int fd = open ("/dev/zero", O_RDONLY, 0666);
     17634  if (fd >= 0)
     17635# endif
     17636    {
     17637      int pagesize = getpagesize ();
     17638      char *two_pages =
     17639        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
     17640                       flags, fd, 0);
     17641      if (two_pages != (char *)(-1)
     17642          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
     17643        fence = two_pages + pagesize;
     17644    }
     17645#endif
     17646  if (fence)
     17647    {
     17648      /* Test against bugs on glibc systems.  */
     17649      if (memchr (fence, 0, 0))
     17650        result |= 1;
     17651      strcpy (fence - 9, "12345678");
     17652      if (memchr (fence - 9, 0, 79) != fence - 1)
     17653        result |= 2;
     17654      if (memchr (fence - 1, 0, 3) != fence - 1)
     17655        result |= 4;
     17656      /* Test against bug on AIX 7.2.  */
     17657      if (memchr (fence - 4, '6', 16) != fence - 4)
     17658        result |= 8;
     17659    }
     17660  /* Test against bug on Android 4.3.  */
     17661  {
     17662    char input[3];
     17663    input[0] = 'a';
     17664    input[1] = 'b';
     17665    input[2] = 'c';
     17666    if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
     17667      result |= 16;
     17668  }
     17669  return result;
     17670
     17671  ;
     17672  return 0;
     17673}
     17674_ACEOF
     17675if ac_fn_c_try_run "$LINENO"
     17676then :
     17677  gl_cv_func_memchr_works=yes
     17678else case e in #(
     17679  e) gl_cv_func_memchr_works=no ;;
     17680esac
     17681fi
     17682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17683  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17684esac
     17685fi
     17686
     17687     ;;
     17688esac
     17689fi
     17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
     17691printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
     17692  case "$gl_cv_func_memchr_works" in
     17693    *yes) ;;
     17694    *) REPLACE_MEMCHR=1 ;;
     17695  esac
     17696
     17697
     17698
     17699  GL_GNULIB_EXPLICIT_BZERO=0
     17700
     17701
     17702
     17703  GL_GNULIB_FFSL=0
     17704
     17705
     17706
     17707  GL_GNULIB_FFSLL=0
     17708
     17709
     17710
     17711  GL_GNULIB_MEMCHR=0
     17712
     17713
     17714
     17715  GL_GNULIB_MEMMEM=0
     17716
     17717
     17718
     17719  GL_GNULIB_MEMPCPY=0
     17720
     17721
     17722
     17723  GL_GNULIB_MEMRCHR=0
     17724
     17725
     17726
     17727  GL_GNULIB_RAWMEMCHR=0
     17728
     17729
     17730
     17731  GL_GNULIB_STPCPY=0
     17732
     17733
     17734
     17735  GL_GNULIB_STPNCPY=0
     17736
     17737
     17738
     17739  GL_GNULIB_STRCHRNUL=0
     17740
     17741
     17742
     17743  GL_GNULIB_STRDUP=0
     17744
     17745
     17746
     17747  GL_GNULIB_STRNCAT=0
     17748
     17749
     17750
     17751  GL_GNULIB_STRNDUP=0
     17752
     17753
     17754
     17755  GL_GNULIB_STRNLEN=0
     17756
     17757
     17758
     17759  GL_GNULIB_STRPBRK=0
     17760
     17761
     17762
     17763  GL_GNULIB_STRSEP=0
     17764
     17765
     17766
     17767  GL_GNULIB_STRSTR=0
     17768
     17769
     17770
     17771  GL_GNULIB_STRCASESTR=0
     17772
     17773
     17774
     17775  GL_GNULIB_STRTOK_R=0
     17776
     17777
     17778
     17779  GL_GNULIB_MBSLEN=0
     17780
     17781
     17782
     17783  GL_GNULIB_MBSNLEN=0
     17784
     17785
     17786
     17787  GL_GNULIB_MBSCHR=0
     17788
     17789
     17790
     17791  GL_GNULIB_MBSRCHR=0
     17792
     17793
     17794
     17795  GL_GNULIB_MBSSTR=0
     17796
     17797
     17798
     17799  GL_GNULIB_MBSCASECMP=0
     17800
     17801
     17802
     17803  GL_GNULIB_MBSNCASECMP=0
     17804
     17805
     17806
     17807  GL_GNULIB_MBSPCASECMP=0
     17808
     17809
     17810
     17811  GL_GNULIB_MBSCASESTR=0
     17812
     17813
     17814
     17815  GL_GNULIB_MBSCSPN=0
     17816
     17817
     17818
     17819  GL_GNULIB_MBSPBRK=0
     17820
     17821
     17822
     17823  GL_GNULIB_MBSSPN=0
     17824
     17825
     17826
     17827  GL_GNULIB_MBSSEP=0
     17828
     17829
     17830
     17831  GL_GNULIB_MBSTOK_R=0
     17832
     17833
     17834
     17835  GL_GNULIB_STRERROR=0
     17836
     17837
     17838
     17839  GL_GNULIB_STRERROR_R=0
     17840
     17841
     17842
     17843  GL_GNULIB_STRERRORNAME_NP=0
     17844
     17845
     17846
     17847  GL_GNULIB_SIGABBREV_NP=0
     17848
     17849
     17850
     17851  GL_GNULIB_SIGDESCR_NP=0
     17852
     17853
     17854
     17855  GL_GNULIB_STRSIGNAL=0
     17856
     17857
     17858
     17859  GL_GNULIB_STRVERSCMP=0
     17860
     17861
     17862
     17863  GL_GNULIB_MDA_MEMCCPY=1
     17864
     17865
     17866
     17867  GL_GNULIB_MDA_STRDUP=1
     17868
     17869
     17870
     17871ac_fn_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     17872if test "x$ac_cv_have_decl_memrchr" = xyes
     17873then :
     17874  ac_have_decl=1
     17875else case e in #(
     17876  e) ac_have_decl=0 ;;
     17877esac
     17878fi
     17879printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h
     17880
     17881
     17882
     17883
     17884
     17885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
     17886printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
     17887if test ${gl_cv_minmax_in_limits_h+y}
     17888then :
     17889  printf %s "(cached) " >&6
     17890else case e in #(
     17891  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17892/* end confdefs.h.  */
     17893#include <limits.h>
     17894            int x = MIN (42, 17);
     17895int
     17896main (void)
     17897{
     17898
     17899  ;
     17900  return 0;
     17901}
     17902_ACEOF
     17903if ac_fn_c_try_compile "$LINENO"
     17904then :
     17905  gl_cv_minmax_in_limits_h=yes
     17906else case e in #(
     17907  e) gl_cv_minmax_in_limits_h=no ;;
     17908esac
     17909fi
     17910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17911esac
     17912fi
     17913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
     17914printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
     17915  if test $gl_cv_minmax_in_limits_h = yes; then
     17916
     17917printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
     17918
     17919  fi
     17920
     17921
     17922
     17923
     17924
     17925
     17926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
     17927printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
     17928if test ${gl_cv_minmax_in_sys_param_h+y}
     17929then :
     17930  printf %s "(cached) " >&6
     17931else case e in #(
     17932  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17933/* end confdefs.h.  */
     17934#include <sys/param.h>
     17935            int x = MIN (42, 17);
     17936int
     17937main (void)
     17938{
     17939
     17940  ;
     17941  return 0;
     17942}
     17943_ACEOF
     17944if ac_fn_c_try_compile "$LINENO"
     17945then :
     17946  gl_cv_minmax_in_sys_param_h=yes
     17947else case e in #(
     17948  e) gl_cv_minmax_in_sys_param_h=no ;;
     17949esac
     17950fi
     17951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     17952esac
     17953fi
     17954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
     17955printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
     17956  if test $gl_cv_minmax_in_sys_param_h = yes; then
     17957
     17958printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
     17959
     17960  fi
     17961
     17962
     17963
     17964
     17965
     17966
     17967
     17968
     17969
     17970
     17971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
     17972printf %s "checking for O_CLOEXEC... " >&6; }
     17973if test ${gl_cv_macro_O_CLOEXEC+y}
     17974then :
     17975  printf %s "(cached) " >&6
     17976else case e in #(
     17977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17978/* end confdefs.h.  */
     17979#include <fcntl.h>
     17980                          #ifndef O_CLOEXEC
     17981                            choke me;
     17982                          #endif
     17983
     17984int
     17985main (void)
     17986{
     17987return O_CLOEXEC;
     17988  ;
     17989  return 0;
     17990}
     17991_ACEOF
     17992if ac_fn_c_try_compile "$LINENO"
     17993then :
     17994  gl_cv_macro_O_CLOEXEC=yes
     17995else case e in #(
     17996  e) gl_cv_macro_O_CLOEXEC=no ;;
     17997esac
     17998fi
     17999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     18000esac
     18001fi
     18002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
     18003printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
     18004
     18005
     18006
     18007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
     18008printf %s "checking for promoted mode_t type... " >&6; }
     18009if test ${gl_cv_promoted_mode_t+y}
     18010then :
     18011  printf %s "(cached) " >&6
     18012else case e in #(
     18013  e)
     18014                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18015/* end confdefs.h.  */
     18016#include <sys/types.h>
     18017int
     18018main (void)
     18019{
     18020typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
     18021  ;
     18022  return 0;
     18023}
     18024_ACEOF
     18025if ac_fn_c_try_compile "$LINENO"
     18026then :
     18027  gl_cv_promoted_mode_t='int'
     18028else case e in #(
     18029  e) gl_cv_promoted_mode_t='mode_t' ;;
     18030esac
     18031fi
     18032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     18033   ;;
     18034esac
     18035fi
     18036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
     18037printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
     18038
     18039printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
     18040
     18041
     18042
     18043
     18044
     18045
     18046  if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
     18047    REPLACE_REALLOC_FOR_REALLOC_POSIX=1
     18048  fi
     18049
     18050ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     18051if test "x$ac_cv_have_decl_alarm" = xyes
     18052then :
     18053  ac_have_decl=1
     18054else case e in #(
     18055  e) ac_have_decl=0 ;;
     18056esac
     18057fi
     18058printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h
     18059
     18060
     18061
     18062
     18063
     18064
     18065
     18066
     18067
     18068
     18069# Check whether --with-selinux was given.
     18070if test ${with_selinux+y}
     18071then :
     18072  withval=$with_selinux;
     18073else case e in #(
     18074  e) with_selinux=maybe ;;
     18075esac
     18076fi
     18077
     18078
     18079  LIB_SELINUX=
     18080  if test "$with_selinux" != no; then
     18081    gl_save_LIBS=$LIBS
     18082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setfilecon" >&5
     18083printf %s "checking for library containing setfilecon... " >&6; }
     18084if test ${ac_cv_search_setfilecon+y}
     18085then :
     18086  printf %s "(cached) " >&6
     18087else case e in #(
     18088  e) ac_func_search_save_LIBS=$LIBS
     18089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18090/* end confdefs.h.  */
     18091
     18092/* Override any GCC internal prototype to avoid an error.
     18093   Use char because int might match the return type of a GCC
     18094   builtin and then its argument prototype would still apply.
     18095   The 'extern "C"' is for builds by C++ compilers;
     18096   although this is not generally supported in C code, supporting it here
     18097   has little cost and some practical benefit (sr 110532).  */
     18098#ifdef __cplusplus
     18099extern "C"
     18100#endif
     18101char setfilecon (void);
     18102int
     18103main (void)
     18104{
     18105return setfilecon ();
     18106  ;
     18107  return 0;
     18108}
     18109_ACEOF
     18110for ac_lib in '' selinux
     18111do
     18112  if test -z "$ac_lib"; then
     18113    ac_res="none required"
     18114  else
     18115    ac_res=-l$ac_lib
     18116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     18117  fi
     18118  if ac_fn_c_try_link "$LINENO"
     18119then :
     18120  ac_cv_search_setfilecon=$ac_res
     18121fi
     18122rm -f core conftest.err conftest.$ac_objext conftest.beam \
     18123    conftest$ac_exeext
     18124  if test ${ac_cv_search_setfilecon+y}
     18125then :
     18126  break
     18127fi
     18128done
     18129if test ${ac_cv_search_setfilecon+y}
     18130then :
     18131
     18132else case e in #(
     18133  e) ac_cv_search_setfilecon=no ;;
     18134esac
     18135fi
     18136rm conftest.$ac_ext
     18137LIBS=$ac_func_search_save_LIBS ;;
     18138esac
     18139fi
     18140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setfilecon" >&5
     18141printf "%s\n" "$ac_cv_search_setfilecon" >&6; }
     18142ac_res=$ac_cv_search_setfilecon
     18143if test "$ac_res" != no
     18144then :
     18145  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     18146  test "$ac_cv_search_setfilecon" = "none required" ||
     18147                    LIB_SELINUX=$ac_cv_search_setfilecon
     18148fi
     18149
     18150    LIBS=$gl_save_LIBS
     18151  fi
     18152
     18153
     18154  # Warn if SELinux is found but libselinux is absent;
     18155  if test "$ac_cv_search_setfilecon" = no; then
     18156    if test "$host" = "$build" && test -d /selinux; then
     18157      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This system supports SELinux but libselinux is missing." >&5
     18158printf "%s\n" "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;}
     18159      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be compiled without SELinux support." >&5
     18160printf "%s\n" "$as_me: WARNING: GNU sed will be compiled without SELinux support." >&2;}
     18161    fi
     18162    with_selinux=no
     18163  fi
     18164
     18165
     18166
     18167
     18168
     18169
     18170
     18171
     18172ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     18173if test "x$ac_cv_have_decl_fcloseall" = xyes
     18174then :
     18175  ac_have_decl=1
     18176else case e in #(
     18177  e) ac_have_decl=0 ;;
     18178esac
     18179fi
     18180printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
     18181
     18182
     18183
     18184
     18185  printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
     18186
     18187
     18188
     18189
     18190
     18191
     18192
     18193
     18194
     18195     if test $gl_cv_have_include_next = yes; then
     18196       gl_cv_next_stdio_h='<'stdio.h'>'
     18197     else
     18198       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
     18199printf %s "checking absolute name of <stdio.h>... " >&6; }
     18200if test ${gl_cv_next_stdio_h+y}
     18201then :
     18202  printf %s "(cached) " >&6
     18203else case e in #(
     18204  e)
     18205
     18206
     18207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18208/* end confdefs.h.  */
     18209#include <stdio.h>
     18210_ACEOF
     18211                case "$host_os" in
     18212    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     18213    *)    gl_absname_cpp="$ac_cpp" ;;
     18214  esac
     18215
     18216  case "$host_os" in
     18217    mingw*)
     18218                                          gl_dirsep_regex='[/\\]'
     18219      ;;
     18220    *)
     18221      gl_dirsep_regex='\/'
     18222      ;;
     18223  esac
     18224      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     18225  gl_header_literal_regex=`echo 'stdio.h' \
     18226                           | sed -e "$gl_make_literal_regex_sed"`
     18227  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     18228      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     18229      s|^/[^/]|//&|
     18230      p
     18231      q
     18232    }'
     18233
     18234        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     18235  sed -n "$gl_absolute_header_sed"`
     18236
     18237          gl_header=$gl_cv_absolute_stdio_h
     18238          gl_cv_next_stdio_h='"'$gl_header'"'
     18239
     18240          ;;
     18241esac
     18242fi
     18243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
     18244printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
     18245     fi
     18246     NEXT_STDIO_H=$gl_cv_next_stdio_h
     18247
     18248     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     18249       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     18250       gl_next_as_first_directive='<'stdio.h'>'
     18251     else
     18252       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     18253       gl_next_as_first_directive=$gl_cv_next_stdio_h
     18254     fi
     18255     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
     18256
     18257
     18258
     18259
     18260
     18261        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
     18262printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
     18263if test ${gl_cv_func_printf_attribute_flavor+y}
     18264then :
     18265  printf %s "(cached) " >&6
     18266else case e in #(
     18267  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18268/* end confdefs.h.  */
     18269
     18270       #define __STDC_FORMAT_MACROS 1
     18271       #include <stdio.h>
     18272       #include <inttypes.h>
     18273       /* For non-mingw systems, compilation will trivially succeed.
     18274          For mingw, compilation will succeed for older mingw (system
     18275          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
     18276       #if (defined _WIN32 && ! defined __CYGWIN__) && \
     18277         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
     18278       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
     18279       #endif
     18280
     18281int
     18282main (void)
     18283{
     18284
     18285  ;
     18286  return 0;
     18287}
     18288_ACEOF
     18289if ac_fn_c_try_compile "$LINENO"
     18290then :
     18291  gl_cv_func_printf_attribute_flavor=system
     18292else case e in #(
     18293  e) gl_cv_func_printf_attribute_flavor=gnu ;;
     18294esac
     18295fi
     18296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     18297esac
     18298fi
     18299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
     18300printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
     18301  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
     18302
     18303printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
     18304
     18305  fi
     18306
     18307
     18308
     18309
     18310
     18311
     18312
     18313
     18314
     18315
     18316
     18317
     18318
     18319  if test $ac_cv_have_decl_fcloseall = no; then
     18320    HAVE_DECL_FCLOSEALL=0
     18321  fi
     18322
     18323ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     18324if test "x$ac_cv_have_decl_ecvt" = xyes
     18325then :
     18326  ac_have_decl=1
     18327else case e in #(
     18328  e) ac_have_decl=0 ;;
     18329esac
     18330fi
     18331printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
     18332
     18333ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     18334if test "x$ac_cv_have_decl_fcvt" = xyes
     18335then :
     18336  ac_have_decl=1
     18337else case e in #(
     18338  e) ac_have_decl=0 ;;
     18339esac
     18340fi
     18341printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
     18342
     18343ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     18344if test "x$ac_cv_have_decl_gcvt" = xyes
     18345then :
     18346  ac_have_decl=1
     18347else case e in #(
     18348  e) ac_have_decl=0 ;;
     18349esac
     18350fi
     18351printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
     18352
     18353
     18354
     18355
     18356
     18357
     18358
     18359
     18360
     18361
     18362
     18363     if test $gl_cv_have_include_next = yes; then
     18364       gl_cv_next_stdlib_h='<'stdlib.h'>'
     18365     else
     18366       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
     18367printf %s "checking absolute name of <stdlib.h>... " >&6; }
     18368if test ${gl_cv_next_stdlib_h+y}
     18369then :
     18370  printf %s "(cached) " >&6
     18371else case e in #(
     18372  e)
     18373
     18374
     18375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18376/* end confdefs.h.  */
     18377#include <stdlib.h>
     18378_ACEOF
     18379                case "$host_os" in
     18380    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     18381    *)    gl_absname_cpp="$ac_cpp" ;;
     18382  esac
     18383
     18384  case "$host_os" in
     18385    mingw*)
     18386                                          gl_dirsep_regex='[/\\]'
     18387      ;;
     18388    *)
     18389      gl_dirsep_regex='\/'
     18390      ;;
     18391  esac
     18392      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     18393  gl_header_literal_regex=`echo 'stdlib.h' \
     18394                           | sed -e "$gl_make_literal_regex_sed"`
     18395  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     18396      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     18397      s|^/[^/]|//&|
     18398      p
     18399      q
     18400    }'
     18401
     18402        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     18403  sed -n "$gl_absolute_header_sed"`
     18404
     18405          gl_header=$gl_cv_absolute_stdlib_h
     18406          gl_cv_next_stdlib_h='"'$gl_header'"'
     18407
     18408          ;;
     18409esac
     18410fi
     18411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
     18412printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
     18413     fi
     18414     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
     18415
     18416     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     18417       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     18418       gl_next_as_first_directive='<'stdlib.h'>'
     18419     else
     18420       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     18421       gl_next_as_first_directive=$gl_cv_next_stdlib_h
     18422     fi
     18423     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
     18424
     18425
     18426
     18427
     18428
     18429
     18430
     18431
     18432
     18433
     18434
     18435
     18436  if test $ac_cv_have_decl_ecvt = no; then
     18437    HAVE_DECL_ECVT=0
     18438  fi
     18439
     18440  if test $ac_cv_have_decl_fcvt = no; then
     18441    HAVE_DECL_FCVT=0
     18442  fi
     18443
     18444  if test $ac_cv_have_decl_gcvt = no; then
     18445    HAVE_DECL_GCVT=0
     18446  fi
     18447
     18448
     18449     REPLACE_STRERROR_0=0
     18450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
     18451printf %s "checking whether strerror(0) succeeds... " >&6; }
     18452if test ${gl_cv_func_strerror_0_works+y}
     18453then :
     18454  printf %s "(cached) " >&6
     18455else case e in #(
     18456  e) if test "$cross_compiling" = yes
     18457then :
     18458  case "$host_os" in
     18459                        # Guess yes on glibc systems.
     18460         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
     18461                        # Guess yes on musl systems.
     18462         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
     18463                        # Guess yes on native Windows.
     18464         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
     18465                        # If we don't know, obey --enable-cross-guesses.
     18466         *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
     18467       esac
     18468
     18469else case e in #(
     18470  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18471/* end confdefs.h.  */
     18472#include <string.h>
     18473           #include <errno.h>
     18474
     18475int
     18476main (void)
     18477{
     18478int result = 0;
     18479           char *str;
     18480           errno = 0;
     18481           str = strerror (0);
     18482           if (!*str) result |= 1;
     18483           if (errno) result |= 2;
     18484           if (strstr (str, "nknown") || strstr (str, "ndefined"))
     18485             result |= 4;
     18486           return result;
     18487  ;
     18488  return 0;
     18489}
     18490_ACEOF
     18491if ac_fn_c_try_run "$LINENO"
     18492then :
     18493  gl_cv_func_strerror_0_works=yes
     18494else case e in #(
     18495  e) gl_cv_func_strerror_0_works=no ;;
     18496esac
     18497fi
     18498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     18499  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     18500esac
     18501fi
     18502
     18503   ;;
     18504esac
     18505fi
     18506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
     18507printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
     18508  case "$gl_cv_func_strerror_0_works" in
     18509    *yes) ;;
     18510    *)
     18511      REPLACE_STRERROR_0=1
     18512
     18513printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
     18514
     18515      ;;
     18516  esac
     18517
     18518
     18519
     18520
     18521
     18522
     18523
     18524
     18525
     18526
     18527
     18528  if test $ac_cv_func_strerror_r = yes; then
     18529    if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
     18530                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
     18531printf %s "checking for strerror_r with POSIX signature... " >&6; }
     18532if test ${gl_cv_func_strerror_r_posix_signature+y}
     18533then :
     18534  printf %s "(cached) " >&6
     18535else case e in #(
     18536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18537/* end confdefs.h.  */
     18538#include <string.h>
     18539                int strerror_r (int, char *, size_t);
     18540
     18541int
     18542main (void)
     18543{
     18544
     18545  ;
     18546  return 0;
     18547}
     18548_ACEOF
     18549if ac_fn_c_try_compile "$LINENO"
     18550then :
     18551  gl_cv_func_strerror_r_posix_signature=yes
     18552else case e in #(
     18553  e) gl_cv_func_strerror_r_posix_signature=no ;;
     18554esac
     18555fi
     18556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     18557         ;;
     18558esac
     18559fi
     18560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
     18561printf "%s\n" "$gl_cv_func_strerror_r_posix_signature" >&6; }
     18562      if test $gl_cv_func_strerror_r_posix_signature = yes; then
     18563                                                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
     18564printf %s "checking whether strerror_r works... " >&6; }
     18565if test ${gl_cv_func_strerror_r_works+y}
     18566then :
     18567  printf %s "(cached) " >&6
     18568else case e in #(
     18569  e) if test "$cross_compiling" = yes
     18570then :
     18571
     18572              case "$host_os" in
     18573                       # Guess no on AIX.
     18574                aix*)  gl_cv_func_strerror_r_works="guessing no";;
     18575                       # Guess no on HP-UX.
     18576                hpux*) gl_cv_func_strerror_r_works="guessing no";;
     18577                       # Guess no on BSD variants.
     18578                *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
     18579                       # Guess yes otherwise.
     18580                *)     gl_cv_func_strerror_r_works="guessing yes";;
     18581              esac
     18582
     18583else case e in #(
     18584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18585/* end confdefs.h.  */
     18586#include <errno.h>
     18587                  #include <string.h>
     18588
     18589int
     18590main (void)
     18591{
     18592int result = 0;
     18593                  char buf[79];
     18594                  if (strerror_r (EACCES, buf, 0) < 0)
     18595                    result |= 1;
     18596                  errno = 0;
     18597                  if (strerror_r (EACCES, buf, sizeof buf) != 0)
     18598                    result |= 2;
     18599                  strcpy (buf, "Unknown");
     18600                  if (strerror_r (0, buf, sizeof buf) != 0)
     18601                    result |= 4;
     18602                  if (errno)
     18603                    result |= 8;
     18604                  if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
     18605                    result |= 0x10;
     18606                  errno = 0;
     18607                  *buf = 0;
     18608                  if (strerror_r (-3, buf, sizeof buf) < 0)
     18609                    result |= 0x20;
     18610                  if (errno)
     18611                    result |= 0x40;
     18612                  if (!*buf)
     18613                    result |= 0x80;
     18614                  return result;
     18615
     18616  ;
     18617  return 0;
     18618}
     18619_ACEOF
     18620if ac_fn_c_try_run "$LINENO"
     18621then :
     18622  gl_cv_func_strerror_r_works=yes
     18623else case e in #(
     18624  e) gl_cv_func_strerror_r_works=no ;;
     18625esac
     18626fi
     18627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     18628  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     18629esac
     18630fi
     18631
     18632           ;;
     18633esac
     18634fi
     18635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
     18636printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
     18637      else
     18638
     18639                        if test $ac_cv_func___xpg_strerror_r = yes; then
     18640          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
     18641printf %s "checking whether __xpg_strerror_r works... " >&6; }
     18642if test ${gl_cv_func_strerror_r_works+y}
     18643then :
     18644  printf %s "(cached) " >&6
     18645else case e in #(
     18646  e) if test "$cross_compiling" = yes
     18647then :
     18648                                  gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
     18649
     18650else case e in #(
     18651  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18652/* end confdefs.h.  */
     18653#include <errno.h>
     18654                    #include <string.h>
     18655                    extern
     18656                    #ifdef __cplusplus
     18657                    "C"
     18658                    #endif
     18659                    int __xpg_strerror_r(int, char *, size_t);
     18660
     18661int
     18662main (void)
     18663{
     18664int result = 0;
     18665                    char buf[256] = "^";
     18666                    char copy[256];
     18667                    char *str = strerror (-1);
     18668                    strcpy (copy, str);
     18669                    if (__xpg_strerror_r (-2, buf, 1) == 0)
     18670                      result |= 1;
     18671                    if (*buf)
     18672                      result |= 2;
     18673                    __xpg_strerror_r (-2, buf, 256);
     18674                    if (strcmp (str, copy))
     18675                      result |= 4;
     18676                    return result;
     18677
     18678  ;
     18679  return 0;
     18680}
     18681_ACEOF
     18682if ac_fn_c_try_run "$LINENO"
     18683then :
     18684  gl_cv_func_strerror_r_works=yes
     18685else case e in #(
     18686  e) gl_cv_func_strerror_r_works=no ;;
     18687esac
     18688fi
     18689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     18690  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     18691esac
     18692fi
     18693
     18694             ;;
     18695esac
     18696fi
     18697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
     18698printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
     18699        fi
     18700      fi
     18701    fi
     18702  fi
     18703
     18704
     18705
     18706
     18707
     18708
     18709
     18710
     18711
     18712
     18713
     18714     if test $gl_cv_have_include_next = yes; then
     18715       gl_cv_next_string_h='<'string.h'>'
     18716     else
     18717       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
     18718printf %s "checking absolute name of <string.h>... " >&6; }
     18719if test ${gl_cv_next_string_h+y}
     18720then :
     18721  printf %s "(cached) " >&6
     18722else case e in #(
     18723  e)
     18724
     18725
     18726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18727/* end confdefs.h.  */
     18728#include <string.h>
     18729_ACEOF
     18730                case "$host_os" in
     18731    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     18732    *)    gl_absname_cpp="$ac_cpp" ;;
     18733  esac
     18734
     18735  case "$host_os" in
     18736    mingw*)
     18737                                          gl_dirsep_regex='[/\\]'
     18738      ;;
     18739    *)
     18740      gl_dirsep_regex='\/'
     18741      ;;
     18742  esac
     18743      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     18744  gl_header_literal_regex=`echo 'string.h' \
     18745                           | sed -e "$gl_make_literal_regex_sed"`
     18746  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     18747      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     18748      s|^/[^/]|//&|
     18749      p
     18750      q
     18751    }'
     18752
     18753        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     18754  sed -n "$gl_absolute_header_sed"`
     18755
     18756          gl_header=$gl_cv_absolute_string_h
     18757          gl_cv_next_string_h='"'$gl_header'"'
     18758
     18759          ;;
     18760esac
     18761fi
     18762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
     18763printf "%s\n" "$gl_cv_next_string_h" >&6; }
     18764     fi
     18765     NEXT_STRING_H=$gl_cv_next_string_h
     18766
     18767     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     18768       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     18769       gl_next_as_first_directive='<'string.h'>'
     18770     else
     18771       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     18772       gl_next_as_first_directive=$gl_cv_next_string_h
     18773     fi
     18774     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
     18775
     18776
     18777
     18778
     18779
     18780
     18781
     18782
     18783
     18784
     18785
     18786
     18787
     18788
     18789
     18790
     18791
     18792
     18793
     18794
     18795
     18796
     18797
     18798     if test $gl_cv_have_include_next = yes; then
     18799       gl_cv_next_sys_random_h='<'sys/random.h'>'
     18800     else
     18801       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
     18802printf %s "checking absolute name of <sys/random.h>... " >&6; }
     18803if test ${gl_cv_next_sys_random_h+y}
     18804then :
     18805  printf %s "(cached) " >&6
     18806else case e in #(
     18807  e)
     18808             if test $ac_cv_header_sys_random_h = yes; then
     18809
     18810
     18811
     18812
     18813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18814/* end confdefs.h.  */
     18815#include <sys/random.h>
     18816_ACEOF
     18817                case "$host_os" in
     18818    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     18819    *)    gl_absname_cpp="$ac_cpp" ;;
     18820  esac
     18821
     18822  case "$host_os" in
     18823    mingw*)
     18824                                          gl_dirsep_regex='[/\\]'
     18825      ;;
     18826    *)
     18827      gl_dirsep_regex='\/'
     18828      ;;
     18829  esac
     18830      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     18831  gl_header_literal_regex=`echo 'sys/random.h' \
     18832                           | sed -e "$gl_make_literal_regex_sed"`
     18833  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     18834      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     18835      s|^/[^/]|//&|
     18836      p
     18837      q
     18838    }'
     18839
     18840        gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     18841  sed -n "$gl_absolute_header_sed"`
     18842
     18843          gl_header=$gl_cv_absolute_sys_random_h
     18844          gl_cv_next_sys_random_h='"'$gl_header'"'
     18845          else
     18846               gl_cv_next_sys_random_h='<'sys/random.h'>'
     18847             fi
     18848
     18849          ;;
     18850esac
     18851fi
     18852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
     18853printf "%s\n" "$gl_cv_next_sys_random_h" >&6; }
     18854     fi
     18855     NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
     18856
     18857     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     18858       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     18859       gl_next_as_first_directive='<'sys/random.h'>'
     18860     else
     18861       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     18862       gl_next_as_first_directive=$gl_cv_next_sys_random_h
     18863     fi
     18864     NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
     18865
     18866
     18867
     18868
     18869  if test $ac_cv_header_sys_random_h = yes; then
     18870    HAVE_SYS_RANDOM_H=1
     18871  else
     18872    HAVE_SYS_RANDOM_H=0
     18873  fi
     18874
     18875
     18876
     18877  if test $ac_cv_header_sys_random_h = yes; then
     18878    UNISTD_H_HAVE_SYS_RANDOM_H=1
     18879  fi
     18880
     18881
     18882
     18883
     18884
     18885
     18886
     18887
     18888
     18889
     18890
     18891
     18892
     18893
     18894
     18895
     18896
     18897printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
     18898
     18899
     18900
     18901
     18902
     18903
     18904
     18905
     18906
     18907
     18908     if test $gl_cv_have_include_next = yes; then
     18909       gl_cv_next_sys_types_h='<'sys/types.h'>'
     18910     else
     18911       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
     18912printf %s "checking absolute name of <sys/types.h>... " >&6; }
     18913if test ${gl_cv_next_sys_types_h+y}
     18914then :
     18915  printf %s "(cached) " >&6
     18916else case e in #(
     18917  e)
     18918
     18919
     18920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18921/* end confdefs.h.  */
     18922#include <sys/types.h>
     18923_ACEOF
     18924                case "$host_os" in
     18925    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     18926    *)    gl_absname_cpp="$ac_cpp" ;;
     18927  esac
     18928
     18929  case "$host_os" in
     18930    mingw*)
     18931                                          gl_dirsep_regex='[/\\]'
     18932      ;;
     18933    *)
     18934      gl_dirsep_regex='\/'
     18935      ;;
     18936  esac
     18937      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     18938  gl_header_literal_regex=`echo 'sys/types.h' \
     18939                           | sed -e "$gl_make_literal_regex_sed"`
     18940  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     18941      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     18942      s|^/[^/]|//&|
     18943      p
     18944      q
     18945    }'
     18946
     18947        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     18948  sed -n "$gl_absolute_header_sed"`
     18949
     18950          gl_header=$gl_cv_absolute_sys_types_h
     18951          gl_cv_next_sys_types_h='"'$gl_header'"'
     18952
     18953          ;;
     18954esac
     18955fi
     18956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
     18957printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
     18958     fi
     18959     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
     18960
     18961     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     18962       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     18963       gl_next_as_first_directive='<'sys/types.h'>'
     18964     else
     18965       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     18966       gl_next_as_first_directive=$gl_cv_next_sys_types_h
     18967     fi
     18968     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
     18969
     18970
     18971
     18972
     18973
     18974
     18975
     18976
     18977
     18978
     18979
     18980
     18981    WINDOWS_STAT_INODES=0
     18982
     18983
     18984
     18985
     18986
     18987
     18988    HAVE_DECL_LOCALTIME_R=1;
     18989  HAVE_NANOSLEEP=1;
     18990  HAVE_STRPTIME=1;
     18991  HAVE_TIMEGM=1;
     18992  HAVE_TIMESPEC_GET=1;
     18993  HAVE_TIMESPEC_GETRES=1;
     18994    HAVE_TIMEZONE_T=0;
     18995        REPLACE_CTIME=GNULIB_PORTCHECK;
     18996  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
     18997  REPLACE_MKTIME=GNULIB_PORTCHECK;
     18998  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
     18999  REPLACE_STRFTIME=GNULIB_PORTCHECK;
     19000  REPLACE_TIMEGM=GNULIB_PORTCHECK;
     19001  REPLACE_TZSET=GNULIB_PORTCHECK;
     19002
     19003      : ${GNULIB_GETTIMEOFDAY=0};
     19004        REPLACE_GMTIME=0;
     19005  REPLACE_LOCALTIME=0;
     19006
     19007
     19008
     19009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
     19010printf %s "checking for struct timespec in <time.h>... " >&6; }
     19011if test ${gl_cv_sys_struct_timespec_in_time_h+y}
     19012then :
     19013  printf %s "(cached) " >&6
     19014else case e in #(
     19015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19016/* end confdefs.h.  */
     19017#include <time.h>
     19018
     19019int
     19020main (void)
     19021{
     19022static struct timespec x; x.tv_sec = x.tv_nsec;
     19023  ;
     19024  return 0;
     19025}
     19026_ACEOF
     19027if ac_fn_c_try_compile "$LINENO"
     19028then :
     19029  gl_cv_sys_struct_timespec_in_time_h=yes
     19030else case e in #(
     19031  e) gl_cv_sys_struct_timespec_in_time_h=no ;;
     19032esac
     19033fi
     19034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19035esac
     19036fi
     19037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
     19038printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
     19039
     19040  TIME_H_DEFINES_STRUCT_TIMESPEC=0
     19041  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
     19042  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
     19043  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
     19044  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
     19045    TIME_H_DEFINES_STRUCT_TIMESPEC=1
     19046  else
     19047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
     19048printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
     19049if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
     19050then :
     19051  printf %s "(cached) " >&6
     19052else case e in #(
     19053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19054/* end confdefs.h.  */
     19055#include <sys/time.h>
     19056
     19057int
     19058main (void)
     19059{
     19060static struct timespec x; x.tv_sec = x.tv_nsec;
     19061  ;
     19062  return 0;
     19063}
     19064_ACEOF
     19065if ac_fn_c_try_compile "$LINENO"
     19066then :
     19067  gl_cv_sys_struct_timespec_in_sys_time_h=yes
     19068else case e in #(
     19069  e) gl_cv_sys_struct_timespec_in_sys_time_h=no ;;
     19070esac
     19071fi
     19072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19073esac
     19074fi
     19075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
     19076printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
     19077    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
     19078      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
     19079    else
     19080      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
     19081printf %s "checking for struct timespec in <pthread.h>... " >&6; }
     19082if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
     19083then :
     19084  printf %s "(cached) " >&6
     19085else case e in #(
     19086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19087/* end confdefs.h.  */
     19088#include <pthread.h>
     19089
     19090int
     19091main (void)
     19092{
     19093static struct timespec x; x.tv_sec = x.tv_nsec;
     19094  ;
     19095  return 0;
     19096}
     19097_ACEOF
     19098if ac_fn_c_try_compile "$LINENO"
     19099then :
     19100  gl_cv_sys_struct_timespec_in_pthread_h=yes
     19101else case e in #(
     19102  e) gl_cv_sys_struct_timespec_in_pthread_h=no ;;
     19103esac
     19104fi
     19105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19106esac
     19107fi
     19108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
     19109printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
     19110      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
     19111        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
     19112      else
     19113        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
     19114printf %s "checking for struct timespec in <unistd.h>... " >&6; }
     19115if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
     19116then :
     19117  printf %s "(cached) " >&6
     19118else case e in #(
     19119  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19120/* end confdefs.h.  */
     19121#include <unistd.h>
     19122
     19123int
     19124main (void)
     19125{
     19126static struct timespec x; x.tv_sec = x.tv_nsec;
     19127  ;
     19128  return 0;
     19129}
     19130_ACEOF
     19131if ac_fn_c_try_compile "$LINENO"
     19132then :
     19133  gl_cv_sys_struct_timespec_in_unistd_h=yes
     19134else case e in #(
     19135  e) gl_cv_sys_struct_timespec_in_unistd_h=no ;;
     19136esac
     19137fi
     19138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19139esac
     19140fi
     19141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
     19142printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
     19143        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
     19144          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
     19145        fi
     19146      fi
     19147    fi
     19148  fi
     19149
     19150
     19151
     19152
     19153
     19154
     19155
     19156
     19157
     19158
     19159
     19160
     19161
     19162
     19163
     19164
     19165     if test $gl_cv_have_include_next = yes; then
     19166       gl_cv_next_time_h='<'time.h'>'
     19167     else
     19168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
     19169printf %s "checking absolute name of <time.h>... " >&6; }
     19170if test ${gl_cv_next_time_h+y}
     19171then :
     19172  printf %s "(cached) " >&6
     19173else case e in #(
     19174  e)
     19175
     19176
     19177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19178/* end confdefs.h.  */
     19179#include <time.h>
     19180_ACEOF
     19181                case "$host_os" in
     19182    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     19183    *)    gl_absname_cpp="$ac_cpp" ;;
     19184  esac
     19185
     19186  case "$host_os" in
     19187    mingw*)
     19188                                          gl_dirsep_regex='[/\\]'
     19189      ;;
     19190    *)
     19191      gl_dirsep_regex='\/'
     19192      ;;
     19193  esac
     19194      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     19195  gl_header_literal_regex=`echo 'time.h' \
     19196                           | sed -e "$gl_make_literal_regex_sed"`
     19197  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     19198      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     19199      s|^/[^/]|//&|
     19200      p
     19201      q
     19202    }'
     19203
     19204        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     19205  sed -n "$gl_absolute_header_sed"`
     19206
     19207          gl_header=$gl_cv_absolute_time_h
     19208          gl_cv_next_time_h='"'$gl_header'"'
     19209
     19210          ;;
     19211esac
     19212fi
     19213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
     19214printf "%s\n" "$gl_cv_next_time_h" >&6; }
     19215     fi
     19216     NEXT_TIME_H=$gl_cv_next_time_h
     19217
     19218     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     19219       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     19220       gl_next_as_first_directive='<'time.h'>'
     19221     else
     19222       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     19223       gl_next_as_first_directive=$gl_cv_next_time_h
     19224     fi
     19225     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
     19226
     19227
     19228
     19229
     19230
     19231
     19232
     19233
     19234
     19235
     19236
     19237
     19238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
     19239printf %s "checking for TIME_UTC in <time.h>... " >&6; }
     19240if test ${gl_cv_time_h_has_TIME_UTC+y}
     19241then :
     19242  printf %s "(cached) " >&6
     19243else case e in #(
     19244  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19245/* end confdefs.h.  */
     19246#include <time.h>
     19247
     19248int
     19249main (void)
     19250{
     19251static int x = TIME_UTC; x++;
     19252  ;
     19253  return 0;
     19254}
     19255_ACEOF
     19256if ac_fn_c_try_compile "$LINENO"
     19257then :
     19258  gl_cv_time_h_has_TIME_UTC=yes
     19259else case e in #(
     19260  e) gl_cv_time_h_has_TIME_UTC=no ;;
     19261esac
     19262fi
     19263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19264esac
     19265fi
     19266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
     19267printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
     19268  if test $gl_cv_time_h_has_TIME_UTC = yes; then
     19269    TIME_H_DEFINES_TIME_UTC=1
     19270  else
     19271    TIME_H_DEFINES_TIME_UTC=0
     19272  fi
     19273
     19274
     19275
     19276
     19277  GL_GNULIB_CTIME=0
     19278
     19279
     19280
     19281  GL_GNULIB_MKTIME=0
     19282
     19283
     19284
     19285  GL_GNULIB_LOCALTIME=0
     19286
     19287
     19288
     19289  GL_GNULIB_NANOSLEEP=0
     19290
     19291
     19292
     19293  GL_GNULIB_STRFTIME=0
     19294
     19295
     19296
     19297  GL_GNULIB_STRPTIME=0
     19298
     19299
     19300
     19301  GL_GNULIB_TIMEGM=0
     19302
     19303
     19304
     19305  GL_GNULIB_TIMESPEC_GET=0
     19306
     19307
     19308
     19309  GL_GNULIB_TIMESPEC_GETRES=0
     19310
     19311
     19312
     19313  GL_GNULIB_TIME_R=0
     19314
     19315
     19316
     19317  GL_GNULIB_TIME_RZ=0
     19318
     19319
     19320
     19321  GL_GNULIB_TZSET=0
     19322
     19323
     19324
     19325  GL_GNULIB_MDA_TZSET=1
     19326
     19327
     19328
     19329ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19330if test "x$ac_cv_have_decl_execvpe" = xyes
     19331then :
     19332  ac_have_decl=1
     19333else case e in #(
     19334  e) ac_have_decl=0 ;;
     19335esac
     19336fi
     19337printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
     19338
     19339
     19340
     19341
     19342
     19343
     19344
     19345
     19346
     19347
     19348
     19349
     19350
     19351     if test $gl_cv_have_include_next = yes; then
     19352       gl_cv_next_unistd_h='<'unistd.h'>'
     19353     else
     19354       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
     19355printf %s "checking absolute name of <unistd.h>... " >&6; }
     19356if test ${gl_cv_next_unistd_h+y}
     19357then :
     19358  printf %s "(cached) " >&6
     19359else case e in #(
     19360  e)
     19361             if test $ac_cv_header_unistd_h = yes; then
     19362
     19363
     19364
     19365
     19366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19367/* end confdefs.h.  */
     19368#include <unistd.h>
     19369_ACEOF
     19370                case "$host_os" in
     19371    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     19372    *)    gl_absname_cpp="$ac_cpp" ;;
     19373  esac
     19374
     19375  case "$host_os" in
     19376    mingw*)
     19377                                          gl_dirsep_regex='[/\\]'
     19378      ;;
     19379    *)
     19380      gl_dirsep_regex='\/'
     19381      ;;
     19382  esac
     19383      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     19384  gl_header_literal_regex=`echo 'unistd.h' \
     19385                           | sed -e "$gl_make_literal_regex_sed"`
     19386  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     19387      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     19388      s|^/[^/]|//&|
     19389      p
     19390      q
     19391    }'
     19392
     19393        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     19394  sed -n "$gl_absolute_header_sed"`
     19395
     19396          gl_header=$gl_cv_absolute_unistd_h
     19397          gl_cv_next_unistd_h='"'$gl_header'"'
     19398          else
     19399               gl_cv_next_unistd_h='<'unistd.h'>'
     19400             fi
     19401
     19402          ;;
     19403esac
     19404fi
     19405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
     19406printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
     19407     fi
     19408     NEXT_UNISTD_H=$gl_cv_next_unistd_h
     19409
     19410     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     19411       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     19412       gl_next_as_first_directive='<'unistd.h'>'
     19413     else
     19414       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     19415       gl_next_as_first_directive=$gl_cv_next_unistd_h
     19416     fi
     19417     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
     19418
     19419
     19420
     19421
     19422  if test $ac_cv_header_unistd_h = yes; then
     19423    HAVE_UNISTD_H=1
     19424  else
     19425    HAVE_UNISTD_H=0
     19426  fi
     19427
     19428
     19429
     19430
     19431
     19432
     19433
     19434
     19435
     19436
     19437
     19438
     19439
     19440  if test $ac_cv_have_decl_execvpe = no; then
     19441    HAVE_DECL_EXECVPE=0
     19442  fi
     19443
     19444ac_fn_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19445if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
     19446then :
     19447  ac_have_decl=1
     19448else case e in #(
     19449  e) ac_have_decl=0 ;;
     19450esac
     19451fi
     19452printf "%s\n" "#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl" >>confdefs.h
     19453
     19454ac_fn_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19455if test "x$ac_cv_have_decl_feof_unlocked" = xyes
     19456then :
     19457  ac_have_decl=1
     19458else case e in #(
     19459  e) ac_have_decl=0 ;;
     19460esac
     19461fi
     19462printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h
     19463
     19464ac_fn_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19465if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
     19466then :
     19467  ac_have_decl=1
     19468else case e in #(
     19469  e) ac_have_decl=0 ;;
     19470esac
     19471fi
     19472printf "%s\n" "#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl" >>confdefs.h
     19473
     19474ac_fn_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19475if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
     19476then :
     19477  ac_have_decl=1
     19478else case e in #(
     19479  e) ac_have_decl=0 ;;
     19480esac
     19481fi
     19482printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h
     19483
     19484ac_fn_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19485if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
     19486then :
     19487  ac_have_decl=1
     19488else case e in #(
     19489  e) ac_have_decl=0 ;;
     19490esac
     19491fi
     19492printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h
     19493
     19494ac_fn_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19495if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
     19496then :
     19497  ac_have_decl=1
     19498else case e in #(
     19499  e) ac_have_decl=0 ;;
     19500esac
     19501fi
     19502printf "%s\n" "#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl" >>confdefs.h
     19503
     19504ac_fn_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19505if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
     19506then :
     19507  ac_have_decl=1
     19508else case e in #(
     19509  e) ac_have_decl=0 ;;
     19510esac
     19511fi
     19512printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h
     19513
     19514ac_fn_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19515if test "x$ac_cv_have_decl_fread_unlocked" = xyes
     19516then :
     19517  ac_have_decl=1
     19518else case e in #(
     19519  e) ac_have_decl=0 ;;
     19520esac
     19521fi
     19522printf "%s\n" "#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl" >>confdefs.h
     19523
     19524ac_fn_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19525if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
     19526then :
     19527  ac_have_decl=1
     19528else case e in #(
     19529  e) ac_have_decl=0 ;;
     19530esac
     19531fi
     19532printf "%s\n" "#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl" >>confdefs.h
     19533
     19534ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19535if test "x$ac_cv_have_decl_getc_unlocked" = xyes
     19536then :
     19537  ac_have_decl=1
     19538else case e in #(
     19539  e) ac_have_decl=0 ;;
     19540esac
     19541fi
     19542printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
     19543
     19544ac_fn_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19545if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
     19546then :
     19547  ac_have_decl=1
     19548else case e in #(
     19549  e) ac_have_decl=0 ;;
     19550esac
     19551fi
     19552printf "%s\n" "#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl" >>confdefs.h
     19553
     19554ac_fn_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19555if test "x$ac_cv_have_decl_putc_unlocked" = xyes
     19556then :
     19557  ac_have_decl=1
     19558else case e in #(
     19559  e) ac_have_decl=0 ;;
     19560esac
     19561fi
     19562printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h
     19563
     19564ac_fn_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19565if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
     19566then :
     19567  ac_have_decl=1
     19568else case e in #(
     19569  e) ac_have_decl=0 ;;
     19570esac
     19571fi
     19572printf "%s\n" "#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl" >>confdefs.h
     19573
     19574
     19575
     19576
     19577  if test $ac_cv_header_features_h = yes; then
     19578    HAVE_FEATURES_H=1
     19579  else
     19580    HAVE_FEATURES_H=0
     19581  fi
     19582
     19583
     19584
     19585
     19586
     19587  if test $ac_cv_header_crtdefs_h = yes; then
     19588    HAVE_CRTDEFS_H=1
     19589  else
     19590    HAVE_CRTDEFS_H=0
     19591  fi
     19592
     19593
     19594
     19595
     19596
     19597
     19598
     19599
     19600
     19601
     19602
     19603
     19604
     19605
     19606     if test $gl_cv_have_include_next = yes; then
     19607       gl_cv_next_wchar_h='<'wchar.h'>'
     19608     else
     19609       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
     19610printf %s "checking absolute name of <wchar.h>... " >&6; }
     19611if test ${gl_cv_next_wchar_h+y}
     19612then :
     19613  printf %s "(cached) " >&6
     19614else case e in #(
     19615  e)
     19616             if test $ac_cv_header_wchar_h = yes; then
     19617
     19618
     19619
     19620
     19621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19622/* end confdefs.h.  */
     19623#include <wchar.h>
     19624_ACEOF
     19625                case "$host_os" in
     19626    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     19627    *)    gl_absname_cpp="$ac_cpp" ;;
     19628  esac
     19629
     19630  case "$host_os" in
     19631    mingw*)
     19632                                          gl_dirsep_regex='[/\\]'
     19633      ;;
     19634    *)
     19635      gl_dirsep_regex='\/'
     19636      ;;
     19637  esac
     19638      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     19639  gl_header_literal_regex=`echo 'wchar.h' \
     19640                           | sed -e "$gl_make_literal_regex_sed"`
     19641  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     19642      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     19643      s|^/[^/]|//&|
     19644      p
     19645      q
     19646    }'
     19647
     19648        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     19649  sed -n "$gl_absolute_header_sed"`
     19650
     19651          gl_header=$gl_cv_absolute_wchar_h
     19652          gl_cv_next_wchar_h='"'$gl_header'"'
     19653          else
     19654               gl_cv_next_wchar_h='<'wchar.h'>'
     19655             fi
     19656
     19657          ;;
     19658esac
     19659fi
     19660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
     19661printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
     19662     fi
     19663     NEXT_WCHAR_H=$gl_cv_next_wchar_h
     19664
     19665     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     19666       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     19667       gl_next_as_first_directive='<'wchar.h'>'
     19668     else
     19669       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     19670       gl_next_as_first_directive=$gl_cv_next_wchar_h
     19671     fi
     19672     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
     19673
     19674
     19675
     19676
     19677  if test $ac_cv_header_wchar_h = yes; then
     19678    HAVE_WCHAR_H=1
     19679  else
     19680    HAVE_WCHAR_H=0
     19681  fi
     19682
     19683
     19684
     19685
     19686
     19687  if test $gt_cv_c_wint_t = yes; then
     19688    HAVE_WINT_T=1
     19689  else
     19690    HAVE_WINT_T=0
     19691  fi
     19692
     19693
     19694
     19695
     19696
     19697
     19698
     19699
     19700
     19701
     19702  ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
     19703      #include <wchar.h>
     19704
     19705" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19706if test "x$ac_cv_have_decl_wcsdup" = xyes
     19707then :
     19708  ac_have_decl=1
     19709else case e in #(
     19710  e) ac_have_decl=0 ;;
     19711esac
     19712fi
     19713printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
     19714
     19715  if test $ac_cv_have_decl_wcsdup = no; then
     19716    HAVE_DECL_WCSDUP=0
     19717  fi
     19718
     19719
     19720
     19721
     19722    HAVE_ISWBLANK=1;
     19723  HAVE_WCTYPE_T=1;
     19724  HAVE_WCTRANS_T=1;
     19725  REPLACE_ISWBLANK=0;
     19726  REPLACE_ISWDIGIT=0;
     19727  REPLACE_ISWXDIGIT=0;
     19728
     19729
     19730
     19731
     19732
     19733
     19734
     19735
     19736  if test $ac_cv_func_iswcntrl = yes; then
     19737    HAVE_ISWCNTRL=1
     19738  else
     19739    HAVE_ISWCNTRL=0
     19740  fi
     19741
     19742
     19743
     19744  if test $gt_cv_c_wint_t = yes; then
     19745    HAVE_WINT_T=1
     19746  else
     19747    HAVE_WINT_T=0
     19748  fi
     19749
     19750
     19751
     19752
     19753
     19754
     19755
     19756
     19757
     19758
     19759
     19760
     19761
     19762     if test $gl_cv_have_include_next = yes; then
     19763       gl_cv_next_wctype_h='<'wctype.h'>'
     19764     else
     19765       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
     19766printf %s "checking absolute name of <wctype.h>... " >&6; }
     19767if test ${gl_cv_next_wctype_h+y}
     19768then :
     19769  printf %s "(cached) " >&6
     19770else case e in #(
     19771  e)
     19772             if test $ac_cv_header_wctype_h = yes; then
     19773
     19774
     19775
     19776
     19777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19778/* end confdefs.h.  */
     19779#include <wctype.h>
     19780_ACEOF
     19781                case "$host_os" in
     19782    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     19783    *)    gl_absname_cpp="$ac_cpp" ;;
     19784  esac
     19785
     19786  case "$host_os" in
     19787    mingw*)
     19788                                          gl_dirsep_regex='[/\\]'
     19789      ;;
     19790    *)
     19791      gl_dirsep_regex='\/'
     19792      ;;
     19793  esac
     19794      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     19795  gl_header_literal_regex=`echo 'wctype.h' \
     19796                           | sed -e "$gl_make_literal_regex_sed"`
     19797  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     19798      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     19799      s|^/[^/]|//&|
     19800      p
     19801      q
     19802    }'
     19803
     19804        gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     19805  sed -n "$gl_absolute_header_sed"`
     19806
     19807          gl_header=$gl_cv_absolute_wctype_h
     19808          gl_cv_next_wctype_h='"'$gl_header'"'
     19809          else
     19810               gl_cv_next_wctype_h='<'wctype.h'>'
     19811             fi
     19812
     19813          ;;
     19814esac
     19815fi
     19816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
     19817printf "%s\n" "$gl_cv_next_wctype_h" >&6; }
     19818     fi
     19819     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
     19820
     19821     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     19822       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     19823       gl_next_as_first_directive='<'wctype.h'>'
     19824     else
     19825       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     19826       gl_next_as_first_directive=$gl_cv_next_wctype_h
     19827     fi
     19828     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
     19829
     19830
     19831
     19832
     19833  if test $ac_cv_header_wctype_h = yes; then
     19834    if test $ac_cv_func_iswcntrl = yes; then
     19835                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
     19836printf %s "checking whether iswcntrl works... " >&6; }
     19837if test ${gl_cv_func_iswcntrl_works+y}
     19838then :
     19839  printf %s "(cached) " >&6
     19840else case e in #(
     19841  e)
     19842          if test "$cross_compiling" = yes
     19843then :
     19844               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19845/* end confdefs.h.  */
     19846#include <stdlib.h>
     19847                          #if __GNU_LIBRARY__ == 1
     19848                          Linux libc5 i18n is broken.
     19849                          #endif
     19850int
     19851main (void)
     19852{
     19853
     19854  ;
     19855  return 0;
     19856}
     19857_ACEOF
     19858if ac_fn_c_try_compile "$LINENO"
     19859then :
     19860  gl_cv_func_iswcntrl_works="guessing yes"
     19861else case e in #(
     19862  e) gl_cv_func_iswcntrl_works="guessing no" ;;
     19863esac
     19864fi
     19865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     19866
     19867else case e in #(
     19868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19869/* end confdefs.h.  */
     19870
     19871               #include <wchar.h>
     19872               #include <wctype.h>
     19873               int main () { return iswprint ('x') == 0; }
     19874
     19875_ACEOF
     19876if ac_fn_c_try_run "$LINENO"
     19877then :
     19878  gl_cv_func_iswcntrl_works=yes
     19879else case e in #(
     19880  e) gl_cv_func_iswcntrl_works=no ;;
     19881esac
     19882fi
     19883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     19884  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     19885esac
     19886fi
     19887
     19888         ;;
     19889esac
     19890fi
     19891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
     19892printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; }
     19893    fi
     19894    HAVE_WCTYPE_H=1
     19895  else
     19896    HAVE_WCTYPE_H=0
     19897  fi
     19898
     19899
     19900  if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
     19901    REPLACE_ISWCNTRL=1
     19902  else
     19903    case "$gl_cv_func_iswcntrl_works" in
     19904      *yes) REPLACE_ISWCNTRL=0 ;;
     19905      *)    REPLACE_ISWCNTRL=1 ;;
     19906    esac
     19907  fi
     19908
     19909
     19910  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
     19911        :
     19912  fi
     19913
     19914  if test $REPLACE_ISWCNTRL = 1; then
     19915    REPLACE_TOWLOWER=1
     19916  else
     19917    ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
     19918if test "x$ac_cv_func_towlower" = xyes
     19919then :
     19920  printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
     19921
     19922fi
     19923
     19924    if test $ac_cv_func_towlower = yes; then
     19925      REPLACE_TOWLOWER=0
     19926    else
     19927      ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
     19928          #if HAVE_WCTYPE_H
     19929          # include <wctype.h>
     19930          #endif
     19931
     19932" "$ac_c_undeclared_builtin_options" "CFLAGS"
     19933if test "x$ac_cv_have_decl_towlower" = xyes
     19934then :
     19935  ac_have_decl=1
     19936else case e in #(
     19937  e) ac_have_decl=0 ;;
     19938esac
     19939fi
     19940printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h
     19941
     19942      if test $ac_cv_have_decl_towlower = yes; then
     19943                                REPLACE_TOWLOWER=1
     19944      else
     19945        REPLACE_TOWLOWER=0
     19946      fi
     19947    fi
     19948  fi
     19949
     19950
     19951  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
     19952        :
     19953  fi
     19954
     19955          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
     19956printf %s "checking for wctype_t... " >&6; }
     19957if test ${gl_cv_type_wctype_t+y}
     19958then :
     19959  printf %s "(cached) " >&6
     19960else case e in #(
     19961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19962/* end confdefs.h.  */
     19963#include <wchar.h>
     19964            #if HAVE_WCTYPE_H
     19965            # include <wctype.h>
     19966            #endif
     19967            wctype_t a;
     19968
     19969int
     19970main (void)
     19971{
     19972
     19973  ;
     19974  return 0;
     19975}
     19976_ACEOF
     19977if ac_fn_c_try_compile "$LINENO"
     19978then :
     19979  gl_cv_type_wctype_t=yes
     19980else case e in #(
     19981  e) gl_cv_type_wctype_t=no ;;
     19982esac
     19983fi
     19984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     19985     ;;
     19986esac
     19987fi
     19988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
     19989printf "%s\n" "$gl_cv_type_wctype_t" >&6; }
     19990  if test $gl_cv_type_wctype_t = no; then
     19991    HAVE_WCTYPE_T=0
     19992  fi
     19993
     19994      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
     19995printf %s "checking for wctrans_t... " >&6; }
     19996if test ${gl_cv_type_wctrans_t+y}
     19997then :
     19998  printf %s "(cached) " >&6
     19999else case e in #(
     20000  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20001/* end confdefs.h.  */
     20002#include <wchar.h>
     20003            #include <wctype.h>
     20004            wctrans_t a;
     20005
     20006int
     20007main (void)
     20008{
     20009
     20010  ;
     20011  return 0;
     20012}
     20013_ACEOF
     20014if ac_fn_c_try_compile "$LINENO"
     20015then :
     20016  gl_cv_type_wctrans_t=yes
     20017else case e in #(
     20018  e) gl_cv_type_wctrans_t=no ;;
     20019esac
     20020fi
     20021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     20022     ;;
     20023esac
     20024fi
     20025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
     20026printf "%s\n" "$gl_cv_type_wctrans_t" >&6; }
     20027  if test $gl_cv_type_wctrans_t = no; then
     20028    HAVE_WCTRANS_T=0
     20029  fi
     20030
     20031
     20032
     20033
     20034
     20035
     20036
     20037  GL_GNULIB_ISWBLANK=0
     20038
     20039
     20040
     20041  GL_GNULIB_ISWDIGIT=0
     20042
     20043
     20044
     20045  GL_GNULIB_ISWXDIGIT=0
     20046
     20047
     20048
     20049  GL_GNULIB_WCTYPE=0
     20050
     20051
     20052
     20053  GL_GNULIB_ISWCTYPE=0
     20054
     20055
     20056
     20057  GL_GNULIB_WCTRANS=0
     20058
     20059
     20060
     20061  GL_GNULIB_TOWCTRANS=0
     20062
     20063
     20064
     20065
     20066
     20067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
     20068printf %s "checking for C compiler option to allow warnings... " >&6; }
     20069if test ${gl_cv_cc_wallow+y}
     20070then :
     20071  printf %s "(cached) " >&6
     20072else case e in #(
     20073  e) rm -f conftest*
     20074     echo 'int dummy;' > conftest.c
     20075     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
     20076  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
    740120077  (eval $ac_try) 2>&5
    740220078  ac_status=$?
    7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7404   (exit $ac_status); }; } &&
    7405          { ac_try='test -s conftest$ac_exeext'
    7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20079  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     20080  test $ac_status = 0; }; } >/dev/null
     20081     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
     20082  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
    740720083  (eval $ac_try) 2>&5
    740820084  ac_status=$?
    7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7410   (exit $ac_status); }; }; then
    7411   eval "$as_ac_var=yes"
     20085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     20086  test $ac_status = 0; }; } >/dev/null
     20087                         if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
     20088       gl_cv_cc_wallow='-Wno-error'
     20089     else
     20090       gl_cv_cc_wallow=none
     20091     fi
     20092     rm -f conftest*
     20093     ;;
     20094esac
     20095fi
     20096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
     20097printf "%s\n" "$gl_cv_cc_wallow" >&6; }
     20098  case "$gl_cv_cc_wallow" in
     20099    none) GL_CFLAG_ALLOW_WARNINGS='' ;;
     20100    *)    GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
     20101  esac
     20102
     20103
     20104
     20105    if test -n "$CXX" && test "$CXX" != no; then
     20106    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5
     20107printf %s "checking for C++ compiler option to allow warnings... " >&6; }
     20108if test ${gl_cv_cxx_wallow+y}
     20109then :
     20110  printf %s "(cached) " >&6
     20111else case e in #(
     20112  e) rm -f conftest*
     20113       echo 'int dummy;' > conftest.cc
     20114       { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err'
     20115  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     20116  (eval $ac_try) 2>&5
     20117  ac_status=$?
     20118  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     20119  test $ac_status = 0; }; } >/dev/null
     20120       { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err'
     20121  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     20122  (eval $ac_try) 2>&5
     20123  ac_status=$?
     20124  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     20125  test $ac_status = 0; }; } >/dev/null
     20126                                   if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
     20127         gl_cv_cxx_wallow='-Wno-error'
     20128       else
     20129         gl_cv_cxx_wallow=none
     20130       fi
     20131       rm -f conftest*
     20132       ;;
     20133esac
     20134fi
     20135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5
     20136printf "%s\n" "$gl_cv_cxx_wallow" >&6; }
     20137    case "$gl_cv_cxx_wallow" in
     20138      none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
     20139      *)    GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
     20140    esac
     20141  else
     20142    GL_CXXFLAG_ALLOW_WARNINGS=''
     20143  fi
     20144
     20145
     20146
     20147  HAVE_STRUCT_SOCKADDR_STORAGE=1;
     20148  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
     20149
     20150  HAVE_SA_FAMILY_T=1;
     20151  HAVE_ACCEPT4=1;
     20152
     20153
     20154   if test $ac_cv_header_sys_socket_h = no; then
     20155                         ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
     20156if test "x$ac_cv_header_ws2tcpip_h" = xyes
     20157then :
     20158  printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
     20159
     20160fi
     20161
     20162   fi
     20163
     20164
     20165
     20166
     20167
     20168        case "$host_os" in
     20169    osf*)
     20170
     20171printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h
     20172
     20173      ;;
     20174  esac
     20175
     20176  GL_GENERATE_SYS_SOCKET_H=false
     20177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
     20178printf %s "checking whether <sys/socket.h> is self-contained... " >&6; }
     20179if test ${gl_cv_header_sys_socket_h_selfcontained+y}
     20180then :
     20181  printf %s "(cached) " >&6
     20182else case e in #(
     20183  e)
     20184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20185/* end confdefs.h.  */
     20186#include <sys/socket.h>
     20187int
     20188main (void)
     20189{
     20190
     20191  ;
     20192  return 0;
     20193}
     20194_ACEOF
     20195if ac_fn_c_try_compile "$LINENO"
     20196then :
     20197  gl_cv_header_sys_socket_h_selfcontained=yes
     20198else case e in #(
     20199  e) gl_cv_header_sys_socket_h_selfcontained=no ;;
     20200esac
     20201fi
     20202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     20203     ;;
     20204esac
     20205fi
     20206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
     20207printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
     20208  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
     20209            ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
     20210if test "x$ac_cv_func_shutdown" = xyes
     20211then :
     20212  printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
     20213
     20214fi
     20215
     20216    if test $ac_cv_func_shutdown = yes; then
     20217      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
     20218printf %s "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
     20219if test ${gl_cv_header_sys_socket_h_shut+y}
     20220then :
     20221  printf %s "(cached) " >&6
     20222else case e in #(
     20223  e)
     20224          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20225/* end confdefs.h.  */
     20226#include <sys/socket.h>
     20227int
     20228main (void)
     20229{
     20230int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
     20231  ;
     20232  return 0;
     20233}
     20234_ACEOF
     20235if ac_fn_c_try_compile "$LINENO"
     20236then :
     20237  gl_cv_header_sys_socket_h_shut=yes
     20238else case e in #(
     20239  e) gl_cv_header_sys_socket_h_shut=no ;;
     20240esac
     20241fi
     20242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     20243         ;;
     20244esac
     20245fi
     20246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
     20247printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; }
     20248      if test $gl_cv_header_sys_socket_h_shut = no; then
     20249        GL_GENERATE_SYS_SOCKET_H=true
     20250      fi
     20251    fi
     20252  fi
     20253  # We need to check for ws2tcpip.h now.
     20254
     20255
     20256
     20257
     20258
     20259
     20260
     20261
     20262
     20263
     20264
     20265     if test $gl_cv_have_include_next = yes; then
     20266       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
     20267     else
     20268       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
     20269printf %s "checking absolute name of <sys/socket.h>... " >&6; }
     20270if test ${gl_cv_next_sys_socket_h+y}
     20271then :
     20272  printf %s "(cached) " >&6
     20273else case e in #(
     20274  e)
     20275             if test $ac_cv_header_sys_socket_h = yes; then
     20276
     20277
     20278
     20279
     20280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20281/* end confdefs.h.  */
     20282#include <sys/socket.h>
     20283_ACEOF
     20284                case "$host_os" in
     20285    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     20286    *)    gl_absname_cpp="$ac_cpp" ;;
     20287  esac
     20288
     20289  case "$host_os" in
     20290    mingw*)
     20291                                          gl_dirsep_regex='[/\\]'
     20292      ;;
     20293    *)
     20294      gl_dirsep_regex='\/'
     20295      ;;
     20296  esac
     20297      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     20298  gl_header_literal_regex=`echo 'sys/socket.h' \
     20299                           | sed -e "$gl_make_literal_regex_sed"`
     20300  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     20301      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     20302      s|^/[^/]|//&|
     20303      p
     20304      q
     20305    }'
     20306
     20307        gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     20308  sed -n "$gl_absolute_header_sed"`
     20309
     20310          gl_header=$gl_cv_absolute_sys_socket_h
     20311          gl_cv_next_sys_socket_h='"'$gl_header'"'
     20312          else
     20313               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
     20314             fi
     20315
     20316          ;;
     20317esac
     20318fi
     20319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
     20320printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; }
     20321     fi
     20322     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
     20323
     20324     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     20325       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     20326       gl_next_as_first_directive='<'sys/socket.h'>'
     20327     else
     20328       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     20329       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
     20330     fi
     20331     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
     20332
     20333
     20334
     20335
     20336  if test $ac_cv_header_sys_socket_h = yes; then
     20337    HAVE_SYS_SOCKET_H=1
     20338  else
     20339    HAVE_SYS_SOCKET_H=0
     20340  fi
     20341
     20342
     20343
     20344  if test $ac_cv_header_sys_socket_h = yes; then
     20345    HAVE_WS2TCPIP_H=0
     20346  else
     20347    if test $ac_cv_header_ws2tcpip_h = yes; then
     20348      HAVE_WS2TCPIP_H=1
     20349    else
     20350      HAVE_WS2TCPIP_H=0
     20351    fi
     20352  fi
     20353
     20354
     20355
     20356  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
     20357  /* sys/types.h is not needed according to POSIX, but the
     20358     sys/socket.h in i386-unknown-freebsd4.10 and
     20359     powerpc-apple-darwin5.5 required it. */
     20360#include <sys/types.h>
     20361#ifdef HAVE_SYS_SOCKET_H
     20362#include <sys/socket.h>
     20363#endif
     20364#ifdef HAVE_WS2TCPIP_H
     20365#include <ws2tcpip.h>
     20366#endif
     20367
     20368"
     20369if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
     20370then :
     20371
     20372printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
     20373
     20374
     20375fi
     20376ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
     20377  /* sys/types.h is not needed according to POSIX, but the
     20378     sys/socket.h in i386-unknown-freebsd4.10 and
     20379     powerpc-apple-darwin5.5 required it. */
     20380#include <sys/types.h>
     20381#ifdef HAVE_SYS_SOCKET_H
     20382#include <sys/socket.h>
     20383#endif
     20384#ifdef HAVE_WS2TCPIP_H
     20385#include <ws2tcpip.h>
     20386#endif
     20387
     20388"
     20389if test "x$ac_cv_type_sa_family_t" = xyes
     20390then :
     20391
     20392printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
     20393
     20394
     20395fi
     20396
     20397  if test $ac_cv_type_struct_sockaddr_storage = no; then
     20398    HAVE_STRUCT_SOCKADDR_STORAGE=0
     20399  fi
     20400  if test $ac_cv_type_sa_family_t = no; then
     20401    HAVE_SA_FAMILY_T=0
     20402  fi
     20403  if test $ac_cv_type_struct_sockaddr_storage != no; then
     20404    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
     20405       #ifdef HAVE_SYS_SOCKET_H
     20406       #include <sys/socket.h>
     20407       #endif
     20408       #ifdef HAVE_WS2TCPIP_H
     20409       #include <ws2tcpip.h>
     20410       #endif
     20411
     20412"
     20413if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
     20414then :
     20415
     20416printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
     20417
     20418
     20419else case e in #(
     20420  e) HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 ;;
     20421esac
     20422fi
     20423
     20424  fi
     20425  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
     20426     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
     20427    GL_GENERATE_SYS_SOCKET_H=true
     20428  fi
     20429
     20430
     20431
     20432
     20433  if test $ac_cv_header_sys_socket_h != yes; then
     20434                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     20435if test "x$ac_cv_header_winsock2_h" = xyes
     20436then :
     20437  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     20438
     20439fi
     20440
     20441  fi
     20442  if test "$ac_cv_header_winsock2_h" = yes; then
     20443    HAVE_WINSOCK2_H=1
     20444    UNISTD_H_HAVE_WINSOCK2_H=1
     20445    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     20446  else
     20447    HAVE_WINSOCK2_H=0
     20448  fi
     20449
     20450
     20451
     20452
     20453
     20454
     20455
     20456
     20457
     20458
     20459
     20460  GL_GNULIB_SOCKET=0
     20461
     20462
     20463
     20464  GL_GNULIB_CONNECT=0
     20465
     20466
     20467
     20468  GL_GNULIB_ACCEPT=0
     20469
     20470
     20471
     20472  GL_GNULIB_BIND=0
     20473
     20474
     20475
     20476  GL_GNULIB_GETPEERNAME=0
     20477
     20478
     20479
     20480  GL_GNULIB_GETSOCKNAME=0
     20481
     20482
     20483
     20484  GL_GNULIB_GETSOCKOPT=0
     20485
     20486
     20487
     20488  GL_GNULIB_LISTEN=0
     20489
     20490
     20491
     20492  GL_GNULIB_RECV=0
     20493
     20494
     20495
     20496  GL_GNULIB_SEND=0
     20497
     20498
     20499
     20500  GL_GNULIB_RECVFROM=0
     20501
     20502
     20503
     20504  GL_GNULIB_SENDTO=0
     20505
     20506
     20507
     20508  GL_GNULIB_SETSOCKOPT=0
     20509
     20510
     20511
     20512  GL_GNULIB_SHUTDOWN=0
     20513
     20514
     20515
     20516  GL_GNULIB_ACCEPT4=0
     20517
     20518
     20519
     20520
     20521    HAVE_DECL_INET_NTOP=1;
     20522  HAVE_DECL_INET_PTON=1;
     20523  REPLACE_INET_NTOP=0;
     20524  REPLACE_INET_PTON=0;
     20525
     20526
     20527
     20528
     20529
     20530
     20531  if test $ac_cv_header_arpa_inet_h = yes; then
     20532    HAVE_ARPA_INET_H=1
     20533  else
     20534    HAVE_ARPA_INET_H=0
     20535  fi
     20536
     20537
     20538
     20539
     20540
     20541
     20542
     20543
     20544
     20545
     20546     if test $gl_cv_have_include_next = yes; then
     20547       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
     20548     else
     20549       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
     20550printf %s "checking absolute name of <arpa/inet.h>... " >&6; }
     20551if test ${gl_cv_next_arpa_inet_h+y}
     20552then :
     20553  printf %s "(cached) " >&6
     20554else case e in #(
     20555  e)
     20556             if test $ac_cv_header_arpa_inet_h = yes; then
     20557
     20558
     20559
     20560
     20561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20562/* end confdefs.h.  */
     20563#include <arpa/inet.h>
     20564_ACEOF
     20565                case "$host_os" in
     20566    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     20567    *)    gl_absname_cpp="$ac_cpp" ;;
     20568  esac
     20569
     20570  case "$host_os" in
     20571    mingw*)
     20572                                          gl_dirsep_regex='[/\\]'
     20573      ;;
     20574    *)
     20575      gl_dirsep_regex='\/'
     20576      ;;
     20577  esac
     20578      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     20579  gl_header_literal_regex=`echo 'arpa/inet.h' \
     20580                           | sed -e "$gl_make_literal_regex_sed"`
     20581  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     20582      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     20583      s|^/[^/]|//&|
     20584      p
     20585      q
     20586    }'
     20587
     20588        gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     20589  sed -n "$gl_absolute_header_sed"`
     20590
     20591          gl_header=$gl_cv_absolute_arpa_inet_h
     20592          gl_cv_next_arpa_inet_h='"'$gl_header'"'
     20593          else
     20594               gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
     20595             fi
     20596
     20597          ;;
     20598esac
     20599fi
     20600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
     20601printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; }
     20602     fi
     20603     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
     20604
     20605     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     20606       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     20607       gl_next_as_first_directive='<'arpa/inet.h'>'
     20608     else
     20609       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     20610       gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
     20611     fi
     20612     NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
     20613
     20614
     20615
     20616
     20617
     20618
     20619
     20620
     20621
     20622  if test $ac_cv_header_sys_socket_h = yes; then
     20623    HAVE_WS2TCPIP_H=0
     20624  else
     20625    if test $ac_cv_header_ws2tcpip_h = yes; then
     20626      HAVE_WS2TCPIP_H=1
     20627    else
     20628      HAVE_WS2TCPIP_H=0
     20629    fi
     20630  fi
     20631
     20632
     20633
     20634
     20635
     20636
     20637
     20638
     20639
     20640  GL_GNULIB_INET_NTOP=0
     20641
     20642
     20643
     20644  GL_GNULIB_INET_PTON=0
     20645
     20646
     20647
     20648
     20649    HAVE_OPENDIR=1;
     20650  HAVE_READDIR=1;
     20651  HAVE_REWINDDIR=1;
     20652  HAVE_CLOSEDIR=1;
     20653  HAVE_DECL_DIRFD=1;
     20654  HAVE_DECL_FDOPENDIR=1;
     20655  HAVE_FDOPENDIR=1;
     20656  HAVE_SCANDIR=1;
     20657  HAVE_ALPHASORT=1;
     20658  REPLACE_OPENDIR=0;
     20659  REPLACE_CLOSEDIR=0;
     20660  REPLACE_DIRFD=0;
     20661  REPLACE_FDOPENDIR=0;
     20662
     20663
     20664
     20665
     20666
     20667
     20668
     20669  GL_GNULIB_OPENDIR=0
     20670
     20671
     20672
     20673  GL_GNULIB_READDIR=0
     20674
     20675
     20676
     20677  GL_GNULIB_REWINDDIR=0
     20678
     20679
     20680
     20681  GL_GNULIB_CLOSEDIR=0
     20682
     20683
     20684
     20685  GL_GNULIB_DIRFD=0
     20686
     20687
     20688
     20689  GL_GNULIB_FDOPENDIR=0
     20690
     20691
     20692
     20693  GL_GNULIB_SCANDIR=0
     20694
     20695
     20696
     20697  GL_GNULIB_ALPHASORT=0
     20698
     20699
     20700
     20701
     20702
     20703
     20704
     20705
     20706
     20707
     20708
     20709
     20710
     20711
     20712
     20713
     20714     if test $gl_cv_have_include_next = yes; then
     20715       gl_cv_next_dirent_h='<'dirent.h'>'
     20716     else
     20717       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
     20718printf %s "checking absolute name of <dirent.h>... " >&6; }
     20719if test ${gl_cv_next_dirent_h+y}
     20720then :
     20721  printf %s "(cached) " >&6
     20722else case e in #(
     20723  e)
     20724             if test $ac_cv_header_dirent_h = yes; then
     20725
     20726
     20727
     20728
     20729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20730/* end confdefs.h.  */
     20731#include <dirent.h>
     20732_ACEOF
     20733                case "$host_os" in
     20734    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     20735    *)    gl_absname_cpp="$ac_cpp" ;;
     20736  esac
     20737
     20738  case "$host_os" in
     20739    mingw*)
     20740                                          gl_dirsep_regex='[/\\]'
     20741      ;;
     20742    *)
     20743      gl_dirsep_regex='\/'
     20744      ;;
     20745  esac
     20746      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     20747  gl_header_literal_regex=`echo 'dirent.h' \
     20748                           | sed -e "$gl_make_literal_regex_sed"`
     20749  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     20750      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     20751      s|^/[^/]|//&|
     20752      p
     20753      q
     20754    }'
     20755
     20756        gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     20757  sed -n "$gl_absolute_header_sed"`
     20758
     20759          gl_header=$gl_cv_absolute_dirent_h
     20760          gl_cv_next_dirent_h='"'$gl_header'"'
     20761          else
     20762               gl_cv_next_dirent_h='<'dirent.h'>'
     20763             fi
     20764
     20765          ;;
     20766esac
     20767fi
     20768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
     20769printf "%s\n" "$gl_cv_next_dirent_h" >&6; }
     20770     fi
     20771     NEXT_DIRENT_H=$gl_cv_next_dirent_h
     20772
     20773     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     20774       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     20775       gl_next_as_first_directive='<'dirent.h'>'
     20776     else
     20777       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     20778       gl_next_as_first_directive=$gl_cv_next_dirent_h
     20779     fi
     20780     NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
     20781
     20782
     20783
     20784
     20785  if test $ac_cv_header_dirent_h = yes; then
     20786    HAVE_DIRENT_H=1
     20787  else
     20788    HAVE_DIRENT_H=0
     20789  fi
     20790
     20791
     20792
     20793
     20794
     20795
     20796
     20797
     20798
     20799
     20800
     20801
     20802
     20803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
     20804printf %s "checking if environ is properly declared... " >&6; }
     20805if test ${gt_cv_var_environ_declaration+y}
     20806then :
     20807  printf %s "(cached) " >&6
     20808else case e in #(
     20809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20810/* end confdefs.h.  */
     20811#if HAVE_UNISTD_H
     20812     #include <unistd.h>
     20813     #endif
     20814     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
     20815     #include <stdlib.h>
     20816
     20817            typedef struct { int foo; } foo_t;
     20818            extern foo_t environ;
     20819int
     20820main (void)
     20821{
     20822environ.foo = 1;
     20823  ;
     20824  return 0;
     20825}
     20826_ACEOF
     20827if ac_fn_c_try_compile "$LINENO"
     20828then :
     20829  gt_cv_var_environ_declaration=no
     20830else case e in #(
     20831  e) gt_cv_var_environ_declaration=yes ;;
     20832esac
     20833fi
     20834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     20835esac
     20836fi
     20837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
     20838printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
     20839  if test $gt_cv_var_environ_declaration = yes; then
     20840
     20841printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
     20842
     20843  fi
     20844
     20845
     20846  if test $gt_cv_var_environ_declaration != yes; then
     20847    HAVE_DECL_ENVIRON=0
     20848  fi
     20849
     20850
     20851
     20852
     20853
     20854
     20855
     20856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
     20857printf %s "checking whether stdin defaults to large file offsets... " >&6; }
     20858if test ${gl_cv_var_stdin_large_offset+y}
     20859then :
     20860  printf %s "(cached) " >&6
     20861else case e in #(
     20862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20863/* end confdefs.h.  */
     20864#include <stdio.h>
     20865int
     20866main (void)
     20867{
     20868#if defined __SL64 && defined __SCLE /* cygwin */
     20869  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
     20870     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
     20871     it is easier to do a version check than building a runtime test.  */
     20872# include <cygwin/version.h>
     20873# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
     20874  choke me
     20875# endif
     20876#endif
     20877  ;
     20878  return 0;
     20879}
     20880_ACEOF
     20881if ac_fn_c_try_link "$LINENO"
     20882then :
     20883  gl_cv_var_stdin_large_offset=yes
     20884else case e in #(
     20885  e) gl_cv_var_stdin_large_offset=no ;;
     20886esac
     20887fi
     20888rm -f core conftest.err conftest.$ac_objext conftest.beam \
     20889    conftest$ac_exeext conftest.$ac_ext ;;
     20890esac
     20891fi
     20892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
     20893printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; }
     20894
     20895ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     20896if test "x$ac_cv_have_decl_fseeko" = xyes
     20897then :
     20898  ac_have_decl=1
     20899else case e in #(
     20900  e) ac_have_decl=0 ;;
     20901esac
     20902fi
     20903printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h
     20904
     20905
     20906
     20907
     20908
     20909
     20910
     20911
     20912
     20913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
     20914printf %s "checking for fseeko... " >&6; }
     20915if test ${gl_cv_func_fseeko+y}
     20916then :
     20917  printf %s "(cached) " >&6
     20918else case e in #(
     20919  e)
     20920      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20921/* end confdefs.h.  */
     20922#include <stdio.h>
     20923
     20924int
     20925main (void)
     20926{
     20927fseeko (stdin, 0, 0);
     20928  ;
     20929  return 0;
     20930}
     20931_ACEOF
     20932if ac_fn_c_try_link "$LINENO"
     20933then :
     20934  gl_cv_func_fseeko=yes
     20935else case e in #(
     20936  e) gl_cv_func_fseeko=no ;;
     20937esac
     20938fi
     20939rm -f core conftest.err conftest.$ac_objext conftest.beam \
     20940    conftest$ac_exeext conftest.$ac_ext
     20941     ;;
     20942esac
     20943fi
     20944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
     20945printf "%s\n" "$gl_cv_func_fseeko" >&6; }
     20946
     20947
     20948  if test $ac_cv_have_decl_fseeko = no; then
     20949    HAVE_DECL_FSEEKO=0
     20950  fi
     20951
     20952  if test $gl_cv_func_fseeko = no; then
     20953    HAVE_FSEEKO=0
     20954  else
     20955    if test $WINDOWS_64_BIT_OFF_T = 1; then
     20956      REPLACE_FSEEKO=1
     20957    fi
     20958    if test $gl_cv_var_stdin_large_offset = no; then
     20959      REPLACE_FSEEKO=1
     20960    fi
     20961
     20962
     20963
     20964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
     20965printf %s "checking whether fflush works on input streams... " >&6; }
     20966if test ${gl_cv_func_fflush_stdin+y}
     20967then :
     20968  printf %s "(cached) " >&6
     20969else case e in #(
     20970  e) echo hello world > conftest.txt
     20971     if test "$cross_compiling" = yes
     20972then :
     20973  case "$host_os" in
     20974                  # Guess no on native Windows.
     20975          mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
     20976          *)      gl_cv_func_fflush_stdin=cross ;;
     20977        esac
     20978
     20979else case e in #(
     20980  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20981/* end confdefs.h.  */
     20982
     20983#include <stdio.h>
     20984#if HAVE_UNISTD_H
     20985# include <unistd.h>
     20986#else /* on Windows with MSVC */
     20987# include <io.h>
     20988#endif
     20989
     20990
     20991$gl_mda_defines
     20992
     20993int
     20994main (void)
     20995{
     20996FILE *f = fopen ("conftest.txt", "r");
     20997         char buffer[10];
     20998         int fd;
     20999         int c;
     21000         if (f == NULL)
     21001           return 1;
     21002         fd = fileno (f);
     21003         if (fd < 0 || fread (buffer, 1, 5, f) != 5)
     21004           { fclose (f); return 2; }
     21005         /* For deterministic results, ensure f read a bigger buffer.  */
     21006         if (lseek (fd, 0, SEEK_CUR) == 5)
     21007           { fclose (f); return 3; }
     21008         /* POSIX requires fflush-fseek to set file offset of fd.  This fails
     21009            on BSD systems and on mingw.  */
     21010         if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
     21011           { fclose (f); return 4; }
     21012         if (lseek (fd, 0, SEEK_CUR) != 5)
     21013           { fclose (f); return 5; }
     21014         /* Verify behaviour of fflush after ungetc. See
     21015            <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
     21016         /* Verify behaviour of fflush after a backup ungetc.  This fails on
     21017            mingw.  */
     21018         c = fgetc (f);
     21019         ungetc (c, f);
     21020         fflush (f);
     21021         if (fgetc (f) != c)
     21022           { fclose (f); return 6; }
     21023         /* Verify behaviour of fflush after a non-backup ungetc.  This fails
     21024            on glibc 2.8 and on BSD systems.  */
     21025         c = fgetc (f);
     21026         ungetc ('@', f);
     21027         fflush (f);
     21028         if (fgetc (f) != c)
     21029           { fclose (f); return 7; }
     21030         fclose (f);
     21031         return 0;
     21032
     21033  ;
     21034  return 0;
     21035}
     21036_ACEOF
     21037if ac_fn_c_try_run "$LINENO"
     21038then :
     21039  gl_cv_func_fflush_stdin=yes
     21040else case e in #(
     21041  e) gl_cv_func_fflush_stdin=no ;;
     21042esac
     21043fi
     21044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     21045  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21046esac
     21047fi
     21048
     21049     rm conftest.txt
     21050     ;;
     21051esac
     21052fi
     21053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
     21054printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
     21055  case "$gl_cv_func_fflush_stdin" in
     21056    *yes) gl_func_fflush_stdin=1 ;;
     21057    *no)  gl_func_fflush_stdin=0 ;;
     21058    *)    gl_func_fflush_stdin='(-1)' ;;
     21059  esac
     21060
     21061printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
     21062
     21063
     21064      case "$gl_cv_func_fflush_stdin" in
     21065        *yes) ;;
     21066        *) REPLACE_FSEEKO=1 ;;
     21067      esac
     21068
     21069  fi
     21070
     21071
     21072
     21073
     21074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
     21075printf %s "checking whether ungetc works on arbitrary bytes... " >&6; }
     21076if test ${gl_cv_func_ungetc_works+y}
     21077then :
     21078  printf %s "(cached) " >&6
     21079else case e in #(
     21080  e) if test "$cross_compiling" = yes
     21081then :
     21082  case "$host_os" in
     21083                          # Guess yes on glibc systems.
     21084           *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
     21085                          # Guess yes on musl systems.
     21086           *-musl*)       gl_cv_func_ungetc_works="guessing yes" ;;
     21087                          # Guess yes on bionic systems.
     21088           *-android*)    gl_cv_func_ungetc_works="guessing yes" ;;
     21089                          # Guess yes on native Windows.
     21090           mingw*)        gl_cv_func_ungetc_works="guessing yes" ;;
     21091                          # If we don't know, obey --enable-cross-guesses.
     21092           *)             gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
     21093         esac
     21094
     21095else case e in #(
     21096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21097/* end confdefs.h.  */
     21098
     21099#include <stdio.h>
     21100
     21101int
     21102main (void)
     21103{
     21104FILE *f;
     21105            if (!(f = fopen ("conftest.tmp", "w+")))
     21106              return 1;
     21107            if (fputs ("abc", f) < 0)
     21108              { fclose (f); return 2; }
     21109            rewind (f);
     21110            if (fgetc (f) != 'a')
     21111              { fclose (f); return 3; }
     21112            if (fgetc (f) != 'b')
     21113              { fclose (f); return 4; }
     21114            if (ungetc ('d', f) != 'd')
     21115              { fclose (f); return 5; }
     21116            if (ftell (f) != 1)
     21117              { fclose (f); return 6; }
     21118            if (fgetc (f) != 'd')
     21119              { fclose (f); return 7; }
     21120            if (ftell (f) != 2)
     21121              { fclose (f); return 8; }
     21122            if (fseek (f, 0, SEEK_CUR) != 0)
     21123              { fclose (f); return 9; }
     21124            if (ftell (f) != 2)
     21125              { fclose (f); return 10; }
     21126            if (fgetc (f) != 'c')
     21127              { fclose (f); return 11; }
     21128            fclose (f);
     21129            remove ("conftest.tmp");
     21130
     21131  ;
     21132  return 0;
     21133}
     21134_ACEOF
     21135if ac_fn_c_try_run "$LINENO"
     21136then :
     21137  gl_cv_func_ungetc_works=yes
     21138else case e in #(
     21139  e) gl_cv_func_ungetc_works=no ;;
     21140esac
     21141fi
     21142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     21143  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21144esac
     21145fi
     21146
     21147     ;;
     21148esac
     21149fi
     21150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
     21151printf "%s\n" "$gl_cv_func_ungetc_works" >&6; }
     21152  gl_ftello_broken_after_ungetc=no
     21153  case "$gl_cv_func_ungetc_works" in
     21154    *yes) ;;
     21155    *)
     21156                  case "$host_os" in
     21157        darwin*) gl_ftello_broken_after_ungetc=yes ;;
     21158        *)
     21159
     21160printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
     21161
     21162          ;;
     21163      esac
     21164      ;;
     21165  esac
     21166
     21167ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     21168if test "x$ac_cv_have_decl_ftello" = xyes
     21169then :
     21170  ac_have_decl=1
     21171else case e in #(
     21172  e) ac_have_decl=0 ;;
     21173esac
     21174fi
     21175printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h
     21176
     21177
     21178
     21179
     21180
     21181
     21182
     21183
     21184
     21185
     21186  if test $ac_cv_have_decl_ftello = no; then
     21187    HAVE_DECL_FTELLO=0
     21188  fi
     21189
     21190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
     21191printf %s "checking for ftello... " >&6; }
     21192if test ${gl_cv_func_ftello+y}
     21193then :
     21194  printf %s "(cached) " >&6
     21195else case e in #(
     21196  e)
     21197      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21198/* end confdefs.h.  */
     21199#include <stdio.h>
     21200int
     21201main (void)
     21202{
     21203ftello (stdin);
     21204  ;
     21205  return 0;
     21206}
     21207_ACEOF
     21208if ac_fn_c_try_link "$LINENO"
     21209then :
     21210  gl_cv_func_ftello=yes
     21211else case e in #(
     21212  e) gl_cv_func_ftello=no ;;
     21213esac
     21214fi
     21215rm -f core conftest.err conftest.$ac_objext conftest.beam \
     21216    conftest$ac_exeext conftest.$ac_ext
     21217     ;;
     21218esac
     21219fi
     21220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
     21221printf "%s\n" "$gl_cv_func_ftello" >&6; }
     21222  if test $gl_cv_func_ftello = no; then
     21223    HAVE_FTELLO=0
     21224  else
     21225    if test $WINDOWS_64_BIT_OFF_T = 1; then
     21226      REPLACE_FTELLO=1
     21227    fi
     21228    if test $gl_cv_var_stdin_large_offset = no; then
     21229      REPLACE_FTELLO=1
     21230    fi
     21231    if test $REPLACE_FTELLO = 0; then
     21232
     21233      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
     21234printf %s "checking whether ftello works... " >&6; }
     21235if test ${gl_cv_func_ftello_works+y}
     21236then :
     21237  printf %s "(cached) " >&6
     21238else case e in #(
     21239  e)
     21240                              case "$host_os" in
     21241                      # Guess no on Solaris.
     21242            solaris*) gl_cv_func_ftello_works="guessing no" ;;
     21243                      # Guess yes on native Windows.
     21244            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
     21245                      # Guess yes otherwise.
     21246            *)        gl_cv_func_ftello_works="guessing yes" ;;
     21247          esac
     21248          if test "$cross_compiling" = yes
     21249then :
     21250  :
     21251else case e in #(
     21252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21253/* end confdefs.h.  */
     21254
     21255#include <stdio.h>
     21256#include <stdlib.h>
     21257#include <string.h>
     21258#define TESTFILE "conftest.tmp"
     21259int
     21260main (void)
     21261{
     21262  FILE *fp;
     21263
     21264  /* Create a file with some contents.  */
     21265  fp = fopen (TESTFILE, "w");
     21266  if (fp == NULL)
     21267    return 70;
     21268  if (fwrite ("foogarsh", 1, 8, fp) < 8)
     21269    { fclose (fp); return 71; }
     21270  if (fclose (fp))
     21271    return 72;
     21272
     21273  /* The file's contents is now "foogarsh".  */
     21274
     21275  /* Try writing after reading to EOF.  */
     21276  fp = fopen (TESTFILE, "r+");
     21277  if (fp == NULL)
     21278    return 73;
     21279  if (fseek (fp, -1, SEEK_END))
     21280    { fclose (fp); return 74; }
     21281  if (!(getc (fp) == 'h'))
     21282    { fclose (fp); return 1; }
     21283  if (!(getc (fp) == EOF))
     21284    { fclose (fp); return 2; }
     21285  if (!(ftell (fp) == 8))
     21286    { fclose (fp); return 3; }
     21287  if (!(ftell (fp) == 8))
     21288    { fclose (fp); return 4; }
     21289  if (!(putc ('!', fp) == '!'))
     21290    { fclose (fp); return 5; }
     21291  if (!(ftell (fp) == 9))
     21292    { fclose (fp); return 6; }
     21293  if (!(fclose (fp) == 0))
     21294    return 7;
     21295  fp = fopen (TESTFILE, "r");
     21296  if (fp == NULL)
     21297    return 75;
     21298  {
     21299    char buf[10];
     21300    if (!(fread (buf, 1, 10, fp) == 9))
     21301      { fclose (fp); return 10; }
     21302    if (!(memcmp (buf, "foogarsh!", 9) == 0))
     21303      { fclose (fp); return 11; }
     21304  }
     21305  if (!(fclose (fp) == 0))
     21306    return 12;
     21307
     21308  /* The file's contents is now "foogarsh!".  */
     21309
     21310  return 0;
     21311}
     21312_ACEOF
     21313if ac_fn_c_try_run "$LINENO"
     21314then :
     21315  gl_cv_func_ftello_works=yes
     21316else case e in #(
     21317  e) gl_cv_func_ftello_works=no ;;
     21318esac
     21319fi
     21320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     21321  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21322esac
     21323fi
     21324
     21325         ;;
     21326esac
     21327fi
     21328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
     21329printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
     21330      case "$gl_cv_func_ftello_works" in
     21331        *yes) ;;
     21332        *)
     21333          REPLACE_FTELLO=1
     21334
     21335printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
     21336
     21337          ;;
     21338      esac
     21339    fi
     21340    if test $REPLACE_FTELLO = 0; then
     21341
     21342      if test $gl_ftello_broken_after_ungetc = yes; then
     21343        REPLACE_FTELLO=1
     21344
     21345printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
     21346
     21347      fi
     21348    fi
     21349  fi
     21350
     21351
     21352
     21353
     21354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
     21355printf %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
     21356if test ${gl_cv_func_getcwd_null+y}
     21357then :
     21358  printf %s "(cached) " >&6
     21359else case e in #(
     21360  e) if test "$cross_compiling" = yes
     21361then :
     21362  case "$host_os" in
     21363                           # Guess yes on glibc systems.
     21364            *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
     21365                           # Guess yes on musl systems.
     21366            *-musl*)       gl_cv_func_getcwd_null="guessing yes";;
     21367                           # Guess yes on Cygwin.
     21368            cygwin*)       gl_cv_func_getcwd_null="guessing yes";;
     21369                           # If we don't know, obey --enable-cross-guesses.
     21370            *)             gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
     21371          esac
     21372
     21373else case e in #(
     21374  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21375/* end confdefs.h.  */
     21376
     21377#        include <stdlib.h>
     21378#        if HAVE_UNISTD_H
     21379#         include <unistd.h>
     21380#        else /* on Windows with MSVC */
     21381#         include <direct.h>
     21382#        endif
     21383
     21384
     21385$gl_mda_defines
     21386
     21387#        ifndef getcwd
     21388         char *getcwd ();
     21389#        endif
     21390
     21391int
     21392main (void)
     21393{
     21394
     21395#if defined _WIN32 && ! defined __CYGWIN__
     21396/* mingw cwd does not start with '/', but _getcwd does allocate.
     21397   However, mingw fails to honor non-zero size.  */
     21398#else
     21399           if (chdir ("/") != 0)
     21400             return 1;
     21401           else
     21402             {
     21403               char *f = getcwd (NULL, 0);
     21404               if (! f)
     21405                 return 2;
     21406               if (f[0] != '/')
     21407                 { free (f); return 3; }
     21408               if (f[1] != '\0')
     21409                 { free (f); return 4; }
     21410               free (f);
     21411               return 0;
     21412             }
     21413#endif
     21414
     21415  ;
     21416  return 0;
     21417}
     21418_ACEOF
     21419if ac_fn_c_try_run "$LINENO"
     21420then :
     21421  gl_cv_func_getcwd_null=yes
     21422else case e in #(
     21423  e) gl_cv_func_getcwd_null=no ;;
     21424esac
     21425fi
     21426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     21427  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21428esac
     21429fi
     21430 ;;
     21431esac
     21432fi
     21433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
     21434printf "%s\n" "$gl_cv_func_getcwd_null" >&6; }
     21435
     21436
     21437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
     21438printf %s "checking for getcwd with POSIX signature... " >&6; }
     21439if test ${gl_cv_func_getcwd_posix_signature+y}
     21440then :
     21441  printf %s "(cached) " >&6
     21442else case e in #(
     21443  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21444/* end confdefs.h.  */
     21445#include <unistd.h>
     21446
     21447
     21448$gl_mda_defines
     21449
     21450int
     21451main (void)
     21452{
     21453extern
     21454           #ifdef __cplusplus
     21455           "C"
     21456           #endif
     21457           char *getcwd (char *, size_t);
     21458
     21459  ;
     21460  return 0;
     21461}
     21462
     21463_ACEOF
     21464if ac_fn_c_try_compile "$LINENO"
     21465then :
     21466  gl_cv_func_getcwd_posix_signature=yes
     21467else case e in #(
     21468  e) gl_cv_func_getcwd_posix_signature=no ;;
     21469esac
     21470fi
     21471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     21472    ;;
     21473esac
     21474fi
     21475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
     21476printf "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; }
     21477
     21478
     21479    HAVE_GETTIMEOFDAY=1;
     21480  HAVE_STRUCT_TIMEVAL=1;
     21481  HAVE_SYS_TIME_H=1;
     21482  REPLACE_GETTIMEOFDAY=0;
     21483  REPLACE_STRUCT_TIMEVAL=0;
     21484
     21485
     21486
     21487
     21488
     21489
     21490
     21491
     21492
     21493
     21494
     21495
     21496
     21497
     21498     if test $gl_cv_have_include_next = yes; then
     21499       gl_cv_next_sys_time_h='<'sys/time.h'>'
     21500     else
     21501       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
     21502printf %s "checking absolute name of <sys/time.h>... " >&6; }
     21503if test ${gl_cv_next_sys_time_h+y}
     21504then :
     21505  printf %s "(cached) " >&6
     21506else case e in #(
     21507  e)
     21508             if test $ac_cv_header_sys_time_h = yes; then
     21509
     21510
     21511
     21512
     21513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21514/* end confdefs.h.  */
     21515#include <sys/time.h>
     21516_ACEOF
     21517                case "$host_os" in
     21518    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     21519    *)    gl_absname_cpp="$ac_cpp" ;;
     21520  esac
     21521
     21522  case "$host_os" in
     21523    mingw*)
     21524                                          gl_dirsep_regex='[/\\]'
     21525      ;;
     21526    *)
     21527      gl_dirsep_regex='\/'
     21528      ;;
     21529  esac
     21530      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     21531  gl_header_literal_regex=`echo 'sys/time.h' \
     21532                           | sed -e "$gl_make_literal_regex_sed"`
     21533  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     21534      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     21535      s|^/[^/]|//&|
     21536      p
     21537      q
     21538    }'
     21539
     21540        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     21541  sed -n "$gl_absolute_header_sed"`
     21542
     21543          gl_header=$gl_cv_absolute_sys_time_h
     21544          gl_cv_next_sys_time_h='"'$gl_header'"'
     21545          else
     21546               gl_cv_next_sys_time_h='<'sys/time.h'>'
     21547             fi
     21548
     21549          ;;
     21550esac
     21551fi
     21552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
     21553printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
     21554     fi
     21555     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
     21556
     21557     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     21558       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     21559       gl_next_as_first_directive='<'sys/time.h'>'
     21560     else
     21561       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     21562       gl_next_as_first_directive=$gl_cv_next_sys_time_h
     21563     fi
     21564     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
     21565
     21566
     21567
     21568
     21569
     21570  if test $ac_cv_header_sys_time_h != yes; then
     21571    HAVE_SYS_TIME_H=0
     21572  fi
     21573
     21574
     21575
     21576
     21577
     21578  if test $ac_cv_header_sys_socket_h != yes; then
     21579                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     21580if test "x$ac_cv_header_winsock2_h" = xyes
     21581then :
     21582  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     21583
     21584fi
     21585
     21586  fi
     21587  if test "$ac_cv_header_winsock2_h" = yes; then
     21588    HAVE_WINSOCK2_H=1
     21589    UNISTD_H_HAVE_WINSOCK2_H=1
     21590    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     21591  else
     21592    HAVE_WINSOCK2_H=0
     21593  fi
     21594
     21595
     21596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
     21597printf %s "checking for struct timeval... " >&6; }
     21598if test ${gl_cv_sys_struct_timeval+y}
     21599then :
     21600  printf %s "(cached) " >&6
     21601else case e in #(
     21602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21603/* end confdefs.h.  */
     21604#if HAVE_SYS_TIME_H
     21605             #include <sys/time.h>
     21606            #endif
     21607            #include <time.h>
     21608            #if HAVE_WINSOCK2_H
     21609            # include <winsock2.h>
     21610            #endif
     21611
     21612int
     21613main (void)
     21614{
     21615static struct timeval x; x.tv_sec = x.tv_usec;
     21616  ;
     21617  return 0;
     21618}
     21619_ACEOF
     21620if ac_fn_c_try_compile "$LINENO"
     21621then :
     21622  gl_cv_sys_struct_timeval=yes
     21623else case e in #(
     21624  e) gl_cv_sys_struct_timeval=no ;;
     21625esac
     21626fi
     21627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     21628     ;;
     21629esac
     21630fi
     21631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
     21632printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
     21633  if test $gl_cv_sys_struct_timeval != yes; then
     21634    HAVE_STRUCT_TIMEVAL=0
     21635  else
     21636                            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
     21637printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
     21638if test ${gl_cv_sys_struct_timeval_tv_sec+y}
     21639then :
     21640  printf %s "(cached) " >&6
     21641else case e in #(
     21642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21643/* end confdefs.h.  */
     21644#if HAVE_SYS_TIME_H
     21645               #include <sys/time.h>
     21646              #endif
     21647              #include <time.h>
     21648              #if HAVE_WINSOCK2_H
     21649              # include <winsock2.h>
     21650              #endif
     21651
     21652int
     21653main (void)
     21654{
     21655static struct timeval x;
     21656              typedef int verify_tv_sec_type[
     21657                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
     21658              ];
     21659
     21660  ;
     21661  return 0;
     21662}
     21663_ACEOF
     21664if ac_fn_c_try_compile "$LINENO"
     21665then :
     21666  gl_cv_sys_struct_timeval_tv_sec=yes
     21667else case e in #(
     21668  e) gl_cv_sys_struct_timeval_tv_sec=no ;;
     21669esac
     21670fi
     21671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     21672       ;;
     21673esac
     21674fi
     21675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
     21676printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
     21677    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
     21678      REPLACE_STRUCT_TIMEVAL=1
     21679    fi
     21680  fi
     21681
     21682
     21683
     21684
     21685
     21686
     21687
     21688
     21689  GL_GNULIB_GETTIMEOFDAY=0
     21690
     21691
     21692
     21693
     21694
     21695  case "$host_os" in
     21696    *-musl*)
     21697printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
     21698 ;;
     21699  esac
     21700
     21701
     21702
     21703
     21704
     21705
     21706
     21707
     21708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
     21709printf %s "checking for IPv4 sockets... " >&6; }
     21710if test ${gl_cv_socket_ipv4+y}
     21711then :
     21712  printf %s "(cached) " >&6
     21713else case e in #(
     21714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21715/* end confdefs.h.  */
     21716#include <sys/types.h>
     21717#ifdef HAVE_SYS_SOCKET_H
     21718#include <sys/socket.h>
     21719#endif
     21720#ifdef HAVE_NETINET_IN_H
     21721#include <netinet/in.h>
     21722#endif
     21723#ifdef HAVE_WINSOCK2_H
     21724#include <winsock2.h>
     21725#endif
     21726int
     21727main (void)
     21728{
     21729int x = AF_INET; struct in_addr y; struct sockaddr_in z;
     21730 if (&x && &y && &z) return 0;
     21731  ;
     21732  return 0;
     21733}
     21734_ACEOF
     21735if ac_fn_c_try_compile "$LINENO"
     21736then :
     21737  gl_cv_socket_ipv4=yes
     21738else case e in #(
     21739  e) gl_cv_socket_ipv4=no ;;
     21740esac
     21741fi
     21742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21743esac
     21744fi
     21745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
     21746printf "%s\n" "$gl_cv_socket_ipv4" >&6; }
     21747  if test $gl_cv_socket_ipv4 = yes; then
     21748
     21749printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h
     21750
     21751  fi
     21752
     21753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
     21754printf %s "checking for IPv6 sockets... " >&6; }
     21755if test ${gl_cv_socket_ipv6+y}
     21756then :
     21757  printf %s "(cached) " >&6
     21758else case e in #(
     21759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21760/* end confdefs.h.  */
     21761#include <sys/types.h>
     21762#ifdef HAVE_SYS_SOCKET_H
     21763#include <sys/socket.h>
     21764#endif
     21765#ifdef HAVE_NETINET_IN_H
     21766#include <netinet/in.h>
     21767#endif
     21768#ifdef HAVE_WINSOCK2_H
     21769#include <winsock2.h>
     21770#endif
     21771#ifdef HAVE_WS2TCPIP_H
     21772#include <ws2tcpip.h>
     21773#endif
     21774int
     21775main (void)
     21776{
     21777int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
     21778 if (&x && &y && &z) return 0;
     21779  ;
     21780  return 0;
     21781}
     21782_ACEOF
     21783if ac_fn_c_try_compile "$LINENO"
     21784then :
     21785  gl_cv_socket_ipv6=yes
     21786else case e in #(
     21787  e) gl_cv_socket_ipv6=no ;;
     21788esac
     21789fi
     21790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21791esac
     21792fi
     21793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
     21794printf "%s\n" "$gl_cv_socket_ipv6" >&6; }
     21795  if test $gl_cv_socket_ipv6 = yes; then
     21796
     21797printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h
     21798
     21799  fi
     21800
     21801
     21802
     21803
     21804  PRIPTR_PREFIX=
     21805  if $GL_GENERATE_STDINT_H; then
     21806            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21807/* end confdefs.h.  */
     21808
     21809         #ifdef _WIN64
     21810         LLP64
     21811         #endif
     21812
     21813int
     21814main (void)
     21815{
     21816
     21817  ;
     21818  return 0;
     21819}
     21820
     21821_ACEOF
     21822if ac_fn_c_try_compile "$LINENO"
     21823then :
     21824  PRIPTR_PREFIX='"l"'
     21825else case e in #(
     21826  e) PRIPTR_PREFIX='"ll"' ;;
     21827esac
     21828fi
     21829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     21830  else
     21831        for glpfx in '' l ll I64; do
     21832      case $glpfx in
     21833        '')  gltype1='int';;
     21834        l)   gltype1='long int';;
     21835        ll)  gltype1='long long int';;
     21836        I64) gltype1='__int64';;
     21837      esac
     21838      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21839/* end confdefs.h.  */
     21840#include <stdint.h>
     21841           extern intptr_t foo;
     21842           extern $gltype1 foo;
     21843int
     21844main (void)
     21845{
     21846
     21847  ;
     21848  return 0;
     21849}
     21850_ACEOF
     21851if ac_fn_c_try_compile "$LINENO"
     21852then :
     21853  PRIPTR_PREFIX='"'$glpfx'"'
     21854fi
     21855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     21856      test -n "$PRIPTR_PREFIX" && break
     21857    done
     21858  fi
     21859
     21860
     21861
     21862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
     21863printf %s "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
     21864if test ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+y}
     21865then :
     21866  printf %s "(cached) " >&6
     21867else case e in #(
     21868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21869/* end confdefs.h.  */
     21870/* Work also in C++ mode.  */
     21871            #define __STDC_LIMIT_MACROS 1
     21872
     21873            /* Work if build is not clean.  */
     21874            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
     21875
     21876            #include <limits.h>
     21877            #if HAVE_STDINT_H
     21878             #include <stdint.h>
     21879            #endif
     21880
     21881            #if defined INT32_MAX && defined INTMAX_MAX
     21882             #define CONDITION (INT32_MAX < INTMAX_MAX)
     21883            #else
     21884             #define CONDITION (sizeof (int) < sizeof (long long int))
     21885            #endif
     21886            int test[CONDITION ? 1 : -1];
     21887int
     21888main (void)
     21889{
     21890
     21891  ;
     21892  return 0;
     21893}
     21894_ACEOF
     21895if ac_fn_c_try_compile "$LINENO"
     21896then :
     21897  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
     21898else case e in #(
     21899  e) gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no ;;
     21900esac
     21901fi
     21902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21903esac
     21904fi
     21905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
     21906printf "%s\n" "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
     21907  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
     21908    INT32_MAX_LT_INTMAX_MAX=1;
     21909  else
     21910    INT32_MAX_LT_INTMAX_MAX=0;
     21911  fi
     21912
     21913
     21914  if test $APPLE_UNIVERSAL_BUILD = 0; then
     21915
     21916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
     21917printf %s "checking whether INT64_MAX == LONG_MAX... " >&6; }
     21918if test ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+y}
     21919then :
     21920  printf %s "(cached) " >&6
     21921else case e in #(
     21922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21923/* end confdefs.h.  */
     21924/* Work also in C++ mode.  */
     21925            #define __STDC_LIMIT_MACROS 1
     21926
     21927            /* Work if build is not clean.  */
     21928            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
     21929
     21930            #include <limits.h>
     21931            #if HAVE_STDINT_H
     21932             #include <stdint.h>
     21933            #endif
     21934
     21935            #if defined INT64_MAX
     21936             #define CONDITION (INT64_MAX == LONG_MAX)
     21937            #else
     21938             #define CONDITION (sizeof (long long int) == sizeof (long int))
     21939            #endif
     21940            int test[CONDITION ? 1 : -1];
     21941int
     21942main (void)
     21943{
     21944
     21945  ;
     21946  return 0;
     21947}
     21948_ACEOF
     21949if ac_fn_c_try_compile "$LINENO"
     21950then :
     21951  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
     21952else case e in #(
     21953  e) gl_cv_test_INT64_MAX_EQ_LONG_MAX=no ;;
     21954esac
     21955fi
     21956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     21957esac
     21958fi
     21959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
     21960printf "%s\n" "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
     21961  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
     21962    INT64_MAX_EQ_LONG_MAX=1;
     21963  else
     21964    INT64_MAX_EQ_LONG_MAX=0;
     21965  fi
     21966
     21967
     21968  else
     21969    INT64_MAX_EQ_LONG_MAX=-1
     21970  fi
     21971
     21972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
     21973printf %s "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
     21974if test ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+y}
     21975then :
     21976  printf %s "(cached) " >&6
     21977else case e in #(
     21978  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21979/* end confdefs.h.  */
     21980/* Work also in C++ mode.  */
     21981            #define __STDC_LIMIT_MACROS 1
     21982
     21983            /* Work if build is not clean.  */
     21984            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
     21985
     21986            #include <limits.h>
     21987            #if HAVE_STDINT_H
     21988             #include <stdint.h>
     21989            #endif
     21990
     21991            #if defined UINT32_MAX && defined UINTMAX_MAX
     21992             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
     21993            #else
     21994             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
     21995            #endif
     21996            int test[CONDITION ? 1 : -1];
     21997int
     21998main (void)
     21999{
     22000
     22001  ;
     22002  return 0;
     22003}
     22004_ACEOF
     22005if ac_fn_c_try_compile "$LINENO"
     22006then :
     22007  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
     22008else case e in #(
     22009  e) gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no ;;
     22010esac
     22011fi
     22012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     22013esac
     22014fi
     22015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
     22016printf "%s\n" "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
     22017  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
     22018    UINT32_MAX_LT_UINTMAX_MAX=1;
     22019  else
     22020    UINT32_MAX_LT_UINTMAX_MAX=0;
     22021  fi
     22022
     22023
     22024  if test $APPLE_UNIVERSAL_BUILD = 0; then
     22025
     22026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
     22027printf %s "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
     22028if test ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+y}
     22029then :
     22030  printf %s "(cached) " >&6
     22031else case e in #(
     22032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22033/* end confdefs.h.  */
     22034/* Work also in C++ mode.  */
     22035            #define __STDC_LIMIT_MACROS 1
     22036
     22037            /* Work if build is not clean.  */
     22038            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
     22039
     22040            #include <limits.h>
     22041            #if HAVE_STDINT_H
     22042             #include <stdint.h>
     22043            #endif
     22044
     22045            #if defined UINT64_MAX
     22046             #define CONDITION (UINT64_MAX == ULONG_MAX)
     22047            #else
     22048             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
     22049            #endif
     22050            int test[CONDITION ? 1 : -1];
     22051int
     22052main (void)
     22053{
     22054
     22055  ;
     22056  return 0;
     22057}
     22058_ACEOF
     22059if ac_fn_c_try_compile "$LINENO"
     22060then :
     22061  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
     22062else case e in #(
     22063  e) gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no ;;
     22064esac
     22065fi
     22066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     22067esac
     22068fi
     22069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
     22070printf "%s\n" "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
     22071  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
     22072    UINT64_MAX_EQ_ULONG_MAX=1;
     22073  else
     22074    UINT64_MAX_EQ_ULONG_MAX=0;
     22075  fi
     22076
     22077
     22078  else
     22079    UINT64_MAX_EQ_ULONG_MAX=-1
     22080  fi
     22081
     22082
     22083
     22084
     22085  GL_GNULIB_IOCTL=0
     22086
     22087
     22088
     22089
     22090
     22091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
     22092printf %s "checking for LC_MESSAGES... " >&6; }
     22093if test ${gt_cv_val_LC_MESSAGES+y}
     22094then :
     22095  printf %s "(cached) " >&6
     22096else case e in #(
     22097  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22098/* end confdefs.h.  */
     22099#include <locale.h>
     22100int
     22101main (void)
     22102{
     22103return LC_MESSAGES
     22104  ;
     22105  return 0;
     22106}
     22107_ACEOF
     22108if ac_fn_c_try_link "$LINENO"
     22109then :
     22110  gt_cv_val_LC_MESSAGES=yes
     22111else case e in #(
     22112  e) gt_cv_val_LC_MESSAGES=no ;;
     22113esac
     22114fi
     22115rm -f core conftest.err conftest.$ac_objext conftest.beam \
     22116    conftest$ac_exeext conftest.$ac_ext ;;
     22117esac
     22118fi
     22119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
     22120printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
     22121  if test $gt_cv_val_LC_MESSAGES = yes; then
     22122
     22123printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
     22124
     22125  fi
     22126
     22127
     22128
     22129
     22130
     22131
     22132
     22133
     22134
     22135
     22136
     22137
     22138
     22139          if test $ac_cv_func_uselocale = yes; then
     22140
     22141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
     22142printf %s "checking whether uselocale works... " >&6; }
     22143if test ${gt_cv_func_uselocale_works+y}
     22144then :
     22145  printf %s "(cached) " >&6
     22146else case e in #(
     22147  e) if test "$cross_compiling" = yes
     22148then :
     22149  # Guess no on AIX and z/OS, yes otherwise.
     22150          case "$host_os" in
     22151            aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
     22152            *)                   gt_cv_func_uselocale_works="guessing yes" ;;
     22153          esac
     22154
     22155else case e in #(
     22156  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22157/* end confdefs.h.  */
     22158
     22159#include <locale.h>
     22160#if HAVE_XLOCALE_H
     22161# include <xlocale.h>
     22162#endif
     22163locale_t loc1;
     22164int main ()
     22165{
     22166  uselocale (NULL);
     22167  setlocale (LC_ALL, "en_US.UTF-8");
     22168  return 0;
     22169}
     22170_ACEOF
     22171if ac_fn_c_try_run "$LINENO"
     22172then :
     22173  gt_cv_func_uselocale_works=yes
     22174else case e in #(
     22175  e) gt_cv_func_uselocale_works=no ;;
     22176esac
     22177fi
     22178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     22179  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     22180esac
     22181fi
     22182
     22183       ;;
     22184esac
     22185fi
     22186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
     22187printf "%s\n" "$gt_cv_func_uselocale_works" >&6; }
     22188  else
     22189    gt_cv_func_uselocale_works=no
     22190  fi
     22191  case "$gt_cv_func_uselocale_works" in
     22192    *yes)
     22193      gt_working_uselocale=yes
     22194
     22195printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
     22196
     22197      ;;
     22198    *)
     22199      gt_working_uselocale=no
     22200      ;;
     22201  esac
     22202
     22203
     22204                            case "$gt_cv_func_uselocale_works" in
     22205    *yes)
     22206
     22207      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
     22208printf %s "checking for fake locale system (OpenBSD)... " >&6; }
     22209if test ${gt_cv_locale_fake+y}
     22210then :
     22211  printf %s "(cached) " >&6
     22212else case e in #(
     22213  e) if test "$cross_compiling" = yes
     22214then :
     22215              case "$host_os" in
     22216              openbsd*) gt_cv_locale_fake="guessing yes" ;;
     22217              *)        gt_cv_locale_fake="guessing no" ;;
     22218            esac
     22219
     22220else case e in #(
     22221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22222/* end confdefs.h.  */
     22223
     22224#include <locale.h>
     22225#if HAVE_XLOCALE_H
     22226# include <xlocale.h>
     22227#endif
     22228int main ()
     22229{
     22230  locale_t loc1, loc2;
     22231  if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
     22232  if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
     22233  loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
     22234  loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
     22235  return !(loc1 == loc2);
     22236}
     22237_ACEOF
     22238if ac_fn_c_try_run "$LINENO"
     22239then :
     22240  gt_cv_locale_fake=yes
     22241else case e in #(
     22242  e) gt_cv_locale_fake=no ;;
     22243esac
     22244fi
     22245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     22246  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     22247esac
     22248fi
     22249
     22250         ;;
     22251esac
     22252fi
     22253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
     22254printf "%s\n" "$gt_cv_locale_fake" >&6; }
     22255      ;;
     22256    *) gt_cv_locale_fake=no ;;
     22257  esac
     22258  case "$gt_cv_locale_fake" in
     22259    *yes)
     22260      gt_fake_locales=yes
     22261
     22262printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
     22263
     22264      ;;
     22265    *)
     22266      gt_fake_locales=no
     22267      ;;
     22268  esac
     22269
     22270  case "$gt_cv_func_uselocale_works" in
     22271    *yes)
     22272      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
     22273printf %s "checking for Solaris 11.4 locale system... " >&6; }
     22274if test ${gt_cv_locale_solaris114+y}
     22275then :
     22276  printf %s "(cached) " >&6
     22277else case e in #(
     22278  e) case "$host_os" in
     22279           solaris*)
     22280                                                                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22281/* end confdefs.h.  */
     22282
     22283                  #include <locale.h>
     22284                  struct _LC_locale_t *x;
     22285                  locale_t y;
     22286
     22287int
     22288main (void)
     22289{
     22290*y = x;
     22291  ;
     22292  return 0;
     22293}
     22294_ACEOF
     22295if ac_fn_c_try_compile "$LINENO"
     22296then :
     22297  gt_cv_locale_solaris114=yes
     22298else case e in #(
     22299  e) gt_cv_locale_solaris114=no ;;
     22300esac
     22301fi
     22302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     22303             ;;
     22304           *) gt_cv_locale_solaris114=no ;;
     22305         esac
     22306         ;;
     22307esac
     22308fi
     22309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
     22310printf "%s\n" "$gt_cv_locale_solaris114" >&6; }
     22311      ;;
     22312    *) gt_cv_locale_solaris114=no ;;
     22313  esac
     22314  if test $gt_cv_locale_solaris114 = yes; then
     22315
     22316printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
     22317
     22318  fi
     22319
     22320        case "$gt_cv_func_uselocale_works" in
     22321    *yes)
     22322      ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
     22323if test "x$ac_cv_func_getlocalename_l" = xyes
     22324then :
     22325  printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h
     22326
     22327fi
     22328
     22329      ;;
     22330  esac
     22331
     22332            gt_nameless_locales=no
     22333  case "$host_os" in
     22334        aix*)
     22335      gt_nameless_locales=yes
     22336
     22337printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
     22338
     22339      ;;
     22340  esac
     22341
     22342        if test $gt_working_uselocale = yes && test $gt_fake_locales = no; then
     22343    gt_good_uselocale=yes
     22344
     22345printf "%s\n" "#define HAVE_GOOD_USELOCALE 1" >>confdefs.h
     22346
     22347  else
     22348    gt_good_uselocale=no
     22349  fi
     22350
     22351        if test $gt_good_uselocale = yes && test $gt_nameless_locales = yes; then
     22352    gt_localename_enhances_locale_funcs=yes
     22353    LOCALENAME_ENHANCE_LOCALE_FUNCS=1
     22354
     22355printf "%s\n" "#define LOCALENAME_ENHANCE_LOCALE_FUNCS 1" >>confdefs.h
     22356
     22357  else
     22358    gt_localename_enhances_locale_funcs=no
     22359  fi
     22360
     22361
     22362    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
     22363printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
     22364if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
     22365then :
     22366  printf %s "(cached) " >&6
     22367else case e in #(
     22368  e) gt_save_LIBS="$LIBS"
     22369     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
     22370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22371/* end confdefs.h.  */
     22372#include <CoreFoundation/CFPreferences.h>
     22373int
     22374main (void)
     22375{
     22376CFPreferencesCopyAppValue(NULL, NULL)
     22377  ;
     22378  return 0;
     22379}
     22380_ACEOF
     22381if ac_fn_c_try_link "$LINENO"
     22382then :
     22383  gt_cv_func_CFPreferencesCopyAppValue=yes
     22384else case e in #(
     22385  e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
     22386esac
     22387fi
     22388rm -f core conftest.err conftest.$ac_objext conftest.beam \
     22389    conftest$ac_exeext conftest.$ac_ext
     22390     LIBS="$gt_save_LIBS" ;;
     22391esac
     22392fi
     22393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
     22394printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
     22395  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
     22396
     22397printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
     22398
     22399  fi
     22400                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
     22401printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
     22402if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
     22403then :
     22404  printf %s "(cached) " >&6
     22405else case e in #(
     22406  e) gt_save_LIBS="$LIBS"
     22407     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
     22408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22409/* end confdefs.h.  */
     22410#include <CoreFoundation/CFLocale.h>
     22411int
     22412main (void)
     22413{
     22414CFLocaleCopyPreferredLanguages();
     22415  ;
     22416  return 0;
     22417}
     22418_ACEOF
     22419if ac_fn_c_try_link "$LINENO"
     22420then :
     22421  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
     22422else case e in #(
     22423  e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
     22424esac
     22425fi
     22426rm -f core conftest.err conftest.$ac_objext conftest.beam \
     22427    conftest$ac_exeext conftest.$ac_ext
     22428     LIBS="$gt_save_LIBS" ;;
     22429esac
     22430fi
     22431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
     22432printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
     22433  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
     22434
     22435printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
     22436
     22437  fi
     22438  INTL_MACOSX_LIBS=
     22439  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
     22440     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
     22441    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
     22442  fi
     22443
     22444
     22445
     22446
     22447
     22448
     22449
     22450
     22451  if test $ac_cv_have_decl_strerror_r = no; then
     22452    HAVE_DECL_STRERROR_R=0
     22453  fi
     22454
     22455  if test $ac_cv_func_strerror_r = yes; then
     22456    if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
     22457      if test $gl_cv_func_strerror_r_posix_signature = yes; then
     22458        case "$gl_cv_func_strerror_r_works" in
     22459                    *no) REPLACE_STRERROR_R=1 ;;
     22460        esac
     22461      else
     22462                REPLACE_STRERROR_R=1
     22463      fi
     22464    else
     22465                  REPLACE_STRERROR_R=1
     22466    fi
     22467  fi
     22468
     22469
     22470
     22471    HAVE_PSELECT=1;
     22472  REPLACE_PSELECT=0;
     22473  REPLACE_SELECT=0;
     22474
     22475
     22476
     22477
     22478
     22479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
     22480printf %s "checking whether <sys/select.h> is self-contained... " >&6; }
     22481if test ${gl_cv_header_sys_select_h_selfcontained+y}
     22482then :
     22483  printf %s "(cached) " >&6
     22484else case e in #(
     22485  e)
     22486                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22487/* end confdefs.h.  */
     22488#include <sys/select.h>
     22489int
     22490main (void)
     22491{
     22492struct timeval b;
     22493  ;
     22494  return 0;
     22495}
     22496_ACEOF
     22497if ac_fn_c_try_compile "$LINENO"
     22498then :
     22499  gl_cv_header_sys_select_h_selfcontained=yes
     22500else case e in #(
     22501  e) gl_cv_header_sys_select_h_selfcontained=no ;;
     22502esac
     22503fi
     22504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     22505                        if test $gl_cv_header_sys_select_h_selfcontained = yes; then
     22506        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22507/* end confdefs.h.  */
     22508#include <sys/select.h>
     22509int
     22510main (void)
     22511{
     22512int memset; int bzero;
     22513  ;
     22514  return 0;
     22515}
     22516
     22517_ACEOF
     22518if ac_fn_c_try_compile "$LINENO"
     22519then :
     22520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22521/* end confdefs.h.  */
     22522#include <sys/select.h>
     22523int
     22524main (void)
     22525{
     22526
     22527                  #undef memset
     22528                  #define memset nonexistent_memset
     22529                  extern
     22530                  #ifdef __cplusplus
     22531                  "C"
     22532                  #endif
     22533                  void *memset (void *, int, unsigned long);
     22534                  #undef bzero
     22535                  #define bzero nonexistent_bzero
     22536                  extern
     22537                  #ifdef __cplusplus
     22538                  "C"
     22539                  #endif
     22540                  void bzero (void *, unsigned long);
     22541                  fd_set fds;
     22542                  FD_ZERO (&fds);
     22543
     22544  ;
     22545  return 0;
     22546}
     22547
     22548_ACEOF
     22549if ac_fn_c_try_link "$LINENO"
     22550then :
     22551
     22552else case e in #(
     22553  e) gl_cv_header_sys_select_h_selfcontained=no ;;
     22554esac
     22555fi
     22556rm -f core conftest.err conftest.$ac_objext conftest.beam \
     22557    conftest$ac_exeext conftest.$ac_ext
     22558
     22559fi
     22560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     22561      fi
     22562     ;;
     22563esac
     22564fi
     22565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
     22566printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; }
     22567
     22568
     22569
     22570
     22571
     22572
     22573
     22574
     22575
     22576     if test $gl_cv_have_include_next = yes; then
     22577       gl_cv_next_sys_select_h='<'sys/select.h'>'
     22578     else
     22579       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
     22580printf %s "checking absolute name of <sys/select.h>... " >&6; }
     22581if test ${gl_cv_next_sys_select_h+y}
     22582then :
     22583  printf %s "(cached) " >&6
     22584else case e in #(
     22585  e)
     22586             if test $ac_cv_header_sys_select_h = yes; then
     22587
     22588
     22589
     22590
     22591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22592/* end confdefs.h.  */
     22593#include <sys/select.h>
     22594_ACEOF
     22595                case "$host_os" in
     22596    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     22597    *)    gl_absname_cpp="$ac_cpp" ;;
     22598  esac
     22599
     22600  case "$host_os" in
     22601    mingw*)
     22602                                          gl_dirsep_regex='[/\\]'
     22603      ;;
     22604    *)
     22605      gl_dirsep_regex='\/'
     22606      ;;
     22607  esac
     22608      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     22609  gl_header_literal_regex=`echo 'sys/select.h' \
     22610                           | sed -e "$gl_make_literal_regex_sed"`
     22611  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     22612      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     22613      s|^/[^/]|//&|
     22614      p
     22615      q
     22616    }'
     22617
     22618        gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     22619  sed -n "$gl_absolute_header_sed"`
     22620
     22621          gl_header=$gl_cv_absolute_sys_select_h
     22622          gl_cv_next_sys_select_h='"'$gl_header'"'
     22623          else
     22624               gl_cv_next_sys_select_h='<'sys/select.h'>'
     22625             fi
     22626
     22627          ;;
     22628esac
     22629fi
     22630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
     22631printf "%s\n" "$gl_cv_next_sys_select_h" >&6; }
     22632     fi
     22633     NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
     22634
     22635     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     22636       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     22637       gl_next_as_first_directive='<'sys/select.h'>'
     22638     else
     22639       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     22640       gl_next_as_first_directive=$gl_cv_next_sys_select_h
     22641     fi
     22642     NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
     22643
     22644
     22645
     22646
     22647  if test $ac_cv_header_sys_select_h = yes; then
     22648    HAVE_SYS_SELECT_H=1
     22649  else
     22650    HAVE_SYS_SELECT_H=0
     22651  fi
     22652
     22653
     22654
     22655
     22656
     22657  if test $ac_cv_header_sys_socket_h != yes; then
     22658                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     22659if test "x$ac_cv_header_winsock2_h" = xyes
     22660then :
     22661  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     22662
     22663fi
     22664
     22665  fi
     22666  if test "$ac_cv_header_winsock2_h" = yes; then
     22667    HAVE_WINSOCK2_H=1
     22668    UNISTD_H_HAVE_WINSOCK2_H=1
     22669    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     22670  else
     22671    HAVE_WINSOCK2_H=0
     22672  fi
     22673
     22674
     22675
     22676
     22677
     22678
     22679
     22680
     22681
     22682
     22683  GL_GNULIB_PSELECT=0
     22684
     22685
     22686
     22687  GL_GNULIB_SELECT=0
     22688
     22689
     22690
     22691
     22692
     22693    HAVE_PTHREAD_T=1;
     22694  HAVE_PTHREAD_SPINLOCK_T=1;
     22695  HAVE_PTHREAD_CREATE_DETACHED=1;
     22696  HAVE_PTHREAD_MUTEX_RECURSIVE=1;
     22697  HAVE_PTHREAD_MUTEX_ROBUST=1;
     22698  HAVE_PTHREAD_PROCESS_SHARED=1;
     22699  HAVE_PTHREAD_CREATE=1;
     22700  HAVE_PTHREAD_ATTR_INIT=1;
     22701  HAVE_PTHREAD_ATTR_GETDETACHSTATE=1;
     22702  HAVE_PTHREAD_ATTR_SETDETACHSTATE=1;
     22703  HAVE_PTHREAD_ATTR_DESTROY=1;
     22704  HAVE_PTHREAD_SELF=1;
     22705  HAVE_PTHREAD_EQUAL=1;
     22706  HAVE_PTHREAD_DETACH=1;
     22707  HAVE_PTHREAD_JOIN=1;
     22708  HAVE_PTHREAD_EXIT=1;
     22709  HAVE_PTHREAD_ONCE=1;
     22710  HAVE_PTHREAD_MUTEX_INIT=1;
     22711  HAVE_PTHREAD_MUTEXATTR_INIT=1;
     22712  HAVE_PTHREAD_MUTEXATTR_GETTYPE=1;
     22713  HAVE_PTHREAD_MUTEXATTR_SETTYPE=1;
     22714  HAVE_PTHREAD_MUTEXATTR_GETROBUST=1;
     22715  HAVE_PTHREAD_MUTEXATTR_SETROBUST=1;
     22716  HAVE_PTHREAD_MUTEXATTR_DESTROY=1;
     22717  HAVE_PTHREAD_MUTEX_LOCK=1;
     22718  HAVE_PTHREAD_MUTEX_TRYLOCK=1;
     22719  HAVE_PTHREAD_MUTEX_TIMEDLOCK=1;
     22720  HAVE_PTHREAD_MUTEX_UNLOCK=1;
     22721  HAVE_PTHREAD_MUTEX_DESTROY=1;
     22722  HAVE_PTHREAD_RWLOCK_INIT=1;
     22723  HAVE_PTHREAD_RWLOCKATTR_INIT=1;
     22724  HAVE_PTHREAD_RWLOCKATTR_DESTROY=1;
     22725  HAVE_PTHREAD_RWLOCK_RDLOCK=1;
     22726  HAVE_PTHREAD_RWLOCK_WRLOCK=1;
     22727  HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1;
     22728  HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1;
     22729  HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1;
     22730  HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1;
     22731  HAVE_PTHREAD_RWLOCK_UNLOCK=1;
     22732  HAVE_PTHREAD_RWLOCK_DESTROY=1;
     22733  HAVE_PTHREAD_COND_INIT=1;
     22734  HAVE_PTHREAD_CONDATTR_INIT=1;
     22735  HAVE_PTHREAD_CONDATTR_DESTROY=1;
     22736  HAVE_PTHREAD_COND_WAIT=1;
     22737  HAVE_PTHREAD_COND_TIMEDWAIT=1;
     22738  HAVE_PTHREAD_COND_SIGNAL=1;
     22739  HAVE_PTHREAD_COND_BROADCAST=1;
     22740  HAVE_PTHREAD_COND_DESTROY=1;
     22741  HAVE_PTHREAD_KEY_CREATE=1;
     22742  HAVE_PTHREAD_SETSPECIFIC=1;
     22743  HAVE_PTHREAD_GETSPECIFIC=1;
     22744  HAVE_PTHREAD_KEY_DELETE=1;
     22745  HAVE_PTHREAD_SPIN_INIT=1;
     22746  HAVE_PTHREAD_SPIN_LOCK=1;
     22747  HAVE_PTHREAD_SPIN_TRYLOCK=1;
     22748  HAVE_PTHREAD_SPIN_UNLOCK=1;
     22749  HAVE_PTHREAD_SPIN_DESTROY=1;
     22750  REPLACE_PTHREAD_CREATE=0;
     22751  REPLACE_PTHREAD_ATTR_INIT=0;
     22752  REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0;
     22753  REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0;
     22754  REPLACE_PTHREAD_ATTR_DESTROY=0;
     22755  REPLACE_PTHREAD_SELF=0;
     22756  REPLACE_PTHREAD_EQUAL=0;
     22757  REPLACE_PTHREAD_DETACH=0;
     22758  REPLACE_PTHREAD_JOIN=0;
     22759  REPLACE_PTHREAD_EXIT=0;
     22760  REPLACE_PTHREAD_ONCE=0;
     22761  REPLACE_PTHREAD_MUTEX_INIT=0;
     22762  REPLACE_PTHREAD_MUTEXATTR_INIT=0;
     22763  REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0;
     22764  REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0;
     22765  REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0;
     22766  REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0;
     22767  REPLACE_PTHREAD_MUTEXATTR_DESTROY=0;
     22768  REPLACE_PTHREAD_MUTEX_LOCK=0;
     22769  REPLACE_PTHREAD_MUTEX_TRYLOCK=0;
     22770  REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0;
     22771  REPLACE_PTHREAD_MUTEX_UNLOCK=0;
     22772  REPLACE_PTHREAD_MUTEX_DESTROY=0;
     22773  REPLACE_PTHREAD_RWLOCK_INIT=0;
     22774  REPLACE_PTHREAD_RWLOCKATTR_INIT=0;
     22775  REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0;
     22776  REPLACE_PTHREAD_RWLOCK_RDLOCK=0;
     22777  REPLACE_PTHREAD_RWLOCK_WRLOCK=0;
     22778  REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0;
     22779  REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0;
     22780  REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0;
     22781  REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0;
     22782  REPLACE_PTHREAD_RWLOCK_UNLOCK=0;
     22783  REPLACE_PTHREAD_RWLOCK_DESTROY=0;
     22784  REPLACE_PTHREAD_COND_INIT=0;
     22785  REPLACE_PTHREAD_CONDATTR_INIT=0;
     22786  REPLACE_PTHREAD_CONDATTR_DESTROY=0;
     22787  REPLACE_PTHREAD_COND_WAIT=0;
     22788  REPLACE_PTHREAD_COND_TIMEDWAIT=0;
     22789  REPLACE_PTHREAD_COND_SIGNAL=0;
     22790  REPLACE_PTHREAD_COND_BROADCAST=0;
     22791  REPLACE_PTHREAD_COND_DESTROY=0;
     22792  REPLACE_PTHREAD_KEY_CREATE=0;
     22793  REPLACE_PTHREAD_SETSPECIFIC=0;
     22794  REPLACE_PTHREAD_GETSPECIFIC=0;
     22795  REPLACE_PTHREAD_KEY_DELETE=0;
     22796  REPLACE_PTHREAD_SPIN_INIT=0;
     22797  REPLACE_PTHREAD_SPIN_LOCK=0;
     22798  REPLACE_PTHREAD_SPIN_TRYLOCK=0;
     22799  REPLACE_PTHREAD_SPIN_UNLOCK=0;
     22800  REPLACE_PTHREAD_SPIN_DESTROY=0;
     22801
     22802
     22803
     22804
     22805
     22806
     22807
     22808
     22809
     22810
     22811
     22812
     22813
     22814
     22815
     22816
     22817
     22818     if test $gl_cv_have_include_next = yes; then
     22819       gl_cv_next_pthread_h='<'pthread.h'>'
     22820     else
     22821       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
     22822printf %s "checking absolute name of <pthread.h>... " >&6; }
     22823if test ${gl_cv_next_pthread_h+y}
     22824then :
     22825  printf %s "(cached) " >&6
     22826else case e in #(
     22827  e)
     22828             if test $ac_cv_header_pthread_h = yes; then
     22829
     22830
     22831
     22832
     22833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22834/* end confdefs.h.  */
     22835#include <pthread.h>
     22836_ACEOF
     22837                case "$host_os" in
     22838    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     22839    *)    gl_absname_cpp="$ac_cpp" ;;
     22840  esac
     22841
     22842  case "$host_os" in
     22843    mingw*)
     22844                                          gl_dirsep_regex='[/\\]'
     22845      ;;
     22846    *)
     22847      gl_dirsep_regex='\/'
     22848      ;;
     22849  esac
     22850      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     22851  gl_header_literal_regex=`echo 'pthread.h' \
     22852                           | sed -e "$gl_make_literal_regex_sed"`
     22853  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     22854      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     22855      s|^/[^/]|//&|
     22856      p
     22857      q
     22858    }'
     22859
     22860        gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     22861  sed -n "$gl_absolute_header_sed"`
     22862
     22863          gl_header=$gl_cv_absolute_pthread_h
     22864          gl_cv_next_pthread_h='"'$gl_header'"'
     22865          else
     22866               gl_cv_next_pthread_h='<'pthread.h'>'
     22867             fi
     22868
     22869          ;;
     22870esac
     22871fi
     22872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
     22873printf "%s\n" "$gl_cv_next_pthread_h" >&6; }
     22874     fi
     22875     NEXT_PTHREAD_H=$gl_cv_next_pthread_h
     22876
     22877     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     22878       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     22879       gl_next_as_first_directive='<'pthread.h'>'
     22880     else
     22881       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     22882       gl_next_as_first_directive=$gl_cv_next_pthread_h
     22883     fi
     22884     NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
     22885
     22886
     22887
     22888
     22889  if test $ac_cv_header_pthread_h = yes; then
     22890    HAVE_PTHREAD_H=1
     22891
     22892
     22893      if { case "$host_os" in mingw*) true;; *) false;; esac; } \
     22894         && test $gl_threads_api = windows; then
     22895        HAVE_PTHREAD_H=0
     22896      fi
     22897
     22898  else
     22899    HAVE_PTHREAD_H=0
     22900  fi
     22901
     22902
     22903  ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
     22904     #if HAVE_PTHREAD_H
     22905      #include <pthread.h>
     22906     #endif
     22907"
     22908if test "x$ac_cv_type_pthread_t" = xyes
     22909then :
     22910
     22911printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h
     22912
     22913
     22914fi
     22915ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
     22916     #if HAVE_PTHREAD_H
     22917      #include <pthread.h>
     22918     #endif
     22919"
     22920if test "x$ac_cv_type_pthread_spinlock_t" = xyes
     22921then :
     22922
     22923printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
     22924
     22925
     22926fi
     22927
     22928  if test $ac_cv_type_pthread_t != yes; then
     22929    HAVE_PTHREAD_T=0
     22930  fi
     22931  if test $ac_cv_type_pthread_spinlock_t != yes; then
     22932    HAVE_PTHREAD_SPINLOCK_T=0
     22933  fi
     22934
     22935
     22936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
     22937printf %s "checking for PTHREAD_CREATE_DETACHED... " >&6; }
     22938if test ${gl_cv_const_PTHREAD_CREATE_DETACHED+y}
     22939then :
     22940  printf %s "(cached) " >&6
     22941else case e in #(
     22942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22943/* end confdefs.h.  */
     22944#include <pthread.h>
     22945            int x = PTHREAD_CREATE_DETACHED;
     22946
     22947int
     22948main (void)
     22949{
     22950
     22951  ;
     22952  return 0;
     22953}
     22954_ACEOF
     22955if ac_fn_c_try_compile "$LINENO"
     22956then :
     22957  gl_cv_const_PTHREAD_CREATE_DETACHED=yes
     22958else case e in #(
     22959  e) gl_cv_const_PTHREAD_CREATE_DETACHED=no ;;
     22960esac
     22961fi
     22962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     22963     ;;
     22964esac
     22965fi
     22966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
     22967printf "%s\n" "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
     22968  if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
     22969    HAVE_PTHREAD_CREATE_DETACHED=0
     22970  fi
     22971
     22972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
     22973printf %s "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
     22974if test ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+y}
     22975then :
     22976  printf %s "(cached) " >&6
     22977else case e in #(
     22978  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     22979/* end confdefs.h.  */
     22980#include <pthread.h>
     22981            int x = PTHREAD_MUTEX_RECURSIVE;
     22982
     22983int
     22984main (void)
     22985{
     22986
     22987  ;
     22988  return 0;
     22989}
     22990_ACEOF
     22991if ac_fn_c_try_compile "$LINENO"
     22992then :
     22993  gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
     22994else case e in #(
     22995  e) gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no ;;
     22996esac
     22997fi
     22998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     22999     ;;
     23000esac
     23001fi
     23002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
     23003printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
     23004  if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
     23005    HAVE_PTHREAD_MUTEX_RECURSIVE=0
     23006  fi
     23007
     23008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
     23009printf %s "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
     23010if test ${gl_cv_const_PTHREAD_MUTEX_ROBUST+y}
     23011then :
     23012  printf %s "(cached) " >&6
     23013else case e in #(
     23014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23015/* end confdefs.h.  */
     23016#include <pthread.h>
     23017            int x = PTHREAD_MUTEX_ROBUST;
     23018
     23019int
     23020main (void)
     23021{
     23022
     23023  ;
     23024  return 0;
     23025}
     23026_ACEOF
     23027if ac_fn_c_try_compile "$LINENO"
     23028then :
     23029  gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
     23030else case e in #(
     23031  e) gl_cv_const_PTHREAD_MUTEX_ROBUST=no ;;
     23032esac
     23033fi
     23034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     23035     ;;
     23036esac
     23037fi
     23038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
     23039printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
     23040  if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
     23041    HAVE_PTHREAD_MUTEX_ROBUST=0
     23042  fi
     23043
     23044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
     23045printf %s "checking for PTHREAD_PROCESS_SHARED... " >&6; }
     23046if test ${gl_cv_const_PTHREAD_PROCESS_SHARED+y}
     23047then :
     23048  printf %s "(cached) " >&6
     23049else case e in #(
     23050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23051/* end confdefs.h.  */
     23052#include <pthread.h>
     23053            int x = PTHREAD_PROCESS_SHARED;
     23054
     23055int
     23056main (void)
     23057{
     23058
     23059  ;
     23060  return 0;
     23061}
     23062_ACEOF
     23063if ac_fn_c_try_compile "$LINENO"
     23064then :
     23065  gl_cv_const_PTHREAD_PROCESS_SHARED=yes
     23066else case e in #(
     23067  e) gl_cv_const_PTHREAD_PROCESS_SHARED=no ;;
     23068esac
     23069fi
     23070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     23071     ;;
     23072esac
     23073fi
     23074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
     23075printf "%s\n" "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
     23076  if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
     23077    HAVE_PTHREAD_PROCESS_SHARED=0
     23078  fi
     23079
     23080
     23081
     23082
     23083
     23084
     23085
     23086    LIB_PTHREAD="$LIBPMULTITHREAD"
     23087
     23088
     23089
     23090
     23091  GL_GNULIB_PTHREAD_THREAD=0
     23092
     23093
     23094
     23095  GL_GNULIB_PTHREAD_ONCE=0
     23096
     23097
     23098
     23099  GL_GNULIB_PTHREAD_MUTEX=0
     23100
     23101
     23102
     23103  GL_GNULIB_PTHREAD_RWLOCK=0
     23104
     23105
     23106
     23107  GL_GNULIB_PTHREAD_COND=0
     23108
     23109
     23110
     23111  GL_GNULIB_PTHREAD_TSS=0
     23112
     23113
     23114
     23115  GL_GNULIB_PTHREAD_SPIN=0
     23116
     23117
     23118
     23119  GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0
     23120
     23121
     23122
     23123
     23124    HAVE_POSIX_SIGNALBLOCKING=1;
     23125  HAVE_PTHREAD_SIGMASK=1;
     23126  HAVE_RAISE=1;
     23127  HAVE_SIGSET_T=1;
     23128  HAVE_SIGINFO_T=1;
     23129  HAVE_SIGACTION=1;
     23130  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
     23131
     23132  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
     23133
     23134  HAVE_SIGHANDLER_T=1;
     23135  REPLACE_PTHREAD_SIGMASK=0;
     23136  REPLACE_RAISE=0;
     23137
     23138
     23139
     23140
     23141  GL_GNULIB_PTHREAD_SIGMASK=0
     23142
     23143
     23144
     23145  GL_GNULIB_RAISE=0
     23146
     23147
     23148
     23149  GL_GNULIB_SIGNAL_H_SIGPIPE=0
     23150
     23151
     23152
     23153  GL_GNULIB_SIGPROCMASK=0
     23154
     23155
     23156
     23157  GL_GNULIB_SIGACTION=0
     23158
     23159
     23160
     23161
     23162  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
     23163      #include <signal.h>
     23164      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
     23165      #include <sys/types.h>
     23166
     23167"
     23168if test "x$ac_cv_type_sigset_t" = xyes
     23169then :
     23170
     23171printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
     23172
     23173gl_cv_type_sigset_t=yes
     23174else case e in #(
     23175  e) gl_cv_type_sigset_t=no ;;
     23176esac
     23177fi
     23178
     23179  if test $gl_cv_type_sigset_t != yes; then
     23180    HAVE_SIGSET_T=0
     23181  fi
     23182
     23183
     23184    HAVE_SCHED_YIELD=1;
     23185  REPLACE_SCHED_YIELD=0;
     23186
     23187
     23188
     23189
     23190
     23191
     23192
     23193
     23194  ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
     23195       #include <sys/cdefs.h>
     23196      #endif
     23197
     23198"
     23199if test "x$ac_cv_header_sched_h" = xyes
     23200then :
     23201  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
     23202
     23203fi
     23204
     23205
     23206
     23207
     23208
     23209
     23210
     23211
     23212
     23213     if test $gl_cv_have_include_next = yes; then
     23214       gl_cv_next_sched_h='<'sched.h'>'
     23215     else
     23216       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
     23217printf %s "checking absolute name of <sched.h>... " >&6; }
     23218if test ${gl_cv_next_sched_h+y}
     23219then :
     23220  printf %s "(cached) " >&6
     23221else case e in #(
     23222  e)
     23223
     23224
     23225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23226/* end confdefs.h.  */
     23227#include <sched.h>
     23228_ACEOF
     23229                case "$host_os" in
     23230    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     23231    *)    gl_absname_cpp="$ac_cpp" ;;
     23232  esac
     23233
     23234  case "$host_os" in
     23235    mingw*)
     23236                                          gl_dirsep_regex='[/\\]'
     23237      ;;
     23238    *)
     23239      gl_dirsep_regex='\/'
     23240      ;;
     23241  esac
     23242      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     23243  gl_header_literal_regex=`echo 'sched.h' \
     23244                           | sed -e "$gl_make_literal_regex_sed"`
     23245  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     23246      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     23247      s|^/[^/]|//&|
     23248      p
     23249      q
     23250    }'
     23251
     23252        gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     23253  sed -n "$gl_absolute_header_sed"`
     23254
     23255          gl_header=$gl_cv_absolute_sched_h
     23256          gl_cv_next_sched_h='"'$gl_header'"'
     23257
     23258          ;;
     23259esac
     23260fi
     23261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
     23262printf "%s\n" "$gl_cv_next_sched_h" >&6; }
     23263     fi
     23264     NEXT_SCHED_H=$gl_cv_next_sched_h
     23265
     23266     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     23267       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     23268       gl_next_as_first_directive='<'sched.h'>'
     23269     else
     23270       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     23271       gl_next_as_first_directive=$gl_cv_next_sched_h
     23272     fi
     23273     NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
     23274
     23275
     23276
     23277
     23278
     23279  if test "$ac_cv_header_sched_h" = yes; then
     23280    HAVE_SCHED_H=1
     23281  else
     23282    HAVE_SCHED_H=0
     23283  fi
     23284
     23285
     23286  if test "$HAVE_SCHED_H" = 1; then
     23287    ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
     23288         #include <sys/cdefs.h>
     23289        #endif
     23290        #include <sched.h>
     23291
     23292"
     23293if test "x$ac_cv_type_struct_sched_param" = xyes
     23294then :
     23295  HAVE_STRUCT_SCHED_PARAM=1
     23296else case e in #(
     23297  e) HAVE_STRUCT_SCHED_PARAM=0 ;;
     23298esac
     23299fi
     23300
     23301  else
     23302    HAVE_STRUCT_SCHED_PARAM=0
     23303    case "$host_os" in
     23304      os2*)
     23305                ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
     23306"
     23307if test "x$ac_cv_type_struct_sched_param" = xyes
     23308then :
     23309  HAVE_STRUCT_SCHED_PARAM=1
     23310fi
     23311
     23312        ;;
     23313      vms)
     23314                ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
     23315"
     23316if test "x$ac_cv_type_struct_sched_param" = xyes
     23317then :
     23318  HAVE_STRUCT_SCHED_PARAM=1
     23319fi
     23320
     23321        ;;
     23322    esac
     23323  fi
     23324
     23325
     23326  if test "$ac_cv_header_sys_cdefs_h" = yes; then
     23327    HAVE_SYS_CDEFS_H=1
     23328  else
     23329    HAVE_SYS_CDEFS_H=0
     23330  fi
     23331
     23332
     23333
     23334
     23335
     23336
     23337
     23338
     23339
     23340
     23341  GL_GNULIB_SCHED_YIELD=0
     23342
     23343
     23344
     23345
     23346
     23347
     23348
     23349
     23350  if test $ac_cv_header_sys_socket_h != yes; then
     23351                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     23352if test "x$ac_cv_header_winsock2_h" = xyes
     23353then :
     23354  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     23355
     23356fi
     23357
     23358  fi
     23359  if test "$ac_cv_header_winsock2_h" = yes; then
     23360    HAVE_WINSOCK2_H=1
     23361    UNISTD_H_HAVE_WINSOCK2_H=1
     23362    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     23363  else
     23364    HAVE_WINSOCK2_H=0
     23365  fi
     23366
     23367   LIBSOCKET=
     23368  if test $HAVE_WINSOCK2_H = 1; then
     23369                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5
     23370printf %s "checking for WSAStartup... " >&6; }
     23371if test ${gl_cv_func_wsastartup+y}
     23372then :
     23373  printf %s "(cached) " >&6
     23374else case e in #(
     23375  e)
     23376       gl_save_LIBS="$LIBS"
     23377       LIBS="$LIBS -lws2_32"
     23378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23379/* end confdefs.h.  */
     23380
     23381#ifdef HAVE_WINSOCK2_H
     23382# include <winsock2.h>
     23383#endif
     23384int
     23385main (void)
     23386{
     23387
     23388            WORD wVersionRequested = MAKEWORD(1, 1);
     23389            WSADATA wsaData;
     23390            int err = WSAStartup(wVersionRequested, &wsaData);
     23391            WSACleanup ();
     23392
     23393  ;
     23394  return 0;
     23395}
     23396
     23397_ACEOF
     23398if ac_fn_c_try_link "$LINENO"
     23399then :
     23400  gl_cv_func_wsastartup=yes
     23401else case e in #(
     23402  e) gl_cv_func_wsastartup=no ;;
     23403esac
     23404fi
     23405rm -f core conftest.err conftest.$ac_objext conftest.beam \
     23406    conftest$ac_exeext conftest.$ac_ext
     23407       LIBS="$gl_save_LIBS"
     23408       ;;
     23409esac
     23410fi
     23411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
     23412printf "%s\n" "$gl_cv_func_wsastartup" >&6; }
     23413    if test "$gl_cv_func_wsastartup" = "yes"; then
     23414
     23415printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h
     23416
     23417      LIBSOCKET='-lws2_32'
     23418    fi
     23419  else
     23420                                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
     23421printf %s "checking for library containing setsockopt... " >&6; }
     23422if test ${gl_cv_lib_socket+y}
     23423then :
     23424  printf %s "(cached) " >&6
     23425else case e in #(
     23426  e)
     23427      gl_cv_lib_socket=
     23428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23429/* end confdefs.h.  */
     23430extern
     23431#ifdef __cplusplus
     23432"C"
     23433#endif
     23434char setsockopt();
     23435int
     23436main (void)
     23437{
     23438setsockopt();
     23439  ;
     23440  return 0;
     23441}
     23442_ACEOF
     23443if ac_fn_c_try_link "$LINENO"
     23444then :
     23445
     23446else case e in #(
     23447  e) gl_save_LIBS="$LIBS"
     23448         LIBS="$gl_save_LIBS -lsocket"
     23449         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23450/* end confdefs.h.  */
     23451extern
     23452#ifdef __cplusplus
     23453"C"
     23454#endif
     23455char setsockopt();
     23456int
     23457main (void)
     23458{
     23459setsockopt();
     23460  ;
     23461  return 0;
     23462}
     23463_ACEOF
     23464if ac_fn_c_try_link "$LINENO"
     23465then :
     23466  gl_cv_lib_socket="-lsocket"
     23467fi
     23468rm -f core conftest.err conftest.$ac_objext conftest.beam \
     23469    conftest$ac_exeext conftest.$ac_ext
     23470         if test -z "$gl_cv_lib_socket"; then
     23471           LIBS="$gl_save_LIBS -lnetwork"
     23472           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23473/* end confdefs.h.  */
     23474extern
     23475#ifdef __cplusplus
     23476"C"
     23477#endif
     23478char setsockopt();
     23479int
     23480main (void)
     23481{
     23482setsockopt();
     23483  ;
     23484  return 0;
     23485}
     23486_ACEOF
     23487if ac_fn_c_try_link "$LINENO"
     23488then :
     23489  gl_cv_lib_socket="-lnetwork"
     23490fi
     23491rm -f core conftest.err conftest.$ac_objext conftest.beam \
     23492    conftest$ac_exeext conftest.$ac_ext
     23493           if test -z "$gl_cv_lib_socket"; then
     23494             LIBS="$gl_save_LIBS -lnet"
     23495             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23496/* end confdefs.h.  */
     23497extern
     23498#ifdef __cplusplus
     23499"C"
     23500#endif
     23501char setsockopt();
     23502int
     23503main (void)
     23504{
     23505setsockopt();
     23506  ;
     23507  return 0;
     23508}
     23509_ACEOF
     23510if ac_fn_c_try_link "$LINENO"
     23511then :
     23512  gl_cv_lib_socket="-lnet"
     23513fi
     23514rm -f core conftest.err conftest.$ac_objext conftest.beam \
     23515    conftest$ac_exeext conftest.$ac_ext
     23516           fi
     23517         fi
     23518         LIBS="$gl_save_LIBS"
     23519         ;;
     23520esac
     23521fi
     23522rm -f core conftest.err conftest.$ac_objext conftest.beam \
     23523    conftest$ac_exeext conftest.$ac_ext
     23524      if test -z "$gl_cv_lib_socket"; then
     23525        gl_cv_lib_socket="none needed"
     23526      fi
     23527     ;;
     23528esac
     23529fi
     23530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
     23531printf "%s\n" "$gl_cv_lib_socket" >&6; }
     23532    if test "$gl_cv_lib_socket" != "none needed"; then
     23533      LIBSOCKET="$gl_cv_lib_socket"
     23534    fi
     23535  fi
     23536
     23537
     23538
     23539
     23540
     23541
     23542  :
     23543
     23544
     23545ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     23546if test "x$ac_cv_have_decl_setenv" = xyes
     23547then :
     23548  ac_have_decl=1
     23549else case e in #(
     23550  e) ac_have_decl=0 ;;
     23551esac
     23552fi
     23553printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
     23554
     23555
     23556
     23557
     23558
     23559  if test $ac_cv_have_decl_setenv = no; then
     23560    HAVE_DECL_SETENV=0
     23561  fi
     23562
     23563
     23564
     23565
     23566
     23567  ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
     23568if test "x$ac_cv_header_search_h" = xyes
     23569then :
     23570  printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
     23571
     23572fi
     23573
     23574  ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
     23575if test "x$ac_cv_func_tsearch" = xyes
     23576then :
     23577  printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
     23578
     23579fi
     23580
     23581
     23582
     23583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
     23584printf %s "checking for uid_t in sys/types.h... " >&6; }
     23585if test ${ac_cv_type_uid_t+y}
     23586then :
     23587  printf %s "(cached) " >&6
     23588else case e in #(
     23589  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23590/* end confdefs.h.  */
     23591#include <sys/types.h>
     23592
     23593_ACEOF
     23594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     23595  $EGREP_TRADITIONAL "uid_t" >/dev/null 2>&1
     23596then :
     23597  ac_cv_type_uid_t=yes
     23598else case e in #(
     23599  e) ac_cv_type_uid_t=no ;;
     23600esac
     23601fi
     23602rm -rf conftest*
     23603 ;;
     23604esac
     23605fi
     23606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
     23607printf "%s\n" "$ac_cv_type_uid_t" >&6; }
     23608if test $ac_cv_type_uid_t = no; then
     23609
     23610printf "%s\n" "#define uid_t int" >>confdefs.h
     23611
     23612
     23613printf "%s\n" "#define gid_t int" >>confdefs.h
     23614
     23615fi
     23616
     23617
     23618
     23619
     23620
     23621
     23622
     23623
     23624
     23625
     23626
     23627
     23628     if test $gl_cv_have_include_next = yes; then
     23629       gl_cv_next_signal_h='<'signal.h'>'
     23630     else
     23631       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
     23632printf %s "checking absolute name of <signal.h>... " >&6; }
     23633if test ${gl_cv_next_signal_h+y}
     23634then :
     23635  printf %s "(cached) " >&6
     23636else case e in #(
     23637  e)
     23638
     23639
     23640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23641/* end confdefs.h.  */
     23642#include <signal.h>
     23643_ACEOF
     23644                case "$host_os" in
     23645    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     23646    *)    gl_absname_cpp="$ac_cpp" ;;
     23647  esac
     23648
     23649  case "$host_os" in
     23650    mingw*)
     23651                                          gl_dirsep_regex='[/\\]'
     23652      ;;
     23653    *)
     23654      gl_dirsep_regex='\/'
     23655      ;;
     23656  esac
     23657      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     23658  gl_header_literal_regex=`echo 'signal.h' \
     23659                           | sed -e "$gl_make_literal_regex_sed"`
     23660  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     23661      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     23662      s|^/[^/]|//&|
     23663      p
     23664      q
     23665    }'
     23666
     23667        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     23668  sed -n "$gl_absolute_header_sed"`
     23669
     23670          gl_header=$gl_cv_absolute_signal_h
     23671          gl_cv_next_signal_h='"'$gl_header'"'
     23672
     23673          ;;
     23674esac
     23675fi
     23676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
     23677printf "%s\n" "$gl_cv_next_signal_h" >&6; }
     23678     fi
     23679     NEXT_SIGNAL_H=$gl_cv_next_signal_h
     23680
     23681     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     23682       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     23683       gl_next_as_first_directive='<'signal.h'>'
     23684     else
     23685       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     23686       gl_next_as_first_directive=$gl_cv_next_signal_h
     23687     fi
     23688     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
     23689
     23690
     23691
     23692
     23693
     23694# AIX declares sig_atomic_t to already include volatile, and C89 compilers
     23695# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
     23696  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
     23697#include <signal.h>
     23698
     23699"
     23700if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
     23701then :
     23702
     23703else case e in #(
     23704  e) HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 ;;
     23705esac
     23706fi
     23707
     23708
     23709
     23710
     23711
     23712
     23713
     23714  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
     23715#include <signal.h>
     23716
     23717"
     23718if test "x$ac_cv_type_sighandler_t" = xyes
     23719then :
     23720
     23721else case e in #(
     23722  e) HAVE_SIGHANDLER_T=0 ;;
     23723esac
     23724fi
     23725
     23726
     23727
     23728
     23729
     23730
     23731
     23732
     23733
     23734ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     23735if test "x$ac_cv_have_decl_strdup" = xyes
     23736then :
     23737  ac_have_decl=1
     23738else case e in #(
     23739  e) ac_have_decl=0 ;;
     23740esac
     23741fi
     23742printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h
     23743
     23744
     23745
     23746
     23747
     23748
     23749
     23750
     23751  if test $ac_cv_header_sys_ioctl_h = yes; then
     23752    HAVE_SYS_IOCTL_H=1
     23753            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
     23754printf %s "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
     23755if test ${gl_cv_decl_ioctl_in_sys_ioctl_h+y}
     23756then :
     23757  printf %s "(cached) " >&6
     23758else case e in #(
     23759  e)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23760/* end confdefs.h.  */
     23761#include <sys/ioctl.h>
     23762int
     23763main (void)
     23764{
     23765(void) ioctl;
     23766  ;
     23767  return 0;
     23768}
     23769_ACEOF
     23770if ac_fn_c_try_compile "$LINENO"
     23771then :
     23772  gl_cv_decl_ioctl_in_sys_ioctl_h=yes
     23773else case e in #(
     23774  e) gl_cv_decl_ioctl_in_sys_ioctl_h=no ;;
     23775esac
     23776fi
     23777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     23778       ;;
     23779esac
     23780fi
     23781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
     23782printf "%s\n" "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
     23783  else
     23784    HAVE_SYS_IOCTL_H=0
     23785  fi
     23786
     23787
     23788
     23789
     23790
     23791
     23792
     23793
     23794
     23795
     23796     if test $gl_cv_have_include_next = yes; then
     23797       gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
     23798     else
     23799       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
     23800printf %s "checking absolute name of <sys/ioctl.h>... " >&6; }
     23801if test ${gl_cv_next_sys_ioctl_h+y}
     23802then :
     23803  printf %s "(cached) " >&6
     23804else case e in #(
     23805  e)
     23806             if test $ac_cv_header_sys_ioctl_h = yes; then
     23807
     23808
     23809
     23810
     23811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23812/* end confdefs.h.  */
     23813#include <sys/ioctl.h>
     23814_ACEOF
     23815                case "$host_os" in
     23816    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     23817    *)    gl_absname_cpp="$ac_cpp" ;;
     23818  esac
     23819
     23820  case "$host_os" in
     23821    mingw*)
     23822                                          gl_dirsep_regex='[/\\]'
     23823      ;;
     23824    *)
     23825      gl_dirsep_regex='\/'
     23826      ;;
     23827  esac
     23828      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     23829  gl_header_literal_regex=`echo 'sys/ioctl.h' \
     23830                           | sed -e "$gl_make_literal_regex_sed"`
     23831  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     23832      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     23833      s|^/[^/]|//&|
     23834      p
     23835      q
     23836    }'
     23837
     23838        gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     23839  sed -n "$gl_absolute_header_sed"`
     23840
     23841          gl_header=$gl_cv_absolute_sys_ioctl_h
     23842          gl_cv_next_sys_ioctl_h='"'$gl_header'"'
     23843          else
     23844               gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
     23845             fi
     23846
     23847          ;;
     23848esac
     23849fi
     23850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
     23851printf "%s\n" "$gl_cv_next_sys_ioctl_h" >&6; }
     23852     fi
     23853     NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
     23854
     23855     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     23856       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     23857       gl_next_as_first_directive='<'sys/ioctl.h'>'
     23858     else
     23859       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     23860       gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
     23861     fi
     23862     NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
     23863
     23864
     23865
     23866
     23867
     23868
     23869
     23870
     23871
     23872
     23873
     23874
     23875
     23876
     23877
     23878
     23879
     23880
     23881
     23882
     23883
     23884
     23885
     23886
     23887     if test $gl_cv_have_include_next = yes; then
     23888       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
     23889     else
     23890       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
     23891printf %s "checking absolute name of <sys/uio.h>... " >&6; }
     23892if test ${gl_cv_next_sys_uio_h+y}
     23893then :
     23894  printf %s "(cached) " >&6
     23895else case e in #(
     23896  e)
     23897             if test $ac_cv_header_sys_uio_h = yes; then
     23898
     23899
     23900
     23901
     23902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     23903/* end confdefs.h.  */
     23904#include <sys/uio.h>
     23905_ACEOF
     23906                case "$host_os" in
     23907    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     23908    *)    gl_absname_cpp="$ac_cpp" ;;
     23909  esac
     23910
     23911  case "$host_os" in
     23912    mingw*)
     23913                                          gl_dirsep_regex='[/\\]'
     23914      ;;
     23915    *)
     23916      gl_dirsep_regex='\/'
     23917      ;;
     23918  esac
     23919      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     23920  gl_header_literal_regex=`echo 'sys/uio.h' \
     23921                           | sed -e "$gl_make_literal_regex_sed"`
     23922  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     23923      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     23924      s|^/[^/]|//&|
     23925      p
     23926      q
     23927    }'
     23928
     23929        gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     23930  sed -n "$gl_absolute_header_sed"`
     23931
     23932          gl_header=$gl_cv_absolute_sys_uio_h
     23933          gl_cv_next_sys_uio_h='"'$gl_header'"'
     23934          else
     23935               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
     23936             fi
     23937
     23938          ;;
     23939esac
     23940fi
     23941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
     23942printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; }
     23943     fi
     23944     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
     23945
     23946     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     23947       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     23948       gl_next_as_first_directive='<'sys/uio.h'>'
     23949     else
     23950       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     23951       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
     23952     fi
     23953     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
     23954
     23955
     23956
     23957
     23958  if test $ac_cv_header_sys_uio_h = yes; then
     23959    HAVE_SYS_UIO_H=1
     23960  else
     23961    HAVE_SYS_UIO_H=0
     23962  fi
     23963
     23964
     23965
     23966
     23967ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     23968if test "x$ac_cv_have_decl_unsetenv" = xyes
     23969then :
     23970  ac_have_decl=1
     23971else case e in #(
     23972  e) ac_have_decl=0 ;;
     23973esac
     23974fi
     23975printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h
     23976
     23977
     23978
     23979
     23980
     23981      GL_CFLAG_GNULIB_WARNINGS=''
     23982  if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
     23983                                                                        cat > conftest.c <<\EOF
     23984      #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
     23985      -Wno-cast-qual
     23986      -Wno-conversion
     23987      -Wno-float-equal
     23988      -Wno-sign-compare
     23989      -Wno-undef
     23990      -Wno-unused-function
     23991      -Wno-unused-parameter
     23992      #endif
     23993      #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
     23994      -Wno-float-conversion
     23995      #endif
     23996      #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
     23997      -Wimplicit-fallthrough
     23998      #endif
     23999      #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
     24000      -Wno-pedantic
     24001      #endif
     24002      #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
     24003      -Wno-sign-conversion
     24004      -Wno-type-limits
     24005      #endif
     24006      #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
     24007      -Wno-unsuffixed-float-constants
     24008      #endif
     24009EOF
     24010    gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
     24011    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
     24012  (eval $gl_command) 2>&5
     24013  ac_status=$?
     24014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     24015  test $ac_status = 0; }; then
     24016      gl_options=`grep -v '#' conftest.out`
     24017      for word in $gl_options; do
     24018        GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
     24019      done
     24020    fi
     24021    rm -f conftest.c conftest.out
     24022  fi
     24023
     24024
     24025
     24026
     24027   if false; then
     24028  GL_COND_LIBTOOL_TRUE=
     24029  GL_COND_LIBTOOL_FALSE='#'
    741224030else
    7413   echo "$as_me: failed program was:" >&5
    7414 sed 's/^/| /' conftest.$ac_ext >&5
    7415 
    7416 eval "$as_ac_var=no"
    7417 fi
    7418 rm -f conftest.err conftest.$ac_objext \
    7419       conftest$ac_exeext conftest.$ac_ext
    7420 fi
    7421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    7422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    7423 if test `eval echo '${'$as_ac_var'}'` = yes; then
    7424   cat >>confdefs.h <<_ACEOF
    7425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     24031  GL_COND_LIBTOOL_TRUE='#'
     24032  GL_COND_LIBTOOL_FALSE=
     24033fi
     24034
     24035  gl_cond_libtool=false
     24036  gl_libdeps=
     24037  gl_ltlibdeps=
     24038  gl_m4_base='m4'
     24039
     24040
     24041
     24042
     24043
     24044
     24045
     24046
     24047
     24048
     24049
     24050
     24051  gl_source_base='lib'
     24052  gl_source_base_prefix='$(top_build_prefix)lib/'
     24053
     24054
     24055
     24056  LIB_ACL=
     24057  use_acl=0
     24058  if test "$enable_acl" != no; then
     24059        ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
     24060if test "x$ac_cv_header_sys_acl_h" = xyes
     24061then :
     24062  printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
     24063
     24064fi
     24065
     24066    if test $ac_cv_header_sys_acl_h = yes; then
     24067      ac_save_LIBS=$LIBS
     24068
     24069                        if test $use_acl = 0; then
     24070        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
     24071printf %s "checking for library containing acl_get_file... " >&6; }
     24072if test ${ac_cv_search_acl_get_file+y}
     24073then :
     24074  printf %s "(cached) " >&6
     24075else case e in #(
     24076  e) ac_func_search_save_LIBS=$LIBS
     24077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24078/* end confdefs.h.  */
     24079
     24080/* Override any GCC internal prototype to avoid an error.
     24081   Use char because int might match the return type of a GCC
     24082   builtin and then its argument prototype would still apply.
     24083   The 'extern "C"' is for builds by C++ compilers;
     24084   although this is not generally supported in C code, supporting it here
     24085   has little cost and some practical benefit (sr 110532).  */
     24086#ifdef __cplusplus
     24087extern "C"
     24088#endif
     24089char acl_get_file (void);
     24090int
     24091main (void)
     24092{
     24093return acl_get_file ();
     24094  ;
     24095  return 0;
     24096}
    742624097_ACEOF
    7427 
     24098for ac_lib in '' acl pacl
     24099do
     24100  if test -z "$ac_lib"; then
     24101    ac_res="none required"
     24102  else
     24103    ac_res=-l$ac_lib
     24104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     24105  fi
     24106  if ac_fn_c_try_link "$LINENO"
     24107then :
     24108  ac_cv_search_acl_get_file=$ac_res
     24109fi
     24110rm -f core conftest.err conftest.$ac_objext conftest.beam \
     24111    conftest$ac_exeext
     24112  if test ${ac_cv_search_acl_get_file+y}
     24113then :
     24114  break
    742824115fi
    742924116done
    7430 
    7431 echo "$as_me:$LINENO: checking for working mmap" >&5
    7432 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
    7433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
    7434   echo $ECHO_N "(cached) $ECHO_C" >&6
     24117if test ${ac_cv_search_acl_get_file+y}
     24118then :
     24119
     24120else case e in #(
     24121  e) ac_cv_search_acl_get_file=no ;;
     24122esac
     24123fi
     24124rm conftest.$ac_ext
     24125LIBS=$ac_func_search_save_LIBS ;;
     24126esac
     24127fi
     24128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
     24129printf "%s\n" "$ac_cv_search_acl_get_file" >&6; }
     24130ac_res=$ac_cv_search_acl_get_file
     24131if test "$ac_res" != no
     24132then :
     24133  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     24134  if test "$ac_cv_search_acl_get_file" != "none required"; then
     24135             LIB_ACL=$ac_cv_search_acl_get_file
     24136           fi
     24137           ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
     24138if test "x$ac_cv_func_acl_get_file" = xyes
     24139then :
     24140  printf "%s\n" "#define HAVE_ACL_GET_FILE 1" >>confdefs.h
     24141
     24142fi
     24143ac_fn_c_check_func "$LINENO" "acl_get_fd" "ac_cv_func_acl_get_fd"
     24144if test "x$ac_cv_func_acl_get_fd" = xyes
     24145then :
     24146  printf "%s\n" "#define HAVE_ACL_GET_FD 1" >>confdefs.h
     24147
     24148fi
     24149ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
     24150if test "x$ac_cv_func_acl_set_file" = xyes
     24151then :
     24152  printf "%s\n" "#define HAVE_ACL_SET_FILE 1" >>confdefs.h
     24153
     24154fi
     24155ac_fn_c_check_func "$LINENO" "acl_set_fd" "ac_cv_func_acl_set_fd"
     24156if test "x$ac_cv_func_acl_set_fd" = xyes
     24157then :
     24158  printf "%s\n" "#define HAVE_ACL_SET_FD 1" >>confdefs.h
     24159
     24160fi
     24161ac_fn_c_check_func "$LINENO" "acl_free" "ac_cv_func_acl_free"
     24162if test "x$ac_cv_func_acl_free" = xyes
     24163then :
     24164  printf "%s\n" "#define HAVE_ACL_FREE 1" >>confdefs.h
     24165
     24166fi
     24167ac_fn_c_check_func "$LINENO" "acl_from_mode" "ac_cv_func_acl_from_mode"
     24168if test "x$ac_cv_func_acl_from_mode" = xyes
     24169then :
     24170  printf "%s\n" "#define HAVE_ACL_FROM_MODE 1" >>confdefs.h
     24171
     24172fi
     24173ac_fn_c_check_func "$LINENO" "acl_from_text" "ac_cv_func_acl_from_text"
     24174if test "x$ac_cv_func_acl_from_text" = xyes
     24175then :
     24176  printf "%s\n" "#define HAVE_ACL_FROM_TEXT 1" >>confdefs.h
     24177
     24178fi
     24179ac_fn_c_check_func "$LINENO" "acl_delete_def_file" "ac_cv_func_acl_delete_def_file"
     24180if test "x$ac_cv_func_acl_delete_def_file" = xyes
     24181then :
     24182  printf "%s\n" "#define HAVE_ACL_DELETE_DEF_FILE 1" >>confdefs.h
     24183
     24184fi
     24185ac_fn_c_check_func "$LINENO" "acl_extended_file" "ac_cv_func_acl_extended_file"
     24186if test "x$ac_cv_func_acl_extended_file" = xyes
     24187then :
     24188  printf "%s\n" "#define HAVE_ACL_EXTENDED_FILE 1" >>confdefs.h
     24189
     24190fi
     24191ac_fn_c_check_func "$LINENO" "acl_delete_fd_np" "ac_cv_func_acl_delete_fd_np"
     24192if test "x$ac_cv_func_acl_delete_fd_np" = xyes
     24193then :
     24194  printf "%s\n" "#define HAVE_ACL_DELETE_FD_NP 1" >>confdefs.h
     24195
     24196fi
     24197ac_fn_c_check_func "$LINENO" "acl_delete_file_np" "ac_cv_func_acl_delete_file_np"
     24198if test "x$ac_cv_func_acl_delete_file_np" = xyes
     24199then :
     24200  printf "%s\n" "#define HAVE_ACL_DELETE_FILE_NP 1" >>confdefs.h
     24201
     24202fi
     24203ac_fn_c_check_func "$LINENO" "acl_copy_ext_native" "ac_cv_func_acl_copy_ext_native"
     24204if test "x$ac_cv_func_acl_copy_ext_native" = xyes
     24205then :
     24206  printf "%s\n" "#define HAVE_ACL_COPY_EXT_NATIVE 1" >>confdefs.h
     24207
     24208fi
     24209ac_fn_c_check_func "$LINENO" "acl_create_entry_np" "ac_cv_func_acl_create_entry_np"
     24210if test "x$ac_cv_func_acl_create_entry_np" = xyes
     24211then :
     24212  printf "%s\n" "#define HAVE_ACL_CREATE_ENTRY_NP 1" >>confdefs.h
     24213
     24214fi
     24215ac_fn_c_check_func "$LINENO" "acl_to_short_text" "ac_cv_func_acl_to_short_text"
     24216if test "x$ac_cv_func_acl_to_short_text" = xyes
     24217then :
     24218  printf "%s\n" "#define HAVE_ACL_TO_SHORT_TEXT 1" >>confdefs.h
     24219
     24220fi
     24221ac_fn_c_check_func "$LINENO" "acl_free_text" "ac_cv_func_acl_free_text"
     24222if test "x$ac_cv_func_acl_free_text" = xyes
     24223then :
     24224  printf "%s\n" "#define HAVE_ACL_FREE_TEXT 1" >>confdefs.h
     24225
     24226fi
     24227
     24228           # If the acl_get_file bug is detected, don't enable the ACL support.
     24229
     24230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
     24231printf %s "checking for working acl_get_file... " >&6; }
     24232if test ${gl_cv_func_working_acl_get_file+y}
     24233then :
     24234  printf %s "(cached) " >&6
     24235else case e in #(
     24236  e) gl_cv_func_working_acl_get_file=no
     24237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24238/* end confdefs.h.  */
     24239#include <sys/types.h>
     24240           #include <sys/acl.h>
     24241           #include <errno.h>
     24242
     24243int
     24244main (void)
     24245{
     24246acl_t acl = acl_get_file (".", ACL_TYPE_ACCESS);
     24247            return acl ? acl_free (acl) != 0 : errno == ENOENT;
     24248
     24249  ;
     24250  return 0;
     24251}
     24252_ACEOF
     24253if ac_fn_c_try_link "$LINENO"
     24254then :
     24255  if test $cross_compiling = yes; then
     24256          gl_cv_func_working_acl_get_file="guessing yes"
     24257        elif ./conftest$ac_exeext; then
     24258          gl_cv_func_working_acl_get_file=yes
     24259        fi
     24260fi
     24261rm -f core conftest.err conftest.$ac_objext conftest.beam \
     24262    conftest$ac_exeext conftest.$ac_ext ;;
     24263esac
     24264fi
     24265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
     24266printf "%s\n" "$gl_cv_func_working_acl_get_file" >&6; }
     24267  if test "$gl_cv_func_working_acl_get_file" != no
     24268then :
     24269  use_acl=1
     24270fi
     24271
     24272           if test $use_acl = 1; then
     24273                          ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
     24274if test "x$ac_cv_header_acl_libacl_h" = xyes
     24275then :
     24276  printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h
     24277
     24278fi
     24279
     24280
     24281
     24282
     24283
     24284
     24285
     24286
     24287
     24288
     24289  for ac_func in acl_entries
     24290do :
     24291  ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
     24292if test "x$ac_cv_func_acl_entries" = xyes
     24293then :
     24294  printf "%s\n" "#define HAVE_ACL_ENTRIES 1" >>confdefs.h
     24295
     24296else case e in #(
     24297  e)
     24298    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
     24299 ;;
     24300esac
     24301fi
     24302
     24303done
     24304
     24305             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
     24306printf %s "checking for ACL_FIRST_ENTRY... " >&6; }
     24307if test ${gl_cv_acl_ACL_FIRST_ENTRY+y}
     24308then :
     24309  printf %s "(cached) " >&6
     24310else case e in #(
     24311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24312/* end confdefs.h.  */
     24313#include <sys/types.h>
     24314#include <sys/acl.h>
     24315int type = ACL_FIRST_ENTRY;
     24316int
     24317main (void)
     24318{
     24319
     24320  ;
     24321  return 0;
     24322}
     24323_ACEOF
     24324if ac_fn_c_try_compile "$LINENO"
     24325then :
     24326  gl_cv_acl_ACL_FIRST_ENTRY=yes
     24327else case e in #(
     24328  e) gl_cv_acl_ACL_FIRST_ENTRY=no ;;
     24329esac
     24330fi
     24331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     24332esac
     24333fi
     24334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
     24335printf "%s\n" "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
     24336             if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
     24337
     24338printf "%s\n" "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
     24339
     24340             fi
     24341                          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
     24342printf %s "checking for ACL_TYPE_EXTENDED... " >&6; }
     24343if test ${gl_cv_acl_ACL_TYPE_EXTENDED+y}
     24344then :
     24345  printf %s "(cached) " >&6
     24346else case e in #(
     24347  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24348/* end confdefs.h.  */
     24349#include <sys/types.h>
     24350#include <sys/acl.h>
     24351int type = ACL_TYPE_EXTENDED;
     24352int
     24353main (void)
     24354{
     24355
     24356  ;
     24357  return 0;
     24358}
     24359_ACEOF
     24360if ac_fn_c_try_compile "$LINENO"
     24361then :
     24362  gl_cv_acl_ACL_TYPE_EXTENDED=yes
     24363else case e in #(
     24364  e) gl_cv_acl_ACL_TYPE_EXTENDED=no ;;
     24365esac
     24366fi
     24367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     24368esac
     24369fi
     24370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
     24371printf "%s\n" "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
     24372             if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
     24373
     24374printf "%s\n" "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
     24375
     24376             fi
     24377           else
     24378             LIB_ACL=
     24379           fi
     24380
     24381fi
     24382
     24383      fi
     24384
     24385            if test $use_acl = 0; then
     24386        ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
     24387if test "x$ac_cv_func_facl" = xyes
     24388then :
     24389  printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h
     24390
     24391fi
     24392
     24393        if test $ac_cv_func_facl = yes; then
     24394          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
     24395printf %s "checking for library containing acl_trivial... " >&6; }
     24396if test ${ac_cv_search_acl_trivial+y}
     24397then :
     24398  printf %s "(cached) " >&6
     24399else case e in #(
     24400  e) ac_func_search_save_LIBS=$LIBS
     24401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24402/* end confdefs.h.  */
     24403
     24404/* Override any GCC internal prototype to avoid an error.
     24405   Use char because int might match the return type of a GCC
     24406   builtin and then its argument prototype would still apply.
     24407   The 'extern "C"' is for builds by C++ compilers;
     24408   although this is not generally supported in C code, supporting it here
     24409   has little cost and some practical benefit (sr 110532).  */
     24410#ifdef __cplusplus
     24411extern "C"
     24412#endif
     24413char acl_trivial (void);
     24414int
     24415main (void)
     24416{
     24417return acl_trivial ();
     24418  ;
     24419  return 0;
     24420}
     24421_ACEOF
     24422for ac_lib in '' sec
     24423do
     24424  if test -z "$ac_lib"; then
     24425    ac_res="none required"
     24426  else
     24427    ac_res=-l$ac_lib
     24428    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     24429  fi
     24430  if ac_fn_c_try_link "$LINENO"
     24431then :
     24432  ac_cv_search_acl_trivial=$ac_res
     24433fi
     24434rm -f core conftest.err conftest.$ac_objext conftest.beam \
     24435    conftest$ac_exeext
     24436  if test ${ac_cv_search_acl_trivial+y}
     24437then :
     24438  break
     24439fi
     24440done
     24441if test ${ac_cv_search_acl_trivial+y}
     24442then :
     24443
     24444else case e in #(
     24445  e) ac_cv_search_acl_trivial=no ;;
     24446esac
     24447fi
     24448rm conftest.$ac_ext
     24449LIBS=$ac_func_search_save_LIBS ;;
     24450esac
     24451fi
     24452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
     24453printf "%s\n" "$ac_cv_search_acl_trivial" >&6; }
     24454ac_res=$ac_cv_search_acl_trivial
     24455if test "$ac_res" != no
     24456then :
     24457  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     24458  if test "$ac_cv_search_acl_trivial" != "none required"; then
     24459               LIB_ACL=$ac_cv_search_acl_trivial
     24460             fi
     24461
     24462fi
     24463
     24464          ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
     24465if test "x$ac_cv_func_acl_trivial" = xyes
     24466then :
     24467  printf "%s\n" "#define HAVE_ACL_TRIVIAL 1" >>confdefs.h
     24468
     24469fi
     24470
     24471          use_acl=1
     24472        fi
     24473      fi
     24474
     24475            if test $use_acl = 0; then
     24476        ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
     24477if test "x$ac_cv_func_getacl" = xyes
     24478then :
     24479  printf "%s\n" "#define HAVE_GETACL 1" >>confdefs.h
     24480
     24481fi
     24482
     24483        if test $ac_cv_func_getacl = yes; then
     24484          use_acl=1
     24485        fi
     24486                ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
     24487"
     24488if test "x$ac_cv_header_aclv_h" = xyes
     24489then :
     24490  printf "%s\n" "#define HAVE_ACLV_H 1" >>confdefs.h
     24491
     24492fi
     24493
     24494      fi
     24495
     24496            if test $use_acl = 0; then
     24497        ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
     24498if test "x$ac_cv_func_aclx_get" = xyes
     24499then :
     24500  printf "%s\n" "#define HAVE_ACLX_GET 1" >>confdefs.h
     24501
     24502fi
     24503
     24504        if test $ac_cv_func_aclx_get = yes; then
     24505          use_acl=1
     24506        fi
     24507      fi
     24508
     24509            if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
     24510        ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
     24511if test "x$ac_cv_func_statacl" = xyes
     24512then :
     24513  printf "%s\n" "#define HAVE_STATACL 1" >>confdefs.h
     24514
     24515fi
     24516
     24517        if test $ac_cv_func_statacl = yes; then
     24518          use_acl=1
     24519        fi
     24520      fi
     24521
     24522            if test $use_acl = 0; then
     24523        ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
     24524if test "x$ac_cv_func_aclsort" = xyes
     24525then :
     24526  printf "%s\n" "#define HAVE_ACLSORT 1" >>confdefs.h
     24527
     24528fi
     24529
     24530        if test $ac_cv_func_aclsort = yes; then
     24531          use_acl=1
     24532        fi
     24533      fi
     24534
     24535      LIBS=$ac_save_LIBS
     24536    fi
     24537
     24538    if test "$enable_acl$use_acl" = yes0; then
     24539      as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5
     24540    elif test "$enable_acl$use_acl" = auto0; then
     24541      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
     24542printf "%s\n" "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
     24543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be built without ACL support." >&5
     24544printf "%s\n" "$as_me: WARNING: GNU sed will be built without ACL support." >&2;}
     24545    fi
     24546  fi
     24547  test -n "$gl_need_lib_has_acl" && LIB_HAS_ACL=$LIB_ACL
     24548
     24549
     24550printf "%s\n" "#define USE_ACL $use_acl" >>confdefs.h
     24551
     24552  USE_ACL=$use_acl
     24553
     24554
     24555
     24556
     24557  if test $ac_cv_func_alloca_works = no; then
     24558    :
     24559  fi
     24560
     24561  # Define an additional variable used in the Makefile substitution.
     24562  if test $ac_cv_working_alloca_h = yes; then
     24563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
     24564printf %s "checking for alloca as a compiler built-in... " >&6; }
     24565if test ${gl_cv_rpl_alloca+y}
     24566then :
     24567  printf %s "(cached) " >&6
     24568else case e in #(
     24569  e)
     24570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24571/* end confdefs.h.  */
     24572
     24573#if defined __GNUC__ || defined _AIX || defined _MSC_VER
     24574        Need own alloca
     24575#endif
     24576
     24577_ACEOF
     24578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     24579  $EGREP_TRADITIONAL "Need own alloca" >/dev/null 2>&1
     24580then :
     24581  gl_cv_rpl_alloca=yes
     24582else case e in #(
     24583  e) gl_cv_rpl_alloca=no ;;
     24584esac
     24585fi
     24586rm -rf conftest*
     24587
     24588     ;;
     24589esac
     24590fi
     24591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
     24592printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
     24593    if test $gl_cv_rpl_alloca = yes; then
     24594
     24595printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
     24596
     24597      GL_GENERATE_ALLOCA_H=true
     24598    else
     24599                  GL_GENERATE_ALLOCA_H=false
     24600    fi
     24601  else
     24602    GL_GENERATE_ALLOCA_H=true
     24603  fi
     24604
     24605  if test $ac_cv_working_alloca_h = yes; then
     24606    HAVE_ALLOCA_H=1
     24607  else
     24608    HAVE_ALLOCA_H=0
     24609  fi
     24610
     24611
     24612
     24613
     24614
     24615
     24616  case "$GL_GENERATE_ALLOCA_H" in
     24617    false) ALLOCA_H='' ;;
     24618    true)
     24619                  if test -z "$ALLOCA_H"; then
     24620        ALLOCA_H="${gl_source_base_prefix}alloca.h"
     24621      fi
     24622      ;;
     24623    *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
     24624  esac
     24625
     24626
     24627     if $GL_GENERATE_ALLOCA_H; then
     24628  GL_GENERATE_ALLOCA_H_TRUE=
     24629  GL_GENERATE_ALLOCA_H_FALSE='#'
    743524630else
    7436   if test "$cross_compiling" = yes; then
    7437   ac_cv_func_mmap_fixed_mapped=no
     24631  GL_GENERATE_ALLOCA_H_TRUE='#'
     24632  GL_GENERATE_ALLOCA_H_FALSE=
     24633fi
     24634:
     24635    if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
     24636    GL_GENERATE_ALLOCA_H_TRUE='#'
     24637    GL_GENERATE_ALLOCA_H_FALSE='#'
     24638  fi
     24639
     24640
     24641
     24642
     24643
     24644
     24645
     24646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
     24647printf %s "checking whether to enable assertions... " >&6; }
     24648  # Check whether --enable-assert was given.
     24649if test ${enable_assert+y}
     24650then :
     24651  enableval=$enable_assert; if test "x$enableval" = xno
     24652then :
     24653
     24654printf "%s\n" "#define NDEBUG 1" >>confdefs.h
     24655
     24656elif test "x$enableval" != xyes
     24657then :
     24658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
     24659printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
     24660      enable_assert=yes
     24661fi
     24662else case e in #(
     24663  e) enable_assert=yes ;;
     24664esac
     24665fi
     24666
     24667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_assert" >&5
     24668printf "%s\n" "$enable_assert" >&6; }
     24669
     24670
     24671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
     24672printf %s "checking for static_assert... " >&6; }
     24673if test ${gl_cv_static_assert+y}
     24674then :
     24675  printf %s "(cached) " >&6
     24676else case e in #(
     24677  e) gl_save_CFLAGS=$CFLAGS
     24678     for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
     24679      case $gl_working in #(
     24680  *assert.h*) :
     24681    CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
     24682  *) :
     24683     ;;
     24684esac
     24685
     24686      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24687/* end confdefs.h.  */
     24688#if defined __clang__ && __STDC_VERSION__ < 202311
     24689             #pragma clang diagnostic error "-Wc2x-extensions"
     24690             #pragma clang diagnostic error "-Wc++17-extensions"
     24691            #endif
     24692            #ifdef INCLUDE_ASSERT_H
     24693             #include <assert.h>
     24694            #endif
     24695            static_assert (2 + 2 == 4, "arithmetic does not work");
     24696            static_assert (2 + 2 == 4);
     24697
     24698int
     24699main (void)
     24700{
     24701
     24702            static_assert (sizeof (char) == 1, "sizeof does not work");
     24703            static_assert (sizeof (char) == 1);
     24704
     24705  ;
     24706  return 0;
     24707}
     24708_ACEOF
     24709if ac_fn_c_try_compile "$LINENO"
     24710then :
     24711  gl_cv_static_assert=$gl_working
     24712else case e in #(
     24713  e) gl_cv_static_assert=no ;;
     24714esac
     24715fi
     24716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     24717      CFLAGS=$gl_save_CFLAGS
     24718      test "$gl_cv_static_assert" != no && break
     24719     done ;;
     24720esac
     24721fi
     24722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
     24723printf "%s\n" "$gl_cv_static_assert" >&6; }
     24724
     24725  GL_GENERATE_ASSERT_H=false
     24726  case $gl_cv_static_assert in #(
     24727  yes*keyword*) :
     24728
     24729printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
     24730 ;; #(
     24731  no) :
     24732    GL_GENERATE_ASSERT_H=true
     24733
     24734
     24735
     24736
     24737
     24738
     24739
     24740
     24741     if test $gl_cv_have_include_next = yes; then
     24742       gl_cv_next_assert_h='<'assert.h'>'
     24743     else
     24744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
     24745printf %s "checking absolute name of <assert.h>... " >&6; }
     24746if test ${gl_cv_next_assert_h+y}
     24747then :
     24748  printf %s "(cached) " >&6
     24749else case e in #(
     24750  e)
     24751
     24752
     24753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24754/* end confdefs.h.  */
     24755#include <assert.h>
     24756_ACEOF
     24757                case "$host_os" in
     24758    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     24759    *)    gl_absname_cpp="$ac_cpp" ;;
     24760  esac
     24761
     24762  case "$host_os" in
     24763    mingw*)
     24764                                          gl_dirsep_regex='[/\\]'
     24765      ;;
     24766    *)
     24767      gl_dirsep_regex='\/'
     24768      ;;
     24769  esac
     24770      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     24771  gl_header_literal_regex=`echo 'assert.h' \
     24772                           | sed -e "$gl_make_literal_regex_sed"`
     24773  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     24774      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     24775      s|^/[^/]|//&|
     24776      p
     24777      q
     24778    }'
     24779
     24780        gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     24781  sed -n "$gl_absolute_header_sed"`
     24782
     24783          gl_header=$gl_cv_absolute_assert_h
     24784          gl_cv_next_assert_h='"'$gl_header'"'
     24785
     24786          ;;
     24787esac
     24788fi
     24789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
     24790printf "%s\n" "$gl_cv_next_assert_h" >&6; }
     24791     fi
     24792     NEXT_ASSERT_H=$gl_cv_next_assert_h
     24793
     24794     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     24795       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     24796       gl_next_as_first_directive='<'assert.h'>'
     24797     else
     24798       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     24799       gl_next_as_first_directive=$gl_cv_next_assert_h
     24800     fi
     24801     NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
     24802
     24803
     24804
     24805 ;; #(
     24806  *) :
     24807     ;;
     24808esac
     24809
     24810
     24811
     24812
     24813
     24814
     24815
     24816  case "$GL_GENERATE_ASSERT_H" in
     24817    false) ASSERT_H='' ;;
     24818    true)
     24819                  if test -z "$ASSERT_H"; then
     24820        ASSERT_H="${gl_source_base_prefix}assert.h"
     24821      fi
     24822      ;;
     24823    *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
     24824  esac
     24825
     24826
     24827     if $GL_GENERATE_ASSERT_H; then
     24828  GL_GENERATE_ASSERT_H_TRUE=
     24829  GL_GENERATE_ASSERT_H_FALSE='#'
    743824830else
    7439   cat >conftest.$ac_ext <<_ACEOF
    7440 /* confdefs.h.  */
     24831  GL_GENERATE_ASSERT_H_TRUE='#'
     24832  GL_GENERATE_ASSERT_H_FALSE=
     24833fi
     24834:
     24835    if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
     24836    GL_GENERATE_ASSERT_H_TRUE='#'
     24837    GL_GENERATE_ASSERT_H_FALSE='#'
     24838  fi
     24839
     24840
     24841
     24842
     24843
     24844
     24845
     24846
     24847
     24848
     24849
     24850
     24851  if test $ac_cv_func_btowc = no; then
     24852    HAVE_BTOWC=0
     24853  else
     24854
     24855
     24856
     24857
     24858        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
     24859printf %s "checking whether btowc(0) is correct... " >&6; }
     24860if test ${gl_cv_func_btowc_nul+y}
     24861then :
     24862  printf %s "(cached) " >&6
     24863else case e in #(
     24864  e)
     24865        if test "$cross_compiling" = yes
     24866then :
     24867
     24868           case "$host_os" in
     24869                      # Guess no on Cygwin.
     24870             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
     24871                      # Guess yes on native Windows.
     24872             mingw*)  gl_cv_func_btowc_nul="guessing yes" ;;
     24873                      # Guess yes otherwise.
     24874             *)       gl_cv_func_btowc_nul="guessing yes" ;;
     24875           esac
     24876
     24877else case e in #(
     24878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24879/* end confdefs.h.  */
     24880
     24881#include <wchar.h>
     24882int main ()
     24883{
     24884  if (btowc ('\0') != 0)
     24885    return 1;
     24886  return 0;
     24887}
    744124888_ACEOF
    7442 cat confdefs.h >>conftest.$ac_ext
    7443 cat >>conftest.$ac_ext <<_ACEOF
     24889if ac_fn_c_try_run "$LINENO"
     24890then :
     24891  gl_cv_func_btowc_nul=yes
     24892else case e in #(
     24893  e) gl_cv_func_btowc_nul=no ;;
     24894esac
     24895fi
     24896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     24897  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     24898esac
     24899fi
     24900
     24901       ;;
     24902esac
     24903fi
     24904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
     24905printf "%s\n" "$gl_cv_func_btowc_nul" >&6; }
     24906
     24907        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
     24908printf %s "checking whether btowc(EOF) is correct... " >&6; }
     24909if test ${gl_cv_func_btowc_eof+y}
     24910then :
     24911  printf %s "(cached) " >&6
     24912else case e in #(
     24913  e)
     24914                        case "$host_os" in
     24915                  # Guess no on IRIX.
     24916          irix*)  gl_cv_func_btowc_eof="guessing no" ;;
     24917                  # Guess yes on native Windows.
     24918          mingw*) gl_cv_func_btowc_eof="guessing yes" ;;
     24919                  # Guess yes otherwise.
     24920          *)      gl_cv_func_btowc_eof="guessing yes" ;;
     24921        esac
     24922        if test $LOCALE_FR != none; then
     24923          if test "$cross_compiling" = yes
     24924then :
     24925  :
     24926else case e in #(
     24927  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24928/* end confdefs.h.  */
     24929
     24930#include <locale.h>
     24931#include <stdio.h>
     24932#include <wchar.h>
     24933int main ()
     24934{
     24935  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
     24936    {
     24937      if (btowc (EOF) != WEOF)
     24938        return 1;
     24939    }
     24940  return 0;
     24941}
     24942_ACEOF
     24943if ac_fn_c_try_run "$LINENO"
     24944then :
     24945  gl_cv_func_btowc_eof=yes
     24946else case e in #(
     24947  e) gl_cv_func_btowc_eof=no ;;
     24948esac
     24949fi
     24950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     24951  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     24952esac
     24953fi
     24954
     24955        fi
     24956       ;;
     24957esac
     24958fi
     24959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
     24960printf "%s\n" "$gl_cv_func_btowc_eof" >&6; }
     24961
     24962    case "$gl_cv_func_btowc_nul" in
     24963      *yes) ;;
     24964      *) REPLACE_BTOWC=1 ;;
     24965    esac
     24966    case "$gl_cv_func_btowc_eof" in
     24967      *yes) ;;
     24968      *) REPLACE_BTOWC=1 ;;
     24969    esac
     24970  fi
     24971
     24972
     24973     if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
     24974  GL_COND_OBJ_BTOWC_TRUE=
     24975  GL_COND_OBJ_BTOWC_FALSE='#'
     24976else
     24977  GL_COND_OBJ_BTOWC_TRUE='#'
     24978  GL_COND_OBJ_BTOWC_FALSE=
     24979fi
     24980:
     24981    if test -z "${GL_COND_OBJ_BTOWC_TRUE}" && test -z "${GL_COND_OBJ_BTOWC_FALSE}"; then
     24982    GL_COND_OBJ_BTOWC_TRUE='#'
     24983    GL_COND_OBJ_BTOWC_FALSE='#'
     24984  fi
     24985
     24986  if test -z "$GL_COND_OBJ_BTOWC_TRUE"; then :
     24987
     24988
     24989  :
     24990
     24991
     24992fi
     24993
     24994
     24995
     24996
     24997
     24998
     24999
     25000
     25001
     25002
     25003
     25004
     25005
     25006
     25007          GL_GNULIB_BTOWC=1
     25008
     25009
     25010
     25011
     25012
     25013printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
     25014
     25015
     25016
     25017
     25018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
     25019printf %s "checking for __builtin_expect... " >&6; }
     25020if test ${gl_cv___builtin_expect+y}
     25021then :
     25022  printf %s "(cached) " >&6
     25023else case e in #(
     25024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25025/* end confdefs.h.  */
     25026
     25027         int
     25028         main (int argc, char **argv)
     25029         {
     25030           argc = __builtin_expect (argc, 100);
     25031           return argv[argc != 100][0];
     25032         }
     25033_ACEOF
     25034if ac_fn_c_try_link "$LINENO"
     25035then :
     25036  gl_cv___builtin_expect=yes
     25037else case e in #(
     25038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25039/* end confdefs.h.  */
     25040
     25041             #include <builtins.h>
     25042             int
     25043             main (int argc, char **argv)
     25044             {
     25045               argc = __builtin_expect (argc, 100);
     25046               return argv[argc != 100][0];
     25047             }
     25048_ACEOF
     25049if ac_fn_c_try_link "$LINENO"
     25050then :
     25051  gl_cv___builtin_expect="in <builtins.h>"
     25052else case e in #(
     25053  e) gl_cv___builtin_expect=no ;;
     25054esac
     25055fi
     25056rm -f core conftest.err conftest.$ac_objext conftest.beam \
     25057    conftest$ac_exeext conftest.$ac_ext ;;
     25058esac
     25059fi
     25060rm -f core conftest.err conftest.$ac_objext conftest.beam \
     25061    conftest$ac_exeext conftest.$ac_ext ;;
     25062esac
     25063fi
     25064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
     25065printf "%s\n" "$gl_cv___builtin_expect" >&6; }
     25066  if test "$gl_cv___builtin_expect" = yes; then
     25067    printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
     25068
     25069  elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
     25070    printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
     25071
     25072  fi
     25073
     25074
     25075
     25076
     25077
     25078  REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
     25079  if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
     25080
     25081     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
     25082printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
     25083if test ${ac_cv_func_calloc_0_nonnull+y}
     25084then :
     25085  printf %s "(cached) " >&6
     25086else case e in #(
     25087  e) if test $cross_compiling != yes; then
     25088       ac_cv_func_calloc_0_nonnull=yes
     25089       if test "$cross_compiling" = yes
     25090then :
     25091  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     25092printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     25093as_fn_error $? "cannot run test program while cross compiling
     25094See 'config.log' for more details" "$LINENO" 5; }
     25095else case e in #(
     25096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    744425097/* end confdefs.h.  */
    744525098$ac_includes_default
    7446 /* malloc might have been renamed as rpl_malloc. */
    7447 #undef malloc
    7448 
    7449 /* Thanks to Mike Haertel and Jim Avera for this test.
    7450    Here is a matrix of mmap possibilities:
    7451         mmap private not fixed
    7452         mmap private fixed at somewhere currently unmapped
    7453         mmap private fixed at somewhere already mapped
    7454         mmap shared not fixed
    7455         mmap shared fixed at somewhere currently unmapped
    7456         mmap shared fixed at somewhere already mapped
    7457    For private mappings, we should verify that changes cannot be read()
    7458    back from the file, nor mmap's back from the file at a different
    7459    address.  (There have been systems where private was not correctly
    7460    implemented like the infamous i386 svr4.0, and systems where the
    7461    VM page cache was not coherent with the file system buffer cache
    7462    like early versions of FreeBSD and possibly contemporary NetBSD.)
    7463    For shared mappings, we should conversely verify that changes get
    7464    propagated back to all the places they're supposed to be.
    7465 
    7466    Grep wants private fixed already mapped.
    7467    The main things grep needs to know about mmap are:
    7468    * does it exist and is it safe to write into the mmap'd area
    7469    * how to use it (BSD variants)  */
    7470 
     25099int
     25100main (void)
     25101{
     25102int result = 0;
     25103              char * volatile p = calloc (0, 0);
     25104              if (!p)
     25105                result |= 1;
     25106              free (p);
     25107              return result;
     25108
     25109  ;
     25110  return 0;
     25111}
     25112_ACEOF
     25113if ac_fn_c_try_run "$LINENO"
     25114then :
     25115
     25116else case e in #(
     25117  e) ac_cv_func_calloc_0_nonnull=no ;;
     25118esac
     25119fi
     25120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     25121  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     25122esac
     25123fi
     25124
     25125     else
     25126       case "$host_os" in
     25127                        # Guess yes on glibc systems.
     25128         *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
     25129                        # Guess yes on musl systems.
     25130         *-musl*)       ac_cv_func_calloc_0_nonnull="guessing yes" ;;
     25131                        # Guess yes on native Windows.
     25132         mingw*)        ac_cv_func_calloc_0_nonnull="guessing yes" ;;
     25133                        # If we don't know, obey --enable-cross-guesses.
     25134         *)             ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
     25135       esac
     25136     fi
     25137     ;;
     25138esac
     25139fi
     25140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
     25141printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
     25142  case $ac_cv_func_calloc_0_nonnull in #(
     25143  *yes) :
     25144     ;; #(
     25145  *) :
     25146    REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
     25147esac
     25148
     25149  fi
     25150
     25151  if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
     25152
     25153
     25154
     25155
     25156
     25157
     25158
     25159
     25160  gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
     25161
     25162  fi
     25163
     25164
     25165
     25166
     25167
     25168
     25169
     25170
     25171
     25172          GL_GNULIB_CALLOC_GNU=1
     25173
     25174
     25175
     25176
     25177
     25178printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
     25179
     25180
     25181
     25182
     25183
     25184
     25185  if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
     25186    REPLACE_CALLOC_FOR_CALLOC_POSIX=1
     25187  fi
     25188
     25189  if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
     25190
     25191
     25192
     25193
     25194
     25195
     25196
     25197
     25198  gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
     25199
     25200  fi
     25201
     25202
     25203
     25204
     25205
     25206
     25207
     25208
     25209
     25210          GL_GNULIB_CALLOC_POSIX=1
     25211
     25212
     25213
     25214
     25215
     25216printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
     25217
     25218
     25219
     25220
     25221
     25222
     25223  if test $ac_cv_func_canonicalize_file_name = no; then
     25224    HAVE_CANONICALIZE_FILE_NAME=0
     25225    if test $ac_cv_func_realpath = no; then
     25226      HAVE_REALPATH=0
     25227    else
     25228      case "$gl_cv_func_realpath_works" in
     25229        *yes) ;;
     25230        *)    REPLACE_REALPATH=1 ;;
     25231      esac
     25232    fi
     25233  else
     25234    case "$gl_cv_func_realpath_works" in
     25235      *yes)
     25236        ;;
     25237      *)
     25238        REPLACE_CANONICALIZE_FILE_NAME=1
     25239        REPLACE_REALPATH=1
     25240        ;;
     25241    esac
     25242  fi
     25243
     25244
     25245     if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
     25246  GL_COND_OBJ_CANONICALIZE_LGPL_TRUE=
     25247  GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
     25248else
     25249  GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
     25250  GL_COND_OBJ_CANONICALIZE_LGPL_FALSE=
     25251fi
     25252:
     25253    if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then
     25254    GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
     25255    GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
     25256  fi
     25257
     25258
     25259
     25260printf "%s\n" "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
     25261
     25262
     25263
     25264
     25265
     25266
     25267
     25268
     25269
     25270
     25271
     25272          GL_GNULIB_CANONICALIZE_FILE_NAME=1
     25273
     25274
     25275
     25276
     25277
     25278printf "%s\n" "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
     25279
     25280
     25281
     25282
     25283
     25284
     25285
     25286
     25287
     25288
     25289
     25290
     25291          GL_GNULIB_REALPATH=1
     25292
     25293
     25294
     25295
     25296
     25297printf "%s\n" "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
     25298
     25299
     25300
     25301
     25302
     25303
     25304
     25305
     25306
     25307
     25308
     25309
     25310          GL_GNULIB_CHDIR=1
     25311
     25312
     25313
     25314
     25315
     25316printf "%s\n" "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
     25317
     25318
     25319
     25320
     25321
     25322
     25323  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
     25324  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
     25325
     25326  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
     25327  # programs in the package would end up linked with that potentially-shared
     25328  # library, inducing unnecessary run-time overhead.
     25329  LIB_CLOCK_GETTIME=
     25330
     25331  gl_saved_libs=$LIBS
     25332    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
     25333printf %s "checking for library containing clock_gettime... " >&6; }
     25334if test ${ac_cv_search_clock_gettime+y}
     25335then :
     25336  printf %s "(cached) " >&6
     25337else case e in #(
     25338  e) ac_func_search_save_LIBS=$LIBS
     25339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25340/* end confdefs.h.  */
     25341
     25342/* Override any GCC internal prototype to avoid an error.
     25343   Use char because int might match the return type of a GCC
     25344   builtin and then its argument prototype would still apply.
     25345   The 'extern "C"' is for builds by C++ compilers;
     25346   although this is not generally supported in C code, supporting it here
     25347   has little cost and some practical benefit (sr 110532).  */
     25348#ifdef __cplusplus
     25349extern "C"
     25350#endif
     25351char clock_gettime (void);
     25352int
     25353main (void)
     25354{
     25355return clock_gettime ();
     25356  ;
     25357  return 0;
     25358}
     25359_ACEOF
     25360for ac_lib in '' rt posix4
     25361do
     25362  if test -z "$ac_lib"; then
     25363    ac_res="none required"
     25364  else
     25365    ac_res=-l$ac_lib
     25366    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     25367  fi
     25368  if ac_fn_c_try_link "$LINENO"
     25369then :
     25370  ac_cv_search_clock_gettime=$ac_res
     25371fi
     25372rm -f core conftest.err conftest.$ac_objext conftest.beam \
     25373    conftest$ac_exeext
     25374  if test ${ac_cv_search_clock_gettime+y}
     25375then :
     25376  break
     25377fi
     25378done
     25379if test ${ac_cv_search_clock_gettime+y}
     25380then :
     25381
     25382else case e in #(
     25383  e) ac_cv_search_clock_gettime=no ;;
     25384esac
     25385fi
     25386rm conftest.$ac_ext
     25387LIBS=$ac_func_search_save_LIBS ;;
     25388esac
     25389fi
     25390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
     25391printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
     25392ac_res=$ac_cv_search_clock_gettime
     25393if test "$ac_res" != no
     25394then :
     25395  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     25396  test "$ac_cv_search_clock_gettime" = "none required" ||
     25397                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
     25398fi
     25399
     25400    ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
     25401if test "x$ac_cv_func_clock_getres" = xyes
     25402then :
     25403  printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
     25404
     25405fi
     25406ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
     25407if test "x$ac_cv_func_clock_gettime" = xyes
     25408then :
     25409  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
     25410
     25411fi
     25412ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
     25413if test "x$ac_cv_func_clock_settime" = xyes
     25414then :
     25415  printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
     25416
     25417fi
     25418
     25419  LIBS=$gl_saved_libs
     25420
     25421
     25422
     25423printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
     25424
     25425
     25426
     25427
     25428
     25429
     25430    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
     25431      REPLACE_CLOSE=1
     25432    fi
     25433
     25434
     25435
     25436
     25437
     25438
     25439  if test $ac_cv_header_sys_socket_h != yes; then
     25440                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     25441if test "x$ac_cv_header_winsock2_h" = xyes
     25442then :
     25443  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     25444
     25445fi
     25446
     25447  fi
     25448  if test "$ac_cv_header_winsock2_h" = yes; then
     25449    HAVE_WINSOCK2_H=1
     25450    UNISTD_H_HAVE_WINSOCK2_H=1
     25451    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     25452  else
     25453    HAVE_WINSOCK2_H=0
     25454  fi
     25455
     25456
     25457    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
     25458                        REPLACE_CLOSE=1
     25459    fi
     25460
     25461
     25462
     25463
     25464     if test $REPLACE_CLOSE = 1; then
     25465  GL_COND_OBJ_CLOSE_TRUE=
     25466  GL_COND_OBJ_CLOSE_FALSE='#'
     25467else
     25468  GL_COND_OBJ_CLOSE_TRUE='#'
     25469  GL_COND_OBJ_CLOSE_FALSE=
     25470fi
     25471:
     25472    if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
     25473    GL_COND_OBJ_CLOSE_TRUE='#'
     25474    GL_COND_OBJ_CLOSE_FALSE='#'
     25475  fi
     25476
     25477
     25478
     25479
     25480
     25481
     25482
     25483
     25484
     25485
     25486          GL_GNULIB_CLOSE=1
     25487
     25488
     25489
     25490
     25491
     25492printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
     25493
     25494
     25495
     25496
     25497
     25498printf "%s\n" "#define GNULIB_CLOSE_STREAM 1" >>confdefs.h
     25499
     25500
     25501
     25502
     25503
     25504
     25505
     25506
     25507
     25508
     25509
     25510
     25511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
     25512printf %s "checking whether // is distinct from /... " >&6; }
     25513if test ${gl_cv_double_slash_root+y}
     25514then :
     25515  printf %s "(cached) " >&6
     25516else case e in #(
     25517  e)  if test x"$cross_compiling" = xyes ; then
     25518        # When cross-compiling, there is no way to tell whether // is special
     25519        # short of a list of hosts.  However, the only known hosts to date
     25520        # that have a distinct // are Apollo DomainOS (too old to port to),
     25521        # Cygwin, and z/OS.  If anyone knows of another system for which // has
     25522        # special semantics and is distinct from /, please report it to
     25523        # <[email protected]>.
     25524        case $host in
     25525          *-cygwin | i370-ibm-openedition)
     25526            gl_cv_double_slash_root=yes ;;
     25527          *)
     25528            # Be optimistic and assume that / and // are the same when we
     25529            # don't know.
     25530            gl_cv_double_slash_root='unknown, assuming no' ;;
     25531        esac
     25532      else
     25533        set x `ls -di / // 2>/dev/null`
     25534        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
     25535          gl_cv_double_slash_root=no
     25536        else
     25537          gl_cv_double_slash_root=yes
     25538        fi
     25539      fi ;;
     25540esac
     25541fi
     25542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
     25543printf "%s\n" "$gl_cv_double_slash_root" >&6; }
     25544  if test "$gl_cv_double_slash_root" = yes; then
     25545
     25546printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
     25547
     25548  fi
     25549
     25550
     25551
     25552
     25553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
     25554printf %s "checking whether dup2 works... " >&6; }
     25555if test ${gl_cv_func_dup2_works+y}
     25556then :
     25557  printf %s "(cached) " >&6
     25558else case e in #(
     25559  e) if test "$cross_compiling" = yes
     25560then :
     25561  case "$host_os" in
     25562         mingw*) # on this platform, dup2 always returns 0 for success
     25563           gl_cv_func_dup2_works="guessing no" ;;
     25564         cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
     25565           gl_cv_func_dup2_works="guessing no" ;;
     25566         aix* | freebsd*)
     25567                 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
     25568                 # not EBADF.
     25569           gl_cv_func_dup2_works="guessing no" ;;
     25570         haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
     25571           gl_cv_func_dup2_works="guessing no" ;;
     25572         *-android*) # implemented using dup3(), which fails if oldfd == newfd
     25573           gl_cv_func_dup2_works="guessing no" ;;
     25574         os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
     25575           gl_cv_func_dup2_works="guessing no" ;;
     25576         *) gl_cv_func_dup2_works="guessing yes" ;;
     25577       esac
     25578else case e in #(
     25579  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25580/* end confdefs.h.  */
     25581
     25582       #include <errno.h>
     25583           #include <fcntl.h>
     25584           #include <limits.h>
     25585           #include <sys/resource.h>
     25586           #include <unistd.h>
     25587
     25588
     25589$gl_mda_defines
     25590
     25591           #ifndef RLIM_SAVED_CUR
     25592           # define RLIM_SAVED_CUR RLIM_INFINITY
     25593           #endif
     25594           #ifndef RLIM_SAVED_MAX
     25595           # define RLIM_SAVED_MAX RLIM_INFINITY
     25596           #endif
     25597
     25598int
     25599main (void)
     25600{
     25601int result = 0;
     25602           int bad_fd = INT_MAX;
     25603           struct rlimit rlim;
     25604           if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
     25605               && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
     25606               && rlim.rlim_cur != RLIM_INFINITY
     25607               && rlim.rlim_cur != RLIM_SAVED_MAX
     25608               && rlim.rlim_cur != RLIM_SAVED_CUR)
     25609             bad_fd = rlim.rlim_cur;
     25610           #ifdef FD_CLOEXEC
     25611             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
     25612               result |= 1;
     25613           #endif
     25614           if (dup2 (1, 1) != 1)
     25615             result |= 2;
     25616           #ifdef FD_CLOEXEC
     25617             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
     25618               result |= 4;
     25619           #endif
     25620           close (0);
     25621           if (dup2 (0, 0) != -1)
     25622             result |= 8;
     25623           /* Many gnulib modules require POSIX conformance of EBADF.  */
     25624           if (dup2 (2, bad_fd) == -1 && errno != EBADF)
     25625             result |= 16;
     25626           /* Flush out some cygwin core dumps.  */
     25627           if (dup2 (2, -1) != -1 || errno != EBADF)
     25628             result |= 32;
     25629           dup2 (2, 255);
     25630           dup2 (2, 256);
     25631           /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
     25632           {
     25633             int fd = open (".", O_RDONLY);
     25634             if (fd == -1)
     25635               result |= 64;
     25636             else if (dup2 (fd, fd + 1) == -1)
     25637               result |= 128;
     25638             close (fd);
     25639           }
     25640           return result;
     25641  ;
     25642  return 0;
     25643}
     25644
     25645_ACEOF
     25646if ac_fn_c_try_run "$LINENO"
     25647then :
     25648  gl_cv_func_dup2_works=yes
     25649else case e in #(
     25650  e) gl_cv_func_dup2_works=no ;;
     25651esac
     25652fi
     25653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     25654  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     25655esac
     25656fi
     25657
     25658     ;;
     25659esac
     25660fi
     25661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
     25662printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
     25663  case "$gl_cv_func_dup2_works" in
     25664    *yes) ;;
     25665    *)
     25666      REPLACE_DUP2=1
     25667      ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
     25668if test "x$ac_cv_func_setdtablesize" = xyes
     25669then :
     25670  printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
     25671
     25672fi
     25673
     25674      ;;
     25675  esac
     25676
     25677
     25678
     25679     if test $REPLACE_DUP2 = 1; then
     25680  GL_COND_OBJ_DUP2_TRUE=
     25681  GL_COND_OBJ_DUP2_FALSE='#'
     25682else
     25683  GL_COND_OBJ_DUP2_TRUE='#'
     25684  GL_COND_OBJ_DUP2_FALSE=
     25685fi
     25686:
     25687    if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
     25688    GL_COND_OBJ_DUP2_TRUE='#'
     25689    GL_COND_OBJ_DUP2_FALSE='#'
     25690  fi
     25691
     25692  if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
     25693
     25694
     25695
     25696fi
     25697
     25698
     25699
     25700
     25701
     25702
     25703
     25704
     25705
     25706          GL_GNULIB_DUP2=1
     25707
     25708
     25709
     25710
     25711
     25712printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
     25713
     25714
     25715
     25716
     25717
     25718
     25719
     25720
     25721  case "$GL_GENERATE_ERRNO_H" in
     25722    false) ERRNO_H='' ;;
     25723    true)
     25724                  if test -z "$ERRNO_H"; then
     25725        ERRNO_H="${gl_source_base_prefix}errno.h"
     25726      fi
     25727      ;;
     25728    *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
     25729  esac
     25730
     25731
     25732     if $GL_GENERATE_ERRNO_H; then
     25733  GL_GENERATE_ERRNO_H_TRUE=
     25734  GL_GENERATE_ERRNO_H_FALSE='#'
     25735else
     25736  GL_GENERATE_ERRNO_H_TRUE='#'
     25737  GL_GENERATE_ERRNO_H_FALSE=
     25738fi
     25739:
     25740    if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
     25741    GL_GENERATE_ERRNO_H_TRUE='#'
     25742    GL_GENERATE_ERRNO_H_FALSE='#'
     25743  fi
     25744
     25745
     25746
     25747
     25748
     25749
     25750
     25751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
     25752printf %s "checking for error_at_line... " >&6; }
     25753if test ${ac_cv_lib_error_at_line+y}
     25754then :
     25755  printf %s "(cached) " >&6
     25756else case e in #(
     25757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25758/* end confdefs.h.  */
     25759#include <error.h>
     25760int
     25761main (void)
     25762{
     25763error_at_line (0, 0, "", 0, "an error occurred");
     25764  ;
     25765  return 0;
     25766}
     25767_ACEOF
     25768if ac_fn_c_try_link "$LINENO"
     25769then :
     25770  ac_cv_lib_error_at_line=yes
     25771else case e in #(
     25772  e) ac_cv_lib_error_at_line=no ;;
     25773esac
     25774fi
     25775rm -f core conftest.err conftest.$ac_objext conftest.beam \
     25776    conftest$ac_exeext conftest.$ac_ext ;;
     25777esac
     25778fi
     25779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
     25780printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
     25781
     25782
     25783     if test "$ac_cv_lib_error_at_line" = no; then
     25784  GL_COND_OBJ_ERROR_TRUE=
     25785  GL_COND_OBJ_ERROR_FALSE='#'
     25786else
     25787  GL_COND_OBJ_ERROR_TRUE='#'
     25788  GL_COND_OBJ_ERROR_FALSE=
     25789fi
     25790:
     25791    if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
     25792    GL_COND_OBJ_ERROR_TRUE='#'
     25793    GL_COND_OBJ_ERROR_FALSE='#'
     25794  fi
     25795
     25796  if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
     25797
     25798
     25799
     25800
     25801
     25802  :
     25803
     25804
     25805fi
     25806
     25807
     25808  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
     25809
     25810
     25811
     25812  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
     25813
     25814
     25815
     25816
     25817
     25818
     25819
     25820  if test $ac_cv_func_fcntl = no; then
     25821
     25822
     25823
     25824  if test $ac_cv_func_fcntl = no; then
     25825    HAVE_FCNTL=0
     25826  else
     25827    REPLACE_FCNTL=1
     25828  fi
     25829
     25830  else
     25831            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
     25832printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
     25833if test ${gl_cv_func_fcntl_f_dupfd_works+y}
     25834then :
     25835  printf %s "(cached) " >&6
     25836else case e in #(
     25837  e) if test "$cross_compiling" = yes
     25838then :
     25839  case $host_os in
     25840            aix* | cygwin* | haiku*)
     25841               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
     25842            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
     25843          esac
     25844else case e in #(
     25845  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25846/* end confdefs.h.  */
     25847#include <errno.h>
     25848              #include <fcntl.h>
     25849              #include <limits.h>
     25850              #include <sys/resource.h>
     25851              #include <unistd.h>
     25852
     25853
     25854$gl_mda_defines
     25855
     25856              #ifndef RLIM_SAVED_CUR
     25857              # define RLIM_SAVED_CUR RLIM_INFINITY
     25858              #endif
     25859              #ifndef RLIM_SAVED_MAX
     25860              # define RLIM_SAVED_MAX RLIM_INFINITY
     25861              #endif
     25862
     25863int
     25864main (void)
     25865{
     25866int result = 0;
     25867              int bad_fd = INT_MAX;
     25868              struct rlimit rlim;
     25869              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
     25870                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
     25871                  && rlim.rlim_cur != RLIM_INFINITY
     25872                  && rlim.rlim_cur != RLIM_SAVED_MAX
     25873                  && rlim.rlim_cur != RLIM_SAVED_CUR)
     25874                bad_fd = rlim.rlim_cur;
     25875              if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
     25876              if (errno != EINVAL) result |= 2;
     25877              if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
     25878              if (errno != EINVAL) result |= 8;
     25879              /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
     25880              {
     25881                int fd;
     25882                fd = open (".", O_RDONLY);
     25883                if (fd == -1)
     25884                  result |= 16;
     25885                else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
     25886                  result |= 32;
     25887
     25888                close (fd);
     25889              }
     25890              return result;
     25891  ;
     25892  return 0;
     25893}
     25894_ACEOF
     25895if ac_fn_c_try_run "$LINENO"
     25896then :
     25897  gl_cv_func_fcntl_f_dupfd_works=yes
     25898else case e in #(
     25899  e) gl_cv_func_fcntl_f_dupfd_works=no ;;
     25900esac
     25901fi
     25902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     25903  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     25904esac
     25905fi
     25906 ;;
     25907esac
     25908fi
     25909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
     25910printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
     25911    case $gl_cv_func_fcntl_f_dupfd_works in
     25912      *yes) ;;
     25913      *)
     25914
     25915
     25916  if test $ac_cv_func_fcntl = no; then
     25917    HAVE_FCNTL=0
     25918  else
     25919    REPLACE_FCNTL=1
     25920  fi
     25921
     25922
     25923printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
     25924 ;;
     25925    esac
     25926
     25927            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
     25928printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
     25929if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
     25930then :
     25931  printf %s "(cached) " >&6
     25932else case e in #(
     25933  e) if test "$cross_compiling" = yes
     25934then :
     25935  case "$host_os" in
     25936                     # Guess no on NetBSD.
     25937            netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
     25938            *)       gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
     25939          esac
     25940
     25941else case e in #(
     25942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25943/* end confdefs.h.  */
    747125944#include <fcntl.h>
    7472 #include <sys/mman.h>
    7473 
    7474 #if !STDC_HEADERS && !HAVE_STDLIB_H
    7475 char *malloc ();
     25945              #include <unistd.h>
     25946              int main (int argc, char *argv[])
     25947              {
     25948                if (argc == 1)
     25949                  /* parent process */
     25950                  {
     25951                    if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
     25952                      return 1;
     25953                    return execl ("./conftest", "./conftest", "child", NULL);
     25954                  }
     25955                else
     25956                  /* child process */
     25957                  return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
     25958              }
     25959
     25960
     25961_ACEOF
     25962if ac_fn_c_try_run "$LINENO"
     25963then :
     25964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25965/* end confdefs.h.  */
     25966
     25967#ifdef __linux__
     25968/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
     25969   it to support the semantics on older kernels that failed with EINVAL.  */
     25970choke me
    747625971#endif
    747725972
    7478 /* This mess was copied from the GNU getpagesize.h.  */
    7479 #if !HAVE_GETPAGESIZE
    7480 /* Assume that all systems that can run configure have sys/param.h.  */
    7481 # if !HAVE_SYS_PARAM_H
    7482 #  define HAVE_SYS_PARAM_H 1
    7483 # endif
    7484 
    7485 # ifdef _SC_PAGESIZE
    7486 #  define getpagesize() sysconf(_SC_PAGESIZE)
    7487 # else /* no _SC_PAGESIZE */
    7488 #  if HAVE_SYS_PARAM_H
    7489 #   include <sys/param.h>
    7490 #   ifdef EXEC_PAGESIZE
    7491 #    define getpagesize() EXEC_PAGESIZE
    7492 #   else /* no EXEC_PAGESIZE */
    7493 #    ifdef NBPG
    7494 #     define getpagesize() NBPG * CLSIZE
    7495 #     ifndef CLSIZE
    7496 #      define CLSIZE 1
    7497 #     endif /* no CLSIZE */
    7498 #    else /* no NBPG */
    7499 #     ifdef NBPC
    7500 #      define getpagesize() NBPC
    7501 #     else /* no NBPC */
    7502 #      ifdef PAGESIZE
    7503 #       define getpagesize() PAGESIZE
    7504 #      endif /* PAGESIZE */
    7505 #     endif /* no NBPC */
    7506 #    endif /* no NBPG */
    7507 #   endif /* no EXEC_PAGESIZE */
    7508 #  else /* no HAVE_SYS_PARAM_H */
    7509 #   define getpagesize() 8192   /* punt totally */
    7510 #  endif /* no HAVE_SYS_PARAM_H */
    7511 # endif /* no _SC_PAGESIZE */
    7512 
    7513 #endif /* no HAVE_GETPAGESIZE */
     25973int
     25974main (void)
     25975{
     25976
     25977  ;
     25978  return 0;
     25979}
     25980_ACEOF
     25981if ac_fn_c_try_compile "$LINENO"
     25982then :
     25983  gl_cv_func_fcntl_f_dupfd_cloexec=yes
     25984else case e in #(
     25985  e) gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" ;;
     25986esac
     25987fi
     25988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     25989
     25990else case e in #(
     25991  e) gl_cv_func_fcntl_f_dupfd_cloexec=no ;;
     25992esac
     25993fi
     25994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     25995  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     25996esac
     25997fi
     25998
     25999       ;;
     26000esac
     26001fi
     26002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
     26003printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
     26004    case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
     26005      *yes) ;;
     26006      *)
     26007
     26008
     26009  if test $ac_cv_func_fcntl = no; then
     26010    HAVE_FCNTL=0
     26011  else
     26012    REPLACE_FCNTL=1
     26013  fi
     26014
     26015                        ;;
     26016    esac
     26017  fi
     26018
     26019
     26020
     26021     if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
     26022  GL_COND_OBJ_FCNTL_TRUE=
     26023  GL_COND_OBJ_FCNTL_FALSE='#'
     26024else
     26025  GL_COND_OBJ_FCNTL_TRUE='#'
     26026  GL_COND_OBJ_FCNTL_FALSE=
     26027fi
     26028:
     26029    if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
     26030    GL_COND_OBJ_FCNTL_TRUE='#'
     26031    GL_COND_OBJ_FCNTL_FALSE='#'
     26032  fi
     26033
     26034
     26035
     26036
     26037
     26038
     26039
     26040
     26041
     26042
     26043          GL_GNULIB_FCNTL=1
     26044
     26045
     26046
     26047
     26048
     26049printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
     26050
     26051
     26052
     26053
     26054
     26055
     26056
     26057
     26058
     26059
     26060
     26061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
     26062printf %s "checking for flexible array member... " >&6; }
     26063if test ${ac_cv_c_flexmember+y}
     26064then :
     26065  printf %s "(cached) " >&6
     26066else case e in #(
     26067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26068/* end confdefs.h.  */
     26069#include <stdlib.h>
     26070            #include <stdio.h>
     26071            #include <stddef.h>
     26072            struct m { struct m *next, **list; char name[]; };
     26073            struct s { struct s *p; struct m *m; int n; double d[]; };
     26074int
     26075main (void)
     26076{
     26077int m = getchar ();
     26078            size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
     26079            nbytes += sizeof (struct s) - 1;
     26080            nbytes -= nbytes % sizeof (struct s);
     26081            struct s *p = malloc (nbytes);
     26082            p->p = p;
     26083            p->m = NULL;
     26084            p->d[0] = 0.0;
     26085            return p->d != (double *) NULL;
     26086  ;
     26087  return 0;
     26088}
     26089_ACEOF
     26090if ac_fn_c_try_compile "$LINENO"
     26091then :
     26092  ac_cv_c_flexmember=yes
     26093else case e in #(
     26094  e) ac_cv_c_flexmember=no ;;
     26095esac
     26096fi
     26097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     26098esac
     26099fi
     26100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
     26101printf "%s\n" "$ac_cv_c_flexmember" >&6; }
     26102  if test $ac_cv_c_flexmember = yes; then
     26103
     26104printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
     26105
     26106  else
     26107    printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
     26108
     26109  fi
     26110
     26111
     26112
     26113  fp_headers='
     26114    #include <stdio.h>
     26115    #if HAVE_STDIO_EXT_H
     26116    # include <stdio_ext.h>
     26117    #endif
     26118  '
     26119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
     26120printf %s "checking for __fpending... " >&6; }
     26121if test ${gl_cv_func___fpending+y}
     26122then :
     26123  printf %s "(cached) " >&6
     26124else case e in #(
     26125  e)
     26126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26127/* end confdefs.h.  */
     26128$fp_headers
     26129int
     26130main (void)
     26131{
     26132return ! __fpending (stdin);
     26133  ;
     26134  return 0;
     26135}
     26136_ACEOF
     26137if ac_fn_c_try_link "$LINENO"
     26138then :
     26139  gl_cv_func___fpending=yes
     26140else case e in #(
     26141  e) gl_cv_func___fpending=no ;;
     26142esac
     26143fi
     26144rm -f core conftest.err conftest.$ac_objext conftest.beam \
     26145    conftest$ac_exeext conftest.$ac_ext
     26146     ;;
     26147esac
     26148fi
     26149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
     26150printf "%s\n" "$gl_cv_func___fpending" >&6; }
     26151  if test $gl_cv_func___fpending = yes; then
     26152    ac_fn_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
     26153" "$ac_c_undeclared_builtin_options" "CFLAGS"
     26154if test "x$ac_cv_have_decl___fpending" = xyes
     26155then :
     26156  ac_have_decl=1
     26157else case e in #(
     26158  e) ac_have_decl=0 ;;
     26159esac
     26160fi
     26161printf "%s\n" "#define HAVE_DECL___FPENDING $ac_have_decl" >>confdefs.h
     26162
     26163  fi
     26164
     26165
     26166     if test $gl_cv_func___fpending = no; then
     26167  GL_COND_OBJ_FPENDING_TRUE=
     26168  GL_COND_OBJ_FPENDING_FALSE='#'
     26169else
     26170  GL_COND_OBJ_FPENDING_TRUE='#'
     26171  GL_COND_OBJ_FPENDING_FALSE=
     26172fi
     26173:
     26174    if test -z "${GL_COND_OBJ_FPENDING_TRUE}" && test -z "${GL_COND_OBJ_FPENDING_FALSE}"; then
     26175    GL_COND_OBJ_FPENDING_TRUE='#'
     26176    GL_COND_OBJ_FPENDING_FALSE='#'
     26177  fi
     26178
     26179
     26180
     26181
     26182                          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
     26183printf %s "checking whether free is known to preserve errno... " >&6; }
     26184if test ${gl_cv_func_free_preserves_errno+y}
     26185then :
     26186  printf %s "(cached) " >&6
     26187else case e in #(
     26188  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26189/* end confdefs.h.  */
     26190#include <stdlib.h>
     26191
     26192int
     26193main (void)
     26194{
     26195#if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
     26196            #elif defined __OpenBSD__
     26197            #elif defined __sun
     26198            #else
     26199              #error "'free' is not known to preserve errno"
     26200            #endif
     26201
     26202  ;
     26203  return 0;
     26204}
     26205_ACEOF
     26206if ac_fn_c_try_compile "$LINENO"
     26207then :
     26208  gl_cv_func_free_preserves_errno=yes
     26209else case e in #(
     26210  e) gl_cv_func_free_preserves_errno=no ;;
     26211esac
     26212fi
     26213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     26214     ;;
     26215esac
     26216fi
     26217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
     26218printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
     26219
     26220  case $gl_cv_func_free_preserves_errno in
     26221   *yes)
     26222
     26223printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
     26224
     26225    ;;
     26226   *) REPLACE_FREE=1 ;;
     26227  esac
     26228
     26229
     26230     if test $REPLACE_FREE = 1; then
     26231  GL_COND_OBJ_FREE_TRUE=
     26232  GL_COND_OBJ_FREE_FALSE='#'
     26233else
     26234  GL_COND_OBJ_FREE_TRUE='#'
     26235  GL_COND_OBJ_FREE_FALSE=
     26236fi
     26237:
     26238    if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
     26239    GL_COND_OBJ_FREE_TRUE='#'
     26240    GL_COND_OBJ_FREE_FALSE='#'
     26241  fi
     26242
     26243  if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
     26244
     26245    :
     26246
     26247fi
     26248
     26249
     26250
     26251
     26252
     26253
     26254
     26255
     26256
     26257          GL_GNULIB_FREE_POSIX=1
     26258
     26259
     26260
     26261
     26262
     26263printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
     26264
     26265
     26266
     26267
     26268
     26269
     26270
     26271  case "$host_os" in
     26272    mingw* | solaris*)
     26273                        REPLACE_FSTAT=1
     26274      ;;
     26275  esac
     26276
     26277
     26278
     26279
     26280     if test $REPLACE_FSTAT = 1; then
     26281  GL_COND_OBJ_FSTAT_TRUE=
     26282  GL_COND_OBJ_FSTAT_FALSE='#'
     26283else
     26284  GL_COND_OBJ_FSTAT_TRUE='#'
     26285  GL_COND_OBJ_FSTAT_FALSE=
     26286fi
     26287:
     26288    if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
     26289    GL_COND_OBJ_FSTAT_TRUE='#'
     26290    GL_COND_OBJ_FSTAT_FALSE='#'
     26291  fi
     26292
     26293  if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
     26294
     26295    case "$host_os" in
     26296      mingw*)
     26297
     26298
     26299
     26300
     26301
     26302
     26303
     26304
     26305  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
     26306
     26307        ;;
     26308    esac
     26309
     26310
     26311
     26312  :
     26313
     26314
     26315fi
     26316
     26317
     26318
     26319
     26320
     26321
     26322
     26323
     26324
     26325          GL_GNULIB_FSTAT=1
     26326
     26327
     26328
     26329
     26330
     26331printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
     26332
     26333
     26334
     26335
     26336
     26337
     26338
     26339
     26340     if test $ac_cv_func___fwriting = no; then
     26341  GL_COND_OBJ_FWRITING_TRUE=
     26342  GL_COND_OBJ_FWRITING_FALSE='#'
     26343else
     26344  GL_COND_OBJ_FWRITING_TRUE='#'
     26345  GL_COND_OBJ_FWRITING_FALSE=
     26346fi
     26347:
     26348    if test -z "${GL_COND_OBJ_FWRITING_TRUE}" && test -z "${GL_COND_OBJ_FWRITING_FALSE}"; then
     26349    GL_COND_OBJ_FWRITING_TRUE='#'
     26350    GL_COND_OBJ_FWRITING_FALSE='#'
     26351  fi
     26352
     26353
     26354
     26355
     26356
     26357
     26358
     26359
     26360
     26361
     26362  if test $ac_cv_func_getdelim = yes; then
     26363    HAVE_GETDELIM=1
     26364        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
     26365printf %s "checking for working getdelim function... " >&6; }
     26366if test ${gl_cv_func_working_getdelim+y}
     26367then :
     26368  printf %s "(cached) " >&6
     26369else case e in #(
     26370  e) case "$host_os" in
     26371         darwin*)
     26372                                                                             gl_cv_func_working_getdelim=no ;;
     26373         *)
     26374           echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
     26375           if test "$cross_compiling" = yes
     26376then :
     26377                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26378/* end confdefs.h.  */
     26379
     26380#include <features.h>
     26381#ifdef __GNU_LIBRARY__
     26382 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
     26383  Lucky GNU user
     26384 #endif
     26385#endif
     26386
     26387_ACEOF
     26388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     26389  $EGREP_TRADITIONAL "Lucky GNU user" >/dev/null 2>&1
     26390then :
     26391  gl_cv_func_working_getdelim="guessing yes"
     26392else case e in #(
     26393  e) case "$host_os" in
     26394                   *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
     26395                   *)       gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
     26396                 esac
     26397                 ;;
     26398esac
     26399fi
     26400rm -rf conftest*
     26401
     26402
     26403else case e in #(
     26404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26405/* end confdefs.h.  */
     26406
     26407#    include <stdio.h>
     26408#    include <stdlib.h>
     26409#    include <string.h>
     26410    int main ()
     26411    {
     26412      FILE *in = fopen ("./conftest.data", "r");
     26413      if (!in)
     26414        return 1;
     26415      {
     26416        /* Test result for a NULL buffer and a zero size.
     26417           Based on a test program from Karl Heuer.  */
     26418        char *line = NULL;
     26419        size_t siz = 0;
     26420        int len = getdelim (&line, &siz, '\n', in);
     26421        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
     26422          { free (line); fclose (in); return 2; }
     26423        free (line);
     26424      }
     26425      {
     26426        /* Test result for a NULL buffer and a non-zero size.
     26427           This crashes on FreeBSD 8.0.  */
     26428        char *line = NULL;
     26429        size_t siz = (size_t)(~0) / 4;
     26430        if (getdelim (&line, &siz, '\n', in) == -1)
     26431          { fclose (in); return 3; }
     26432        free (line);
     26433      }
     26434      fclose (in);
     26435      return 0;
     26436    }
     26437
     26438_ACEOF
     26439if ac_fn_c_try_run "$LINENO"
     26440then :
     26441  gl_cv_func_working_getdelim=yes
     26442else case e in #(
     26443  e) gl_cv_func_working_getdelim=no ;;
     26444esac
     26445fi
     26446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     26447  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     26448esac
     26449fi
     26450
     26451           ;;
     26452       esac
     26453       ;;
     26454esac
     26455fi
     26456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
     26457printf "%s\n" "$gl_cv_func_working_getdelim" >&6; }
     26458    case "$gl_cv_func_working_getdelim" in
     26459      *yes) ;;
     26460      *) REPLACE_GETDELIM=1 ;;
     26461    esac
     26462  else
     26463    HAVE_GETDELIM=0
     26464  fi
     26465
     26466  if test $ac_cv_have_decl_getdelim = no; then
     26467    HAVE_DECL_GETDELIM=0
     26468  fi
     26469
     26470
     26471     if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
     26472  GL_COND_OBJ_GETDELIM_TRUE=
     26473  GL_COND_OBJ_GETDELIM_FALSE='#'
     26474else
     26475  GL_COND_OBJ_GETDELIM_TRUE='#'
     26476  GL_COND_OBJ_GETDELIM_FALSE=
     26477fi
     26478:
     26479    if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then
     26480    GL_COND_OBJ_GETDELIM_TRUE='#'
     26481    GL_COND_OBJ_GETDELIM_FALSE='#'
     26482  fi
     26483
     26484  if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then :
     26485
     26486
     26487  ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
     26488if test "x$ac_cv_func_flockfile" = xyes
     26489then :
     26490  printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
     26491
     26492fi
     26493ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
     26494if test "x$ac_cv_func_funlockfile" = xyes
     26495then :
     26496  printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
     26497
     26498fi
     26499
     26500  ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     26501if test "x$ac_cv_have_decl_getc_unlocked" = xyes
     26502then :
     26503  ac_have_decl=1
     26504else case e in #(
     26505  e) ac_have_decl=0 ;;
     26506esac
     26507fi
     26508printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
     26509
     26510
     26511
     26512fi
     26513
     26514
     26515
     26516
     26517
     26518
     26519
     26520
     26521
     26522          GL_GNULIB_GETDELIM=1
     26523
     26524
     26525
     26526
     26527
     26528printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
     26529
     26530
     26531
     26532
     26533
     26534
     26535
     26536
     26537  if test $ac_cv_func_getdtablesize = yes &&
     26538     test $ac_cv_have_decl_getdtablesize = yes; then
     26539    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
     26540printf %s "checking whether getdtablesize works... " >&6; }
     26541if test ${gl_cv_func_getdtablesize_works+y}
     26542then :
     26543  printf %s "(cached) " >&6
     26544else case e in #(
     26545  e)                                                  case "$host_os" in
     26546         vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
     26547         *)
     26548                                                       if test "$cross_compiling" = yes
     26549then :
     26550  case "$host_os" in
     26551                cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
     26552                  gl_cv_func_getdtablesize_works="guessing no" ;;
     26553                *) gl_cv_func_getdtablesize_works="guessing yes" ;;
     26554              esac
     26555
     26556else case e in #(
     26557  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26558/* end confdefs.h.  */
     26559
     26560             #include <unistd.h>
     26561
     26562
     26563$gl_mda_defines
     26564
     26565
     26566int
     26567main (void)
     26568{
     26569int size = getdtablesize();
     26570                 if (dup2 (0, getdtablesize()) != -1)
     26571                   return 1;
     26572                 if (size != getdtablesize())
     26573                   return 2;
     26574
     26575  ;
     26576  return 0;
     26577}
     26578_ACEOF
     26579if ac_fn_c_try_run "$LINENO"
     26580then :
     26581  gl_cv_func_getdtablesize_works=yes
     26582else case e in #(
     26583  e) gl_cv_func_getdtablesize_works=no ;;
     26584esac
     26585fi
     26586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     26587  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     26588esac
     26589fi
     26590
     26591           ;;
     26592       esac
     26593       ;;
     26594esac
     26595fi
     26596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
     26597printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
     26598    case "$gl_cv_func_getdtablesize_works" in
     26599      *yes | "no (limitation)") ;;
     26600      *) REPLACE_GETDTABLESIZE=1 ;;
     26601    esac
     26602  else
     26603    HAVE_GETDTABLESIZE=0
     26604  fi
     26605
     26606
     26607     if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
     26608  GL_COND_OBJ_GETDTABLESIZE_TRUE=
     26609  GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
     26610else
     26611  GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
     26612  GL_COND_OBJ_GETDTABLESIZE_FALSE=
     26613fi
     26614:
     26615    if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
     26616    GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
     26617    GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
     26618  fi
     26619
     26620  if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
     26621
     26622    :
     26623
     26624fi
     26625
     26626
     26627
     26628
     26629
     26630
     26631
     26632
     26633
     26634          GL_GNULIB_GETDTABLESIZE=1
     26635
     26636
     26637
     26638
     26639
     26640printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
     26641
     26642
     26643
     26644
     26645
     26646
     26647  ac_found=0
     26648  ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
     26649" "$ac_c_undeclared_builtin_options" "CFLAGS"
     26650if test "x$ac_cv_have_decl_program_invocation_name" = xyes
     26651then :
     26652  ac_have_decl=1
     26653else case e in #(
     26654  e) ac_have_decl=0 ;;
     26655esac
     26656fi
     26657printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
     26658if test $ac_have_decl = 1
     26659then :
     26660  ac_found=1
     26661fi
     26662
     26663  ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
     26664" "$ac_c_undeclared_builtin_options" "CFLAGS"
     26665if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
     26666then :
     26667  ac_have_decl=1
     26668else case e in #(
     26669  e) ac_have_decl=0 ;;
     26670esac
     26671fi
     26672printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
     26673if test $ac_have_decl = 1
     26674then :
     26675  ac_found=1
     26676fi
     26677
     26678  ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
     26679" "$ac_c_undeclared_builtin_options" "CFLAGS"
     26680if test "x$ac_cv_have_decl___argv" = xyes
     26681then :
     26682  ac_have_decl=1
     26683else case e in #(
     26684  e) ac_have_decl=0 ;;
     26685esac
     26686fi
     26687printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
     26688if test $ac_have_decl = 1
     26689then :
     26690  ac_found=1
     26691fi
     26692
     26693
     26694  # Incur the cost of this test only if none of the above worked.
     26695  if test $ac_found = 0; then
     26696    # On OpenBSD 5.1, using the global __progname variable appears to be
     26697    # the only way to implement getprogname.
     26698    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
     26699printf %s "checking whether __progname is defined in default libraries... " >&6; }
     26700if test ${gl_cv_var___progname+y}
     26701then :
     26702  printf %s "(cached) " >&6
     26703else case e in #(
     26704  e)
     26705        gl_cv_var___progname=
     26706        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26707/* end confdefs.h.  */
     26708extern char *__progname;
     26709int
     26710main (void)
     26711{
     26712return *__progname;
     26713
     26714  ;
     26715  return 0;
     26716}
     26717_ACEOF
     26718if ac_fn_c_try_link "$LINENO"
     26719then :
     26720  gl_cv_var___progname=yes
     26721
     26722fi
     26723rm -f core conftest.err conftest.$ac_objext conftest.beam \
     26724    conftest$ac_exeext conftest.$ac_ext
     26725
     26726     ;;
     26727esac
     26728fi
     26729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
     26730printf "%s\n" "$gl_cv_var___progname" >&6; }
     26731    if test "$gl_cv_var___progname" = yes; then
     26732
     26733printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
     26734
     26735    fi
     26736  fi
     26737
     26738
     26739
     26740
     26741
     26742  if test "$ac_cv_func_getrandom" != yes; then
     26743    HAVE_GETRANDOM=0
     26744  else
     26745        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
     26746printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
     26747if test ${gl_cv_func_getrandom_ok+y}
     26748then :
     26749  printf %s "(cached) " >&6
     26750else case e in #(
     26751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26752/* end confdefs.h.  */
     26753/* Additional includes are needed before <sys/random.h> on uClibc
     26754                 and Mac OS X.  */
     26755              #include <sys/types.h>
     26756              #include <stdlib.h>
     26757              #include <sys/random.h>
     26758              ssize_t getrandom (void *, size_t, unsigned int);
     26759
     26760int
     26761main (void)
     26762{
     26763
     26764  ;
     26765  return 0;
     26766}
     26767
     26768_ACEOF
     26769if ac_fn_c_try_compile "$LINENO"
     26770then :
     26771  gl_cv_func_getrandom_ok=yes
     26772else case e in #(
     26773  e) gl_cv_func_getrandom_ok=no ;;
     26774esac
     26775fi
     26776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     26777       ;;
     26778esac
     26779fi
     26780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
     26781printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; }
     26782    if test $gl_cv_func_getrandom_ok = no; then
     26783      REPLACE_GETRANDOM=1
     26784    fi
     26785  fi
     26786
     26787  case "$host_os" in
     26788    mingw*)
     26789      ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
     26790
     26791"
     26792if test "x$ac_cv_header_bcrypt_h" = xyes
     26793then :
     26794  printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
     26795
     26796fi
     26797
     26798      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
     26799printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; }
     26800if test ${gl_cv_lib_assume_bcrypt+y}
     26801then :
     26802  printf %s "(cached) " >&6
     26803else case e in #(
     26804  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26805/* end confdefs.h.  */
     26806#include <windows.h>
     26807int
     26808main (void)
     26809{
     26810#if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
     26811                  cannot assume it
     26812                #endif
     26813
     26814  ;
     26815  return 0;
     26816}
     26817
     26818_ACEOF
     26819if ac_fn_c_try_compile "$LINENO"
     26820then :
     26821  gl_cv_lib_assume_bcrypt=yes
     26822else case e in #(
     26823  e) gl_cv_lib_assume_bcrypt=no ;;
     26824esac
     26825fi
     26826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     26827         ;;
     26828esac
     26829fi
     26830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
     26831printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; }
     26832      if test $gl_cv_lib_assume_bcrypt = yes; then
     26833
     26834printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
     26835
     26836        LIB_GETRANDOM='-lbcrypt'
     26837      else
     26838        LIB_GETRANDOM='-ladvapi32'
     26839      fi
     26840      ;;
     26841    *)
     26842      LIB_GETRANDOM= ;;
     26843  esac
     26844
     26845
     26846
     26847     if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
     26848  GL_COND_OBJ_GETRANDOM_TRUE=
     26849  GL_COND_OBJ_GETRANDOM_FALSE='#'
     26850else
     26851  GL_COND_OBJ_GETRANDOM_TRUE='#'
     26852  GL_COND_OBJ_GETRANDOM_FALSE=
     26853fi
     26854:
     26855    if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then
     26856    GL_COND_OBJ_GETRANDOM_TRUE='#'
     26857    GL_COND_OBJ_GETRANDOM_FALSE='#'
     26858  fi
     26859
     26860
     26861
     26862
     26863
     26864
     26865
     26866
     26867
     26868
     26869          GL_GNULIB_GETRANDOM=1
     26870
     26871
     26872
     26873
     26874
     26875printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
     26876
     26877
     26878
     26879
     26880
     26881
     26882
     26883  # Autoconf 2.61a.99 and earlier don't support linking a file only
     26884  # in VPATH builds.  But since GNUmakefile is for maintainer use
     26885  # only, it does not matter if we skip the link with older autoconf.
     26886  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
     26887  # builds, so use a shell variable to bypass this.
     26888  GNUmakefile=GNUmakefile
     26889  ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
     26890
     26891
     26892  LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
     26893
     26894
     26895
     26896
     26897
     26898
     26899
     26900
     26901
     26902
     26903
     26904
     26905
     26906
     26907
     26908
     26909
     26910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
     26911printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
     26912if test ${gl_cv_c___inline+y}
     26913then :
     26914  printf %s "(cached) " >&6
     26915else case e in #(
     26916  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     26917/* end confdefs.h.  */
     26918typedef int foo_t;
     26919           static __inline foo_t foo (void) { return 0; }
     26920int
     26921main (void)
     26922{
     26923return foo ();
     26924  ;
     26925  return 0;
     26926}
     26927_ACEOF
     26928if ac_fn_c_try_compile "$LINENO"
     26929then :
     26930  gl_cv_c___inline=yes
     26931else case e in #(
     26932  e) gl_cv_c___inline=no ;;
     26933esac
     26934fi
     26935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     26936esac
     26937fi
     26938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
     26939printf "%s\n" "$gl_cv_c___inline" >&6; }
     26940  if test $gl_cv_c___inline = yes; then
     26941
     26942printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
     26943
     26944  fi
     26945
     26946
     26947
     26948
     26949
     26950
     26951  case "$GL_GENERATE_LIMITS_H" in
     26952    false) LIMITS_H='' ;;
     26953    true)
     26954                  if test -z "$LIMITS_H"; then
     26955        LIMITS_H="${gl_source_base_prefix}limits.h"
     26956      fi
     26957      ;;
     26958    *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
     26959  esac
     26960
     26961
     26962     if $GL_GENERATE_LIMITS_H; then
     26963  GL_GENERATE_LIMITS_H_TRUE=
     26964  GL_GENERATE_LIMITS_H_FALSE='#'
     26965else
     26966  GL_GENERATE_LIMITS_H_TRUE='#'
     26967  GL_GENERATE_LIMITS_H_FALSE=
     26968fi
     26969:
     26970    if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
     26971    GL_GENERATE_LIMITS_H_TRUE='#'
     26972    GL_GENERATE_LIMITS_H_FALSE='#'
     26973  fi
     26974
     26975
     26976
     26977
     26978
     26979
     26980
     26981
     26982
     26983    LOCALCHARSET_TESTS_ENVIRONMENT=
     26984
     26985
     26986
     26987
     26988
     26989
     26990
     26991
     26992
     26993
     26994
     26995
     26996  if test $REPLACE_STRUCT_LCONV = 1; then
     26997    REPLACE_LOCALECONV=1
     26998  fi
     26999
     27000
     27001     if test $REPLACE_LOCALECONV = 1; then
     27002  GL_COND_OBJ_LOCALECONV_TRUE=
     27003  GL_COND_OBJ_LOCALECONV_FALSE='#'
     27004else
     27005  GL_COND_OBJ_LOCALECONV_TRUE='#'
     27006  GL_COND_OBJ_LOCALECONV_FALSE=
     27007fi
     27008:
     27009    if test -z "${GL_COND_OBJ_LOCALECONV_TRUE}" && test -z "${GL_COND_OBJ_LOCALECONV_FALSE}"; then
     27010    GL_COND_OBJ_LOCALECONV_TRUE='#'
     27011    GL_COND_OBJ_LOCALECONV_FALSE='#'
     27012  fi
     27013
     27014  if test -z "$GL_COND_OBJ_LOCALECONV_TRUE"; then :
     27015
     27016
     27017  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
     27018"
     27019if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
     27020then :
     27021
     27022printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
     27023
     27024
     27025fi
     27026
     27027
     27028
     27029fi
     27030
     27031
     27032
     27033
     27034
     27035
     27036
     27037
     27038
     27039          GL_GNULIB_LOCALECONV=1
     27040
     27041
     27042
     27043
     27044
     27045printf "%s\n" "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
     27046
     27047
     27048
     27049
     27050
     27051  if test "$gl_threads_api" = posix; then
     27052    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
     27053    # pthread_rwlock_* functions.
     27054    has_rwlock=false
     27055    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
     27056"
     27057if test "x$ac_cv_type_pthread_rwlock_t" = xyes
     27058then :
     27059  has_rwlock=true
     27060
     27061printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
     27062
     27063fi
     27064
     27065    if $has_rwlock; then
     27066
     27067
     27068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
     27069printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
     27070if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
     27071then :
     27072  printf %s "(cached) " >&6
     27073else case e in #(
     27074  e) save_LIBS="$LIBS"
     27075     LIBS="$LIBS $LIBMULTITHREAD"
     27076     if test "$cross_compiling" = yes
     27077then :
     27078  case "$host_os" in
     27079                         # Guess no on glibc systems.
     27080          *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
     27081                         # Guess no on musl systems.
     27082          *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
     27083                         # Guess no on bionic systems.
     27084          *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
     27085                         # Guess yes on native Windows with the mingw-w64 winpthreads library.
     27086                         # Guess no on native Windows with the gnulib windows-rwlock module.
     27087          mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
     27088                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
     27089                         else
     27090                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
     27091                         fi
     27092                         ;;
     27093                         # If we don't know, obey --enable-cross-guesses.
     27094          *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
     27095         esac
     27096
     27097else case e in #(
     27098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27099/* end confdefs.h.  */
     27100
     27101#include <errno.h>
     27102#include <pthread.h>
     27103#include <stdlib.h>
     27104#include <unistd.h>
     27105
     27106#define SUCCEED() exit (0)
     27107#define FAILURE() exit (1)
     27108#define UNEXPECTED(n) (exit (10 + (n)))
     27109
     27110/* The main thread creates the waiting writer and the requesting reader threads
     27111   in the default way; this guarantees that they have the same priority.
     27112   We can reuse the main thread as first reader thread.  */
     27113
     27114static pthread_rwlock_t lock;
     27115static pthread_t reader1;
     27116static pthread_t writer;
     27117static pthread_t reader2;
     27118static pthread_t timer;
     27119/* Used to pass control from writer to reader2 and from reader2 to timer,
     27120   as in a relay race.
     27121   Passing control from one running thread to another running thread
     27122   is most likely faster than to create the second thread.  */
     27123static pthread_mutex_t baton;
     27124
     27125static void *
     27126timer_func (void *ignored)
     27127{
     27128  /* Step 13 (can be before or after step 12):
     27129     The timer thread takes the baton, then waits a moment to make sure
     27130     it can tell whether the second reader thread is blocked at step 12.  */
     27131  if (pthread_mutex_lock (&baton))
     27132    UNEXPECTED (13);
     27133  usleep (100000);
     27134  /* By the time we get here, it's clear that the second reader thread is
     27135     blocked at step 12.  This is the desired behaviour.  */
     27136  SUCCEED ();
     27137}
     27138
     27139static void *
     27140reader2_func (void *ignored)
     27141{
     27142  int err;
     27143
     27144  /* Step 8 (can be before or after step 7):
     27145     The second reader thread takes the baton, then waits a moment to make sure
     27146     the writer thread has reached step 7.  */
     27147  if (pthread_mutex_lock (&baton))
     27148    UNEXPECTED (8);
     27149  usleep (100000);
     27150  /* Step 9: The second reader thread requests the lock.  */
     27151  err = pthread_rwlock_tryrdlock (&lock);
     27152  if (err == 0)
     27153    FAILURE ();
     27154  else if (err != EBUSY)
     27155    UNEXPECTED (9);
     27156  /* Step 10: Launch a timer, to test whether the next call blocks.  */
     27157  if (pthread_create (&timer, NULL, timer_func, NULL))
     27158    UNEXPECTED (10);
     27159  /* Step 11: Release the baton.  */
     27160  if (pthread_mutex_unlock (&baton))
     27161    UNEXPECTED (11);
     27162  /* Step 12: The second reader thread requests the lock.  */
     27163  err = pthread_rwlock_rdlock (&lock);
     27164  if (err == 0)
     27165    FAILURE ();
     27166  else
     27167    UNEXPECTED (12);
     27168}
     27169
     27170static void *
     27171writer_func (void *ignored)
     27172{
     27173  /* Step 4: Take the baton, so that the second reader thread does not go ahead
     27174     too early.  */
     27175  if (pthread_mutex_lock (&baton))
     27176    UNEXPECTED (4);
     27177  /* Step 5: Create the second reader thread.  */
     27178  if (pthread_create (&reader2, NULL, reader2_func, NULL))
     27179    UNEXPECTED (5);
     27180  /* Step 6: Release the baton.  */
     27181  if (pthread_mutex_unlock (&baton))
     27182    UNEXPECTED (6);
     27183  /* Step 7: The writer thread requests the lock.  */
     27184  if (pthread_rwlock_wrlock (&lock))
     27185    UNEXPECTED (7);
     27186  return NULL;
     27187}
    751427188
    751527189int
    751627190main ()
    751727191{
    7518   char *data, *data2, *data3;
    7519   int i, pagesize;
    7520   int fd;
    7521 
    7522   pagesize = getpagesize ();
    7523 
    7524   /* First, make a file with some known garbage in it. */
    7525   data = (char *) malloc (pagesize);
    7526   if (!data)
    7527     exit (1);
    7528   for (i = 0; i < pagesize; ++i)
    7529     *(data + i) = rand ();
    7530   umask (0);
    7531   fd = creat ("conftest.mmap", 0600);
    7532   if (fd < 0)
    7533     exit (1);
    7534   if (write (fd, data, pagesize) != pagesize)
    7535     exit (1);
    7536   close (fd);
    7537 
    7538   /* Next, try to mmap the file at a fixed address which already has
    7539      something else allocated at it.  If we can, also make sure that
    7540      we see the same garbage.  */
    7541   fd = open ("conftest.mmap", O_RDWR);
    7542   if (fd < 0)
    7543     exit (1);
    7544   data2 = (char *) malloc (2 * pagesize);
    7545   if (!data2)
    7546     exit (1);
    7547   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
    7548   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
    7549                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
    7550     exit (1);
    7551   for (i = 0; i < pagesize; ++i)
    7552     if (*(data + i) != *(data2 + i))
    7553       exit (1);
    7554 
    7555   /* Finally, make sure that changes to the mapped area do not
    7556      percolate back to the file as seen by read().  (This is a bug on
    7557      some variants of i386 svr4.0.)  */
    7558   for (i = 0; i < pagesize; ++i)
    7559     *(data2 + i) = *(data2 + i) + 1;
    7560   data3 = (char *) malloc (pagesize);
    7561   if (!data3)
    7562     exit (1);
    7563   if (read (fd, data3, pagesize) != pagesize)
    7564     exit (1);
    7565   for (i = 0; i < pagesize; ++i)
    7566     if (*(data + i) != *(data3 + i))
    7567       exit (1);
    7568   close (fd);
    7569   exit (0);
     27192  reader1 = pthread_self ();
     27193
     27194  /* Step 1: The main thread initializes the lock and the baton.  */
     27195  if (pthread_rwlock_init (&lock, NULL))
     27196    UNEXPECTED (1);
     27197  if (pthread_mutex_init (&baton, NULL))
     27198    UNEXPECTED (1);
     27199  /* Step 2: The main thread acquires the lock as a reader.  */
     27200  if (pthread_rwlock_rdlock (&lock))
     27201    UNEXPECTED (2);
     27202  /* Step 3: Create the writer thread.  */
     27203  if (pthread_create (&writer, NULL, writer_func, NULL))
     27204    UNEXPECTED (3);
     27205  /* Job done.  Go to sleep.  */
     27206  for (;;)
     27207    {
     27208      sleep (1);
     27209    }
     27210}
     27211
     27212_ACEOF
     27213if ac_fn_c_try_run "$LINENO"
     27214then :
     27215  gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
     27216else case e in #(
     27217  e) gl_cv_pthread_rwlock_rdlock_prefer_writer=no ;;
     27218esac
     27219fi
     27220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27221  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27222esac
     27223fi
     27224
     27225     LIBS="$save_LIBS"
     27226     ;;
     27227esac
     27228fi
     27229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
     27230printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
     27231  case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
     27232    *yes)
     27233
     27234printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
     27235
     27236      ;;
     27237  esac
     27238
     27239    fi
     27240    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
     27241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27242/* end confdefs.h.  */
     27243
     27244      #include <pthread.h>
     27245int
     27246main (void)
     27247{
     27248
     27249#if __FreeBSD__ == 4
     27250error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
     27251#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
     27252       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
     27253error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
     27254#else
     27255int x = (int)PTHREAD_MUTEX_RECURSIVE;
     27256return !x;
     27257#endif
     27258
     27259  ;
     27260  return 0;
    757027261}
    757127262_ACEOF
    7572 rm -f conftest$ac_exeext
    7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     27263if ac_fn_c_try_compile "$LINENO"
     27264then :
     27265
     27266printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
     27267
     27268fi
     27269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     27270  fi
     27271  :
     27272
     27273
     27274
     27275printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
     27276
     27277
     27278
     27279
     27280
     27281
     27282  if test $ac_cv_func_lstat = yes; then
     27283
     27284    case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
     27285      solaris* | *no)
     27286        REPLACE_LSTAT=1
     27287        ;;
     27288    esac
     27289  else
     27290    HAVE_LSTAT=0
     27291  fi
     27292
     27293
     27294     if test $REPLACE_LSTAT = 1; then
     27295  GL_COND_OBJ_LSTAT_TRUE=
     27296  GL_COND_OBJ_LSTAT_FALSE='#'
     27297else
     27298  GL_COND_OBJ_LSTAT_TRUE='#'
     27299  GL_COND_OBJ_LSTAT_FALSE=
     27300fi
     27301:
     27302    if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
     27303    GL_COND_OBJ_LSTAT_TRUE='#'
     27304    GL_COND_OBJ_LSTAT_FALSE='#'
     27305  fi
     27306
     27307  if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
     27308
     27309    :
     27310
     27311fi
     27312
     27313
     27314
     27315
     27316
     27317
     27318
     27319
     27320
     27321          GL_GNULIB_LSTAT=1
     27322
     27323
     27324
     27325
     27326
     27327printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
     27328
     27329
     27330
     27331
     27332
     27333
     27334
     27335
     27336
     27337  REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
     27338  if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
     27339
     27340    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
     27341printf %s "checking whether malloc (0) returns nonnull... " >&6; }
     27342if test ${ac_cv_func_malloc_0_nonnull+y}
     27343then :
     27344  printf %s "(cached) " >&6
     27345else case e in #(
     27346  e) if test "$cross_compiling" = yes
     27347then :
     27348  case "$host_os" in
     27349          # Guess yes on platforms where we know the result.
     27350          *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
     27351          | gnu* | *-musl* | midnightbsd* \
     27352          | hpux* | solaris* | cygwin* | mingw* | msys* )
     27353            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
     27354          # If we don't know, obey --enable-cross-guesses.
     27355          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
     27356        esac
     27357
     27358else case e in #(
     27359  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27360/* end confdefs.h.  */
     27361#include <stdlib.h>
     27362
     27363int
     27364main (void)
     27365{
     27366void *p = malloc (0);
     27367            int result = !p;
     27368            free (p);
     27369            return result;
     27370  ;
     27371  return 0;
     27372}
     27373
     27374_ACEOF
     27375if ac_fn_c_try_run "$LINENO"
     27376then :
     27377  ac_cv_func_malloc_0_nonnull=yes
     27378else case e in #(
     27379  e) ac_cv_func_malloc_0_nonnull=no ;;
     27380esac
     27381fi
     27382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27383  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27384esac
     27385fi
     27386
     27387     ;;
     27388esac
     27389fi
     27390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
     27391printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
     27392  case $ac_cv_func_malloc_0_nonnull in #(
     27393  *yes) :
     27394     ;; #(
     27395  *) :
     27396    REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
     27397esac
     27398
     27399  fi
     27400
     27401  if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
     27402
     27403
     27404
     27405
     27406
     27407
     27408
     27409
     27410  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
     27411
     27412  fi
     27413
     27414
     27415
     27416
     27417
     27418
     27419
     27420
     27421
     27422          GL_GNULIB_MALLOC_GNU=1
     27423
     27424
     27425
     27426
     27427
     27428printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
     27429
     27430
     27431
     27432
     27433  if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
     27434
     27435
     27436
     27437
     27438
     27439
     27440
     27441
     27442  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
     27443
     27444  fi
     27445
     27446
     27447
     27448
     27449
     27450
     27451
     27452
     27453
     27454          GL_GNULIB_MALLOC_POSIX=1
     27455
     27456
     27457
     27458
     27459
     27460printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
     27461
     27462
     27463
     27464
     27465
     27466
     27467
     27468
     27469
     27470
     27471
     27472
     27473  if test $ac_cv_func_mbrlen = no; then
     27474    HAVE_MBRLEN=0
     27475    ac_fn_check_decl "$LINENO" "mbrlen" "ac_cv_have_decl_mbrlen" "
     27476      #include <wchar.h>
     27477
     27478" "$ac_c_undeclared_builtin_options" "CFLAGS"
     27479if test "x$ac_cv_have_decl_mbrlen" = xyes
     27480then :
     27481  ac_have_decl=1
     27482else case e in #(
     27483  e) ac_have_decl=0 ;;
     27484esac
     27485fi
     27486printf "%s\n" "#define HAVE_DECL_MBRLEN $ac_have_decl" >>confdefs.h
     27487
     27488    if test $ac_cv_have_decl_mbrlen = yes; then
     27489                        REPLACE_MBRLEN=1
     27490    fi
     27491  else
     27492                    if test $REPLACE_MBRTOWC = 1; then
     27493      REPLACE_MBRLEN=1
     27494    fi
     27495  fi
     27496
     27497
     27498     if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
     27499  GL_COND_OBJ_MBRLEN_TRUE=
     27500  GL_COND_OBJ_MBRLEN_FALSE='#'
     27501else
     27502  GL_COND_OBJ_MBRLEN_TRUE='#'
     27503  GL_COND_OBJ_MBRLEN_FALSE=
     27504fi
     27505:
     27506    if test -z "${GL_COND_OBJ_MBRLEN_TRUE}" && test -z "${GL_COND_OBJ_MBRLEN_FALSE}"; then
     27507    GL_COND_OBJ_MBRLEN_TRUE='#'
     27508    GL_COND_OBJ_MBRLEN_FALSE='#'
     27509  fi
     27510
     27511  if test -z "$GL_COND_OBJ_MBRLEN_TRUE"; then :
     27512
     27513
     27514  :
     27515
     27516
     27517fi
     27518
     27519
     27520
     27521
     27522
     27523
     27524
     27525
     27526
     27527
     27528
     27529
     27530
     27531
     27532          GL_GNULIB_MBRLEN=1
     27533
     27534
     27535
     27536
     27537
     27538printf "%s\n" "#define GNULIB_TEST_MBRLEN 1" >>confdefs.h
     27539
     27540
     27541
     27542
     27543
     27544
     27545
     27546
     27547
     27548
     27549
     27550
     27551
     27552
     27553
     27554
     27555        if case "$host_os" in
     27556       mingw*) true ;;
     27557       *) test $ac_cv_func_mbsinit = yes ;;
     27558     esac \
     27559    && test $ac_cv_func_mbrtowc = yes; then
     27560
     27561
     27562
     27563
     27564     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
     27565printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
     27566if test ${gl_cv_func_mbrtowc_incomplete_state+y}
     27567then :
     27568  printf %s "(cached) " >&6
     27569else case e in #(
     27570  e)
     27571                  case "$host_os" in
     27572                     # Guess no on AIX and OSF/1.
     27573        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
     27574                     # Guess yes otherwise.
     27575        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
     27576      esac
     27577      if test $LOCALE_JA != none; then
     27578        if test "$cross_compiling" = yes
     27579then :
     27580  :
     27581else case e in #(
     27582  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27583/* end confdefs.h.  */
     27584
     27585#include <locale.h>
     27586#include <string.h>
     27587#include <wchar.h>
     27588int main ()
     27589{
     27590  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     27591    {
     27592      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     27593      mbstate_t state;
     27594      wchar_t wc;
     27595
     27596      memset (&state, '\0', sizeof (mbstate_t));
     27597      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     27598        if (mbsinit (&state))
     27599          return 2;
     27600    }
     27601  return 0;
     27602}
     27603_ACEOF
     27604if ac_fn_c_try_run "$LINENO"
     27605then :
     27606  gl_cv_func_mbrtowc_incomplete_state=yes
     27607else case e in #(
     27608  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     27609esac
     27610fi
     27611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27612  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27613esac
     27614fi
     27615
     27616      else
     27617        if test $LOCALE_FR_UTF8 != none; then
     27618          if test "$cross_compiling" = yes
     27619then :
     27620  :
     27621else case e in #(
     27622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27623/* end confdefs.h.  */
     27624
     27625#include <locale.h>
     27626#include <string.h>
     27627#include <wchar.h>
     27628int main ()
     27629{
     27630  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     27631    {
     27632      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
     27633      mbstate_t state;
     27634      wchar_t wc;
     27635
     27636      memset (&state, '\0', sizeof (mbstate_t));
     27637      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     27638        if (mbsinit (&state))
     27639          return 2;
     27640    }
     27641  return 0;
     27642}
     27643_ACEOF
     27644if ac_fn_c_try_run "$LINENO"
     27645then :
     27646  gl_cv_func_mbrtowc_incomplete_state=yes
     27647else case e in #(
     27648  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     27649esac
     27650fi
     27651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27652  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27653esac
     27654fi
     27655
     27656        fi
     27657      fi
     27658     ;;
     27659esac
     27660fi
     27661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
     27662printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
     27663
     27664
     27665
     27666
     27667     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
     27668printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
     27669if test ${gl_cv_func_mbrtowc_sanitycheck+y}
     27670then :
     27671  printf %s "(cached) " >&6
     27672else case e in #(
     27673  e)
     27674                  case "$host_os" in
     27675                    # Guess no on Solaris 8.
     27676        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
     27677                    # Guess yes otherwise.
     27678        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
     27679      esac
     27680      if test $LOCALE_ZH_CN != none; then
     27681        if test "$cross_compiling" = yes
     27682then :
     27683  :
     27684else case e in #(
     27685  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27686/* end confdefs.h.  */
     27687
     27688#include <locale.h>
     27689#include <stdlib.h>
     27690#include <string.h>
     27691#include <wchar.h>
     27692int main ()
     27693{
     27694  /* This fails on Solaris 8:
     27695     mbrtowc returns 2, and sets wc to 0x00F0.
     27696     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
     27697  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     27698    {
     27699      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
     27700      mbstate_t state;
     27701      wchar_t wc;
     27702
     27703      memset (&state, '\0', sizeof (mbstate_t));
     27704      if (mbrtowc (&wc, input + 3, 6, &state) != 4
     27705          && mbtowc (&wc, input + 3, 6) == 4)
     27706        return 2;
     27707    }
     27708  return 0;
     27709}
     27710_ACEOF
     27711if ac_fn_c_try_run "$LINENO"
     27712then :
     27713  gl_cv_func_mbrtowc_sanitycheck=yes
     27714else case e in #(
     27715  e) gl_cv_func_mbrtowc_sanitycheck=no ;;
     27716esac
     27717fi
     27718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27719  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27720esac
     27721fi
     27722
     27723      fi
     27724     ;;
     27725esac
     27726fi
     27727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
     27728printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
     27729
     27730    REPLACE_MBSTATE_T=0
     27731    case "$gl_cv_func_mbrtowc_incomplete_state" in
     27732      *yes) ;;
     27733      *) REPLACE_MBSTATE_T=1 ;;
     27734    esac
     27735    case "$gl_cv_func_mbrtowc_sanitycheck" in
     27736      *yes) ;;
     27737      *) REPLACE_MBSTATE_T=1 ;;
     27738    esac
     27739  else
     27740    REPLACE_MBSTATE_T=1
     27741  fi
     27742
     27743
     27744
     27745  if test $ac_cv_func_mbrtowc = no; then
     27746    HAVE_MBRTOWC=0
     27747    ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
     27748      #include <wchar.h>
     27749
     27750" "$ac_c_undeclared_builtin_options" "CFLAGS"
     27751if test "x$ac_cv_have_decl_mbrtowc" = xyes
     27752then :
     27753  ac_have_decl=1
     27754else case e in #(
     27755  e) ac_have_decl=0 ;;
     27756esac
     27757fi
     27758printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h
     27759
     27760    if test $ac_cv_have_decl_mbrtowc = yes; then
     27761                        REPLACE_MBRTOWC=1
     27762    fi
     27763  else
     27764    if test $REPLACE_MBSTATE_T = 1; then
     27765      REPLACE_MBRTOWC=1
     27766    else
     27767
     27768
     27769
     27770     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
     27771printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
     27772if test ${gl_cv_func_mbrtowc_null_arg1+y}
     27773then :
     27774  printf %s "(cached) " >&6
     27775else case e in #(
     27776  e)
     27777                  case "$host_os" in
     27778                  # Guess no on Solaris.
     27779        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
     27780                  # Guess yes otherwise.
     27781        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
     27782      esac
     27783      if test $LOCALE_FR_UTF8 != none; then
     27784        if test "$cross_compiling" = yes
     27785then :
     27786  :
     27787else case e in #(
     27788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27789/* end confdefs.h.  */
     27790
     27791#include <locale.h>
     27792#include <stdlib.h>
     27793#include <string.h>
     27794#include <wchar.h>
     27795int main ()
     27796{
     27797  int result = 0;
     27798
     27799  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     27800    {
     27801      char input[] = "\303\237er";
     27802      mbstate_t state;
     27803      wchar_t wc;
     27804      size_t ret;
     27805
     27806      memset (&state, '\0', sizeof (mbstate_t));
     27807      wc = (wchar_t) 0xBADFACE;
     27808      ret = mbrtowc (&wc, input, 5, &state);
     27809      if (ret != 2)
     27810        result |= 1;
     27811      if (!mbsinit (&state))
     27812        result |= 2;
     27813
     27814      memset (&state, '\0', sizeof (mbstate_t));
     27815      ret = mbrtowc (NULL, input, 5, &state);
     27816      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
     27817        result |= 4;
     27818      if (!mbsinit (&state))
     27819        result |= 8;
     27820    }
     27821  return result;
     27822}
     27823_ACEOF
     27824if ac_fn_c_try_run "$LINENO"
     27825then :
     27826  gl_cv_func_mbrtowc_null_arg1=yes
     27827else case e in #(
     27828  e) gl_cv_func_mbrtowc_null_arg1=no ;;
     27829esac
     27830fi
     27831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27832  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27833esac
     27834fi
     27835
     27836      fi
     27837     ;;
     27838esac
     27839fi
     27840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
     27841printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; }
     27842
     27843
     27844
     27845
     27846     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
     27847printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; }
     27848if test ${gl_cv_func_mbrtowc_null_arg2+y}
     27849then :
     27850  printf %s "(cached) " >&6
     27851else case e in #(
     27852  e)
     27853                  case "$host_os" in
     27854              # Guess no on OSF/1.
     27855        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
     27856              # Guess yes otherwise.
     27857        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
     27858      esac
     27859      if test $LOCALE_FR_UTF8 != none; then
     27860        if test "$cross_compiling" = yes
     27861then :
     27862  :
     27863else case e in #(
     27864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27865/* end confdefs.h.  */
     27866
     27867#include <locale.h>
     27868#include <string.h>
     27869#include <wchar.h>
     27870int main ()
     27871{
     27872  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     27873    {
     27874      mbstate_t state;
     27875      wchar_t wc;
     27876      int ret;
     27877
     27878      memset (&state, '\0', sizeof (mbstate_t));
     27879      wc = (wchar_t) 0xBADFACE;
     27880      mbrtowc (&wc, NULL, 5, &state);
     27881      /* Check that wc was not modified.  */
     27882      if (wc != (wchar_t) 0xBADFACE)
     27883        return 2;
     27884    }
     27885  return 0;
     27886}
     27887_ACEOF
     27888if ac_fn_c_try_run "$LINENO"
     27889then :
     27890  gl_cv_func_mbrtowc_null_arg2=yes
     27891else case e in #(
     27892  e) gl_cv_func_mbrtowc_null_arg2=no ;;
     27893esac
     27894fi
     27895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     27896  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     27897esac
     27898fi
     27899
     27900      fi
     27901     ;;
     27902esac
     27903fi
     27904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
     27905printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; }
     27906
     27907
     27908
     27909
     27910
     27911
     27912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
     27913printf %s "checking whether mbrtowc has a correct return value... " >&6; }
     27914if test ${gl_cv_func_mbrtowc_retval+y}
     27915then :
     27916  printf %s "(cached) " >&6
     27917else case e in #(
     27918  e)
     27919                  case "$host_os" in
     27920                                   # Guess no on HP-UX, Solaris, native Windows.
     27921        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
     27922                                   # Guess yes otherwise.
     27923        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
     27924      esac
     27925      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
     27926         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
     27927        if test "$cross_compiling" = yes
     27928then :
     27929  :
     27930else case e in #(
     27931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     27932/* end confdefs.h.  */
     27933
     27934#include <locale.h>
     27935#include <string.h>
     27936#include <wchar.h>
     27937int main ()
     27938{
     27939  int result = 0;
     27940  int found_some_locale = 0;
     27941  /* This fails on Solaris.  */
     27942  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     27943    {
     27944      char input[] = "B\303\274\303\237er"; /* "Büßer" */
     27945      mbstate_t state;
     27946      wchar_t wc;
     27947
     27948      memset (&state, '\0', sizeof (mbstate_t));
     27949      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     27950        {
     27951          input[1] = '\0';
     27952          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
     27953            result |= 1;
     27954        }
     27955      found_some_locale = 1;
     27956    }
     27957  /* This fails on HP-UX 11.11.  */
     27958  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     27959    {
     27960      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     27961      mbstate_t state;
     27962      wchar_t wc;
     27963
     27964      memset (&state, '\0', sizeof (mbstate_t));
     27965      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     27966        {
     27967          input[1] = '\0';
     27968          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
     27969            result |= 2;
     27970        }
     27971      found_some_locale = 1;
     27972    }
     27973  /* This fails on native Windows.  */
     27974  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
     27975    {
     27976      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
     27977      mbstate_t state;
     27978      wchar_t wc;
     27979
     27980      memset (&state, '\0', sizeof (mbstate_t));
     27981      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     27982        {
     27983          input[3] = '\0';
     27984          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     27985            result |= 4;
     27986        }
     27987      found_some_locale = 1;
     27988    }
     27989  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
     27990    {
     27991      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
     27992      mbstate_t state;
     27993      wchar_t wc;
     27994
     27995      memset (&state, '\0', sizeof (mbstate_t));
     27996      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     27997        {
     27998          input[3] = '\0';
     27999          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     28000            result |= 8;
     28001        }
     28002      found_some_locale = 1;
     28003    }
     28004  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
     28005    {
     28006      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
     28007      mbstate_t state;
     28008      wchar_t wc;
     28009
     28010      memset (&state, '\0', sizeof (mbstate_t));
     28011      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
     28012        {
     28013          input[3] = '\0';
     28014          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
     28015            result |= 16;
     28016        }
     28017      found_some_locale = 1;
     28018    }
     28019  return (found_some_locale ? result : 77);
     28020}
     28021_ACEOF
     28022if ac_fn_c_try_run "$LINENO"
     28023then :
     28024  gl_cv_func_mbrtowc_retval=yes
     28025else case e in #(
     28026  e) if test $? != 77; then
     28027             gl_cv_func_mbrtowc_retval=no
     28028           fi
     28029           ;;
     28030esac
     28031fi
     28032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28033  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28034esac
     28035fi
     28036
     28037      fi
     28038     ;;
     28039esac
     28040fi
     28041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
     28042printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; }
     28043
     28044
     28045
     28046
     28047     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
     28048printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
     28049if test ${gl_cv_func_mbrtowc_nul_retval+y}
     28050then :
     28051  printf %s "(cached) " >&6
     28052else case e in #(
     28053  e)
     28054                  case "$host_os" in
     28055                       # Guess no on Solaris 8 and 9.
     28056        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
     28057                       # Guess yes otherwise.
     28058        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
     28059      esac
     28060      if test $LOCALE_ZH_CN != none; then
     28061        if test "$cross_compiling" = yes
     28062then :
     28063  :
     28064else case e in #(
     28065  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28066/* end confdefs.h.  */
     28067
     28068#include <locale.h>
     28069#include <string.h>
     28070#include <wchar.h>
     28071int main ()
     28072{
     28073  /* This fails on Solaris 8 and 9.  */
     28074  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     28075    {
     28076      mbstate_t state;
     28077      wchar_t wc;
     28078
     28079      memset (&state, '\0', sizeof (mbstate_t));
     28080      if (mbrtowc (&wc, "", 1, &state) != 0)
     28081        return 2;
     28082    }
     28083  return 0;
     28084}
     28085_ACEOF
     28086if ac_fn_c_try_run "$LINENO"
     28087then :
     28088  gl_cv_func_mbrtowc_nul_retval=yes
     28089else case e in #(
     28090  e) gl_cv_func_mbrtowc_nul_retval=no ;;
     28091esac
     28092fi
     28093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28094  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28095esac
     28096fi
     28097
     28098      fi
     28099     ;;
     28100esac
     28101fi
     28102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
     28103printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; }
     28104
     28105
     28106
     28107     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
     28108printf %s "checking whether mbrtowc stores incomplete characters... " >&6; }
     28109if test ${gl_cv_func_mbrtowc_stores_incomplete+y}
     28110then :
     28111  printf %s "(cached) " >&6
     28112else case e in #(
     28113  e)
     28114               case "$host_os" in
     28115               # Guess yes on native Windows.
     28116       mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
     28117       *)      gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
     28118     esac
     28119     case "$host_os" in
     28120       mingw*)
     28121         if test "$cross_compiling" = yes
     28122then :
     28123  :
     28124else case e in #(
     28125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28126/* end confdefs.h.  */
     28127
     28128#include <locale.h>
     28129#include <string.h>
     28130#include <wchar.h>
     28131int main ()
     28132{
     28133  int result = 0;
     28134  if (setlocale (LC_ALL, "French_France.65001") != NULL)
     28135    {
     28136      wchar_t wc = (wchar_t) 0xBADFACE;
     28137      mbstate_t state;
     28138
     28139      memset (&state, '\0', sizeof (mbstate_t));
     28140      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
     28141          && wc != (wchar_t) 0xBADFACE)
     28142        result |= 1;
     28143    }
     28144  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
     28145    {
     28146      wchar_t wc = (wchar_t) 0xBADFACE;
     28147      mbstate_t state;
     28148
     28149      memset (&state, '\0', sizeof (mbstate_t));
     28150      if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
     28151          && wc != (wchar_t) 0xBADFACE)
     28152        result |= 2;
     28153    }
     28154  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
     28155    {
     28156      wchar_t wc = (wchar_t) 0xBADFACE;
     28157      mbstate_t state;
     28158
     28159      memset (&state, '\0', sizeof (mbstate_t));
     28160      if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
     28161          && wc != (wchar_t) 0xBADFACE)
     28162        result |= 4;
     28163    }
     28164  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
     28165    {
     28166      wchar_t wc = (wchar_t) 0xBADFACE;
     28167      mbstate_t state;
     28168
     28169      memset (&state, '\0', sizeof (mbstate_t));
     28170      if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
     28171          && wc != (wchar_t) 0xBADFACE)
     28172        result |= 8;
     28173    }
     28174  return result;
     28175}
     28176_ACEOF
     28177if ac_fn_c_try_run "$LINENO"
     28178then :
     28179  gl_cv_func_mbrtowc_stores_incomplete=no
     28180else case e in #(
     28181  e) gl_cv_func_mbrtowc_stores_incomplete=yes ;;
     28182esac
     28183fi
     28184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28185  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28186esac
     28187fi
     28188
     28189         ;;
     28190       *)
     28191
     28192         if test $LOCALE_FR_UTF8 != none; then
     28193           if test "$cross_compiling" = yes
     28194then :
     28195  :
     28196else case e in #(
     28197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28198/* end confdefs.h.  */
     28199
     28200#include <locale.h>
     28201#include <string.h>
     28202#include <wchar.h>
     28203int main ()
     28204{
     28205  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     28206    {
     28207      wchar_t wc = (wchar_t) 0xBADFACE;
     28208      mbstate_t state;
     28209
     28210      memset (&state, '\0', sizeof (mbstate_t));
     28211      if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
     28212          && wc != (wchar_t) 0xBADFACE)
     28213        return 1;
     28214    }
     28215  return 0;
     28216}
     28217_ACEOF
     28218if ac_fn_c_try_run "$LINENO"
     28219then :
     28220  gl_cv_func_mbrtowc_stores_incomplete=no
     28221else case e in #(
     28222  e) gl_cv_func_mbrtowc_stores_incomplete=yes ;;
     28223esac
     28224fi
     28225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28226  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28227esac
     28228fi
     28229
     28230         fi
     28231         ;;
     28232     esac
     28233     ;;
     28234esac
     28235fi
     28236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
     28237printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
     28238
     28239
     28240
     28241     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
     28242printf %s "checking whether mbrtowc works on empty input... " >&6; }
     28243if test ${gl_cv_func_mbrtowc_empty_input+y}
     28244then :
     28245  printf %s "(cached) " >&6
     28246else case e in #(
     28247  e)
     28248                  case "$host_os" in
     28249                              # Guess no on AIX and glibc systems.
     28250        aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
     28251                              # Guess yes on native Windows.
     28252        mingw*)               gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
     28253        *)                    gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
     28254      esac
     28255      if test "$cross_compiling" = yes
     28256then :
     28257  :
     28258else case e in #(
     28259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28260/* end confdefs.h.  */
     28261
     28262           #include <wchar.h>
     28263           static wchar_t wc;
     28264           static mbstate_t mbs;
     28265           int
     28266           main (void)
     28267           {
     28268             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
     28269           }
     28270_ACEOF
     28271if ac_fn_c_try_run "$LINENO"
     28272then :
     28273  gl_cv_func_mbrtowc_empty_input=yes
     28274else case e in #(
     28275  e) gl_cv_func_mbrtowc_empty_input=no ;;
     28276esac
     28277fi
     28278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28279  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28280esac
     28281fi
     28282
     28283     ;;
     28284esac
     28285fi
     28286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
     28287printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; }
     28288
     28289
     28290     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
     28291printf %s "checking whether the C locale is free of encoding errors... " >&6; }
     28292if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y}
     28293then :
     28294  printf %s "(cached) " >&6
     28295else case e in #(
     28296  e)
     28297               gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
     28298
     28299     if test "$cross_compiling" = yes
     28300then :
     28301  case "$host_os" in
     28302                 # Guess yes on native Windows.
     28303         mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
     28304       esac
     28305
     28306else case e in #(
     28307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28308/* end confdefs.h.  */
     28309#include <limits.h>
     28310            #include <locale.h>
     28311            #include <wchar.h>
     28312
     28313int
     28314main (void)
     28315{
     28316
     28317            int i;
     28318            char *locale = setlocale (LC_ALL, "C");
     28319            if (! locale)
     28320              return 2;
     28321            for (i = CHAR_MIN; i <= CHAR_MAX; i++)
     28322              {
     28323                char c = i;
     28324                wchar_t wc;
     28325                mbstate_t mbs = { 0, };
     28326                size_t ss = mbrtowc (&wc, &c, 1, &mbs);
     28327                if (1 < ss)
     28328                  return 3;
     28329              }
     28330            return 0;
     28331
     28332  ;
     28333  return 0;
     28334}
     28335_ACEOF
     28336if ac_fn_c_try_run "$LINENO"
     28337then :
     28338  gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
     28339else case e in #(
     28340  e) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no ;;
     28341esac
     28342fi
     28343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28344  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28345esac
     28346fi
     28347
     28348     ;;
     28349esac
     28350fi
     28351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
     28352printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
     28353
     28354      case "$gl_cv_func_mbrtowc_null_arg1" in
     28355        *yes) ;;
     28356        *)
     28357printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
     28358
     28359           REPLACE_MBRTOWC=1
     28360           ;;
     28361      esac
     28362      case "$gl_cv_func_mbrtowc_null_arg2" in
     28363        *yes) ;;
     28364        *)
     28365printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
     28366
     28367           REPLACE_MBRTOWC=1
     28368           ;;
     28369      esac
     28370      case "$gl_cv_func_mbrtowc_retval" in
     28371        *yes) ;;
     28372        *)
     28373printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
     28374
     28375           REPLACE_MBRTOWC=1
     28376           ;;
     28377      esac
     28378      case "$gl_cv_func_mbrtowc_nul_retval" in
     28379        *yes) ;;
     28380        *)
     28381printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
     28382
     28383           REPLACE_MBRTOWC=1
     28384           ;;
     28385      esac
     28386      case "$gl_cv_func_mbrtowc_stores_incomplete" in
     28387        *no) ;;
     28388        *)
     28389printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
     28390
     28391           REPLACE_MBRTOWC=1
     28392           ;;
     28393      esac
     28394      case "$gl_cv_func_mbrtowc_empty_input" in
     28395        *yes) ;;
     28396        *)
     28397printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
     28398
     28399           REPLACE_MBRTOWC=1
     28400           ;;
     28401      esac
     28402      case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
     28403        *yes) ;;
     28404        *)
     28405printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
     28406
     28407           REPLACE_MBRTOWC=1
     28408           ;;
     28409      esac
     28410    fi
     28411  fi
     28412  if test $REPLACE_MBSTATE_T = 1; then
     28413    case "$host_os" in
     28414      mingw*) LIB_MBRTOWC= ;;
     28415      *)
     28416
     28417
     28418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
     28419printf %s "checking whether imported symbols can be declared weak... " >&6; }
     28420if test ${gl_cv_have_weak+y}
     28421then :
     28422  printf %s "(cached) " >&6
     28423else case e in #(
     28424  e) case "$host_os" in
     28425       cygwin*)
     28426                                    gl_cv_have_weak="guessing no"
     28427         ;;
     28428       *)
     28429         gl_cv_have_weak=no
     28430                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28431/* end confdefs.h.  */
     28432extern void xyzzy ();
     28433#pragma weak xyzzy
     28434int
     28435main (void)
     28436{
     28437xyzzy();
     28438  ;
     28439  return 0;
     28440}
     28441_ACEOF
     28442if ac_fn_c_try_link "$LINENO"
     28443then :
     28444  gl_cv_have_weak=maybe
     28445fi
     28446rm -f core conftest.err conftest.$ac_objext conftest.beam \
     28447    conftest$ac_exeext conftest.$ac_ext
     28448         if test $gl_cv_have_weak = maybe; then
     28449                                 if test "$cross_compiling" = yes
     28450then :
     28451                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28452/* end confdefs.h.  */
     28453#ifdef __ELF__
     28454                 Extensible Linking Format
     28455                 #endif
     28456
     28457_ACEOF
     28458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     28459  $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
     28460then :
     28461  gl_cv_have_weak="guessing yes"
     28462else case e in #(
     28463  e) gl_cv_have_weak="guessing no" ;;
     28464esac
     28465fi
     28466rm -rf conftest*
     28467
     28468
     28469else case e in #(
     28470  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28471/* end confdefs.h.  */
     28472
     28473#include <stdio.h>
     28474#pragma weak fputs
     28475int main ()
     28476{
     28477  return (fputs == NULL);
     28478}
     28479_ACEOF
     28480if ac_fn_c_try_run "$LINENO"
     28481then :
     28482  gl_cv_have_weak=yes
     28483else case e in #(
     28484  e) gl_cv_have_weak=no ;;
     28485esac
     28486fi
     28487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28488  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28489esac
     28490fi
     28491
     28492         fi
     28493         ;;
     28494     esac
     28495          case " $LDFLAGS " in
     28496       *" -static "*) gl_cv_have_weak=no ;;
     28497     esac
     28498                    case "$gl_cv_have_weak" in
     28499       *yes)
     28500         case "$host_os" in
     28501           freebsd* | dragonfly* | midnightbsd*)
     28502             : > conftest1.c
     28503             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
     28504             cat <<EOF > conftest2.c
     28505#include <pthread.h>
     28506#pragma weak pthread_mutexattr_gettype
     28507int main ()
     28508{
     28509  return (pthread_mutexattr_gettype != NULL);
     28510}
     28511EOF
     28512             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
     28513               || gl_cv_have_weak=no
     28514             rm -f conftest1.c libempty.so conftest2.c conftest
     28515             ;;
     28516         esac
     28517         ;;
     28518     esac
     28519     ;;
     28520esac
     28521fi
     28522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
     28523printf "%s\n" "$gl_cv_have_weak" >&6; }
     28524  case "$gl_cv_have_weak" in
     28525    *yes)
     28526
     28527printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
     28528
     28529      ;;
     28530  esac
     28531
     28532        case "$gl_cv_have_weak" in
     28533          *yes) LIB_MBRTOWC= ;;
     28534          *)    LIB_MBRTOWC="$LIBPTHREAD" ;;
     28535        esac
     28536        ;;
     28537    esac
     28538  else
     28539    LIB_MBRTOWC=
     28540  fi
     28541
     28542
     28543
     28544     if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
     28545  GL_COND_OBJ_MBRTOWC_TRUE=
     28546  GL_COND_OBJ_MBRTOWC_FALSE='#'
     28547else
     28548  GL_COND_OBJ_MBRTOWC_TRUE='#'
     28549  GL_COND_OBJ_MBRTOWC_FALSE=
     28550fi
     28551:
     28552    if test -z "${GL_COND_OBJ_MBRTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBRTOWC_FALSE}"; then
     28553    GL_COND_OBJ_MBRTOWC_TRUE='#'
     28554    GL_COND_OBJ_MBRTOWC_FALSE='#'
     28555  fi
     28556
     28557  if test -z "$GL_COND_OBJ_MBRTOWC_TRUE"; then :
     28558
     28559    if test $REPLACE_MBSTATE_T = 1; then
     28560
     28561
     28562
     28563
     28564
     28565
     28566
     28567
     28568  gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
     28569
     28570
     28571
     28572
     28573
     28574
     28575
     28576
     28577
     28578  gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext"
     28579
     28580
     28581
     28582
     28583  CFLAG_VISIBILITY=
     28584  HAVE_VISIBILITY=0
     28585  if test -n "$GCC"; then
     28586                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
     28587printf %s "checking whether the -Werror option is usable... " >&6; }
     28588if test ${gl_cv_cc_vis_werror+y}
     28589then :
     28590  printf %s "(cached) " >&6
     28591else case e in #(
     28592  e) gl_save_CFLAGS="$CFLAGS"
     28593       CFLAGS="$CFLAGS -Werror"
     28594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28595/* end confdefs.h.  */
     28596
     28597int
     28598main (void)
     28599{
     28600
     28601  ;
     28602  return 0;
     28603}
     28604_ACEOF
     28605if ac_fn_c_try_compile "$LINENO"
     28606then :
     28607  gl_cv_cc_vis_werror=yes
     28608else case e in #(
     28609  e) gl_cv_cc_vis_werror=no ;;
     28610esac
     28611fi
     28612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     28613       CFLAGS="$gl_save_CFLAGS"
     28614       ;;
     28615esac
     28616fi
     28617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
     28618printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
     28619        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
     28620printf %s "checking for simple visibility declarations... " >&6; }
     28621if test ${gl_cv_cc_visibility+y}
     28622then :
     28623  printf %s "(cached) " >&6
     28624else case e in #(
     28625  e) gl_save_CFLAGS="$CFLAGS"
     28626       CFLAGS="$CFLAGS -fvisibility=hidden"
     28627                                          if test $gl_cv_cc_vis_werror = yes; then
     28628         CFLAGS="$CFLAGS -Werror"
     28629       fi
     28630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28631/* end confdefs.h.  */
     28632extern __attribute__((__visibility__("hidden"))) int hiddenvar;
     28633              extern __attribute__((__visibility__("default"))) int exportedvar;
     28634              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
     28635              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
     28636              void dummyfunc (void);
     28637              int hiddenvar;
     28638              int exportedvar;
     28639              int hiddenfunc (void) { return 51; }
     28640              int exportedfunc (void) { return 1225736919; }
     28641              void dummyfunc (void) {}
     28642
     28643int
     28644main (void)
     28645{
     28646
     28647  ;
     28648  return 0;
     28649}
     28650_ACEOF
     28651if ac_fn_c_try_compile "$LINENO"
     28652then :
     28653  gl_cv_cc_visibility=yes
     28654else case e in #(
     28655  e) gl_cv_cc_visibility=no ;;
     28656esac
     28657fi
     28658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     28659       CFLAGS="$gl_save_CFLAGS"
     28660       ;;
     28661esac
     28662fi
     28663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
     28664printf "%s\n" "$gl_cv_cc_visibility" >&6; }
     28665    if test $gl_cv_cc_visibility = yes; then
     28666      CFLAG_VISIBILITY="-fvisibility=hidden"
     28667      HAVE_VISIBILITY=1
     28668    fi
     28669  fi
     28670
     28671
     28672
     28673printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
     28674
     28675
     28676
     28677    fi
     28678
     28679
     28680  :
     28681
     28682
     28683fi
     28684
     28685
     28686
     28687
     28688
     28689
     28690
     28691
     28692
     28693
     28694
     28695
     28696
     28697
     28698          GL_GNULIB_MBRTOWC=1
     28699
     28700
     28701
     28702
     28703
     28704printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
     28705
     28706
     28707
     28708
     28709
     28710
     28711
     28712
     28713
     28714
     28715
     28716
     28717
     28718
     28719
     28720        if case "$host_os" in
     28721       mingw*) true ;;
     28722       *) test $ac_cv_func_mbsinit = yes ;;
     28723     esac \
     28724    && test $ac_cv_func_mbrtowc = yes; then
     28725
     28726
     28727
     28728
     28729     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
     28730printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
     28731if test ${gl_cv_func_mbrtowc_incomplete_state+y}
     28732then :
     28733  printf %s "(cached) " >&6
     28734else case e in #(
     28735  e)
     28736                  case "$host_os" in
     28737                     # Guess no on AIX and OSF/1.
     28738        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
     28739                     # Guess yes otherwise.
     28740        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
     28741      esac
     28742      if test $LOCALE_JA != none; then
     28743        if test "$cross_compiling" = yes
     28744then :
     28745  :
     28746else case e in #(
     28747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28748/* end confdefs.h.  */
     28749
     28750#include <locale.h>
     28751#include <string.h>
     28752#include <wchar.h>
     28753int main ()
     28754{
     28755  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     28756    {
     28757      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     28758      mbstate_t state;
     28759      wchar_t wc;
     28760
     28761      memset (&state, '\0', sizeof (mbstate_t));
     28762      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     28763        if (mbsinit (&state))
     28764          return 2;
     28765    }
     28766  return 0;
     28767}
     28768_ACEOF
     28769if ac_fn_c_try_run "$LINENO"
     28770then :
     28771  gl_cv_func_mbrtowc_incomplete_state=yes
     28772else case e in #(
     28773  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     28774esac
     28775fi
     28776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28777  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28778esac
     28779fi
     28780
     28781      else
     28782        if test $LOCALE_FR_UTF8 != none; then
     28783          if test "$cross_compiling" = yes
     28784then :
     28785  :
     28786else case e in #(
     28787  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28788/* end confdefs.h.  */
     28789
     28790#include <locale.h>
     28791#include <string.h>
     28792#include <wchar.h>
     28793int main ()
     28794{
     28795  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     28796    {
     28797      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
     28798      mbstate_t state;
     28799      wchar_t wc;
     28800
     28801      memset (&state, '\0', sizeof (mbstate_t));
     28802      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     28803        if (mbsinit (&state))
     28804          return 2;
     28805    }
     28806  return 0;
     28807}
     28808_ACEOF
     28809if ac_fn_c_try_run "$LINENO"
     28810then :
     28811  gl_cv_func_mbrtowc_incomplete_state=yes
     28812else case e in #(
     28813  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     28814esac
     28815fi
     28816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28817  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28818esac
     28819fi
     28820
     28821        fi
     28822      fi
     28823     ;;
     28824esac
     28825fi
     28826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
     28827printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
     28828
     28829
     28830
     28831
     28832     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
     28833printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
     28834if test ${gl_cv_func_mbrtowc_sanitycheck+y}
     28835then :
     28836  printf %s "(cached) " >&6
     28837else case e in #(
     28838  e)
     28839                  case "$host_os" in
     28840                    # Guess no on Solaris 8.
     28841        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
     28842                    # Guess yes otherwise.
     28843        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
     28844      esac
     28845      if test $LOCALE_ZH_CN != none; then
     28846        if test "$cross_compiling" = yes
     28847then :
     28848  :
     28849else case e in #(
     28850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     28851/* end confdefs.h.  */
     28852
     28853#include <locale.h>
     28854#include <stdlib.h>
     28855#include <string.h>
     28856#include <wchar.h>
     28857int main ()
     28858{
     28859  /* This fails on Solaris 8:
     28860     mbrtowc returns 2, and sets wc to 0x00F0.
     28861     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
     28862  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     28863    {
     28864      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
     28865      mbstate_t state;
     28866      wchar_t wc;
     28867
     28868      memset (&state, '\0', sizeof (mbstate_t));
     28869      if (mbrtowc (&wc, input + 3, 6, &state) != 4
     28870          && mbtowc (&wc, input + 3, 6) == 4)
     28871        return 2;
     28872    }
     28873  return 0;
     28874}
     28875_ACEOF
     28876if ac_fn_c_try_run "$LINENO"
     28877then :
     28878  gl_cv_func_mbrtowc_sanitycheck=yes
     28879else case e in #(
     28880  e) gl_cv_func_mbrtowc_sanitycheck=no ;;
     28881esac
     28882fi
     28883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     28884  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     28885esac
     28886fi
     28887
     28888      fi
     28889     ;;
     28890esac
     28891fi
     28892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
     28893printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
     28894
     28895    REPLACE_MBSTATE_T=0
     28896    case "$gl_cv_func_mbrtowc_incomplete_state" in
     28897      *yes) ;;
     28898      *) REPLACE_MBSTATE_T=1 ;;
     28899    esac
     28900    case "$gl_cv_func_mbrtowc_sanitycheck" in
     28901      *yes) ;;
     28902      *) REPLACE_MBSTATE_T=1 ;;
     28903    esac
     28904  else
     28905    REPLACE_MBSTATE_T=1
     28906  fi
     28907
     28908
     28909
     28910  if test $ac_cv_func_mbsinit = no; then
     28911    HAVE_MBSINIT=0
     28912    ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
     28913      #include <wchar.h>
     28914
     28915" "$ac_c_undeclared_builtin_options" "CFLAGS"
     28916if test "x$ac_cv_have_decl_mbsinit" = xyes
     28917then :
     28918  ac_have_decl=1
     28919else case e in #(
     28920  e) ac_have_decl=0 ;;
     28921esac
     28922fi
     28923printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h
     28924
     28925    if test $ac_cv_have_decl_mbsinit = yes; then
     28926                        REPLACE_MBSINIT=1
     28927    fi
     28928  else
     28929    if test $REPLACE_MBSTATE_T = 1; then
     28930      REPLACE_MBSINIT=1
     28931    else
     28932                        case "$host_os" in
     28933        mingw*) REPLACE_MBSINIT=1 ;;
     28934      esac
     28935    fi
     28936  fi
     28937
     28938
     28939     if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
     28940  GL_COND_OBJ_MBSINIT_TRUE=
     28941  GL_COND_OBJ_MBSINIT_FALSE='#'
     28942else
     28943  GL_COND_OBJ_MBSINIT_TRUE='#'
     28944  GL_COND_OBJ_MBSINIT_FALSE=
     28945fi
     28946:
     28947    if test -z "${GL_COND_OBJ_MBSINIT_TRUE}" && test -z "${GL_COND_OBJ_MBSINIT_FALSE}"; then
     28948    GL_COND_OBJ_MBSINIT_TRUE='#'
     28949    GL_COND_OBJ_MBSINIT_FALSE='#'
     28950  fi
     28951
     28952  if test -z "$GL_COND_OBJ_MBSINIT_TRUE"; then :
     28953
     28954
     28955  :
     28956
     28957
     28958fi
     28959
     28960
     28961
     28962
     28963
     28964
     28965
     28966
     28967
     28968
     28969
     28970
     28971
     28972
     28973          GL_GNULIB_MBSINIT=1
     28974
     28975
     28976
     28977
     28978
     28979printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
     28980
     28981
     28982
     28983
     28984
     28985
     28986  ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc"
     28987if test "x$ac_cv_func_mbtowc" = xyes
     28988then :
     28989  printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h
     28990
     28991fi
     28992
     28993  if test $ac_cv_func_mbtowc = no; then
     28994    HAVE_MBTOWC=0
     28995  else
     28996    if false; then
     28997      REPLACE_MBTOWC=1
     28998    fi
     28999  fi
     29000
     29001
     29002     if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
     29003  GL_COND_OBJ_MBTOWC_TRUE=
     29004  GL_COND_OBJ_MBTOWC_FALSE='#'
     29005else
     29006  GL_COND_OBJ_MBTOWC_TRUE='#'
     29007  GL_COND_OBJ_MBTOWC_FALSE=
     29008fi
     29009:
     29010    if test -z "${GL_COND_OBJ_MBTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBTOWC_FALSE}"; then
     29011    GL_COND_OBJ_MBTOWC_TRUE='#'
     29012    GL_COND_OBJ_MBTOWC_FALSE='#'
     29013  fi
     29014
     29015  if test -z "$GL_COND_OBJ_MBTOWC_TRUE"; then :
     29016
     29017
     29018  :
     29019
     29020
     29021fi
     29022
     29023
     29024
     29025
     29026
     29027
     29028
     29029
     29030
     29031          GL_GNULIB_MBTOWC=1
     29032
     29033
     29034
     29035
     29036
     29037printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
     29038
     29039
     29040
     29041
     29042
     29043     if test $REPLACE_MEMCHR = 1; then
     29044  GL_COND_OBJ_MEMCHR_TRUE=
     29045  GL_COND_OBJ_MEMCHR_FALSE='#'
     29046else
     29047  GL_COND_OBJ_MEMCHR_TRUE='#'
     29048  GL_COND_OBJ_MEMCHR_FALSE=
     29049fi
     29050:
     29051    if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
     29052    GL_COND_OBJ_MEMCHR_TRUE='#'
     29053    GL_COND_OBJ_MEMCHR_FALSE='#'
     29054  fi
     29055
     29056  if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
     29057
     29058
     29059  ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
     29060if test "x$ac_cv_header_bp_sym_h" = xyes
     29061then :
     29062  printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
     29063
     29064fi
     29065
     29066
     29067
     29068fi
     29069
     29070
     29071
     29072
     29073
     29074
     29075
     29076
     29077
     29078
     29079
     29080
     29081
     29082
     29083          GL_GNULIB_MEMCHR=1
     29084
     29085
     29086
     29087
     29088
     29089printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
     29090
     29091
     29092
     29093
     29094
     29095
     29096
     29097
     29098
     29099  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
     29100if test "x$ac_cv_func_mempcpy" = xyes
     29101then :
     29102  printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
     29103
     29104fi
     29105
     29106  if test $ac_cv_func_mempcpy = no; then
     29107    HAVE_MEMPCPY=0
     29108  fi
     29109
     29110
     29111     if test $HAVE_MEMPCPY = 0; then
     29112  GL_COND_OBJ_MEMPCPY_TRUE=
     29113  GL_COND_OBJ_MEMPCPY_FALSE='#'
     29114else
     29115  GL_COND_OBJ_MEMPCPY_TRUE='#'
     29116  GL_COND_OBJ_MEMPCPY_FALSE=
     29117fi
     29118:
     29119    if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then
     29120    GL_COND_OBJ_MEMPCPY_TRUE='#'
     29121    GL_COND_OBJ_MEMPCPY_FALSE='#'
     29122  fi
     29123
     29124  if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then :
     29125
     29126
     29127  :
     29128
     29129
     29130fi
     29131
     29132
     29133
     29134
     29135
     29136
     29137
     29138
     29139
     29140
     29141
     29142
     29143
     29144
     29145          GL_GNULIB_MEMPCPY=1
     29146
     29147
     29148
     29149
     29150
     29151printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
     29152
     29153
     29154
     29155
     29156
     29157
     29158
     29159
     29160  if test $ac_cv_have_decl_memrchr = no; then
     29161    HAVE_DECL_MEMRCHR=0
     29162  fi
     29163
     29164  ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
     29165if test "x$ac_cv_func_memrchr" = xyes
     29166then :
     29167  printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
     29168
     29169fi
     29170
     29171
     29172
     29173     if test $ac_cv_func_memrchr = no; then
     29174  GL_COND_OBJ_MEMRCHR_TRUE=
     29175  GL_COND_OBJ_MEMRCHR_FALSE='#'
     29176else
     29177  GL_COND_OBJ_MEMRCHR_TRUE='#'
     29178  GL_COND_OBJ_MEMRCHR_FALSE=
     29179fi
     29180:
     29181    if test -z "${GL_COND_OBJ_MEMRCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMRCHR_FALSE}"; then
     29182    GL_COND_OBJ_MEMRCHR_TRUE='#'
     29183    GL_COND_OBJ_MEMRCHR_FALSE='#'
     29184  fi
     29185
     29186  if test -z "$GL_COND_OBJ_MEMRCHR_TRUE"; then :
     29187
     29188    :
     29189
     29190fi
     29191
     29192
     29193
     29194
     29195
     29196
     29197
     29198
     29199
     29200
     29201
     29202
     29203
     29204
     29205          GL_GNULIB_MEMRCHR=1
     29206
     29207
     29208
     29209
     29210
     29211printf "%s\n" "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
     29212
     29213
     29214
     29215
     29216
     29217
     29218
     29219
     29220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
     29221printf %s "checking whether mkdir handles trailing slash... " >&6; }
     29222if test ${gl_cv_func_mkdir_trailing_slash_works+y}
     29223then :
     29224  printf %s "(cached) " >&6
     29225else case e in #(
     29226  e) rm -rf conftest.dir
     29227     if test "$cross_compiling" = yes
     29228then :
     29229  case "$host_os" in
     29230                           # Guess yes on Linux systems.
     29231          linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
     29232                           # Guess yes on glibc systems.
     29233          *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
     29234                           # Guess yes on MSVC, no on mingw.
     29235          mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29236/* end confdefs.h.  */
     29237
     29238#ifdef _MSC_VER
     29239 Known
     29240#endif
     29241
     29242_ACEOF
     29243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     29244  $EGREP_TRADITIONAL "Known" >/dev/null 2>&1
     29245then :
     29246  gl_cv_func_mkdir_trailing_slash_works="guessing yes"
     29247else case e in #(
     29248  e) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
     29249esac
     29250fi
     29251rm -rf conftest*
     29252
     29253                           ;;
     29254                           # If we don't know, obey --enable-cross-guesses.
     29255          *)               gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
     29256        esac
     29257
     29258else case e in #(
     29259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29260/* end confdefs.h.  */
     29261
     29262          #include <sys/types.h>
     29263          #include <sys/stat.h>
     29264
     29265
     29266$gl_mda_defines
     29267
     29268int
     29269main (void)
     29270{
     29271return mkdir ("conftest.dir/", 0700);
     29272  ;
     29273  return 0;
     29274}
     29275_ACEOF
     29276if ac_fn_c_try_run "$LINENO"
     29277then :
     29278  gl_cv_func_mkdir_trailing_slash_works=yes
     29279else case e in #(
     29280  e) gl_cv_func_mkdir_trailing_slash_works=no ;;
     29281esac
     29282fi
     29283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     29284  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     29285esac
     29286fi
     29287
     29288     rm -rf conftest.dir
     29289     ;;
     29290esac
     29291fi
     29292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
     29293printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
     29294  case "$gl_cv_func_mkdir_trailing_slash_works" in
     29295    *yes) ;;
     29296    *)
     29297      REPLACE_MKDIR=1
     29298      ;;
     29299  esac
     29300
     29301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
     29302printf %s "checking whether mkdir handles trailing dot... " >&6; }
     29303if test ${gl_cv_func_mkdir_trailing_dot_works+y}
     29304then :
     29305  printf %s "(cached) " >&6
     29306else case e in #(
     29307  e) rm -rf conftest.dir
     29308     if test "$cross_compiling" = yes
     29309then :
     29310  case "$host_os" in
     29311                         # Guess yes on glibc systems.
     29312          *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
     29313                         # Guess yes on musl systems.
     29314          *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
     29315                         # Guess no on native Windows.
     29316          mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
     29317                         # If we don't know, obey --enable-cross-guesses.
     29318          *)             gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
     29319        esac
     29320
     29321else case e in #(
     29322  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29323/* end confdefs.h.  */
     29324
     29325          #include <sys/types.h>
     29326          #include <sys/stat.h>
     29327
     29328
     29329$gl_mda_defines
     29330
     29331int
     29332main (void)
     29333{
     29334return !mkdir ("conftest.dir/./", 0700);
     29335  ;
     29336  return 0;
     29337}
     29338_ACEOF
     29339if ac_fn_c_try_run "$LINENO"
     29340then :
     29341  gl_cv_func_mkdir_trailing_dot_works=yes
     29342else case e in #(
     29343  e) gl_cv_func_mkdir_trailing_dot_works=no ;;
     29344esac
     29345fi
     29346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     29347  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     29348esac
     29349fi
     29350
     29351     rm -rf conftest.dir
     29352
     29353   ;;
     29354esac
     29355fi
     29356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
     29357printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
     29358  case "$gl_cv_func_mkdir_trailing_dot_works" in
     29359    *yes) ;;
     29360    *)
     29361      REPLACE_MKDIR=1
     29362
     29363printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
     29364
     29365      ;;
     29366  esac
     29367
     29368
     29369     if test $REPLACE_MKDIR = 1; then
     29370  GL_COND_OBJ_MKDIR_TRUE=
     29371  GL_COND_OBJ_MKDIR_FALSE='#'
     29372else
     29373  GL_COND_OBJ_MKDIR_TRUE='#'
     29374  GL_COND_OBJ_MKDIR_FALSE=
     29375fi
     29376:
     29377    if test -z "${GL_COND_OBJ_MKDIR_TRUE}" && test -z "${GL_COND_OBJ_MKDIR_FALSE}"; then
     29378    GL_COND_OBJ_MKDIR_TRUE='#'
     29379    GL_COND_OBJ_MKDIR_FALSE='#'
     29380  fi
     29381
     29382
     29383
     29384
     29385
     29386
     29387
     29388
     29389
     29390
     29391          GL_GNULIB_MKDIR=1
     29392
     29393
     29394
     29395
     29396
     29397printf "%s\n" "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
     29398
     29399
     29400
     29401
     29402
     29403
     29404
     29405
     29406
     29407  if test $ac_cv_func_mkostemp != yes; then
     29408    HAVE_MKOSTEMP=0
     29409  fi
     29410
     29411
     29412     if test $HAVE_MKOSTEMP = 0; then
     29413  GL_COND_OBJ_MKOSTEMP_TRUE=
     29414  GL_COND_OBJ_MKOSTEMP_FALSE='#'
     29415else
     29416  GL_COND_OBJ_MKOSTEMP_TRUE='#'
     29417  GL_COND_OBJ_MKOSTEMP_FALSE=
     29418fi
     29419:
     29420    if test -z "${GL_COND_OBJ_MKOSTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKOSTEMP_FALSE}"; then
     29421    GL_COND_OBJ_MKOSTEMP_TRUE='#'
     29422    GL_COND_OBJ_MKOSTEMP_FALSE='#'
     29423  fi
     29424
     29425  if test -z "$GL_COND_OBJ_MKOSTEMP_TRUE"; then :
     29426
     29427
     29428
     29429
     29430fi
     29431
     29432
     29433printf "%s\n" "#define GNULIB_MKOSTEMP 1" >>confdefs.h
     29434
     29435
     29436
     29437
     29438
     29439
     29440
     29441
     29442
     29443
     29444
     29445          GL_GNULIB_MKOSTEMP=1
     29446
     29447
     29448
     29449
     29450
     29451printf "%s\n" "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
     29452
     29453
     29454
     29455
     29456
     29457     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
     29458  GL_COND_OBJ_MSVC_INVAL_TRUE=
     29459  GL_COND_OBJ_MSVC_INVAL_FALSE='#'
     29460else
     29461  GL_COND_OBJ_MSVC_INVAL_TRUE='#'
     29462  GL_COND_OBJ_MSVC_INVAL_FALSE=
     29463fi
     29464:
     29465    if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
     29466    GL_COND_OBJ_MSVC_INVAL_TRUE='#'
     29467    GL_COND_OBJ_MSVC_INVAL_FALSE='#'
     29468  fi
     29469
     29470
     29471
     29472     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
     29473  GL_COND_OBJ_MSVC_NOTHROW_TRUE=
     29474  GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
     29475else
     29476  GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
     29477  GL_COND_OBJ_MSVC_NOTHROW_FALSE=
     29478fi
     29479:
     29480    if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
     29481    GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
     29482    GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
     29483  fi
     29484
     29485
     29486
     29487printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
     29488
     29489
     29490
     29491
     29492
     29493
     29494
     29495
     29496
     29497
     29498
     29499  if test $ac_cv_func_nl_langinfo = yes; then
     29500    # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
     29501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
     29502printf %s "checking whether YESEXPR works... " >&6; }
     29503if test ${gl_cv_func_nl_langinfo_yesexpr_works+y}
     29504then :
     29505  printf %s "(cached) " >&6
     29506else case e in #(
     29507  e) if test "$cross_compiling" = yes
     29508then :
     29509
     29510         case "$host_os" in
     29511                   # Guess no on irix systems.
     29512           irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
     29513                   # Guess yes elsewhere.
     29514           *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
     29515         esac
     29516
     29517else case e in #(
     29518  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29519/* end confdefs.h.  */
     29520#include <langinfo.h>
     29521
     29522int
     29523main (void)
     29524{
     29525return !*nl_langinfo(YESEXPR);
     29526
     29527  ;
     29528  return 0;
     29529}
     29530_ACEOF
     29531if ac_fn_c_try_run "$LINENO"
     29532then :
     29533  gl_cv_func_nl_langinfo_yesexpr_works=yes
     29534else case e in #(
     29535  e) gl_cv_func_nl_langinfo_yesexpr_works=no ;;
     29536esac
     29537fi
     29538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     29539  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     29540esac
     29541fi
     29542
     29543       ;;
     29544esac
     29545fi
     29546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
     29547printf "%s\n" "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
     29548    case $gl_cv_func_nl_langinfo_yesexpr_works in
     29549      *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
     29550      *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
     29551    esac
     29552
     29553printf "%s\n" "#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS" >>confdefs.h
     29554
     29555    # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe.
     29556    case "$host_os" in
     29557      solaris*) NL_LANGINFO_MTSAFE=0 ;;
     29558      *)        NL_LANGINFO_MTSAFE=1 ;;
     29559    esac
     29560
     29561printf "%s\n" "#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE" >>confdefs.h
     29562
     29563    if test $HAVE_LANGINFO_CODESET = 1 \
     29564       && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
     29565       && test $HAVE_LANGINFO_ALTMON = 1 \
     29566       && test $HAVE_LANGINFO_ERA = 1 \
     29567       && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \
     29568       && test $NL_LANGINFO_MTSAFE = 1; then
     29569      :
     29570    else
     29571      REPLACE_NL_LANGINFO=1
     29572
     29573printf "%s\n" "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
     29574
     29575    fi
     29576  else
     29577    HAVE_NL_LANGINFO=0
     29578  fi
     29579  if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
     29580    LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL"
     29581  else
     29582    LIB_NL_LANGINFO=
     29583  fi
     29584
     29585
     29586
     29587     if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
     29588  GL_COND_OBJ_NL_LANGINFO_TRUE=
     29589  GL_COND_OBJ_NL_LANGINFO_FALSE='#'
     29590else
     29591  GL_COND_OBJ_NL_LANGINFO_TRUE='#'
     29592  GL_COND_OBJ_NL_LANGINFO_FALSE=
     29593fi
     29594:
     29595    if test -z "${GL_COND_OBJ_NL_LANGINFO_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_FALSE}"; then
     29596    GL_COND_OBJ_NL_LANGINFO_TRUE='#'
     29597    GL_COND_OBJ_NL_LANGINFO_FALSE='#'
     29598  fi
     29599
     29600
     29601     if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
     29602  GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE=
     29603  GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#'
     29604else
     29605  GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#'
     29606  GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE=
     29607fi
     29608:
     29609    if test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE}"; then
     29610    GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#'
     29611    GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#'
     29612  fi
     29613
     29614  if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
     29615
     29616
     29617
     29618  CFLAG_VISIBILITY=
     29619  HAVE_VISIBILITY=0
     29620  if test -n "$GCC"; then
     29621                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
     29622printf %s "checking whether the -Werror option is usable... " >&6; }
     29623if test ${gl_cv_cc_vis_werror+y}
     29624then :
     29625  printf %s "(cached) " >&6
     29626else case e in #(
     29627  e) gl_save_CFLAGS="$CFLAGS"
     29628       CFLAGS="$CFLAGS -Werror"
     29629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29630/* end confdefs.h.  */
     29631
     29632int
     29633main (void)
     29634{
     29635
     29636  ;
     29637  return 0;
     29638}
     29639_ACEOF
     29640if ac_fn_c_try_compile "$LINENO"
     29641then :
     29642  gl_cv_cc_vis_werror=yes
     29643else case e in #(
     29644  e) gl_cv_cc_vis_werror=no ;;
     29645esac
     29646fi
     29647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     29648       CFLAGS="$gl_save_CFLAGS"
     29649       ;;
     29650esac
     29651fi
     29652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
     29653printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
     29654        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
     29655printf %s "checking for simple visibility declarations... " >&6; }
     29656if test ${gl_cv_cc_visibility+y}
     29657then :
     29658  printf %s "(cached) " >&6
     29659else case e in #(
     29660  e) gl_save_CFLAGS="$CFLAGS"
     29661       CFLAGS="$CFLAGS -fvisibility=hidden"
     29662                                          if test $gl_cv_cc_vis_werror = yes; then
     29663         CFLAGS="$CFLAGS -Werror"
     29664       fi
     29665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29666/* end confdefs.h.  */
     29667extern __attribute__((__visibility__("hidden"))) int hiddenvar;
     29668              extern __attribute__((__visibility__("default"))) int exportedvar;
     29669              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
     29670              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
     29671              void dummyfunc (void);
     29672              int hiddenvar;
     29673              int exportedvar;
     29674              int hiddenfunc (void) { return 51; }
     29675              int exportedfunc (void) { return 1225736919; }
     29676              void dummyfunc (void) {}
     29677
     29678int
     29679main (void)
     29680{
     29681
     29682  ;
     29683  return 0;
     29684}
     29685_ACEOF
     29686if ac_fn_c_try_compile "$LINENO"
     29687then :
     29688  gl_cv_cc_visibility=yes
     29689else case e in #(
     29690  e) gl_cv_cc_visibility=no ;;
     29691esac
     29692fi
     29693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     29694       CFLAGS="$gl_save_CFLAGS"
     29695       ;;
     29696esac
     29697fi
     29698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
     29699printf "%s\n" "$gl_cv_cc_visibility" >&6; }
     29700    if test $gl_cv_cc_visibility = yes; then
     29701      CFLAG_VISIBILITY="-fvisibility=hidden"
     29702      HAVE_VISIBILITY=1
     29703    fi
     29704  fi
     29705
     29706
     29707
     29708printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
     29709
     29710
     29711
     29712  fi
     29713
     29714
     29715
     29716
     29717
     29718
     29719
     29720
     29721
     29722          GL_GNULIB_NL_LANGINFO=1
     29723
     29724
     29725
     29726
     29727
     29728printf "%s\n" "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
     29729
     29730
     29731
     29732
     29733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
     29734printf %s "checking for obstacks that work with any size object... " >&6; }
     29735if test ${gl_cv_func_obstack+y}
     29736then :
     29737  printf %s "(cached) " >&6
     29738else case e in #(
     29739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29740/* end confdefs.h.  */
     29741#include "obstack.h"
     29742            void *obstack_chunk_alloc (size_t n) { return 0; }
     29743            void obstack_chunk_free (void *p) { }
     29744            /* Check that an internal function returns size_t, not int.  */
     29745            size_t _obstack_memory_used (struct obstack *);
     29746
     29747int
     29748main (void)
     29749{
     29750struct obstack mem;
     29751            obstack_init (&mem);
     29752            obstack_free (&mem, 0);
     29753
     29754  ;
     29755  return 0;
     29756}
     29757_ACEOF
     29758if ac_fn_c_try_link "$LINENO"
     29759then :
     29760  gl_cv_func_obstack=yes
     29761else case e in #(
     29762  e) gl_cv_func_obstack=no ;;
     29763esac
     29764fi
     29765rm -f core conftest.err conftest.$ac_objext conftest.beam \
     29766    conftest$ac_exeext conftest.$ac_ext ;;
     29767esac
     29768fi
     29769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_obstack" >&5
     29770printf "%s\n" "$gl_cv_func_obstack" >&6; }
     29771  if test "$gl_cv_func_obstack" = yes; then
     29772
     29773printf "%s\n" "#define HAVE_OBSTACK 1" >>confdefs.h
     29774
     29775  fi
     29776
     29777
     29778     if test "$gl_cv_func_obstack" != yes; then
     29779  GL_COND_OBJ_OBSTACK_TRUE=
     29780  GL_COND_OBJ_OBSTACK_FALSE='#'
     29781else
     29782  GL_COND_OBJ_OBSTACK_TRUE='#'
     29783  GL_COND_OBJ_OBSTACK_FALSE=
     29784fi
     29785:
     29786    if test -z "${GL_COND_OBJ_OBSTACK_TRUE}" && test -z "${GL_COND_OBJ_OBSTACK_FALSE}"; then
     29787    GL_COND_OBJ_OBSTACK_TRUE='#'
     29788    GL_COND_OBJ_OBSTACK_FALSE='#'
     29789  fi
     29790
     29791
     29792
     29793
     29794  case "$host_os" in
     29795    mingw* | pw*)
     29796      REPLACE_OPEN=1
     29797      ;;
     29798    *)
     29799
     29800      if test "$gl_cv_macro_O_CLOEXEC" != yes; then
     29801        REPLACE_OPEN=1
     29802      fi
     29803
     29804
     29805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
     29806printf %s "checking whether open recognizes a trailing slash... " >&6; }
     29807if test ${gl_cv_func_open_slash+y}
     29808then :
     29809  printf %s "(cached) " >&6
     29810else case e in #(
     29811  e) # Assume that if we have lstat, we can also check symlinks.
     29812     if test $ac_cv_func_lstat = yes; then
     29813       touch conftest.tmp
     29814       ln -s conftest.tmp conftest.lnk
     29815     fi
     29816     if test "$cross_compiling" = yes
     29817then :
     29818
     29819        case "$host_os" in
     29820          freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
     29821            gl_cv_func_open_slash="guessing no" ;;
     29822          *)
     29823            gl_cv_func_open_slash="guessing yes" ;;
     29824        esac
     29825
     29826else case e in #(
     29827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     29828/* end confdefs.h.  */
     29829
     29830#include <fcntl.h>
     29831#if HAVE_UNISTD_H
     29832# include <unistd.h>
     29833#endif
     29834
     29835
     29836$gl_mda_defines
     29837
     29838int main ()
     29839{
     29840  int result = 0;
     29841#if HAVE_LSTAT
     29842  if (open ("conftest.lnk/", O_RDONLY) != -1)
     29843    result |= 1;
     29844#endif
     29845  if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
     29846    result |= 2;
     29847  return result;
     29848}
     29849_ACEOF
     29850if ac_fn_c_try_run "$LINENO"
     29851then :
     29852  gl_cv_func_open_slash=yes
     29853else case e in #(
     29854  e) gl_cv_func_open_slash=no ;;
     29855esac
     29856fi
     29857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     29858  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     29859esac
     29860fi
     29861
     29862     rm -f conftest.sl conftest.tmp conftest.lnk
     29863     ;;
     29864esac
     29865fi
     29866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
     29867printf "%s\n" "$gl_cv_func_open_slash" >&6; }
     29868  case "$gl_cv_func_open_slash" in
     29869    *no)
     29870
     29871printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
     29872
     29873      ;;
     29874  esac
     29875
     29876      case "$gl_cv_func_open_slash" in
     29877        *no)
     29878          REPLACE_OPEN=1
     29879          ;;
     29880      esac
     29881      ;;
     29882  esac
     29883
     29884
     29885
     29886
     29887     if test $REPLACE_OPEN = 1; then
     29888  GL_COND_OBJ_OPEN_TRUE=
     29889  GL_COND_OBJ_OPEN_FALSE='#'
     29890else
     29891  GL_COND_OBJ_OPEN_TRUE='#'
     29892  GL_COND_OBJ_OPEN_FALSE=
     29893fi
     29894:
     29895    if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
     29896    GL_COND_OBJ_OPEN_TRUE='#'
     29897    GL_COND_OBJ_OPEN_FALSE='#'
     29898  fi
     29899
     29900  if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
     29901
     29902
     29903
     29904  :
     29905
     29906
     29907fi
     29908
     29909
     29910
     29911
     29912
     29913
     29914
     29915
     29916
     29917          GL_GNULIB_OPEN=1
     29918
     29919
     29920
     29921
     29922
     29923printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
     29924
     29925
     29926
     29927
     29928
     29929
     29930
     29931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl 5.005 or newer" >&5
     29932printf %s "checking for Perl 5.005 or newer... " >&6; }
     29933if test ${gl_cv_prog_perl+y}
     29934then :
     29935  printf %s "(cached) " >&6
     29936else case e in #(
     29937  e)
     29938  if test "${PERL+set}" = set; then
     29939    # 'PERL' is set in the user's environment.
     29940    candidate_perl_names="$PERL"
     29941    perl_specified=yes
     29942  else
     29943    candidate_perl_names='perl perl5'
     29944    perl_specified=no
     29945  fi
     29946
     29947  gl_cv_prog_perl=no
     29948  for perl in $candidate_perl_names; do
     29949    # Run test in a subshell; some versions of sh will print an error if
     29950    # an executable is not found, even if stderr is redirected.
     29951    if ( $perl -e 'require 5.005; use File::Compare; use warnings;' ) > /dev/null 2>&1; then
     29952      gl_cv_prog_perl=$perl
     29953      break
     29954    fi
     29955  done
     29956  ;;
     29957esac
     29958fi
     29959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_perl" >&5
     29960printf "%s\n" "$gl_cv_prog_perl" >&6; }
     29961
     29962if test "$gl_cv_prog_perl" != no; then
     29963  PERL=$gl_cv_prog_perl
     29964else
     29965  PERL="$am_missing_run perl"
     29966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
     29967WARNING: You don't seem to have perl5.005 or newer installed, or you lack
     29968         a usable version of the Perl File::Compare module.  As a result,
     29969         you may be unable to run a few tests or to regenerate certain
     29970         files if you modify the sources from which they are derived.
     29971 " >&5
     29972printf "%s\n" "$as_me: WARNING:
     29973WARNING: You don't seem to have perl5.005 or newer installed, or you lack
     29974         a usable version of the Perl File::Compare module.  As a result,
     29975         you may be unable to run a few tests or to regenerate certain
     29976         files if you modify the sources from which they are derived.
     29977 " >&2;}
     29978fi
     29979
     29980
     29981
     29982
     29983  ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
     29984" "$ac_c_undeclared_builtin_options" "CFLAGS"
     29985if test "x$ac_cv_have_decl_program_invocation_name" = xyes
     29986then :
     29987  ac_have_decl=1
     29988else case e in #(
     29989  e) ac_have_decl=0 ;;
     29990esac
     29991fi
     29992printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
     29993
     29994  ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
     29995" "$ac_c_undeclared_builtin_options" "CFLAGS"
     29996if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
     29997then :
     29998  ac_have_decl=1
     29999else case e in #(
     30000  e) ac_have_decl=0 ;;
     30001esac
     30002fi
     30003printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
     30004
     30005
     30006      :
     30007
     30008
     30009
     30010  :
     30011
     30012
     30013
     30014
     30015
     30016  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
     30017if test "x$ac_cv_func_rawmemchr" = xyes
     30018then :
     30019  printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
     30020
     30021fi
     30022
     30023  if test $ac_cv_func_rawmemchr = no; then
     30024    HAVE_RAWMEMCHR=0
     30025  fi
     30026
     30027
     30028     if test $HAVE_RAWMEMCHR = 0; then
     30029  GL_COND_OBJ_RAWMEMCHR_TRUE=
     30030  GL_COND_OBJ_RAWMEMCHR_FALSE='#'
     30031else
     30032  GL_COND_OBJ_RAWMEMCHR_TRUE='#'
     30033  GL_COND_OBJ_RAWMEMCHR_FALSE=
     30034fi
     30035:
     30036    if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then
     30037    GL_COND_OBJ_RAWMEMCHR_TRUE='#'
     30038    GL_COND_OBJ_RAWMEMCHR_FALSE='#'
     30039  fi
     30040
     30041  if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then :
     30042
     30043    :
     30044
     30045fi
     30046
     30047
     30048
     30049
     30050
     30051
     30052
     30053
     30054
     30055
     30056
     30057
     30058
     30059
     30060          GL_GNULIB_RAWMEMCHR=1
     30061
     30062
     30063
     30064
     30065
     30066printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
     30067
     30068
     30069
     30070
     30071
     30072
     30073  if test $ac_cv_func_readlink = no; then
     30074    HAVE_READLINK=0
     30075  else
     30076    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
     30077printf %s "checking whether readlink signature is correct... " >&6; }
     30078if test ${gl_cv_decl_readlink_works+y}
     30079then :
     30080  printf %s "(cached) " >&6
     30081else case e in #(
     30082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30083/* end confdefs.h.  */
     30084#include <unistd.h>
     30085      /* Cause compilation failure if original declaration has wrong type.  */
     30086      ssize_t readlink (const char *, char *, size_t);
     30087int
     30088main (void)
     30089{
     30090
     30091  ;
     30092  return 0;
     30093}
     30094_ACEOF
     30095if ac_fn_c_try_compile "$LINENO"
     30096then :
     30097  gl_cv_decl_readlink_works=yes
     30098else case e in #(
     30099  e) gl_cv_decl_readlink_works=no ;;
     30100esac
     30101fi
     30102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     30103esac
     30104fi
     30105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
     30106printf "%s\n" "$gl_cv_decl_readlink_works" >&6; }
     30107            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
     30108printf %s "checking whether readlink handles trailing slash correctly... " >&6; }
     30109if test ${gl_cv_func_readlink_trailing_slash+y}
     30110then :
     30111  printf %s "(cached) " >&6
     30112else case e in #(
     30113  e) # We have readlink, so assume ln -s works.
     30114       ln -s conftest.no-such conftest.link
     30115       ln -s conftest.link conftest.lnk2
     30116       if test "$cross_compiling" = yes
     30117then :
     30118  case "$host_os" in
     30119            # Guess yes on Linux or glibc systems.
     30120            linux-* | linux | *-gnu* | gnu*)
     30121              gl_cv_func_readlink_trailing_slash="guessing yes" ;;
     30122            # Guess no on AIX or HP-UX.
     30123            aix* | hpux*)
     30124              gl_cv_func_readlink_trailing_slash="guessing no" ;;
     30125            # If we don't know, obey --enable-cross-guesses.
     30126            *)
     30127              gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
     30128          esac
     30129
     30130else case e in #(
     30131  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30132/* end confdefs.h.  */
     30133#include <unistd.h>
     30134
     30135int
     30136main (void)
     30137{
     30138char buf[20];
     30139      return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
     30140  ;
     30141  return 0;
     30142}
     30143_ACEOF
     30144if ac_fn_c_try_run "$LINENO"
     30145then :
     30146  gl_cv_func_readlink_trailing_slash=yes
     30147else case e in #(
     30148  e) gl_cv_func_readlink_trailing_slash=no ;;
     30149esac
     30150fi
     30151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     30152  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     30153esac
     30154fi
     30155
     30156      rm -f conftest.link conftest.lnk2 ;;
     30157esac
     30158fi
     30159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
     30160printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; }
     30161    case "$gl_cv_func_readlink_trailing_slash" in
     30162      *yes)
     30163        if test "$gl_cv_decl_readlink_works" != yes; then
     30164          REPLACE_READLINK=1
     30165        fi
     30166        ;;
     30167      *)
     30168
     30169printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
     30170
     30171        REPLACE_READLINK=1
     30172        ;;
     30173    esac
     30174
     30175    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
     30176printf %s "checking whether readlink truncates results correctly... " >&6; }
     30177if test ${gl_cv_func_readlink_truncate+y}
     30178then :
     30179  printf %s "(cached) " >&6
     30180else case e in #(
     30181  e) # We have readlink, so assume ln -s works.
     30182       ln -s ab conftest.link
     30183       if test "$cross_compiling" = yes
     30184then :
     30185  case "$host_os" in
     30186            # Guess yes on Linux or glibc systems.
     30187            linux-* | linux | *-gnu* | gnu*)
     30188              gl_cv_func_readlink_truncate="guessing yes" ;;
     30189            # Guess no on AIX or HP-UX.
     30190            aix* | hpux*)
     30191              gl_cv_func_readlink_truncate="guessing no" ;;
     30192            # If we don't know, obey --enable-cross-guesses.
     30193            *)
     30194              gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
     30195          esac
     30196
     30197else case e in #(
     30198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30199/* end confdefs.h.  */
     30200#include <unistd.h>
     30201
     30202int
     30203main (void)
     30204{
     30205char c;
     30206      return readlink ("conftest.link", &c, 1) != 1;
     30207  ;
     30208  return 0;
     30209}
     30210_ACEOF
     30211if ac_fn_c_try_run "$LINENO"
     30212then :
     30213  gl_cv_func_readlink_truncate=yes
     30214else case e in #(
     30215  e) gl_cv_func_readlink_truncate=no ;;
     30216esac
     30217fi
     30218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     30219  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     30220esac
     30221fi
     30222
     30223      rm -f conftest.link conftest.lnk2 ;;
     30224esac
     30225fi
     30226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
     30227printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; }
     30228    case $gl_cv_func_readlink_truncate in
     30229      *yes)
     30230        if test "$gl_cv_decl_readlink_works" != yes; then
     30231          REPLACE_READLINK=1
     30232        fi
     30233        ;;
     30234      *)
     30235
     30236printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
     30237
     30238        REPLACE_READLINK=1
     30239        ;;
     30240    esac
     30241  fi
     30242
     30243
     30244     if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
     30245  GL_COND_OBJ_READLINK_TRUE=
     30246  GL_COND_OBJ_READLINK_FALSE='#'
     30247else
     30248  GL_COND_OBJ_READLINK_TRUE='#'
     30249  GL_COND_OBJ_READLINK_FALSE=
     30250fi
     30251:
     30252    if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then
     30253    GL_COND_OBJ_READLINK_TRUE='#'
     30254    GL_COND_OBJ_READLINK_FALSE='#'
     30255  fi
     30256
     30257  if test -z "$GL_COND_OBJ_READLINK_TRUE"; then :
     30258
     30259
     30260  :
     30261
     30262
     30263fi
     30264
     30265
     30266
     30267
     30268
     30269
     30270
     30271
     30272
     30273          GL_GNULIB_READLINK=1
     30274
     30275
     30276
     30277
     30278
     30279printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h
     30280
     30281
     30282
     30283
     30284
     30285
     30286  if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
     30287
     30288    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
     30289printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
     30290if test ${ac_cv_func_realloc_0_nonnull+y}
     30291then :
     30292  printf %s "(cached) " >&6
     30293else case e in #(
     30294  e) if test "$cross_compiling" = yes
     30295then :
     30296  case "$host_os" in
     30297          # Guess yes on platforms where we know the result.
     30298          *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
     30299          | gnu* | *-musl* | midnightbsd* \
     30300          | hpux* | solaris* | cygwin* | mingw* | msys* )
     30301            ac_cv_func_realloc_0_nonnull="guessing yes" ;;
     30302          # If we don't know, obey --enable-cross-guesses.
     30303          *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
     30304        esac
     30305
     30306else case e in #(
     30307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30308/* end confdefs.h.  */
     30309#include <stdlib.h>
     30310
     30311int
     30312main (void)
     30313{
     30314void *p = realloc (0, 0);
     30315            int result = !p;
     30316            free (p);
     30317            return result;
     30318  ;
     30319  return 0;
     30320}
     30321
     30322_ACEOF
     30323if ac_fn_c_try_run "$LINENO"
     30324then :
     30325  ac_cv_func_realloc_0_nonnull=yes
     30326else case e in #(
     30327  e) ac_cv_func_realloc_0_nonnull=no ;;
     30328esac
     30329fi
     30330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     30331  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     30332esac
     30333fi
     30334
     30335     ;;
     30336esac
     30337fi
     30338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
     30339printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
     30340  case $ac_cv_func_realloc_0_nonnull in #(
     30341  *yes) :
     30342     ;; #(
     30343  *) :
     30344    REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
     30345esac
     30346
     30347  fi
     30348
     30349  if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
     30350
     30351
     30352
     30353
     30354
     30355
     30356
     30357
     30358  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
     30359
     30360  fi
     30361
     30362
     30363
     30364
     30365
     30366
     30367
     30368
     30369
     30370          GL_GNULIB_REALLOC_GNU=1
     30371
     30372
     30373
     30374
     30375
     30376printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
     30377
     30378
     30379
     30380
     30381
     30382
     30383  if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
     30384    REPLACE_REALLOC_FOR_REALLOC_POSIX=1
     30385  fi
     30386
     30387  if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
     30388
     30389
     30390
     30391
     30392
     30393
     30394
     30395
     30396  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
     30397
     30398  fi
     30399
     30400
     30401
     30402
     30403
     30404
     30405
     30406
     30407
     30408          GL_GNULIB_REALLOC_POSIX=1
     30409
     30410
     30411
     30412
     30413
     30414printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
     30415
     30416
     30417
     30418
     30419
     30420
     30421
     30422
     30423  ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
     30424if test "x$ac_cv_func_reallocarray" = xyes
     30425then :
     30426  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
     30427
     30428fi
     30429
     30430  if test "$ac_cv_func_reallocarray" = no; then
     30431    HAVE_REALLOCARRAY=0
     30432  elif test "$gl_cv_malloc_ptrdiff" = no; then
     30433    REPLACE_REALLOCARRAY=1
     30434  fi
     30435
     30436
     30437     if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
     30438  GL_COND_OBJ_REALLOCARRAY_TRUE=
     30439  GL_COND_OBJ_REALLOCARRAY_FALSE='#'
     30440else
     30441  GL_COND_OBJ_REALLOCARRAY_TRUE='#'
     30442  GL_COND_OBJ_REALLOCARRAY_FALSE=
     30443fi
     30444:
     30445    if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
     30446    GL_COND_OBJ_REALLOCARRAY_TRUE='#'
     30447    GL_COND_OBJ_REALLOCARRAY_FALSE='#'
     30448  fi
     30449
     30450  if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
     30451
     30452    :
     30453
     30454fi
     30455
     30456
     30457printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
     30458
     30459
     30460
     30461
     30462
     30463
     30464
     30465
     30466
     30467
     30468
     30469          GL_GNULIB_REALLOCARRAY=1
     30470
     30471
     30472
     30473
     30474
     30475printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
     30476
     30477
     30478
     30479
     30480
     30481# Check whether --with-included-regex was given.
     30482if test ${with_included_regex+y}
     30483then :
     30484  withval=$with_included_regex;
     30485fi
     30486
     30487
     30488  case $with_included_regex in #(
     30489  yes|no) ac_use_included_regex=$with_included_regex
     30490        ;;
     30491  '')
     30492    # If the system regex support is good enough that it passes the
     30493    # following run test, then default to *not* using the included regex.c.
     30494    # If cross compiling, assume the test would fail and use the included
     30495    # regex.c.
     30496
     30497
     30498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
     30499printf %s "checking for working re_compile_pattern... " >&6; }
     30500if test ${gl_cv_func_re_compile_pattern_working+y}
     30501then :
     30502  printf %s "(cached) " >&6
     30503else case e in #(
     30504  e) if test "$cross_compiling" = yes
     30505then :
     30506  case "$host_os" in
     30507                   # Guess no on native Windows.
     30508           mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;;
     30509                   # Otherwise obey --enable-cross-guesses.
     30510           *)      gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;;
     30511         esac
     30512
     30513else case e in #(
     30514  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30515/* end confdefs.h.  */
     30516#include <regex.h>
     30517
     30518            #include <locale.h>
     30519            #include <limits.h>
     30520            #include <string.h>
     30521
     30522            #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
     30523            # include <signal.h>
     30524            # include <unistd.h>
     30525            #endif
     30526
     30527            #if HAVE_MALLOC_H
     30528            # include <malloc.h>
     30529            #endif
     30530
     30531            #ifdef M_CHECK_ACTION
     30532            /* Exit with distinguishable exit code.  */
     30533            static void sigabrt_no_core (int sig) { raise (SIGTERM); }
     30534            #endif
     30535
     30536int
     30537main (void)
     30538{
     30539int result = 0;
     30540            static struct re_pattern_buffer regex;
     30541            unsigned char folded_chars[UCHAR_MAX + 1];
     30542            int i;
     30543            const char *s;
     30544            struct re_registers regs;
     30545
     30546            /* Some builds of glibc go into an infinite loop on this
     30547               test.  Use alarm to force death, and mallopt to avoid
     30548               malloc recursion in diagnosing the corrupted heap. */
     30549#if HAVE_DECL_ALARM
     30550            signal (SIGALRM, SIG_DFL);
     30551            alarm (2);
     30552#endif
     30553#ifdef M_CHECK_ACTION
     30554            signal (SIGABRT, sigabrt_no_core);
     30555            mallopt (M_CHECK_ACTION, 2);
     30556#endif
     30557
     30558            if (setlocale (LC_ALL, "en_US.UTF-8"))
     30559              {
     30560                {
     30561                  /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
     30562                     This test needs valgrind to catch the bug on Debian
     30563                     GNU/Linux 3.1 x86, but it might catch the bug better
     30564                     on other platforms and it shouldn't hurt to try the
     30565                     test here.  */
     30566                  static char const pat[] = "insert into";
     30567                  static char const data[] =
     30568                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
     30569                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
     30570                                 | RE_ICASE);
     30571                  memset (&regex, 0, sizeof regex);
     30572                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
     30573                  if (s)
     30574                    result |= 1;
     30575                  else
     30576                    {
     30577                      if (re_search (&regex, data, sizeof data - 1,
     30578                                     0, sizeof data - 1, &regs)
     30579                          != -1)
     30580                        result |= 1;
     30581                      regfree (&regex);
     30582                    }
     30583                }
     30584
     30585                {
     30586                  /* This test is from glibc bug 15078.
     30587                     The test case is from Andreas Schwab in
     30588                     <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
     30589                     */
     30590                  static char const pat[] = "[^x]x";
     30591                  static char const data[] =
     30592                    /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
     30593                    "\xe1\x80\x80"
     30594                    "\xe1\x80\xbb"
     30595                    "\xe1\x80\xbd"
     30596                    "\xe1\x80\x94"
     30597                    "\xe1\x80\xba"
     30598                    "\xe1\x80\xaf"
     30599                    "\xe1\x80\x95"
     30600                    "\xe1\x80\xba"
     30601                    "x";
     30602                  re_set_syntax (0);
     30603                  memset (&regex, 0, sizeof regex);
     30604                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
     30605                  if (s)
     30606                    result |= 1;
     30607                  else
     30608                    {
     30609                      i = re_search (&regex, data, sizeof data - 1,
     30610                                     0, sizeof data - 1, 0);
     30611                      if (i != 0 && i != 21)
     30612                        result |= 1;
     30613                      regfree (&regex);
     30614                    }
     30615                }
     30616
     30617                if (! setlocale (LC_ALL, "C"))
     30618                  return 1;
     30619              }
     30620
     30621            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
     30622            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
     30623            memset (&regex, 0, sizeof regex);
     30624            s = re_compile_pattern ("a[^x]b", 6, &regex);
     30625            if (s)
     30626              result |= 2;
     30627            else
     30628              {
     30629                /* This should fail, but succeeds for glibc-2.5.  */
     30630                if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
     30631                  result |= 2;
     30632                regfree (&regex);
     30633              }
     30634
     30635            /* This regular expression is from Spencer ere test number 75
     30636               in grep-2.3.  */
     30637            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
     30638            memset (&regex, 0, sizeof regex);
     30639            for (i = 0; i <= UCHAR_MAX; i++)
     30640              folded_chars[i] = i;
     30641            regex.translate = folded_chars;
     30642            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
     30643            /* This should fail with _Invalid character class name_ error.  */
     30644            if (!s)
     30645              {
     30646                result |= 4;
     30647                regfree (&regex);
     30648              }
     30649
     30650            /* Ensure that [b-a] is diagnosed as invalid, when
     30651               using RE_NO_EMPTY_RANGES. */
     30652            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
     30653            memset (&regex, 0, sizeof regex);
     30654            s = re_compile_pattern ("a[b-a]", 6, &regex);
     30655            if (s == 0)
     30656              {
     30657                result |= 8;
     30658                regfree (&regex);
     30659              }
     30660
     30661            /* This should succeed, but does not for glibc-2.1.3.  */
     30662            memset (&regex, 0, sizeof regex);
     30663            s = re_compile_pattern ("{1", 2, &regex);
     30664            if (s)
     30665              result |= 8;
     30666            else
     30667              regfree (&regex);
     30668
     30669            /* The following example is derived from a problem report
     30670               against gawk from Jorge Stolfi <[email protected]>.  */
     30671            memset (&regex, 0, sizeof regex);
     30672            s = re_compile_pattern ("[an\371]*n", 7, &regex);
     30673            if (s)
     30674              result |= 8;
     30675            else
     30676              {
     30677                /* This should match, but does not for glibc-2.2.1.  */
     30678                if (re_match (&regex, "an", 2, 0, &regs) != 2)
     30679                  result |= 8;
     30680                else
     30681                  {
     30682                    free (regs.start);
     30683                    free (regs.end);
     30684                  }
     30685                regfree (&regex);
     30686              }
     30687
     30688            memset (&regex, 0, sizeof regex);
     30689            s = re_compile_pattern ("x", 1, &regex);
     30690            if (s)
     30691              result |= 8;
     30692            else
     30693              {
     30694                /* glibc-2.2.93 does not work with a negative RANGE argument.  */
     30695                if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
     30696                  result |= 8;
     30697                else
     30698                  {
     30699                    free (regs.start);
     30700                    free (regs.end);
     30701                  }
     30702                regfree (&regex);
     30703              }
     30704
     30705            /* The version of regex.c in older versions of gnulib
     30706               ignored RE_ICASE.  Detect that problem too.  */
     30707            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
     30708            memset (&regex, 0, sizeof regex);
     30709            s = re_compile_pattern ("x", 1, &regex);
     30710            if (s)
     30711              result |= 16;
     30712            else
     30713              {
     30714                if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
     30715                  result |= 16;
     30716                else
     30717                  {
     30718                    free (regs.start);
     30719                    free (regs.end);
     30720                  }
     30721                regfree (&regex);
     30722              }
     30723
     30724            /* Catch a bug reported by Vin Shelton in
     30725               https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html
     30726               */
     30727            re_set_syntax (RE_SYNTAX_POSIX_BASIC
     30728                           & ~RE_CONTEXT_INVALID_DUP
     30729                           & ~RE_NO_EMPTY_RANGES);
     30730            memset (&regex, 0, sizeof regex);
     30731            s = re_compile_pattern ("[[:alnum:]_-]\\\\+\$", 16, &regex);
     30732            if (s)
     30733              result |= 32;
     30734            else
     30735              regfree (&regex);
     30736
     30737            /* REG_STARTEND was added to glibc on 2004-01-15.
     30738               Reject older versions.  */
     30739            if (! REG_STARTEND)
     30740              result |= 64;
     30741
     30742            /* Matching with the compiled form of this regexp would provoke
     30743               an assertion failure prior to glibc-2.28:
     30744                 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed
     30745               With glibc-2.28, compilation fails and reports the invalid
     30746               back reference.  */
     30747            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
     30748            memset (&regex, 0, sizeof regex);
     30749            s = re_compile_pattern ("0|()0|\\\\1|0", 10, &regex);
     30750            if (!s)
     30751              {
     30752                memset (&regs, 0, sizeof regs);
     30753                i = re_search (&regex, "x", 1, 0, 1, &regs);
     30754                if (i != -1)
     30755                  result |= 64;
     30756                if (0 <= i)
     30757                  {
     30758                    free (regs.start);
     30759                    free (regs.end);
     30760                  }
     30761                regfree (&regex);
     30762              }
     30763            else
     30764              {
     30765                if (strcmp (s, "Invalid back reference"))
     30766                  result |= 64;
     30767              }
     30768
     30769            /* glibc bug 11053.  */
     30770            re_set_syntax (RE_SYNTAX_POSIX_BASIC);
     30771            memset (&regex, 0, sizeof regex);
     30772            static char const pat_sub2[] = "\\\\(a*\\\\)*a*\\\\1";
     30773            s = re_compile_pattern (pat_sub2, sizeof pat_sub2 - 1, &regex);
     30774            if (s)
     30775              result |= 64;
     30776            else
     30777              {
     30778                memset (&regs, 0, sizeof regs);
     30779                static char const data[] = "a";
     30780                int datalen = sizeof data - 1;
     30781                i = re_search (&regex, data, datalen, 0, datalen, &regs);
     30782                if (i != 0)
     30783                  result |= 64;
     30784                else if (regs.num_regs < 2)
     30785                  result |= 64;
     30786                else if (! (regs.start[0] == 0 && regs.end[0] == 1))
     30787                  result |= 64;
     30788                else if (! (regs.start[1] == 0 && regs.end[1] == 0))
     30789                  result |= 64;
     30790                regfree (&regex);
     30791                free (regs.start);
     30792                free (regs.end);
     30793              }
     30794
     30795#if 0
     30796            /* It would be nice to reject hosts whose regoff_t values are too
     30797               narrow (including glibc on hosts with 64-bit ptrdiff_t and
     30798               32-bit int), but we should wait until glibc implements this
     30799               feature.  Otherwise, support for equivalence classes and
     30800               multibyte collation symbols would always be broken except
     30801               when compiling --without-included-regex.   */
     30802            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
     30803                || sizeof (regoff_t) < sizeof (ssize_t))
     30804              result |= 64;
     30805#endif
     30806
     30807            return result;
     30808
     30809  ;
     30810  return 0;
     30811}
     30812_ACEOF
     30813if ac_fn_c_try_run "$LINENO"
     30814then :
     30815  gl_cv_func_re_compile_pattern_working=yes
     30816else case e in #(
     30817  e) gl_cv_func_re_compile_pattern_working=no ;;
     30818esac
     30819fi
     30820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     30821  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     30822esac
     30823fi
     30824
     30825       ;;
     30826esac
     30827fi
     30828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
     30829printf "%s\n" "$gl_cv_func_re_compile_pattern_working" >&6; }
     30830    case "$gl_cv_func_re_compile_pattern_working" in #(
     30831      *yes) ac_use_included_regex=no;; #(
     30832      *no) ac_use_included_regex=yes;;
     30833    esac
     30834    ;;
     30835  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
     30836    ;;
     30837  esac
     30838
     30839  if test $ac_use_included_regex = yes; then
     30840
     30841printf "%s\n" "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
     30842
     30843
     30844printf "%s\n" "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
     30845
     30846
     30847printf "%s\n" "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
     30848
     30849
     30850printf "%s\n" "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
     30851
     30852
     30853printf "%s\n" "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
     30854
     30855
     30856printf "%s\n" "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
     30857
     30858
     30859printf "%s\n" "#define re_search rpl_re_search" >>confdefs.h
     30860
     30861
     30862printf "%s\n" "#define re_search_2 rpl_re_search_2" >>confdefs.h
     30863
     30864
     30865printf "%s\n" "#define re_match rpl_re_match" >>confdefs.h
     30866
     30867
     30868printf "%s\n" "#define re_match_2 rpl_re_match_2" >>confdefs.h
     30869
     30870
     30871printf "%s\n" "#define re_set_registers rpl_re_set_registers" >>confdefs.h
     30872
     30873
     30874printf "%s\n" "#define re_comp rpl_re_comp" >>confdefs.h
     30875
     30876
     30877printf "%s\n" "#define re_exec rpl_re_exec" >>confdefs.h
     30878
     30879
     30880printf "%s\n" "#define regcomp rpl_regcomp" >>confdefs.h
     30881
     30882
     30883printf "%s\n" "#define regexec rpl_regexec" >>confdefs.h
     30884
     30885
     30886printf "%s\n" "#define regerror rpl_regerror" >>confdefs.h
     30887
     30888
     30889printf "%s\n" "#define regfree rpl_regfree" >>confdefs.h
     30890
     30891  fi
     30892
     30893
     30894     if test $ac_use_included_regex = yes; then
     30895  GL_COND_OBJ_REGEX_TRUE=
     30896  GL_COND_OBJ_REGEX_FALSE='#'
     30897else
     30898  GL_COND_OBJ_REGEX_TRUE='#'
     30899  GL_COND_OBJ_REGEX_FALSE=
     30900fi
     30901:
     30902    if test -z "${GL_COND_OBJ_REGEX_TRUE}" && test -z "${GL_COND_OBJ_REGEX_FALSE}"; then
     30903    GL_COND_OBJ_REGEX_TRUE='#'
     30904    GL_COND_OBJ_REGEX_FALSE='#'
     30905  fi
     30906
     30907  if test -z "$GL_COND_OBJ_REGEX_TRUE"; then :
     30908
     30909
     30910
     30911
     30912
     30913
     30914
     30915  ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
     30916if test "x$ac_cv_header_libintl_h" = xyes
     30917then :
     30918  printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
     30919
     30920fi
     30921
     30922
     30923  ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
     30924" "$ac_c_undeclared_builtin_options" "CFLAGS"
     30925if test "x$ac_cv_have_decl_isblank" = xyes
     30926then :
     30927  ac_have_decl=1
     30928else case e in #(
     30929  e) ac_have_decl=0 ;;
     30930esac
     30931fi
     30932printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
     30933
     30934
     30935
     30936fi
     30937
     30938
     30939
     30940
     30941
     30942                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
     30943printf %s "checking whether rename honors trailing slash on destination... " >&6; }
     30944if test ${gl_cv_func_rename_slash_dst_works+y}
     30945then :
     30946  printf %s "(cached) " >&6
     30947else case e in #(
     30948  e) rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
     30949    touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
     30950      as_fn_error $? "cannot create temporary files" "$LINENO" 5
     30951    # Assume that if we have lstat, we can also check symlinks.
     30952    if test $ac_cv_func_lstat = yes; then
     30953      ln -s conftest.f conftest.lnk
     30954    fi
     30955    if test "$cross_compiling" = yes
     30956then :
     30957        case "$host_os" in
     30958                          # Guess yes on Linux systems.
     30959         linux-* | linux) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
     30960                          # Guess yes on glibc systems.
     30961         *-gnu*)          gl_cv_func_rename_slash_dst_works="guessing yes" ;;
     30962                          # Guess no on native Windows.
     30963         mingw*)          gl_cv_func_rename_slash_dst_works="guessing no" ;;
     30964                          # If we don't know, obey --enable-cross-guesses.
     30965         *)               gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
     30966       esac
     30967
     30968else case e in #(
     30969  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     30970/* end confdefs.h.  */
     30971
     30972#        include <stdio.h>
     30973#        include <stdlib.h>
     30974
     30975int
     30976main (void)
     30977{
     30978int result = 0;
     30979           if (rename ("conftest.f1", "conftest.f2/") == 0)
     30980             result |= 1;
     30981           if (rename ("conftest.d1", "conftest.d2/") != 0)
     30982             result |= 2;
     30983#if HAVE_LSTAT
     30984           if (rename ("conftest.f", "conftest.lnk/") == 0)
     30985             result |= 4;
     30986#endif
     30987           return result;
     30988
     30989  ;
     30990  return 0;
     30991}
     30992_ACEOF
     30993if ac_fn_c_try_run "$LINENO"
     30994then :
     30995  gl_cv_func_rename_slash_dst_works=yes
     30996else case e in #(
     30997  e) gl_cv_func_rename_slash_dst_works=no ;;
     30998esac
     30999fi
     31000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31001  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31002esac
     31003fi
     31004
     31005    rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
     31006   ;;
     31007esac
     31008fi
     31009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
     31010printf "%s\n" "$gl_cv_func_rename_slash_dst_works" >&6; }
     31011  case "$gl_cv_func_rename_slash_dst_works" in
     31012    *yes) ;;
     31013    *)
     31014      REPLACE_RENAME=1
     31015
     31016printf "%s\n" "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
     31017
     31018      ;;
     31019  esac
     31020
     31021            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
     31022printf %s "checking whether rename honors trailing slash on source... " >&6; }
     31023if test ${gl_cv_func_rename_slash_src_works+y}
     31024then :
     31025  printf %s "(cached) " >&6
     31026else case e in #(
     31027  e) rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
     31028    touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
     31029      as_fn_error $? "cannot create temporary files" "$LINENO" 5
     31030    # Assume that if we have lstat, we can also check symlinks.
     31031    if test $ac_cv_func_lstat = yes; then
     31032      ln -s conftest.f conftest.lnk
     31033    fi
     31034    if test "$cross_compiling" = yes
     31035then :
     31036        case "$host_os" in
     31037                          # Guess yes on Linux systems.
     31038         linux-* | linux) gl_cv_func_rename_slash_src_works="guessing yes" ;;
     31039                          # Guess yes on glibc systems.
     31040         *-gnu*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
     31041                          # Guess yes on native Windows.
     31042         mingw*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
     31043                          # If we don't know, obey --enable-cross-guesses.
     31044         *)               gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
     31045       esac
     31046
     31047else case e in #(
     31048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31049/* end confdefs.h.  */
     31050
     31051#        include <stdio.h>
     31052#        include <stdlib.h>
     31053
     31054int
     31055main (void)
     31056{
     31057int result = 0;
     31058           if (rename ("conftest.f1/", "conftest.d3") == 0)
     31059             result |= 1;
     31060           if (rename ("conftest.d1/", "conftest.d2") != 0)
     31061             result |= 2;
     31062#if HAVE_LSTAT
     31063           if (rename ("conftest.lnk/", "conftest.f") == 0)
     31064             result |= 4;
     31065#endif
     31066           return result;
     31067
     31068  ;
     31069  return 0;
     31070}
     31071_ACEOF
     31072if ac_fn_c_try_run "$LINENO"
     31073then :
     31074  gl_cv_func_rename_slash_src_works=yes
     31075else case e in #(
     31076  e) gl_cv_func_rename_slash_src_works=no ;;
     31077esac
     31078fi
     31079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31080  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31081esac
     31082fi
     31083
     31084    rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
     31085   ;;
     31086esac
     31087fi
     31088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
     31089printf "%s\n" "$gl_cv_func_rename_slash_src_works" >&6; }
     31090  case "$gl_cv_func_rename_slash_src_works" in
     31091    *yes) ;;
     31092    *)
     31093      REPLACE_RENAME=1
     31094
     31095printf "%s\n" "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
     31096
     31097      ;;
     31098  esac
     31099
     31100
     31101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
     31102printf %s "checking whether rename manages hard links correctly... " >&6; }
     31103if test ${gl_cv_func_rename_link_works+y}
     31104then :
     31105  printf %s "(cached) " >&6
     31106else case e in #(
     31107  e) if test $ac_cv_func_link = yes; then
     31108       if test $cross_compiling != yes; then
     31109         rm -rf conftest.f conftest.f1 conftest.f2
     31110         if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
     31111             set x `ls -i conftest.f conftest.f1` && test "" = ""; then
     31112           if test "$cross_compiling" = yes
     31113then :
     31114                :
     31115
     31116else case e in #(
     31117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31118/* end confdefs.h.  */
     31119
     31120#               include <errno.h>
     31121#               include <stdio.h>
     31122#               include <stdlib.h>
     31123#               include <unistd.h>
     31124
     31125
     31126$gl_mda_defines
     31127
     31128int
     31129main (void)
     31130{
     31131int result = 0;
     31132                  if (rename ("conftest.f", "conftest.f1"))
     31133                    result |= 1;
     31134                  if (unlink ("conftest.f1"))
     31135                    result |= 2;
     31136
     31137                  /* Allow either the POSIX-required behavior, where the
     31138                     previous rename kept conftest.f, or the (better) NetBSD
     31139                     behavior, where it removed conftest.f.  */
     31140                  if (rename ("conftest.f", "conftest.f") != 0
     31141                      && errno != ENOENT)
     31142                    result |= 4;
     31143
     31144                  if (rename ("conftest.f1", "conftest.f1") == 0)
     31145                    result |= 8;
     31146                  if (rename ("conftest.f2", "conftest.f2") != 0)
     31147                    result |= 16;
     31148                  return result;
     31149
     31150  ;
     31151  return 0;
     31152}
     31153_ACEOF
     31154if ac_fn_c_try_run "$LINENO"
     31155then :
     31156  gl_cv_func_rename_link_works=yes
     31157else case e in #(
     31158  e) gl_cv_func_rename_link_works=no ;;
     31159esac
     31160fi
     31161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31162  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31163esac
     31164fi
     31165
     31166         else
     31167           gl_cv_func_rename_link_works="guessing no"
     31168         fi
     31169         rm -rf conftest.f conftest.f1 conftest.f2
     31170       else
     31171                  case "$host_os" in
     31172                            # Guess yes on Linux systems.
     31173           linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
     31174                            # Guess yes on glibc systems.
     31175           *-gnu*)          gl_cv_func_rename_link_works="guessing yes" ;;
     31176                            # Guess yes on native Windows.
     31177           mingw*)          gl_cv_func_rename_link_works="guessing yes" ;;
     31178                            # If we don't know, obey --enable-cross-guesses.
     31179           *)               gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
     31180         esac
     31181       fi
     31182     else
     31183       gl_cv_func_rename_link_works=yes
     31184     fi
     31185     ;;
     31186esac
     31187fi
     31188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
     31189printf "%s\n" "$gl_cv_func_rename_link_works" >&6; }
     31190  case "$gl_cv_func_rename_link_works" in
     31191    *yes) ;;
     31192    *)
     31193      REPLACE_RENAME=1
     31194
     31195printf "%s\n" "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
     31196
     31197      ;;
     31198  esac
     31199
     31200          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
     31201printf %s "checking whether rename manages existing destinations correctly... " >&6; }
     31202if test ${gl_cv_func_rename_dest_works+y}
     31203then :
     31204  printf %s "(cached) " >&6
     31205else case e in #(
     31206  e) rm -rf conftest.f conftest.d1 conftest.d2
     31207    touch conftest.f && mkdir conftest.d1 conftest.d2 ||
     31208      as_fn_error $? "cannot create temporary files" "$LINENO" 5
     31209    if test "$cross_compiling" = yes
     31210then :
     31211        case "$host_os" in
     31212                          # Guess yes on Linux systems.
     31213         linux-* | linux) gl_cv_func_rename_dest_works="guessing yes" ;;
     31214                          # Guess yes on glibc systems.
     31215         *-gnu*)          gl_cv_func_rename_dest_works="guessing yes" ;;
     31216                          # Guess no on native Windows.
     31217         mingw*)          gl_cv_func_rename_dest_works="guessing no" ;;
     31218                          # If we don't know, obey --enable-cross-guesses.
     31219         *)               gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
     31220       esac
     31221
     31222else case e in #(
     31223  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31224/* end confdefs.h.  */
     31225
     31226#        include <stdio.h>
     31227#        include <stdlib.h>
     31228
     31229int
     31230main (void)
     31231{
     31232int result = 0;
     31233           if (rename ("conftest.d1", "conftest.d2") != 0)
     31234             result |= 1;
     31235           if (rename ("conftest.d2", "conftest.f") == 0)
     31236             result |= 2;
     31237           return result;
     31238
     31239  ;
     31240  return 0;
     31241}
     31242_ACEOF
     31243if ac_fn_c_try_run "$LINENO"
     31244then :
     31245  gl_cv_func_rename_dest_works=yes
     31246else case e in #(
     31247  e) gl_cv_func_rename_dest_works=no ;;
     31248esac
     31249fi
     31250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31251  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31252esac
     31253fi
     31254
     31255    rm -rf conftest.f conftest.d1 conftest.d2
     31256   ;;
     31257esac
     31258fi
     31259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
     31260printf "%s\n" "$gl_cv_func_rename_dest_works" >&6; }
     31261  case "$gl_cv_func_rename_dest_works" in
     31262    *yes) ;;
     31263    *)
     31264      REPLACE_RENAME=1
     31265
     31266printf "%s\n" "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
     31267
     31268      ;;
     31269  esac
     31270
     31271
     31272     if test $REPLACE_RENAME = 1; then
     31273  GL_COND_OBJ_RENAME_TRUE=
     31274  GL_COND_OBJ_RENAME_FALSE='#'
     31275else
     31276  GL_COND_OBJ_RENAME_TRUE='#'
     31277  GL_COND_OBJ_RENAME_FALSE=
     31278fi
     31279:
     31280    if test -z "${GL_COND_OBJ_RENAME_TRUE}" && test -z "${GL_COND_OBJ_RENAME_FALSE}"; then
     31281    GL_COND_OBJ_RENAME_TRUE='#'
     31282    GL_COND_OBJ_RENAME_FALSE='#'
     31283  fi
     31284
     31285
     31286
     31287
     31288
     31289
     31290
     31291
     31292
     31293
     31294          GL_GNULIB_RENAME=1
     31295
     31296
     31297
     31298
     31299
     31300printf "%s\n" "#define GNULIB_TEST_RENAME 1" >>confdefs.h
     31301
     31302
     31303
     31304
     31305
     31306
     31307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
     31308printf %s "checking whether rmdir works... " >&6; }
     31309if test ${gl_cv_func_rmdir_works+y}
     31310then :
     31311  printf %s "(cached) " >&6
     31312else case e in #(
     31313  e) mkdir conftest.dir
     31314     touch conftest.file
     31315     if test "$cross_compiling" = yes
     31316then :
     31317  case "$host_os" in
     31318                           # Guess yes on Linux systems.
     31319          linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
     31320                           # Guess yes on glibc systems.
     31321          *-gnu* | gnu*)   gl_cv_func_rmdir_works="guessing yes" ;;
     31322                           # Guess no on native Windows.
     31323          mingw*)          gl_cv_func_rmdir_works="guessing no" ;;
     31324                           # If we don't know, obey --enable-cross-guesses.
     31325          *)               gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
     31326        esac
     31327
     31328else case e in #(
     31329  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31330/* end confdefs.h.  */
     31331#include <stdio.h>
     31332           #include <errno.h>
     31333           #if HAVE_UNISTD_H
     31334           # include <unistd.h>
     31335           #else /* on Windows with MSVC */
     31336           # include <direct.h>
     31337           #endif
     31338
     31339
     31340$gl_mda_defines
     31341
     31342int
     31343main (void)
     31344{
     31345int result = 0;
     31346           if (!rmdir ("conftest.file/"))
     31347             result |= 1;
     31348           else if (errno != ENOTDIR)
     31349             result |= 2;
     31350           if (!rmdir ("conftest.dir/./"))
     31351             result |= 4;
     31352           return result;
     31353
     31354  ;
     31355  return 0;
     31356}
     31357_ACEOF
     31358if ac_fn_c_try_run "$LINENO"
     31359then :
     31360  gl_cv_func_rmdir_works=yes
     31361else case e in #(
     31362  e) gl_cv_func_rmdir_works=no ;;
     31363esac
     31364fi
     31365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31366  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31367esac
     31368fi
     31369
     31370     rm -rf conftest.dir conftest.file ;;
     31371esac
     31372fi
     31373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
     31374printf "%s\n" "$gl_cv_func_rmdir_works" >&6; }
     31375  case "$gl_cv_func_rmdir_works" in
     31376    *yes) ;;
     31377    *)
     31378      REPLACE_RMDIR=1
     31379      ;;
     31380  esac
     31381
     31382
     31383     if test $REPLACE_RMDIR = 1; then
     31384  GL_COND_OBJ_RMDIR_TRUE=
     31385  GL_COND_OBJ_RMDIR_FALSE='#'
     31386else
     31387  GL_COND_OBJ_RMDIR_TRUE='#'
     31388  GL_COND_OBJ_RMDIR_FALSE=
     31389fi
     31390:
     31391    if test -z "${GL_COND_OBJ_RMDIR_TRUE}" && test -z "${GL_COND_OBJ_RMDIR_FALSE}"; then
     31392    GL_COND_OBJ_RMDIR_TRUE='#'
     31393    GL_COND_OBJ_RMDIR_FALSE='#'
     31394  fi
     31395
     31396
     31397
     31398
     31399
     31400
     31401
     31402
     31403
     31404
     31405          GL_GNULIB_RMDIR=1
     31406
     31407
     31408
     31409
     31410
     31411printf "%s\n" "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
     31412
     31413
     31414
     31415
     31416
     31417  if test "$with_selinux" != no; then
     31418    ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
     31419if test "x$ac_cv_header_selinux_selinux_h" = xyes
     31420then :
     31421  printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h
     31422
     31423fi
     31424
     31425
     31426    if test "$ac_cv_header_selinux_selinux_h" = yes; then
     31427      # We do have <selinux/selinux.h>, so do compile getfilecon.c
     31428      # and arrange to use its wrappers.
     31429
     31430
     31431
     31432
     31433
     31434
     31435
     31436
     31437
     31438     if test $gl_cv_have_include_next = yes; then
     31439       gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
     31440     else
     31441       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <selinux/selinux.h>" >&5
     31442printf %s "checking absolute name of <selinux/selinux.h>... " >&6; }
     31443if test ${gl_cv_next_selinux_selinux_h+y}
     31444then :
     31445  printf %s "(cached) " >&6
     31446else case e in #(
     31447  e)
     31448             if test $ac_cv_header_selinux_selinux_h = yes; then
     31449
     31450
     31451
     31452
     31453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31454/* end confdefs.h.  */
     31455#include <selinux/selinux.h>
     31456_ACEOF
     31457                case "$host_os" in
     31458    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     31459    *)    gl_absname_cpp="$ac_cpp" ;;
     31460  esac
     31461
     31462  case "$host_os" in
     31463    mingw*)
     31464                                          gl_dirsep_regex='[/\\]'
     31465      ;;
     31466    *)
     31467      gl_dirsep_regex='\/'
     31468      ;;
     31469  esac
     31470      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     31471  gl_header_literal_regex=`echo 'selinux/selinux.h' \
     31472                           | sed -e "$gl_make_literal_regex_sed"`
     31473  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     31474      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     31475      s|^/[^/]|//&|
     31476      p
     31477      q
     31478    }'
     31479
     31480        gl_cv_absolute_selinux_selinux_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     31481  sed -n "$gl_absolute_header_sed"`
     31482
     31483          gl_header=$gl_cv_absolute_selinux_selinux_h
     31484          gl_cv_next_selinux_selinux_h='"'$gl_header'"'
     31485          else
     31486               gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
     31487             fi
     31488
     31489          ;;
     31490esac
     31491fi
     31492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_selinux_selinux_h" >&5
     31493printf "%s\n" "$gl_cv_next_selinux_selinux_h" >&6; }
     31494     fi
     31495     NEXT_SELINUX_SELINUX_H=$gl_cv_next_selinux_selinux_h
     31496
     31497     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     31498       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     31499       gl_next_as_first_directive='<'selinux/selinux.h'>'
     31500     else
     31501       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     31502       gl_next_as_first_directive=$gl_cv_next_selinux_selinux_h
     31503     fi
     31504     NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H=$gl_next_as_first_directive
     31505
     31506
     31507
     31508
     31509
     31510printf "%s\n" "#define getfilecon rpl_getfilecon" >>confdefs.h
     31511
     31512
     31513printf "%s\n" "#define lgetfilecon rpl_lgetfilecon" >>confdefs.h
     31514
     31515
     31516printf "%s\n" "#define fgetfilecon rpl_fgetfilecon" >>confdefs.h
     31517
     31518    fi
     31519
     31520    case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
     31521      no:*) # already warned
     31522        ;;
     31523      *:no)
     31524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libselinux was found but selinux/selinux.h is missing." >&5
     31525printf "%s\n" "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;}
     31526        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be compiled without SELinux support." >&5
     31527printf "%s\n" "$as_me: WARNING: GNU sed will be compiled without SELinux support." >&2;}
     31528    esac
     31529  else
     31530    # Do as if <selinux/selinux.h> does not exist, even if
     31531    # AC_CHECK_HEADERS_ONCE has already determined that it exists.
     31532    printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 0" >>confdefs.h
     31533
     31534  fi
     31535
     31536
     31537
     31538  if test "$with_selinux" != no; then
     31539           for ac_header in selinux/context.h
     31540do :
     31541  ac_fn_c_check_header_compile "$LINENO" "selinux/context.h" "ac_cv_header_selinux_context_h" "$ac_includes_default"
     31542if test "x$ac_cv_header_selinux_context_h" = xyes
     31543then :
     31544  printf "%s\n" "#define HAVE_SELINUX_CONTEXT_H 1" >>confdefs.h
     31545 GL_GENERATE_SELINUX_CONTEXT_H=false
     31546else case e in #(
     31547  e) GL_GENERATE_SELINUX_CONTEXT_H=true ;;
     31548esac
     31549fi
     31550
     31551done
     31552  else
     31553    GL_GENERATE_SELINUX_CONTEXT_H=true
     31554  fi
     31555
     31556
     31557
     31558  GL_GENERATE_SELINUX_LABEL_H=true
     31559  if test "$with_selinux" != no; then
     31560           for ac_header in selinux/label.h
     31561do :
     31562  ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
     31563if test "x$ac_cv_header_selinux_label_h" = xyes
     31564then :
     31565  printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h
     31566 GL_GENERATE_SELINUX_LABEL_H=false
     31567fi
     31568
     31569done
     31570  fi
     31571
     31572
     31573
     31574
     31575
     31576  case "$GL_GENERATE_SELINUX_CONTEXT_H" in
     31577    false) SELINUX_CONTEXT_H='' ;;
     31578    true)
     31579                  if test -z "$SELINUX_CONTEXT_H"; then
     31580        SELINUX_CONTEXT_H="${gl_source_base_prefix}selinux/context.h"
     31581      fi
     31582      ;;
     31583    *) echo "*** GL_GENERATE_SELINUX_CONTEXT_H is not set correctly" 1>&2; exit 1 ;;
     31584  esac
     31585
     31586
     31587     if $GL_GENERATE_SELINUX_CONTEXT_H; then
     31588  GL_GENERATE_SELINUX_CONTEXT_H_TRUE=
     31589  GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#'
     31590else
     31591  GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#'
     31592  GL_GENERATE_SELINUX_CONTEXT_H_FALSE=
     31593fi
     31594:
     31595    if test -z "${GL_GENERATE_SELINUX_CONTEXT_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_CONTEXT_H_FALSE}"; then
     31596    GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#'
     31597    GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#'
     31598  fi
     31599
     31600
     31601
     31602
     31603
     31604
     31605
     31606
     31607
     31608  case "$GL_GENERATE_SELINUX_LABEL_H" in
     31609    false) SELINUX_LABEL_H='' ;;
     31610    true)
     31611                  if test -z "$SELINUX_LABEL_H"; then
     31612        SELINUX_LABEL_H="${gl_source_base_prefix}selinux/label.h"
     31613      fi
     31614      ;;
     31615    *) echo "*** GL_GENERATE_SELINUX_LABEL_H is not set correctly" 1>&2; exit 1 ;;
     31616  esac
     31617
     31618
     31619     if $GL_GENERATE_SELINUX_LABEL_H; then
     31620  GL_GENERATE_SELINUX_LABEL_H_TRUE=
     31621  GL_GENERATE_SELINUX_LABEL_H_FALSE='#'
     31622else
     31623  GL_GENERATE_SELINUX_LABEL_H_TRUE='#'
     31624  GL_GENERATE_SELINUX_LABEL_H_FALSE=
     31625fi
     31626:
     31627    if test -z "${GL_GENERATE_SELINUX_LABEL_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_LABEL_H_FALSE}"; then
     31628    GL_GENERATE_SELINUX_LABEL_H_TRUE='#'
     31629    GL_GENERATE_SELINUX_LABEL_H_FALSE='#'
     31630  fi
     31631
     31632
     31633
     31634
     31635
     31636
     31637
     31638     if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
     31639  GL_COND_OBJ_GETFILECON_TRUE=
     31640  GL_COND_OBJ_GETFILECON_FALSE='#'
     31641else
     31642  GL_COND_OBJ_GETFILECON_TRUE='#'
     31643  GL_COND_OBJ_GETFILECON_FALSE=
     31644fi
     31645:
     31646    if test -z "${GL_COND_OBJ_GETFILECON_TRUE}" && test -z "${GL_COND_OBJ_GETFILECON_FALSE}"; then
     31647    GL_COND_OBJ_GETFILECON_TRUE='#'
     31648    GL_COND_OBJ_GETFILECON_FALSE='#'
     31649  fi
     31650
     31651
     31652
     31653
     31654
     31655
     31656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
     31657printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
     31658if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
     31659then :
     31660  printf %s "(cached) " >&6
     31661else case e in #(
     31662  e) case "$host_os" in
     31663       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
     31664       *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
     31665         gl_cv_func_setlocale_null_all_mtsafe=no ;;
     31666       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
     31667       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
     31668         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
     31669       # If we don't know, obey --enable-cross-guesses.
     31670       *)
     31671         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
     31672     esac
     31673     ;;
     31674esac
     31675fi
     31676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
     31677printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
     31678    case "$host_os" in
     31679    mingw*) ;;
     31680    *)
     31681      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
     31682        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
     31683      fi
     31684      ;;
     31685  esac
     31686  case "$gl_cv_func_setlocale_null_all_mtsafe" in
     31687    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
     31688    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
     31689  esac
     31690
     31691printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
     31692
     31693
     31694    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
     31695printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
     31696if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
     31697then :
     31698  printf %s "(cached) " >&6
     31699else case e in #(
     31700  e) case "$host_os" in
     31701       # Guess no on OpenBSD, AIX.
     31702       openbsd* | aix*)
     31703         gl_cv_func_setlocale_null_one_mtsafe=no ;;
     31704       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
     31705       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
     31706         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
     31707       # If we don't know, obey --enable-cross-guesses.
     31708       *)
     31709         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
     31710     esac
     31711     ;;
     31712esac
     31713fi
     31714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
     31715printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
     31716    case "$host_os" in
     31717    mingw*) ;;
     31718    *)
     31719      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
     31720        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
     31721      fi
     31722      ;;
     31723  esac
     31724  case "$gl_cv_func_setlocale_null_one_mtsafe" in
     31725    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
     31726    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
     31727  esac
     31728
     31729printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
     31730
     31731
     31732    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
     31733    case "$host_os" in
     31734      mingw*) LIB_SETLOCALE_NULL= ;;
     31735      *)
     31736
     31737
     31738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
     31739printf %s "checking whether imported symbols can be declared weak... " >&6; }
     31740if test ${gl_cv_have_weak+y}
     31741then :
     31742  printf %s "(cached) " >&6
     31743else case e in #(
     31744  e) case "$host_os" in
     31745       cygwin*)
     31746                                    gl_cv_have_weak="guessing no"
     31747         ;;
     31748       *)
     31749         gl_cv_have_weak=no
     31750                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31751/* end confdefs.h.  */
     31752extern void xyzzy ();
     31753#pragma weak xyzzy
     31754int
     31755main (void)
     31756{
     31757xyzzy();
     31758  ;
     31759  return 0;
     31760}
     31761_ACEOF
     31762if ac_fn_c_try_link "$LINENO"
     31763then :
     31764  gl_cv_have_weak=maybe
     31765fi
     31766rm -f core conftest.err conftest.$ac_objext conftest.beam \
     31767    conftest$ac_exeext conftest.$ac_ext
     31768         if test $gl_cv_have_weak = maybe; then
     31769                                 if test "$cross_compiling" = yes
     31770then :
     31771                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31772/* end confdefs.h.  */
     31773#ifdef __ELF__
     31774                 Extensible Linking Format
     31775                 #endif
     31776
     31777_ACEOF
     31778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     31779  $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
     31780then :
     31781  gl_cv_have_weak="guessing yes"
     31782else case e in #(
     31783  e) gl_cv_have_weak="guessing no" ;;
     31784esac
     31785fi
     31786rm -rf conftest*
     31787
     31788
     31789else case e in #(
     31790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31791/* end confdefs.h.  */
     31792
     31793#include <stdio.h>
     31794#pragma weak fputs
     31795int main ()
     31796{
     31797  return (fputs == NULL);
     31798}
     31799_ACEOF
     31800if ac_fn_c_try_run "$LINENO"
     31801then :
     31802  gl_cv_have_weak=yes
     31803else case e in #(
     31804  e) gl_cv_have_weak=no ;;
     31805esac
     31806fi
     31807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     31808  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     31809esac
     31810fi
     31811
     31812         fi
     31813         ;;
     31814     esac
     31815          case " $LDFLAGS " in
     31816       *" -static "*) gl_cv_have_weak=no ;;
     31817     esac
     31818                    case "$gl_cv_have_weak" in
     31819       *yes)
     31820         case "$host_os" in
     31821           freebsd* | dragonfly* | midnightbsd*)
     31822             : > conftest1.c
     31823             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
     31824             cat <<EOF > conftest2.c
     31825#include <pthread.h>
     31826#pragma weak pthread_mutexattr_gettype
     31827int main ()
     31828{
     31829  return (pthread_mutexattr_gettype != NULL);
     31830}
     31831EOF
     31832             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
     31833               || gl_cv_have_weak=no
     31834             rm -f conftest1.c libempty.so conftest2.c conftest
     31835             ;;
     31836         esac
     31837         ;;
     31838     esac
     31839     ;;
     31840esac
     31841fi
     31842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
     31843printf "%s\n" "$gl_cv_have_weak" >&6; }
     31844  case "$gl_cv_have_weak" in
     31845    *yes)
     31846
     31847printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
     31848
     31849      ;;
     31850  esac
     31851
     31852        case "$gl_cv_have_weak" in
     31853          *yes) LIB_SETLOCALE_NULL= ;;
     31854          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
     31855        esac
     31856        ;;
     31857    esac
     31858  else
     31859    LIB_SETLOCALE_NULL=
     31860  fi
     31861
     31862
     31863
     31864     if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
     31865  GL_COND_OBJ_SETLOCALE_LOCK_TRUE=
     31866  GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
     31867else
     31868  GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
     31869  GL_COND_OBJ_SETLOCALE_LOCK_FALSE=
     31870fi
     31871:
     31872    if test -z "${GL_COND_OBJ_SETLOCALE_LOCK_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_LOCK_FALSE}"; then
     31873    GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
     31874    GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
     31875  fi
     31876
     31877  if test -z "$GL_COND_OBJ_SETLOCALE_LOCK_TRUE"; then :
     31878
     31879
     31880
     31881
     31882  CFLAG_VISIBILITY=
     31883  HAVE_VISIBILITY=0
     31884  if test -n "$GCC"; then
     31885                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
     31886printf %s "checking whether the -Werror option is usable... " >&6; }
     31887if test ${gl_cv_cc_vis_werror+y}
     31888then :
     31889  printf %s "(cached) " >&6
     31890else case e in #(
     31891  e) gl_save_CFLAGS="$CFLAGS"
     31892       CFLAGS="$CFLAGS -Werror"
     31893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31894/* end confdefs.h.  */
     31895
     31896int
     31897main (void)
     31898{
     31899
     31900  ;
     31901  return 0;
     31902}
     31903_ACEOF
     31904if ac_fn_c_try_compile "$LINENO"
     31905then :
     31906  gl_cv_cc_vis_werror=yes
     31907else case e in #(
     31908  e) gl_cv_cc_vis_werror=no ;;
     31909esac
     31910fi
     31911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     31912       CFLAGS="$gl_save_CFLAGS"
     31913       ;;
     31914esac
     31915fi
     31916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
     31917printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
     31918        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
     31919printf %s "checking for simple visibility declarations... " >&6; }
     31920if test ${gl_cv_cc_visibility+y}
     31921then :
     31922  printf %s "(cached) " >&6
     31923else case e in #(
     31924  e) gl_save_CFLAGS="$CFLAGS"
     31925       CFLAGS="$CFLAGS -fvisibility=hidden"
     31926                                          if test $gl_cv_cc_vis_werror = yes; then
     31927         CFLAGS="$CFLAGS -Werror"
     31928       fi
     31929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     31930/* end confdefs.h.  */
     31931extern __attribute__((__visibility__("hidden"))) int hiddenvar;
     31932              extern __attribute__((__visibility__("default"))) int exportedvar;
     31933              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
     31934              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
     31935              void dummyfunc (void);
     31936              int hiddenvar;
     31937              int exportedvar;
     31938              int hiddenfunc (void) { return 51; }
     31939              int exportedfunc (void) { return 1225736919; }
     31940              void dummyfunc (void) {}
     31941
     31942int
     31943main (void)
     31944{
     31945
     31946  ;
     31947  return 0;
     31948}
     31949_ACEOF
     31950if ac_fn_c_try_compile "$LINENO"
     31951then :
     31952  gl_cv_cc_visibility=yes
     31953else case e in #(
     31954  e) gl_cv_cc_visibility=no ;;
     31955esac
     31956fi
     31957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     31958       CFLAGS="$gl_save_CFLAGS"
     31959       ;;
     31960esac
     31961fi
     31962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
     31963printf "%s\n" "$gl_cv_cc_visibility" >&6; }
     31964    if test $gl_cv_cc_visibility = yes; then
     31965      CFLAG_VISIBILITY="-fvisibility=hidden"
     31966      HAVE_VISIBILITY=1
     31967    fi
     31968  fi
     31969
     31970
     31971
     31972printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
     31973
     31974
     31975
     31976
     31977fi
     31978
     31979
     31980
     31981
     31982
     31983
     31984
     31985
     31986
     31987          GL_GNULIB_SETLOCALE_NULL=1
     31988
     31989
     31990
     31991
     31992
     31993printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
     31994
     31995
     31996
     31997
     31998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
     31999printf %s "checking for ssize_t... " >&6; }
     32000if test ${gt_cv_ssize_t+y}
     32001then :
     32002  printf %s "(cached) " >&6
     32003else case e in #(
     32004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32005/* end confdefs.h.  */
     32006#include <sys/types.h>
     32007int
     32008main (void)
     32009{
     32010int x = sizeof (ssize_t *) + sizeof (ssize_t);
     32011            return !x;
     32012  ;
     32013  return 0;
     32014}
     32015_ACEOF
     32016if ac_fn_c_try_compile "$LINENO"
     32017then :
     32018  gt_cv_ssize_t=yes
     32019else case e in #(
     32020  e) gt_cv_ssize_t=no ;;
     32021esac
     32022fi
     32023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     32024esac
     32025fi
     32026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
     32027printf "%s\n" "$gt_cv_ssize_t" >&6; }
     32028  if test $gt_cv_ssize_t = no; then
     32029
     32030printf "%s\n" "#define ssize_t int" >>confdefs.h
     32031
     32032  fi
     32033
     32034
     32035
     32036
     32037
     32038  case "$host_os" in
     32039    mingw*)
     32040                  REPLACE_STAT=1
     32041      ;;
     32042    *)
     32043                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
     32044printf %s "checking whether stat handles trailing slashes on files... " >&6; }
     32045if test ${gl_cv_func_stat_file_slash+y}
     32046then :
     32047  printf %s "(cached) " >&6
     32048else case e in #(
     32049  e) touch conftest.tmp
     32050         # Assume that if we have lstat, we can also check symlinks.
     32051         if test $ac_cv_func_lstat = yes; then
     32052           ln -s conftest.tmp conftest.lnk
     32053         fi
     32054         if test "$cross_compiling" = yes
     32055then :
     32056  case "$host_os" in
     32057                               # Guess yes on Linux systems.
     32058              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
     32059                               # Guess yes on glibc systems.
     32060              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
     32061                               # If we don't know, obey --enable-cross-guesses.
     32062              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
     32063            esac
     32064
     32065else case e in #(
     32066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32067/* end confdefs.h.  */
     32068#include <sys/stat.h>
     32069
     32070int
     32071main (void)
     32072{
     32073int result = 0;
     32074               struct stat st;
     32075               if (!stat ("conftest.tmp/", &st))
     32076                 result |= 1;
     32077#if HAVE_LSTAT
     32078               if (!stat ("conftest.lnk/", &st))
     32079                 result |= 2;
     32080#endif
     32081               return result;
     32082
     32083  ;
     32084  return 0;
     32085}
     32086_ACEOF
     32087if ac_fn_c_try_run "$LINENO"
     32088then :
     32089  gl_cv_func_stat_file_slash=yes
     32090else case e in #(
     32091  e) gl_cv_func_stat_file_slash=no ;;
     32092esac
     32093fi
     32094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     32095  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     32096esac
     32097fi
     32098
     32099         rm -f conftest.tmp conftest.lnk ;;
     32100esac
     32101fi
     32102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
     32103printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
     32104      case $gl_cv_func_stat_file_slash in
     32105        *no)
     32106          REPLACE_STAT=1
     32107
     32108printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
     32109;;
     32110      esac
     32111      case $host_os in
     32112                solaris*)
     32113          REPLACE_FSTAT=1 ;;
     32114      esac
     32115      ;;
     32116  esac
     32117
     32118
     32119     if test $REPLACE_STAT = 1; then
     32120  GL_COND_OBJ_STAT_TRUE=
     32121  GL_COND_OBJ_STAT_FALSE='#'
     32122else
     32123  GL_COND_OBJ_STAT_TRUE='#'
     32124  GL_COND_OBJ_STAT_FALSE=
     32125fi
     32126:
     32127    if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
     32128    GL_COND_OBJ_STAT_TRUE='#'
     32129    GL_COND_OBJ_STAT_FALSE='#'
     32130  fi
     32131
     32132  if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
     32133
     32134    case "$host_os" in
     32135      mingw*)
     32136
     32137
     32138
     32139
     32140
     32141
     32142
     32143
     32144  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
     32145
     32146        ;;
     32147    esac
     32148
     32149
     32150
     32151  :
     32152
     32153
     32154fi
     32155
     32156
     32157
     32158
     32159
     32160
     32161
     32162
     32163
     32164          GL_GNULIB_STAT=1
     32165
     32166
     32167
     32168
     32169
     32170printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
     32171
     32172
     32173
     32174
     32175
     32176
     32177
     32178  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>
     32179     #include <sys/stat.h>
     32180"
     32181if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
     32182then :
     32183
     32184printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
     32185
     32186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
     32187printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
     32188if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
     32189then :
     32190  printf %s "(cached) " >&6
     32191else case e in #(
     32192  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32193/* end confdefs.h.  */
     32194
     32195            #include <sys/types.h>
     32196            #include <sys/stat.h>
     32197            #if HAVE_SYS_TIME_H
     32198            # include <sys/time.h>
     32199            #endif
     32200            #include <time.h>
     32201            struct timespec ts;
     32202            struct stat st;
     32203
     32204int
     32205main (void)
     32206{
     32207
     32208            st.st_atim = ts;
     32209
     32210  ;
     32211  return 0;
     32212}
     32213_ACEOF
     32214if ac_fn_c_try_compile "$LINENO"
     32215then :
     32216  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
     32217else case e in #(
     32218  e) ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no ;;
     32219esac
     32220fi
     32221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     32222esac
     32223fi
     32224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
     32225printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
     32226     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
     32227
     32228printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
     32229
     32230     fi
     32231else case e in #(
     32232  e) 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>
     32233        #include <sys/stat.h>
     32234"
     32235if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
     32236then :
     32237
     32238printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
     32239
     32240
     32241else case e in #(
     32242  e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
     32243           #include <sys/stat.h>
     32244"
     32245if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
     32246then :
     32247
     32248printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
     32249
     32250
     32251else case e in #(
     32252  e) 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>
     32253              #include <sys/stat.h>
     32254"
     32255if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
     32256then :
     32257
     32258printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
     32259
     32260
     32261fi
     32262 ;;
     32263esac
     32264fi
     32265 ;;
     32266esac
     32267fi
     32268 ;;
     32269esac
     32270fi
     32271
     32272
     32273
     32274
     32275
     32276  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>
     32277     #include <sys/stat.h>
     32278"
     32279if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
     32280then :
     32281
     32282printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
     32283
     32284
     32285else case e in #(
     32286  e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
     32287        #include <sys/stat.h>
     32288"
     32289if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
     32290then :
     32291
     32292printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
     32293
     32294
     32295else case e in #(
     32296  e) 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>
     32297          #include <sys/stat.h>
     32298"
     32299if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
     32300then :
     32301
     32302printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
     32303
     32304
     32305fi
     32306 ;;
     32307esac
     32308fi
     32309 ;;
     32310esac
     32311fi
     32312
     32313
     32314
     32315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5
     32316printf %s "checking for alignas and alignof... " >&6; }
     32317if test ${gl_cv_header_working_stdalign_h+y}
     32318then :
     32319  printf %s "(cached) " >&6
     32320else case e in #(
     32321  e) gl_save_CFLAGS=$CFLAGS
     32322     for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do
     32323      case $gl_working in #(
     32324  *stdalign.h*) :
     32325    CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H" ;; #(
     32326  *) :
     32327     ;;
     32328esac
     32329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32330/* end confdefs.h.  */
     32331#include <stdint.h>
     32332            #ifdef INCLUDE_STDALIGN_H
     32333             #include <stdalign.h>
     32334            #endif
     32335            #include <stddef.h>
     32336
     32337            /* Test that alignof yields a result consistent with offsetof.
     32338               This catches GCC bug 52023
     32339               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
     32340            #ifdef __cplusplus
     32341               template <class t> struct alignof_helper { char a; t b; };
     32342            # define ao(type) offsetof (alignof_helper<type>, b)
     32343            #else
     32344            # define ao(type) offsetof (struct { char a; type b; }, b)
     32345            #endif
     32346            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
     32347            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
     32348            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
     32349
     32350            /* Test alignas only on platforms where gnulib can help.  */
     32351            #if \
     32352                ((defined __cplusplus && 201103 <= __cplusplus) \
     32353                 || (__TINYC__ && defined __attribute__) \
     32354                 || (defined __APPLE__ && defined __MACH__ \
     32355                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
     32356                     : __GNUC__) \
     32357                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
     32358                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
     32359                 || 1300 <= _MSC_VER)
     32360              struct alignas_test { char c; char alignas (8) alignas_8; };
     32361              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
     32362                                ? 1 : -1];
     32363            #endif
     32364
     32365int
     32366main (void)
     32367{
     32368
     32369  ;
     32370  return 0;
     32371}
     32372_ACEOF
     32373if ac_fn_c_try_compile "$LINENO"
     32374then :
     32375  gl_cv_header_working_stdalign_h=$gl_working
     32376else case e in #(
     32377  e) gl_cv_header_working_stdalign_h=no ;;
     32378esac
     32379fi
     32380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     32381
     32382      CFLAGS=$gl_save_CFLAGS
     32383      test "$gl_cv_header_working_stdalign_h" != no && break
     32384     done ;;
     32385esac
     32386fi
     32387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
     32388printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
     32389
     32390  GL_GENERATE_STDALIGN_H=false
     32391  case $gl_cv_header_working_stdalign_h in #(
     32392  no) :
     32393    GL_GENERATE_STDALIGN_H=true ;; #(
     32394  yes*keyword*) :
     32395
     32396printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h
     32397 ;; #(
     32398  *) :
     32399     ;;
     32400esac
     32401
     32402
     32403
     32404
     32405
     32406
     32407
     32408
     32409
     32410  case "$GL_GENERATE_STDALIGN_H" in
     32411    false) STDALIGN_H='' ;;
     32412    true)
     32413                  if test -z "$STDALIGN_H"; then
     32414        STDALIGN_H="${gl_source_base_prefix}stdalign.h"
     32415      fi
     32416      ;;
     32417    *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;;
     32418  esac
     32419
     32420
     32421     if $GL_GENERATE_STDALIGN_H; then
     32422  GL_GENERATE_STDALIGN_H_TRUE=
     32423  GL_GENERATE_STDALIGN_H_FALSE='#'
     32424else
     32425  GL_GENERATE_STDALIGN_H_TRUE='#'
     32426  GL_GENERATE_STDALIGN_H_FALSE=
     32427fi
     32428:
     32429    if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
     32430    GL_GENERATE_STDALIGN_H_TRUE='#'
     32431    GL_GENERATE_STDALIGN_H_FALSE='#'
     32432  fi
     32433
     32434
     32435
     32436
     32437
     32438
     32439
     32440  GL_GENERATE_STDARG_H=false
     32441  NEXT_STDARG_H='<stdarg.h>'
     32442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
     32443printf %s "checking for va_copy... " >&6; }
     32444if test ${gl_cv_func_va_copy+y}
     32445then :
     32446  printf %s "(cached) " >&6
     32447else case e in #(
     32448  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32449/* end confdefs.h.  */
     32450#include <stdarg.h>
     32451int
     32452main (void)
     32453{
     32454
     32455#ifndef va_copy
     32456void (*func) (va_list, va_list) = va_copy;
     32457#endif
     32458
     32459  ;
     32460  return 0;
     32461}
     32462_ACEOF
     32463if ac_fn_c_try_compile "$LINENO"
     32464then :
     32465  gl_cv_func_va_copy=yes
     32466else case e in #(
     32467  e) gl_cv_func_va_copy=no ;;
     32468esac
     32469fi
     32470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     32471     ;;
     32472esac
     32473fi
     32474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
     32475printf "%s\n" "$gl_cv_func_va_copy" >&6; }
     32476  if test $gl_cv_func_va_copy = no; then
     32477                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32478/* end confdefs.h.  */
     32479#if defined _AIX && !defined __GNUC__
     32480        AIX vaccine
     32481       #endif
     32482
     32483_ACEOF
     32484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     32485  $EGREP_TRADITIONAL "vaccine" >/dev/null 2>&1
     32486then :
     32487  gl_aixcc=yes
     32488else case e in #(
     32489  e) gl_aixcc=no ;;
     32490esac
     32491fi
     32492rm -rf conftest*
     32493
     32494    if test $gl_aixcc = yes; then
     32495            GL_GENERATE_STDARG_H=true
     32496
     32497
     32498
     32499
     32500
     32501
     32502
     32503
     32504     if test $gl_cv_have_include_next = yes; then
     32505       gl_cv_next_stdarg_h='<'stdarg.h'>'
     32506     else
     32507       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
     32508printf %s "checking absolute name of <stdarg.h>... " >&6; }
     32509if test ${gl_cv_next_stdarg_h+y}
     32510then :
     32511  printf %s "(cached) " >&6
     32512else case e in #(
     32513  e)
     32514
     32515
     32516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32517/* end confdefs.h.  */
     32518#include <stdarg.h>
     32519_ACEOF
     32520                case "$host_os" in
     32521    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     32522    *)    gl_absname_cpp="$ac_cpp" ;;
     32523  esac
     32524
     32525  case "$host_os" in
     32526    mingw*)
     32527                                          gl_dirsep_regex='[/\\]'
     32528      ;;
     32529    *)
     32530      gl_dirsep_regex='\/'
     32531      ;;
     32532  esac
     32533      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     32534  gl_header_literal_regex=`echo 'stdarg.h' \
     32535                           | sed -e "$gl_make_literal_regex_sed"`
     32536  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     32537      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     32538      s|^/[^/]|//&|
     32539      p
     32540      q
     32541    }'
     32542
     32543        gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     32544  sed -n "$gl_absolute_header_sed"`
     32545
     32546          gl_header=$gl_cv_absolute_stdarg_h
     32547          gl_cv_next_stdarg_h='"'$gl_header'"'
     32548
     32549          ;;
     32550esac
     32551fi
     32552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
     32553printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
     32554     fi
     32555     NEXT_STDARG_H=$gl_cv_next_stdarg_h
     32556
     32557     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     32558       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     32559       gl_next_as_first_directive='<'stdarg.h'>'
     32560     else
     32561       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     32562       gl_next_as_first_directive=$gl_cv_next_stdarg_h
     32563     fi
     32564     NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
     32565
     32566
     32567
     32568
     32569            if test "$gl_cv_next_stdarg_h" = '""'; then
     32570        gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
     32571        NEXT_STDARG_H="$gl_cv_next_stdarg_h"
     32572      fi
     32573    else
     32574
     32575
     32576  exec 9>&6 6>/dev/null
     32577
     32578    if test ${gl_cv_func___va_copy+y}
     32579then :
     32580  printf %s "(cached) " >&6
     32581else case e in #(
     32582  e)
     32583        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32584/* end confdefs.h.  */
     32585#include <stdarg.h>
     32586int
     32587main (void)
     32588{
     32589
     32590#ifndef __va_copy
     32591error, bail out
     32592#endif
     32593
     32594  ;
     32595  return 0;
     32596}
     32597_ACEOF
     32598if ac_fn_c_try_compile "$LINENO"
     32599then :
     32600  gl_cv_func___va_copy=yes
     32601else case e in #(
     32602  e) gl_cv_func___va_copy=no ;;
     32603esac
     32604fi
     32605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     32606esac
     32607fi
     32608
     32609
     32610  exec 6>&9 9>&-
     32611
     32612
     32613      if test $gl_cv_func___va_copy = yes; then
     32614
     32615printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
     32616
     32617      else
     32618
     32619
     32620printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
     32621
     32622      fi
     32623    fi
     32624  fi
     32625
     32626
     32627
     32628
     32629
     32630
     32631  case "$GL_GENERATE_STDARG_H" in
     32632    false) STDARG_H='' ;;
     32633    true)
     32634                  if test -z "$STDARG_H"; then
     32635        STDARG_H="${gl_source_base_prefix}stdarg.h"
     32636      fi
     32637      ;;
     32638    *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
     32639  esac
     32640
     32641
     32642     if $GL_GENERATE_STDARG_H; then
     32643  GL_GENERATE_STDARG_H_TRUE=
     32644  GL_GENERATE_STDARG_H_FALSE='#'
     32645else
     32646  GL_GENERATE_STDARG_H_TRUE='#'
     32647  GL_GENERATE_STDARG_H_FALSE=
     32648fi
     32649:
     32650    if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
     32651    GL_GENERATE_STDARG_H_TRUE='#'
     32652    GL_GENERATE_STDARG_H_FALSE='#'
     32653  fi
     32654
     32655
     32656
     32657
     32658
     32659
     32660
     32661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
     32662printf %s "checking for bool, true, false... " >&6; }
     32663if test ${gl_cv_c_bool+y}
     32664then :
     32665  printf %s "(cached) " >&6
     32666else case e in #(
     32667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     32668/* end confdefs.h.  */
     32669
     32670          #if true == false
     32671           #error "true == false"
     32672          #endif
     32673          extern bool b;
     32674          bool b = true == false;
     32675_ACEOF
     32676if ac_fn_c_try_compile "$LINENO"
     32677then :
     32678  gl_cv_c_bool=yes
     32679else case e in #(
     32680  e) gl_cv_c_bool=no ;;
     32681esac
     32682fi
     32683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     32684esac
     32685fi
     32686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
     32687printf "%s\n" "$gl_cv_c_bool" >&6; }
     32688  if test "$gl_cv_c_bool" = yes; then
     32689
     32690printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
     32691
     32692  fi
     32693
     32694
     32695
     32696
     32697
     32698
     32699  if test $ac_cv_header_stdckdint_h = yes; then
     32700    GL_GENERATE_STDCKDINT_H=false
     32701  else
     32702    GL_GENERATE_STDCKDINT_H=true
     32703  fi
     32704
     32705
     32706
     32707
     32708  case "$GL_GENERATE_STDCKDINT_H" in
     32709    false) STDCKDINT_H='' ;;
     32710    true)
     32711                  if test -z "$STDCKDINT_H"; then
     32712        STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
     32713      fi
     32714      ;;
     32715    *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
     32716  esac
     32717
     32718
     32719     if $GL_GENERATE_STDCKDINT_H; then
     32720  GL_GENERATE_STDCKDINT_H_TRUE=
     32721  GL_GENERATE_STDCKDINT_H_FALSE='#'
     32722else
     32723  GL_GENERATE_STDCKDINT_H_TRUE='#'
     32724  GL_GENERATE_STDCKDINT_H_FALSE=
     32725fi
     32726:
     32727    if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
     32728    GL_GENERATE_STDCKDINT_H_TRUE='#'
     32729    GL_GENERATE_STDCKDINT_H_FALSE='#'
     32730  fi
     32731
     32732
     32733
     32734
     32735
     32736
     32737
     32738
     32739
     32740
     32741
     32742
     32743
     32744
     32745
     32746
     32747  case "$GL_GENERATE_STDDEF_H" in
     32748    false) STDDEF_H='' ;;
     32749    true)
     32750                  if test -z "$STDDEF_H"; then
     32751        STDDEF_H="${gl_source_base_prefix}stddef.h"
     32752      fi
     32753      ;;
     32754    *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
     32755  esac
     32756
     32757
     32758     if $GL_GENERATE_STDDEF_H; then
     32759  GL_GENERATE_STDDEF_H_TRUE=
     32760  GL_GENERATE_STDDEF_H_FALSE='#'
     32761else
     32762  GL_GENERATE_STDDEF_H_TRUE='#'
     32763  GL_GENERATE_STDDEF_H_FALSE=
     32764fi
     32765:
     32766    if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
     32767    GL_GENERATE_STDDEF_H_TRUE='#'
     32768    GL_GENERATE_STDDEF_H_FALSE='#'
     32769  fi
     32770
     32771
     32772
     32773
     32774
     32775
     32776
     32777
     32778
     32779
     32780
     32781  case "$GL_GENERATE_STDINT_H" in
     32782    false) STDINT_H='' ;;
     32783    true)
     32784                  if test -z "$STDINT_H"; then
     32785        STDINT_H="${gl_source_base_prefix}stdint.h"
     32786      fi
     32787      ;;
     32788    *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
     32789  esac
     32790
     32791
     32792     if $GL_GENERATE_STDINT_H; then
     32793  GL_GENERATE_STDINT_H_TRUE=
     32794  GL_GENERATE_STDINT_H_FALSE='#'
     32795else
     32796  GL_GENERATE_STDINT_H_TRUE='#'
     32797  GL_GENERATE_STDINT_H_FALSE=
     32798fi
     32799:
     32800    if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
     32801    GL_GENERATE_STDINT_H_TRUE='#'
     32802    GL_GENERATE_STDINT_H_FALSE='#'
     32803  fi
     32804
     32805
     32806
     32807
     32808
     32809
     32810
     32811
     32812
     32813  case "$GL_GENERATE_LIMITS_H" in
     32814    false) LIMITS_H='' ;;
     32815    true)
     32816                  if test -z "$LIMITS_H"; then
     32817        LIMITS_H="${gl_source_base_prefix}limits.h"
     32818      fi
     32819      ;;
     32820    *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
     32821  esac
     32822
     32823
     32824     if $GL_GENERATE_LIMITS_H; then
     32825  GL_GENERATE_LIMITS_H_TRUE=
     32826  GL_GENERATE_LIMITS_H_FALSE='#'
     32827else
     32828  GL_GENERATE_LIMITS_H_TRUE='#'
     32829  GL_GENERATE_LIMITS_H_FALSE=
     32830fi
     32831:
     32832    if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
     32833    GL_GENERATE_LIMITS_H_TRUE='#'
     32834    GL_GENERATE_LIMITS_H_FALSE='#'
     32835  fi
     32836
     32837
     32838
     32839
     32840
     32841
     32842
     32843
     32844
     32845
     32846
     32847
     32848
     32849
     32850     if test $REPLACE_STDIO_READ_FUNCS = 1; then
     32851  GL_COND_OBJ_STDIO_READ_TRUE=
     32852  GL_COND_OBJ_STDIO_READ_FALSE='#'
     32853else
     32854  GL_COND_OBJ_STDIO_READ_TRUE='#'
     32855  GL_COND_OBJ_STDIO_READ_FALSE=
     32856fi
     32857:
     32858    if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
     32859    GL_COND_OBJ_STDIO_READ_TRUE='#'
     32860    GL_COND_OBJ_STDIO_READ_FALSE='#'
     32861  fi
     32862
     32863
     32864     if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
     32865  GL_COND_OBJ_STDIO_WRITE_TRUE=
     32866  GL_COND_OBJ_STDIO_WRITE_FALSE='#'
     32867else
     32868  GL_COND_OBJ_STDIO_WRITE_TRUE='#'
     32869  GL_COND_OBJ_STDIO_WRITE_FALSE=
     32870fi
     32871:
     32872    if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
     32873    GL_COND_OBJ_STDIO_WRITE_TRUE='#'
     32874    GL_COND_OBJ_STDIO_WRITE_FALSE='#'
     32875  fi
     32876
     32877
     32878
     32879
     32880
     32881
     32882
     32883
     32884
     32885
     32886          GL_GNULIB_FSCANF=1
     32887
     32888
     32889
     32890
     32891
     32892printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
     32893
     32894
     32895
     32896
     32897
     32898printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
     32899
     32900
     32901
     32902
     32903
     32904
     32905
     32906
     32907
     32908
     32909
     32910          GL_GNULIB_SCANF=1
     32911
     32912
     32913
     32914
     32915
     32916printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
     32917
     32918
     32919
     32920
     32921
     32922printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
     32923
     32924
     32925
     32926
     32927
     32928
     32929
     32930
     32931
     32932
     32933
     32934          GL_GNULIB_FGETC=1
     32935
     32936
     32937
     32938
     32939
     32940printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
     32941
     32942
     32943
     32944
     32945
     32946
     32947
     32948
     32949
     32950
     32951
     32952
     32953          GL_GNULIB_GETC=1
     32954
     32955
     32956
     32957
     32958
     32959printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
     32960
     32961
     32962
     32963
     32964
     32965
     32966
     32967
     32968
     32969
     32970
     32971
     32972          GL_GNULIB_GETCHAR=1
     32973
     32974
     32975
     32976
     32977
     32978printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
     32979
     32980
     32981
     32982
     32983
     32984
     32985
     32986
     32987
     32988
     32989
     32990
     32991          GL_GNULIB_FGETS=1
     32992
     32993
     32994
     32995
     32996
     32997printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
     32998
     32999
     33000
     33001
     33002
     33003
     33004
     33005
     33006
     33007
     33008
     33009
     33010          GL_GNULIB_FREAD=1
     33011
     33012
     33013
     33014
     33015
     33016printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
     33017
     33018
     33019
     33020
     33021
     33022
     33023
     33024
     33025
     33026
     33027
     33028
     33029          GL_GNULIB_FPRINTF=1
     33030
     33031
     33032
     33033
     33034
     33035printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
     33036
     33037
     33038
     33039
     33040
     33041
     33042
     33043
     33044
     33045
     33046
     33047
     33048          GL_GNULIB_PRINTF=1
     33049
     33050
     33051
     33052
     33053
     33054printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
     33055
     33056
     33057
     33058
     33059
     33060
     33061
     33062
     33063
     33064
     33065
     33066
     33067          GL_GNULIB_VFPRINTF=1
     33068
     33069
     33070
     33071
     33072
     33073printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
     33074
     33075
     33076
     33077
     33078
     33079
     33080
     33081
     33082
     33083
     33084
     33085
     33086          GL_GNULIB_VPRINTF=1
     33087
     33088
     33089
     33090
     33091
     33092printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
     33093
     33094
     33095
     33096
     33097
     33098
     33099
     33100
     33101
     33102
     33103
     33104
     33105          GL_GNULIB_FPUTC=1
     33106
     33107
     33108
     33109
     33110
     33111printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
     33112
     33113
     33114
     33115
     33116
     33117
     33118
     33119
     33120
     33121
     33122
     33123
     33124          GL_GNULIB_PUTC=1
     33125
     33126
     33127
     33128
     33129
     33130printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
     33131
     33132
     33133
     33134
     33135
     33136
     33137
     33138
     33139
     33140
     33141
     33142
     33143          GL_GNULIB_PUTCHAR=1
     33144
     33145
     33146
     33147
     33148
     33149printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
     33150
     33151
     33152
     33153
     33154
     33155
     33156
     33157
     33158
     33159
     33160
     33161
     33162          GL_GNULIB_FPUTS=1
     33163
     33164
     33165
     33166
     33167
     33168printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
     33169
     33170
     33171
     33172
     33173
     33174
     33175
     33176
     33177
     33178
     33179
     33180
     33181          GL_GNULIB_PUTS=1
     33182
     33183
     33184
     33185
     33186
     33187printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
     33188
     33189
     33190
     33191
     33192
     33193
     33194
     33195
     33196
     33197
     33198
     33199
     33200          GL_GNULIB_FWRITE=1
     33201
     33202
     33203
     33204
     33205
     33206printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
     33207
     33208
     33209
     33210
     33211
     33212
     33213
     33214
     33215
     33216
     33217
     33218
     33219
     33220
     33221
     33222
     33223
     33224  if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
     33225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
     33226printf %s "checking for working strerror function... " >&6; }
     33227if test ${gl_cv_func_working_strerror+y}
     33228then :
     33229  printf %s "(cached) " >&6
     33230else case e in #(
     33231  e) if test "$cross_compiling" = yes
     33232then :
     33233  case "$host_os" in
     33234                          # Guess yes on glibc systems.
     33235           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
     33236                          # Guess yes on musl systems.
     33237           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
     33238                          # If we don't know, obey --enable-cross-guesses.
     33239           *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
     33240         esac
     33241
     33242else case e in #(
     33243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33244/* end confdefs.h.  */
     33245#include <string.h>
     33246
     33247int
     33248main (void)
     33249{
     33250if (!*strerror (-2)) return 1;
     33251  ;
     33252  return 0;
     33253}
     33254_ACEOF
     33255if ac_fn_c_try_run "$LINENO"
     33256then :
     33257  gl_cv_func_working_strerror=yes
     33258else case e in #(
     33259  e) gl_cv_func_working_strerror=no ;;
     33260esac
     33261fi
     33262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     33263  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33264esac
     33265fi
     33266
     33267     ;;
     33268esac
     33269fi
     33270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
     33271printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
     33272    case "$gl_cv_func_working_strerror" in
     33273      *yes) ;;
     33274      *)
     33275                        REPLACE_STRERROR=1
     33276        ;;
     33277    esac
     33278
     33279                  case "$gl_cv_func_strerror_r_works" in
     33280        *no) REPLACE_STRERROR=1 ;;
     33281      esac
     33282
     33283  else
     33284            REPLACE_STRERROR=1
     33285  fi
     33286
     33287
     33288     if test $REPLACE_STRERROR = 1; then
     33289  GL_COND_OBJ_STRERROR_TRUE=
     33290  GL_COND_OBJ_STRERROR_FALSE='#'
     33291else
     33292  GL_COND_OBJ_STRERROR_TRUE='#'
     33293  GL_COND_OBJ_STRERROR_FALSE=
     33294fi
     33295:
     33296    if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
     33297    GL_COND_OBJ_STRERROR_TRUE='#'
     33298    GL_COND_OBJ_STRERROR_FALSE='#'
     33299  fi
     33300
     33301
     33302
     33303printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
     33304
     33305
     33306
     33307
     33308
     33309
     33310
     33311
     33312
     33313
     33314
     33315
     33316
     33317
     33318
     33319
     33320          GL_GNULIB_STRERROR=1
     33321
     33322
     33323
     33324
     33325
     33326printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
     33327
     33328
     33329
     33330
     33331
     33332
     33333     if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
     33334  GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
     33335  GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
     33336else
     33337  GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
     33338  GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
     33339fi
     33340:
     33341    if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
     33342    GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
     33343    GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
     33344  fi
     33345
     33346  if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
     33347
     33348
     33349
     33350
     33351
     33352  if test $ac_cv_header_sys_socket_h != yes; then
     33353                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     33354if test "x$ac_cv_header_winsock2_h" = xyes
     33355then :
     33356  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     33357
     33358fi
     33359
     33360  fi
     33361  if test "$ac_cv_header_winsock2_h" = yes; then
     33362    HAVE_WINSOCK2_H=1
     33363    UNISTD_H_HAVE_WINSOCK2_H=1
     33364    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     33365  else
     33366    HAVE_WINSOCK2_H=0
     33367  fi
     33368
     33369
     33370
     33371fi
     33372
     33373
     33374
     33375
     33376
     33377
     33378
     33379
     33380
     33381
     33382
     33383
     33384
     33385
     33386
     33387
     33388  ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
     33389if test "x$ac_cv_func_strverscmp" = xyes
     33390then :
     33391  printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h
     33392
     33393fi
     33394
     33395  if test $ac_cv_func_strverscmp = no; then
     33396    HAVE_STRVERSCMP=0
     33397  fi
     33398
     33399
     33400     if test $HAVE_STRVERSCMP = 0; then
     33401  GL_COND_OBJ_STRVERSCMP_TRUE=
     33402  GL_COND_OBJ_STRVERSCMP_FALSE='#'
     33403else
     33404  GL_COND_OBJ_STRVERSCMP_TRUE='#'
     33405  GL_COND_OBJ_STRVERSCMP_FALSE=
     33406fi
     33407:
     33408    if test -z "${GL_COND_OBJ_STRVERSCMP_TRUE}" && test -z "${GL_COND_OBJ_STRVERSCMP_FALSE}"; then
     33409    GL_COND_OBJ_STRVERSCMP_TRUE='#'
     33410    GL_COND_OBJ_STRVERSCMP_FALSE='#'
     33411  fi
     33412
     33413  if test -z "$GL_COND_OBJ_STRVERSCMP_TRUE"; then :
     33414
     33415
     33416  :
     33417
     33418
     33419fi
     33420
     33421
     33422
     33423
     33424
     33425
     33426
     33427
     33428
     33429
     33430
     33431
     33432
     33433
     33434          GL_GNULIB_STRVERSCMP=1
     33435
     33436
     33437
     33438
     33439
     33440printf "%s\n" "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
     33441
     33442
     33443
     33444
     33445
     33446
     33447
     33448
     33449
     33450
     33451
     33452
     33453
     33454
     33455
     33456
     33457
     33458
     33459
     33460
     33461
     33462
     33463
     33464
     33465
     33466
     33467  :
     33468
     33469
     33470
     33471
     33472printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h
     33473
     33474
     33475
     33476
     33477
     33478
     33479
     33480
     33481
     33482
     33483
     33484
     33485
     33486
     33487
     33488
     33489
     33490
     33491printf "%s\n" "#define GNULIB_STDIO_SINGLE_THREAD 1" >>confdefs.h
     33492
     33493
     33494printf "%s\n" "#define USE_UNLOCKED_IO GNULIB_STDIO_SINGLE_THREAD" >>confdefs.h
     33495
     33496
     33497
     33498
     33499
     33500
     33501
     33502
     33503
     33504
     33505
     33506
     33507
     33508
     33509
     33510
     33511
     33512
     33513
     33514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
     33515printf %s "checking for variable-length arrays... " >&6; }
     33516if test ${ac_cv_c_vararrays+y}
     33517then :
     33518  printf %s "(cached) " >&6
     33519else case e in #(
     33520  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33521/* end confdefs.h.  */
     33522#ifdef __STDC_NO_VLA__
     33523        defined
     33524        #endif
     33525
     33526_ACEOF
     33527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     33528  $EGREP_TRADITIONAL "defined" >/dev/null 2>&1
     33529then :
     33530  ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
     33531else case e in #(
     33532  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33533/* end confdefs.h.  */
     33534/* Test for VLA support.  This test is partly inspired
     33535                  from examples in the C standard.  Use at least two VLA
     33536                  functions to detect the GCC 3.4.3 bug described in:
     33537                  https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
     33538                  */
     33539               #ifdef __STDC_NO_VLA__
     33540                syntax error;
     33541               #else
     33542                 extern int n;
     33543                 int B[100];
     33544                 int fvla (int m, int C[m][m]);
     33545
     33546                 int
     33547                 simple (int count, int all[static count])
     33548                 {
     33549                   return all[count - 1];
     33550                 }
     33551
     33552                 int
     33553                 fvla (int m, int C[m][m])
     33554                 {
     33555                   typedef int VLA[m][m];
     33556                   VLA x;
     33557                   int D[m];
     33558                   static int (*q)[m] = &B;
     33559                   int (*s)[n] = q;
     33560                   return C && &x[0][0] == &D[0] && &D[0] == s[0];
     33561                 }
     33562               #endif
     33563
     33564int
     33565main (void)
     33566{
     33567
     33568  ;
     33569  return 0;
     33570}
     33571_ACEOF
     33572if ac_fn_c_try_compile "$LINENO"
     33573then :
     33574  ac_cv_c_vararrays=yes
     33575else case e in #(
     33576  e) ac_cv_c_vararrays=no ;;
     33577esac
     33578fi
     33579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33580esac
     33581fi
     33582rm -rf conftest*
     33583 ;;
     33584esac
     33585fi
     33586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
     33587printf "%s\n" "$ac_cv_c_vararrays" >&6; }
     33588  if test "$ac_cv_c_vararrays" = yes; then
     33589
     33590printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
     33591
     33592  elif test "$ac_cv_c_vararrays" = no; then
     33593
     33594printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
     33595
     33596  fi
     33597
     33598
     33599# Check whether --with-packager was given.
     33600if test ${with_packager+y}
     33601then :
     33602  withval=$with_packager;       case $withval in
     33603        yes|no) ;;
     33604        *)
     33605printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h
     33606 ;;
     33607      esac
     33608
     33609fi
     33610
     33611
     33612
     33613# Check whether --with-packager-version was given.
     33614if test ${with_packager_version+y}
     33615then :
     33616  withval=$with_packager_version;       case $withval in
     33617        yes|no) ;;
     33618        *)
     33619printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h
     33620 ;;
     33621      esac
     33622
     33623fi
     33624
     33625
     33626
     33627# Check whether --with-packager-bug-reports was given.
     33628if test ${with_packager_bug_reports+y}
     33629then :
     33630  withval=$with_packager_bug_reports;       case $withval in
     33631        yes|no) ;;
     33632        *)
     33633printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h
     33634 ;;
     33635      esac
     33636
     33637fi
     33638
     33639
     33640  if test "X$with_packager" = "X" && \
     33641     test "X$with_packager_version$with_packager_bug_reports" != "X"
     33642  then
     33643    as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
     33644  fi
     33645
     33646
     33647
     33648
     33649
     33650
     33651
     33652
     33653
     33654
     33655
     33656
     33657
     33658
     33659
     33660
     33661
     33662
     33663
     33664
     33665
     33666
     33667
     33668
     33669        if case "$host_os" in
     33670       mingw*) true ;;
     33671       *) test $ac_cv_func_mbsinit = yes ;;
     33672     esac \
     33673    && test $ac_cv_func_mbrtowc = yes; then
     33674
     33675
     33676
     33677
     33678     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
     33679printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
     33680if test ${gl_cv_func_mbrtowc_incomplete_state+y}
     33681then :
     33682  printf %s "(cached) " >&6
     33683else case e in #(
     33684  e)
     33685                  case "$host_os" in
     33686                     # Guess no on AIX and OSF/1.
     33687        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
     33688                     # Guess yes otherwise.
     33689        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
     33690      esac
     33691      if test $LOCALE_JA != none; then
     33692        if test "$cross_compiling" = yes
     33693then :
     33694  :
     33695else case e in #(
     33696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33697/* end confdefs.h.  */
     33698
     33699#include <locale.h>
     33700#include <string.h>
     33701#include <wchar.h>
     33702int main ()
     33703{
     33704  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     33705    {
     33706      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
     33707      mbstate_t state;
     33708      wchar_t wc;
     33709
     33710      memset (&state, '\0', sizeof (mbstate_t));
     33711      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     33712        if (mbsinit (&state))
     33713          return 2;
     33714    }
     33715  return 0;
     33716}
     33717_ACEOF
     33718if ac_fn_c_try_run "$LINENO"
     33719then :
     33720  gl_cv_func_mbrtowc_incomplete_state=yes
     33721else case e in #(
     33722  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     33723esac
     33724fi
     33725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     33726  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33727esac
     33728fi
     33729
     33730      else
     33731        if test $LOCALE_FR_UTF8 != none; then
     33732          if test "$cross_compiling" = yes
     33733then :
     33734  :
     33735else case e in #(
     33736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33737/* end confdefs.h.  */
     33738
     33739#include <locale.h>
     33740#include <string.h>
     33741#include <wchar.h>
     33742int main ()
     33743{
     33744  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     33745    {
     33746      const char input[] = "B\303\274\303\237er"; /* "Büßer" */
     33747      mbstate_t state;
     33748      wchar_t wc;
     33749
     33750      memset (&state, '\0', sizeof (mbstate_t));
     33751      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
     33752        if (mbsinit (&state))
     33753          return 2;
     33754    }
     33755  return 0;
     33756}
     33757_ACEOF
     33758if ac_fn_c_try_run "$LINENO"
     33759then :
     33760  gl_cv_func_mbrtowc_incomplete_state=yes
     33761else case e in #(
     33762  e) gl_cv_func_mbrtowc_incomplete_state=no ;;
     33763esac
     33764fi
     33765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     33766  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33767esac
     33768fi
     33769
     33770        fi
     33771      fi
     33772     ;;
     33773esac
     33774fi
     33775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
     33776printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
     33777
     33778
     33779
     33780
     33781     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
     33782printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
     33783if test ${gl_cv_func_mbrtowc_sanitycheck+y}
     33784then :
     33785  printf %s "(cached) " >&6
     33786else case e in #(
     33787  e)
     33788                  case "$host_os" in
     33789                    # Guess no on Solaris 8.
     33790        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
     33791                    # Guess yes otherwise.
     33792        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
     33793      esac
     33794      if test $LOCALE_ZH_CN != none; then
     33795        if test "$cross_compiling" = yes
     33796then :
     33797  :
     33798else case e in #(
     33799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33800/* end confdefs.h.  */
     33801
     33802#include <locale.h>
     33803#include <stdlib.h>
     33804#include <string.h>
     33805#include <wchar.h>
     33806int main ()
     33807{
     33808  /* This fails on Solaris 8:
     33809     mbrtowc returns 2, and sets wc to 0x00F0.
     33810     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
     33811  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     33812    {
     33813      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
     33814      mbstate_t state;
     33815      wchar_t wc;
     33816
     33817      memset (&state, '\0', sizeof (mbstate_t));
     33818      if (mbrtowc (&wc, input + 3, 6, &state) != 4
     33819          && mbtowc (&wc, input + 3, 6) == 4)
     33820        return 2;
     33821    }
     33822  return 0;
     33823}
     33824_ACEOF
     33825if ac_fn_c_try_run "$LINENO"
     33826then :
     33827  gl_cv_func_mbrtowc_sanitycheck=yes
     33828else case e in #(
     33829  e) gl_cv_func_mbrtowc_sanitycheck=no ;;
     33830esac
     33831fi
     33832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     33833  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33834esac
     33835fi
     33836
     33837      fi
     33838     ;;
     33839esac
     33840fi
     33841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
     33842printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
     33843
     33844    REPLACE_MBSTATE_T=0
     33845    case "$gl_cv_func_mbrtowc_incomplete_state" in
     33846      *yes) ;;
     33847      *) REPLACE_MBSTATE_T=1 ;;
     33848    esac
     33849    case "$gl_cv_func_mbrtowc_sanitycheck" in
     33850      *yes) ;;
     33851      *) REPLACE_MBSTATE_T=1 ;;
     33852    esac
     33853  else
     33854    REPLACE_MBSTATE_T=1
     33855  fi
     33856
     33857
     33858
     33859  if test $ac_cv_func_wcrtomb = no; then
     33860    HAVE_WCRTOMB=0
     33861    ac_fn_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
     33862      #include <wchar.h>
     33863
     33864" "$ac_c_undeclared_builtin_options" "CFLAGS"
     33865if test "x$ac_cv_have_decl_wcrtomb" = xyes
     33866then :
     33867  ac_have_decl=1
     33868else case e in #(
     33869  e) ac_have_decl=0 ;;
     33870esac
     33871fi
     33872printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h
     33873
     33874    if test $ac_cv_have_decl_wcrtomb = yes; then
     33875                        REPLACE_WCRTOMB=1
     33876    fi
     33877  else
     33878                        if test $REPLACE_WCRTOMB = 0; then
     33879
     33880
     33881
     33882
     33883
     33884             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5
     33885printf %s "checking whether wcrtomb works in the C locale... " >&6; }
     33886if test ${gl_cv_func_wcrtomb_works+y}
     33887then :
     33888  printf %s "(cached) " >&6
     33889else case e in #(
     33890  e) if test "$cross_compiling" = yes
     33891then :
     33892  case "$host_os" in
     33893                               # Guess no on Android.
     33894              linux*-android*) gl_cv_func_wcrtomb_works="guessing no";;
     33895                               # Guess yes otherwise.
     33896              *)               gl_cv_func_wcrtomb_works="guessing yes";;
     33897            esac
     33898
     33899else case e in #(
     33900  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33901/* end confdefs.h.  */
     33902
     33903#include <string.h>
     33904#include <stdlib.h>
     33905#include <wchar.h>
     33906int main ()
     33907{
     33908  mbstate_t state;
     33909  char out[64];
     33910  int count;
     33911  memset (&state, 0, sizeof (state));
     33912  out[0] = 'x';
     33913  count = wcrtomb (out, L'a', &state);
     33914  return !(count == 1 && out[0] == 'a');
     33915}
     33916_ACEOF
     33917if ac_fn_c_try_run "$LINENO"
     33918then :
     33919  gl_cv_func_wcrtomb_works=yes
     33920else case e in #(
     33921  e) gl_cv_func_wcrtomb_works=no ;;
     33922esac
     33923fi
     33924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     33925  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     33926esac
     33927fi
     33928
     33929         ;;
     33930esac
     33931fi
     33932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5
     33933printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; }
     33934      case "$gl_cv_func_wcrtomb_works" in
     33935        *yes) ;;
     33936        *)
     33937printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h
     33938
     33939           REPLACE_WCRTOMB=1 ;;
     33940      esac
     33941    fi
     33942    if test $REPLACE_WCRTOMB = 0; then
     33943      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
     33944printf %s "checking whether wcrtomb return value is correct... " >&6; }
     33945if test ${gl_cv_func_wcrtomb_retval+y}
     33946then :
     33947  printf %s "(cached) " >&6
     33948else case e in #(
     33949  e)
     33950                              case "$host_os" in
     33951            # Guess no on AIX 4, OSF/1, Solaris, native Windows.
     33952            aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;;
     33953            # Guess yes otherwise.
     33954            *)                                gl_cv_func_wcrtomb_retval="guessing yes" ;;
     33955          esac
     33956          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
     33957            if test "$cross_compiling" = yes
     33958then :
     33959  :
     33960else case e in #(
     33961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     33962/* end confdefs.h.  */
     33963
     33964#include <locale.h>
     33965#include <string.h>
     33966#include <wchar.h>
     33967#include <stdlib.h>
     33968int main ()
     33969{
     33970  int result = 0;
     33971  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
     33972    {
     33973      if (wcrtomb (NULL, 0, NULL) != 1)
     33974        result |= 1;
     33975    }
     33976  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
     33977    {
     33978      if (wcrtomb (NULL, 0, NULL) != 1)
     33979        result |= 2;
     33980      {
     33981        wchar_t wc = (wchar_t) 0xBADFACE;
     33982        if (mbtowc (&wc, "\303\274", 2) == 2)
     33983          if (wcrtomb (NULL, wc, NULL) != 1)
     33984            result |= 2;
     33985      }
     33986    }
     33987  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
     33988    {
     33989      if (wcrtomb (NULL, 0, NULL) != 1)
     33990        result |= 4;
     33991    }
     33992  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
     33993    {
     33994      if (wcrtomb (NULL, 0, NULL) != 1)
     33995        result |= 8;
     33996    }
     33997  return result;
     33998}
     33999_ACEOF
     34000if ac_fn_c_try_run "$LINENO"
     34001then :
     34002  gl_cv_func_wcrtomb_retval=yes
     34003else case e in #(
     34004  e) gl_cv_func_wcrtomb_retval=no ;;
     34005esac
     34006fi
     34007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     34008  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     34009esac
     34010fi
     34011
     34012          fi
     34013         ;;
     34014esac
     34015fi
     34016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
     34017printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; }
     34018      case "$gl_cv_func_wcrtomb_retval" in
     34019        *yes) ;;
     34020        *)
     34021printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h
     34022
     34023           REPLACE_WCRTOMB=1 ;;
     34024      esac
     34025    fi
     34026  fi
     34027
     34028
     34029     if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
     34030  GL_COND_OBJ_WCRTOMB_TRUE=
     34031  GL_COND_OBJ_WCRTOMB_FALSE='#'
     34032else
     34033  GL_COND_OBJ_WCRTOMB_TRUE='#'
     34034  GL_COND_OBJ_WCRTOMB_FALSE=
     34035fi
     34036:
     34037    if test -z "${GL_COND_OBJ_WCRTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCRTOMB_FALSE}"; then
     34038    GL_COND_OBJ_WCRTOMB_TRUE='#'
     34039    GL_COND_OBJ_WCRTOMB_FALSE='#'
     34040  fi
     34041
     34042  if test -z "$GL_COND_OBJ_WCRTOMB_TRUE"; then :
     34043
     34044
     34045  :
     34046
     34047
     34048fi
     34049
     34050
     34051
     34052
     34053
     34054
     34055
     34056
     34057
     34058
     34059
     34060
     34061
     34062
     34063          GL_GNULIB_WCRTOMB=1
     34064
     34065
     34066
     34067
     34068
     34069printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
     34070
     34071
     34072
     34073
     34074
     34075
     34076
     34077  if test $ac_cv_func_wctob = no; then
     34078    HAVE_WCTOB=0
     34079    HAVE_DECL_WCTOB=0
     34080  else
     34081    HAVE_WCTOB=1
     34082
     34083
     34084
     34085         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
     34086printf %s "checking whether wctob works... " >&6; }
     34087if test ${gl_cv_func_wctob_works+y}
     34088then :
     34089  printf %s "(cached) " >&6
     34090else case e in #(
     34091  e)
     34092                        case "$host_os" in
     34093            # Guess no on Solaris <= 9 and Cygwin.
     34094          solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
     34095            gl_cv_func_wctob_works="guessing no" ;;
     34096            # Guess no on native Windows.
     34097          mingw*)
     34098            gl_cv_func_wctob_works="guessing no" ;;
     34099            # Guess yes otherwise.
     34100          *) gl_cv_func_wctob_works="guessing yes" ;;
     34101        esac
     34102        case "$host_os" in
     34103          cygwin*)
     34104            if test "$cross_compiling" = yes
     34105then :
     34106  :
     34107else case e in #(
     34108  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34109/* end confdefs.h.  */
     34110
     34111#include <locale.h>
     34112#include <wchar.h>
     34113
     34114register long global __asm__ ("%ebx");
     34115
     34116int main ()
     34117{
     34118  setlocale (LC_ALL, "en_US.UTF-8");
     34119
     34120  global = 0x12345678;
     34121  if (wctob (0x00FC) != -1)
     34122    return 1;
     34123  if (global != 0x12345678)
     34124    return 2;
     34125  return 0;
     34126}
     34127_ACEOF
     34128if ac_fn_c_try_run "$LINENO"
     34129then :
     34130  :
     34131else case e in #(
     34132  e) gl_cv_func_wctob_works=no ;;
     34133esac
     34134fi
     34135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     34136  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     34137esac
     34138fi
     34139
     34140            ;;
     34141        esac
     34142        if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
     34143          if test "$cross_compiling" = yes
     34144then :
     34145  :
     34146else case e in #(
     34147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34148/* end confdefs.h.  */
     34149
     34150#include <locale.h>
     34151#include <stdlib.h>
     34152#include <wchar.h>
     34153int main ()
     34154{
     34155  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
     34156    {
     34157      wchar_t wc;
     34158
     34159      if (mbtowc (&wc, "\374", 1) == 1)
     34160        if (wctob (wc) != (unsigned char) '\374')
     34161          return 1;
     34162    }
     34163  return 0;
     34164}
     34165_ACEOF
     34166if ac_fn_c_try_run "$LINENO"
     34167then :
     34168  gl_cv_func_wctob_works=yes
     34169else case e in #(
     34170  e) gl_cv_func_wctob_works=no ;;
     34171esac
     34172fi
     34173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     34174  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     34175esac
     34176fi
     34177
     34178        fi
     34179       ;;
     34180esac
     34181fi
     34182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
     34183printf "%s\n" "$gl_cv_func_wctob_works" >&6; }
     34184    case "$gl_cv_func_wctob_works" in
     34185      *yes) ;;
     34186      *) REPLACE_WCTOB=1 ;;
     34187    esac
     34188    if test $REPLACE_WCTOB = 0; then
     34189
     34190            ac_fn_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
     34191        #include <wchar.h>
     34192
     34193" "$ac_c_undeclared_builtin_options" "CFLAGS"
     34194if test "x$ac_cv_have_decl_wctob" = xyes
     34195then :
     34196  ac_have_decl=1
     34197else case e in #(
     34198  e) ac_have_decl=0 ;;
     34199esac
     34200fi
     34201printf "%s\n" "#define HAVE_DECL_WCTOB $ac_have_decl" >>confdefs.h
     34202
     34203      if test $ac_cv_have_decl_wctob != yes; then
     34204        HAVE_DECL_WCTOB=0
     34205      fi
     34206    fi
     34207  fi
     34208
     34209
     34210     if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
     34211  GL_COND_OBJ_WCTOB_TRUE=
     34212  GL_COND_OBJ_WCTOB_FALSE='#'
     34213else
     34214  GL_COND_OBJ_WCTOB_TRUE='#'
     34215  GL_COND_OBJ_WCTOB_FALSE=
     34216fi
     34217:
     34218    if test -z "${GL_COND_OBJ_WCTOB_TRUE}" && test -z "${GL_COND_OBJ_WCTOB_FALSE}"; then
     34219    GL_COND_OBJ_WCTOB_TRUE='#'
     34220    GL_COND_OBJ_WCTOB_FALSE='#'
     34221  fi
     34222
     34223  if test -z "$GL_COND_OBJ_WCTOB_TRUE"; then :
     34224
     34225
     34226  :
     34227
     34228
     34229fi
     34230
     34231
     34232
     34233
     34234
     34235
     34236
     34237
     34238
     34239
     34240
     34241
     34242
     34243
     34244          GL_GNULIB_WCTOB=1
     34245
     34246
     34247
     34248
     34249
     34250printf "%s\n" "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
     34251
     34252
     34253
     34254
     34255
     34256
     34257  if false; then
     34258    REPLACE_WCTOMB=1
     34259  fi
     34260
     34261
     34262     if test $REPLACE_WCTOMB = 1; then
     34263  GL_COND_OBJ_WCTOMB_TRUE=
     34264  GL_COND_OBJ_WCTOMB_FALSE='#'
     34265else
     34266  GL_COND_OBJ_WCTOMB_TRUE='#'
     34267  GL_COND_OBJ_WCTOMB_FALSE=
     34268fi
     34269:
     34270    if test -z "${GL_COND_OBJ_WCTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCTOMB_FALSE}"; then
     34271    GL_COND_OBJ_WCTOMB_TRUE='#'
     34272    GL_COND_OBJ_WCTOMB_FALSE='#'
     34273  fi
     34274
     34275  if test -z "$GL_COND_OBJ_WCTOMB_TRUE"; then :
     34276
     34277
     34278  :
     34279
     34280
     34281fi
     34282
     34283
     34284
     34285
     34286
     34287
     34288
     34289
     34290
     34291          GL_GNULIB_WCTOMB=1
     34292
     34293
     34294
     34295
     34296
     34297printf "%s\n" "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
     34298
     34299
     34300
     34301
     34302
     34303
     34304
     34305
     34306
     34307
     34308
     34309
     34310     if case "$host_os" in mingw*) true;; *) false;; esac; then
     34311  GL_COND_OBJ_WINDOWS_MUTEX_TRUE=
     34312  GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
     34313else
     34314  GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
     34315  GL_COND_OBJ_WINDOWS_MUTEX_FALSE=
     34316fi
     34317:
     34318    if test -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then
     34319    GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#'
     34320    GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#'
     34321  fi
     34322
     34323
     34324
     34325     if case "$host_os" in mingw*) true;; *) false;; esac; then
     34326  GL_COND_OBJ_WINDOWS_ONCE_TRUE=
     34327  GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
     34328else
     34329  GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
     34330  GL_COND_OBJ_WINDOWS_ONCE_FALSE=
     34331fi
     34332:
     34333    if test -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then
     34334    GL_COND_OBJ_WINDOWS_ONCE_TRUE='#'
     34335    GL_COND_OBJ_WINDOWS_ONCE_FALSE='#'
     34336  fi
     34337
     34338
     34339
     34340     if case "$host_os" in mingw*) true;; *) false;; esac; then
     34341  GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE=
     34342  GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
     34343else
     34344  GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
     34345  GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE=
     34346fi
     34347:
     34348    if test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then
     34349    GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#'
     34350    GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#'
     34351  fi
     34352
     34353
     34354
     34355     if case "$host_os" in mingw*) true;; *) false;; esac; then
     34356  GL_COND_OBJ_WINDOWS_RWLOCK_TRUE=
     34357  GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
     34358else
     34359  GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
     34360  GL_COND_OBJ_WINDOWS_RWLOCK_FALSE=
     34361fi
     34362:
     34363    if test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then
     34364    GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#'
     34365    GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#'
     34366  fi
     34367
     34368  :
     34369
     34370
     34371printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
     34372
     34373
     34374
     34375
     34376printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
     34377
     34378
     34379  # End of code from modules
     34380
     34381
     34382
     34383
     34384
     34385
     34386
     34387
     34388
     34389
     34390
     34391  gltests_libdeps=
     34392  gltests_ltlibdeps=
     34393
     34394
     34395
     34396
     34397
     34398
     34399
     34400
     34401
     34402
     34403
     34404
     34405
     34406
     34407  gl_source_base='gnulib-tests'
     34408  gl_source_base_prefix=
     34409  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
     34410
     34411  gl_module_indicator_condition=$gltests_WITNESS
     34412
     34413
     34414
     34415     if test "$ac_cv_header_winsock2_h" = yes; then
     34416  GL_COND_OBJ_ACCEPT_TRUE=
     34417  GL_COND_OBJ_ACCEPT_FALSE='#'
     34418else
     34419  GL_COND_OBJ_ACCEPT_TRUE='#'
     34420  GL_COND_OBJ_ACCEPT_FALSE=
     34421fi
     34422:
     34423    if test -z "${GL_COND_OBJ_ACCEPT_TRUE}" && test -z "${GL_COND_OBJ_ACCEPT_FALSE}"; then
     34424    GL_COND_OBJ_ACCEPT_TRUE='#'
     34425    GL_COND_OBJ_ACCEPT_FALSE='#'
     34426  fi
     34427
     34428
     34429
     34430
     34431
     34432
     34433
     34434
     34435
     34436
     34437    if test "$GL_GNULIB_ACCEPT" != 1; then
     34438        if test "$GL_GNULIB_ACCEPT" = 0; then
     34439      GL_GNULIB_ACCEPT=$gl_module_indicator_condition
     34440    else
     34441      GL_GNULIB_ACCEPT="($GL_GNULIB_ACCEPT || $gl_module_indicator_condition)"
     34442    fi
     34443  fi
     34444
     34445
     34446
     34447
     34448
     34449printf "%s\n" "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
     34450
     34451
     34452
     34453
     34454
     34455
     34456
     34457
     34458
     34459
     34460
     34461
     34462     if test "$ac_cv_header_winsock2_h" = yes; then
     34463  GL_COND_OBJ_BIND_TRUE=
     34464  GL_COND_OBJ_BIND_FALSE='#'
     34465else
     34466  GL_COND_OBJ_BIND_TRUE='#'
     34467  GL_COND_OBJ_BIND_FALSE=
     34468fi
     34469:
     34470    if test -z "${GL_COND_OBJ_BIND_TRUE}" && test -z "${GL_COND_OBJ_BIND_FALSE}"; then
     34471    GL_COND_OBJ_BIND_TRUE='#'
     34472    GL_COND_OBJ_BIND_FALSE='#'
     34473  fi
     34474
     34475
     34476
     34477
     34478
     34479
     34480
     34481
     34482
     34483
     34484    if test "$GL_GNULIB_BIND" != 1; then
     34485        if test "$GL_GNULIB_BIND" = 0; then
     34486      GL_GNULIB_BIND=$gl_module_indicator_condition
     34487    else
     34488      GL_GNULIB_BIND="($GL_GNULIB_BIND || $gl_module_indicator_condition)"
     34489    fi
     34490  fi
     34491
     34492
     34493
     34494
     34495
     34496printf "%s\n" "#define GNULIB_TEST_BIND 1" >>confdefs.h
     34497
     34498
     34499
     34500
     34501
     34502
     34503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     34504printf %s "checking for a traditional french locale... " >&6; }
     34505if test ${gt_cv_locale_fr+y}
     34506then :
     34507  printf %s "(cached) " >&6
     34508else case e in #(
     34509  e)
     34510    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34511/* end confdefs.h.  */
     34512
     34513#include <locale.h>
     34514#include <time.h>
     34515#if HAVE_LANGINFO_CODESET
     34516# include <langinfo.h>
     34517#endif
     34518#include <stdlib.h>
     34519#include <string.h>
     34520struct tm t;
     34521char buf[16];
     34522int main () {
     34523  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     34524     imitates locale dependent behaviour by looking at the environment
     34525     variables, and all locales use the UTF-8 encoding.  */
     34526#if defined __BEOS__ || defined __HAIKU__
     34527  return 1;
     34528#else
     34529  /* Check whether the given locale name is recognized by the system.  */
     34530# if defined _WIN32 && !defined __CYGWIN__
     34531  /* On native Windows, setlocale(category, "") looks at the system settings,
     34532     not at the environment variables.  Also, when an encoding suffix such
     34533     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     34534     category of the locale to "C".  */
     34535  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     34536      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     34537    return 1;
     34538# else
     34539  if (setlocale (LC_ALL, "") == NULL) return 1;
     34540# endif
     34541  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     34542     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     34543     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     34544     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     34545     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     34546     some unit tests fail.
     34547     On MirBSD 10, when an unsupported locale is specified, setlocale()
     34548     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     34549# if HAVE_LANGINFO_CODESET
     34550  {
     34551    const char *cs = nl_langinfo (CODESET);
     34552    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     34553        || strcmp (cs, "UTF-8") == 0)
     34554      return 1;
     34555  }
     34556# endif
     34557# ifdef __CYGWIN__
     34558  /* On Cygwin, avoid locale names without encoding suffix, because the
     34559     locale_charset() function relies on the encoding suffix.  Note that
     34560     LC_ALL is set on the command line.  */
     34561  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     34562# endif
     34563  /* Check whether in the abbreviation of the second month, the second
     34564     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     34565     one byte long. This excludes the UTF-8 encoding.  */
     34566  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     34567  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     34568# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     34569  /* Check whether the decimal separator is a comma.
     34570     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     34571     are nl_langinfo(RADIXCHAR) are both ".".  */
     34572  if (localeconv () ->decimal_point[0] != ',') return 1;
     34573# endif
     34574  return 0;
     34575#endif
     34576}
     34577
     34578_ACEOF
     34579    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
    757434580  (eval $ac_link) 2>&5
    757534581  ac_status=$?
    7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7579   (eval $ac_try) 2>&5
     34582  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     34583  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     34584      case "$host_os" in
     34585        # Handle native Windows specially, because there setlocale() interprets
     34586        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     34587        # "fr" or "fra" as "French" or "French_France.1252",
     34588        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     34589        # "ja" as "Japanese" or "Japanese_Japan.932",
     34590        # and similar.
     34591        mingw*)
     34592          # Test for the native Windows locale name.
     34593          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34594            gt_cv_locale_fr=French_France.1252
     34595          else
     34596            # None found.
     34597            gt_cv_locale_fr=none
     34598          fi
     34599          ;;
     34600        *)
     34601          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     34602          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     34603          # configure script would override the LC_ALL setting. Likewise for
     34604          # LC_CTYPE, which is also set at the beginning of the configure script.
     34605          # Test for the usual locale name.
     34606          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34607            gt_cv_locale_fr=fr_FR
     34608          else
     34609            # Test for the locale name with explicit encoding suffix.
     34610            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34611              gt_cv_locale_fr=fr_FR.ISO-8859-1
     34612            else
     34613              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     34614              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34615                gt_cv_locale_fr=fr_FR.ISO8859-1
     34616              else
     34617                # Test for the HP-UX locale name.
     34618                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34619                  gt_cv_locale_fr=fr_FR.iso88591
     34620                else
     34621                  # Test for the Solaris 7 locale name.
     34622                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34623                    gt_cv_locale_fr=fr
     34624                  else
     34625                    # None found.
     34626                    gt_cv_locale_fr=none
     34627                  fi
     34628                fi
     34629              fi
     34630            fi
     34631          fi
     34632          ;;
     34633      esac
     34634    fi
     34635    rm -fr conftest*
     34636   ;;
     34637esac
     34638fi
     34639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     34640printf "%s\n" "$gt_cv_locale_fr" >&6; }
     34641  LOCALE_FR=$gt_cv_locale_fr
     34642
     34643
     34644
     34645
     34646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     34647printf %s "checking for a french Unicode locale... " >&6; }
     34648if test ${gt_cv_locale_fr_utf8+y}
     34649then :
     34650  printf %s "(cached) " >&6
     34651else case e in #(
     34652  e)
     34653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34654/* end confdefs.h.  */
     34655
     34656#include <locale.h>
     34657#include <time.h>
     34658#if HAVE_LANGINFO_CODESET
     34659# include <langinfo.h>
     34660#endif
     34661#include <stdlib.h>
     34662#include <string.h>
     34663struct tm t;
     34664char buf[16];
     34665int main () {
     34666  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     34667     imitates locale dependent behaviour by looking at the environment
     34668     variables, and all locales use the UTF-8 encoding.  */
     34669#if !(defined __BEOS__ || defined __HAIKU__)
     34670  /* Check whether the given locale name is recognized by the system.  */
     34671# if defined _WIN32 && !defined __CYGWIN__
     34672  /* On native Windows, setlocale(category, "") looks at the system settings,
     34673     not at the environment variables.  Also, when an encoding suffix such
     34674     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     34675     category of the locale to "C".  */
     34676  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     34677      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     34678    return 1;
     34679# else
     34680  if (setlocale (LC_ALL, "") == NULL) return 1;
     34681# endif
     34682  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     34683     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     34684     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     34685     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     34686     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     34687     some unit tests fail.  */
     34688# if HAVE_LANGINFO_CODESET
     34689  {
     34690    const char *cs = nl_langinfo (CODESET);
     34691    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     34692      return 1;
     34693  }
     34694# endif
     34695# ifdef __CYGWIN__
     34696  /* On Cygwin, avoid locale names without encoding suffix, because the
     34697     locale_charset() function relies on the encoding suffix.  Note that
     34698     LC_ALL is set on the command line.  */
     34699  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     34700# endif
     34701  /* Check whether in the abbreviation of the second month, the second
     34702     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     34703     two bytes long, with UTF-8 encoding.  */
     34704  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     34705  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     34706      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     34707    return 1;
     34708#endif
     34709#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     34710  /* Check whether the decimal separator is a comma.
     34711     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     34712     are nl_langinfo(RADIXCHAR) are both ".".  */
     34713  if (localeconv () ->decimal_point[0] != ',') return 1;
     34714#endif
     34715  return 0;
     34716}
     34717
     34718_ACEOF
     34719    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     34720  (eval $ac_link) 2>&5
    758034721  ac_status=$?
    7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7582   (exit $ac_status); }; }; then
    7583   ac_cv_func_mmap_fixed_mapped=yes
     34722  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     34723  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     34724      case "$host_os" in
     34725        # Handle native Windows specially, because there setlocale() interprets
     34726        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     34727        # "fr" or "fra" as "French" or "French_France.1252",
     34728        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     34729        # "ja" as "Japanese" or "Japanese_Japan.932",
     34730        # and similar.
     34731        mingw*)
     34732          # Test for the hypothetical native Windows locale name.
     34733          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34734            gt_cv_locale_fr_utf8=French_France.65001
     34735          else
     34736            # None found.
     34737            gt_cv_locale_fr_utf8=none
     34738          fi
     34739          ;;
     34740        *)
     34741          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     34742          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     34743          # configure script would override the LC_ALL setting. Likewise for
     34744          # LC_CTYPE, which is also set at the beginning of the configure script.
     34745          # Test for the usual locale name.
     34746          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34747            gt_cv_locale_fr_utf8=fr_FR
     34748          else
     34749            # Test for the locale name with explicit encoding suffix.
     34750            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34751              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     34752            else
     34753              # Test for the Solaris 7 locale name.
     34754              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34755                gt_cv_locale_fr_utf8=fr.UTF-8
     34756              else
     34757                # None found.
     34758                gt_cv_locale_fr_utf8=none
     34759              fi
     34760            fi
     34761          fi
     34762          ;;
     34763      esac
     34764    fi
     34765    rm -fr conftest*
     34766   ;;
     34767esac
     34768fi
     34769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     34770printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     34771  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     34772
     34773
     34774
     34775
     34776
     34777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     34778printf %s "checking for a traditional french locale... " >&6; }
     34779if test ${gt_cv_locale_fr+y}
     34780then :
     34781  printf %s "(cached) " >&6
     34782else case e in #(
     34783  e)
     34784    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34785/* end confdefs.h.  */
     34786
     34787#include <locale.h>
     34788#include <time.h>
     34789#if HAVE_LANGINFO_CODESET
     34790# include <langinfo.h>
     34791#endif
     34792#include <stdlib.h>
     34793#include <string.h>
     34794struct tm t;
     34795char buf[16];
     34796int main () {
     34797  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     34798     imitates locale dependent behaviour by looking at the environment
     34799     variables, and all locales use the UTF-8 encoding.  */
     34800#if defined __BEOS__ || defined __HAIKU__
     34801  return 1;
     34802#else
     34803  /* Check whether the given locale name is recognized by the system.  */
     34804# if defined _WIN32 && !defined __CYGWIN__
     34805  /* On native Windows, setlocale(category, "") looks at the system settings,
     34806     not at the environment variables.  Also, when an encoding suffix such
     34807     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     34808     category of the locale to "C".  */
     34809  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     34810      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     34811    return 1;
     34812# else
     34813  if (setlocale (LC_ALL, "") == NULL) return 1;
     34814# endif
     34815  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     34816     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     34817     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     34818     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     34819     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     34820     some unit tests fail.
     34821     On MirBSD 10, when an unsupported locale is specified, setlocale()
     34822     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     34823# if HAVE_LANGINFO_CODESET
     34824  {
     34825    const char *cs = nl_langinfo (CODESET);
     34826    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     34827        || strcmp (cs, "UTF-8") == 0)
     34828      return 1;
     34829  }
     34830# endif
     34831# ifdef __CYGWIN__
     34832  /* On Cygwin, avoid locale names without encoding suffix, because the
     34833     locale_charset() function relies on the encoding suffix.  Note that
     34834     LC_ALL is set on the command line.  */
     34835  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     34836# endif
     34837  /* Check whether in the abbreviation of the second month, the second
     34838     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     34839     one byte long. This excludes the UTF-8 encoding.  */
     34840  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     34841  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     34842# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     34843  /* Check whether the decimal separator is a comma.
     34844     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     34845     are nl_langinfo(RADIXCHAR) are both ".".  */
     34846  if (localeconv () ->decimal_point[0] != ',') return 1;
     34847# endif
     34848  return 0;
     34849#endif
     34850}
     34851
     34852_ACEOF
     34853    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     34854  (eval $ac_link) 2>&5
     34855  ac_status=$?
     34856  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     34857  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     34858      case "$host_os" in
     34859        # Handle native Windows specially, because there setlocale() interprets
     34860        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     34861        # "fr" or "fra" as "French" or "French_France.1252",
     34862        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     34863        # "ja" as "Japanese" or "Japanese_Japan.932",
     34864        # and similar.
     34865        mingw*)
     34866          # Test for the native Windows locale name.
     34867          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34868            gt_cv_locale_fr=French_France.1252
     34869          else
     34870            # None found.
     34871            gt_cv_locale_fr=none
     34872          fi
     34873          ;;
     34874        *)
     34875          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     34876          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     34877          # configure script would override the LC_ALL setting. Likewise for
     34878          # LC_CTYPE, which is also set at the beginning of the configure script.
     34879          # Test for the usual locale name.
     34880          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34881            gt_cv_locale_fr=fr_FR
     34882          else
     34883            # Test for the locale name with explicit encoding suffix.
     34884            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34885              gt_cv_locale_fr=fr_FR.ISO-8859-1
     34886            else
     34887              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     34888              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34889                gt_cv_locale_fr=fr_FR.ISO8859-1
     34890              else
     34891                # Test for the HP-UX locale name.
     34892                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34893                  gt_cv_locale_fr=fr_FR.iso88591
     34894                else
     34895                  # Test for the Solaris 7 locale name.
     34896                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     34897                    gt_cv_locale_fr=fr
     34898                  else
     34899                    # None found.
     34900                    gt_cv_locale_fr=none
     34901                  fi
     34902                fi
     34903              fi
     34904            fi
     34905          fi
     34906          ;;
     34907      esac
     34908    fi
     34909    rm -fr conftest*
     34910   ;;
     34911esac
     34912fi
     34913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     34914printf "%s\n" "$gt_cv_locale_fr" >&6; }
     34915  LOCALE_FR=$gt_cv_locale_fr
     34916
     34917
     34918
     34919
     34920
     34921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
     34922printf %s "checking for a turkish Unicode locale... " >&6; }
     34923if test ${gt_cv_locale_tr_utf8+y}
     34924then :
     34925  printf %s "(cached) " >&6
     34926else case e in #(
     34927  e)
     34928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     34929/* end confdefs.h.  */
     34930
     34931#include <locale.h>
     34932#include <time.h>
     34933#if HAVE_LANGINFO_CODESET
     34934# include <langinfo.h>
     34935#endif
     34936#include <stdlib.h>
     34937#include <string.h>
     34938#include <wctype.h>
     34939struct tm t;
     34940char buf[16];
     34941int main () {
     34942  /* On BeOS, locales are not implemented in libc.  Rather, libintl
     34943     imitates locale dependent behaviour by looking at the environment
     34944     variables, and all locales use the UTF-8 encoding.  But BeOS does not
     34945     implement the Turkish upper-/lowercase mappings.  Therefore, let this
     34946     program return 1 on BeOS.  */
     34947  /* Check whether the given locale name is recognized by the system.  */
     34948#if defined _WIN32 && !defined __CYGWIN__
     34949  /* On native Windows, setlocale(category, "") looks at the system settings,
     34950     not at the environment variables.  Also, when an encoding suffix such
     34951     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     34952     category of the locale to "C".  */
     34953  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     34954      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     34955    return 1;
     34956#else
     34957  if (setlocale (LC_ALL, "") == NULL) return 1;
     34958#endif
     34959  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     34960     On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
     34961     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     34962     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     34963     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     34964     some unit tests fail.  */
     34965#if HAVE_LANGINFO_CODESET
     34966  {
     34967    const char *cs = nl_langinfo (CODESET);
     34968    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     34969      return 1;
     34970  }
     34971#endif
     34972#ifdef __CYGWIN__
     34973  /* On Cygwin, avoid locale names without encoding suffix, because the
     34974     locale_charset() function relies on the encoding suffix.  Note that
     34975     LC_ALL is set on the command line.  */
     34976  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     34977#endif
     34978  /* Check whether in the abbreviation of the eighth month, the second
     34979     character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
     34980     two bytes long, with UTF-8 encoding.  */
     34981  t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
     34982  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     34983      || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
     34984    return 1;
     34985  /* Check whether the upper-/lowercase mappings are as expected for
     34986     Turkish.  */
     34987  if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
     34988      || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
     34989    return 1;
     34990  return 0;
     34991}
     34992
     34993_ACEOF
     34994    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     34995  (eval $ac_link) 2>&5
     34996  ac_status=$?
     34997  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     34998  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     34999      case "$host_os" in
     35000        # Handle native Windows specially, because there setlocale() interprets
     35001        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     35002        # "fr" or "fra" as "French" or "French_France.1252",
     35003        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     35004        # "ja" as "Japanese" or "Japanese_Japan.932",
     35005        # and similar.
     35006        mingw*)
     35007          # Test for the hypothetical native Windows locale name.
     35008          if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     35009            gt_cv_locale_tr_utf8=Turkish_Turkey.65001
     35010          else
     35011            # None found.
     35012            gt_cv_locale_tr_utf8=none
     35013          fi
     35014          ;;
     35015        *)
     35016          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     35017          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     35018          # configure script would override the LC_ALL setting. Likewise for
     35019          # LC_CTYPE, which is also set at the beginning of the configure script.
     35020          # Test for the usual locale name.
     35021          if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     35022            gt_cv_locale_tr_utf8=tr_TR
     35023          else
     35024            # Test for the locale name with explicit encoding suffix.
     35025            if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     35026              gt_cv_locale_tr_utf8=tr_TR.UTF-8
     35027            else
     35028              # Test for the Solaris 7 locale name.
     35029              if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     35030                gt_cv_locale_tr_utf8=tr.UTF-8
     35031              else
     35032                # None found.
     35033                gt_cv_locale_tr_utf8=none
     35034              fi
     35035            fi
     35036          fi
     35037          ;;
     35038      esac
     35039    else
     35040      gt_cv_locale_tr_utf8=none
     35041    fi
     35042    rm -fr conftest*
     35043   ;;
     35044esac
     35045fi
     35046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
     35047printf "%s\n" "$gt_cv_locale_tr_utf8" >&6; }
     35048  LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
     35049
     35050
     35051
     35052
     35053
     35054  ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
     35055if test "x$ac_cv_func_closedir" = xyes
     35056then :
     35057  printf "%s\n" "#define HAVE_CLOSEDIR 1" >>confdefs.h
     35058
     35059fi
     35060
     35061  if test $ac_cv_func_closedir = no; then
     35062    HAVE_CLOSEDIR=0
     35063  fi
     35064
     35065    case $host_os,$HAVE_CLOSEDIR in
     35066    os2*,1)
     35067      REPLACE_CLOSEDIR=1;;
     35068  esac
     35069
     35070
     35071     if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
     35072  GL_COND_OBJ_CLOSEDIR_TRUE=
     35073  GL_COND_OBJ_CLOSEDIR_FALSE='#'
    758435074else
    7585   echo "$as_me: program exited with status $ac_status" >&5
    7586 echo "$as_me: failed program was:" >&5
    7587 sed 's/^/| /' conftest.$ac_ext >&5
    7588 
    7589 ( exit $ac_status )
    7590 ac_cv_func_mmap_fixed_mapped=no
    7591 fi
    7592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7593 fi
    7594 fi
    7595 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
    7596 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
    7597 if test $ac_cv_func_mmap_fixed_mapped = yes; then
    7598 
    7599 cat >>confdefs.h <<\_ACEOF
    7600 #define HAVE_MMAP 1
    7601 _ACEOF
    7602 
    7603 fi
    7604 rm -f conftest.mmap
    7605 
    7606 
    7607     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
    7608 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
    7609 if test "${ac_cv_gnu_library_2_1+set}" = set; then
    7610   echo $ECHO_N "(cached) $ECHO_C" >&6
     35075  GL_COND_OBJ_CLOSEDIR_TRUE='#'
     35076  GL_COND_OBJ_CLOSEDIR_FALSE=
     35077fi
     35078:
     35079    if test -z "${GL_COND_OBJ_CLOSEDIR_TRUE}" && test -z "${GL_COND_OBJ_CLOSEDIR_FALSE}"; then
     35080    GL_COND_OBJ_CLOSEDIR_TRUE='#'
     35081    GL_COND_OBJ_CLOSEDIR_FALSE='#'
     35082  fi
     35083
     35084
     35085
     35086
     35087
     35088
     35089
     35090
     35091
     35092
     35093    if test "$GL_GNULIB_CLOSEDIR" != 1; then
     35094        if test "$GL_GNULIB_CLOSEDIR" = 0; then
     35095      GL_GNULIB_CLOSEDIR=$gl_module_indicator_condition
     35096    else
     35097      GL_GNULIB_CLOSEDIR="($GL_GNULIB_CLOSEDIR || $gl_module_indicator_condition)"
     35098    fi
     35099  fi
     35100
     35101
     35102
     35103
     35104
     35105printf "%s\n" "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
     35106
     35107
     35108
     35109
     35110
     35111     if test "$ac_cv_header_winsock2_h" = yes; then
     35112  GL_COND_OBJ_CONNECT_TRUE=
     35113  GL_COND_OBJ_CONNECT_FALSE='#'
    761135114else
    7612   cat >conftest.$ac_ext <<_ACEOF
    7613 /* confdefs.h.  */
    7614 _ACEOF
    7615 cat confdefs.h >>conftest.$ac_ext
    7616 cat >>conftest.$ac_ext <<_ACEOF
     35115  GL_COND_OBJ_CONNECT_TRUE='#'
     35116  GL_COND_OBJ_CONNECT_FALSE=
     35117fi
     35118:
     35119    if test -z "${GL_COND_OBJ_CONNECT_TRUE}" && test -z "${GL_COND_OBJ_CONNECT_FALSE}"; then
     35120    GL_COND_OBJ_CONNECT_TRUE='#'
     35121    GL_COND_OBJ_CONNECT_FALSE='#'
     35122  fi
     35123
     35124
     35125
     35126
     35127
     35128
     35129
     35130
     35131
     35132
     35133    if test "$GL_GNULIB_CONNECT" != 1; then
     35134        if test "$GL_GNULIB_CONNECT" = 0; then
     35135      GL_GNULIB_CONNECT=$gl_module_indicator_condition
     35136    else
     35137      GL_GNULIB_CONNECT="($GL_GNULIB_CONNECT || $gl_module_indicator_condition)"
     35138    fi
     35139  fi
     35140
     35141
     35142
     35143
     35144
     35145printf "%s\n" "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
     35146
     35147
     35148
     35149
     35150
     35151
     35152
     35153
     35154
     35155
     35156
     35157
     35158
     35159
     35160
     35161  ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
     35162if test "x$ac_cv_func_dirfd" = xyes
     35163then :
     35164  printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
     35165
     35166fi
     35167
     35168  ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
     35169      #include <dirent.h>
     35170" "$ac_c_undeclared_builtin_options" "CFLAGS"
     35171if test "x$ac_cv_have_decl_dirfd" = xyes
     35172then :
     35173  ac_have_decl=1
     35174else case e in #(
     35175  e) ac_have_decl=0 ;;
     35176esac
     35177fi
     35178printf "%s\n" "#define HAVE_DECL_DIRFD $ac_have_decl" >>confdefs.h
     35179
     35180  if test $ac_cv_have_decl_dirfd = no; then
     35181    HAVE_DECL_DIRFD=0
     35182  fi
     35183
     35184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
     35185printf %s "checking whether dirfd is a macro... " >&6; }
     35186if test ${gl_cv_func_dirfd_macro+y}
     35187then :
     35188  printf %s "(cached) " >&6
     35189else case e in #(
     35190  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    761735191/* end confdefs.h.  */
    761835192
    7619 #include <features.h>
    7620 #ifdef __GNU_LIBRARY__
    7621  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
    7622   Lucky GNU user
    7623  #endif
     35193#include <sys/types.h>
     35194#include <dirent.h>
     35195#ifdef dirfd
     35196 dirent_header_defines_dirfd
    762435197#endif
    7625 
    762635198_ACEOF
    762735199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7628   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
    7629   ac_cv_gnu_library_2_1=yes
     35200  $EGREP_TRADITIONAL "dirent_header_defines_dirfd" >/dev/null 2>&1
     35201then :
     35202  gl_cv_func_dirfd_macro=yes
     35203else case e in #(
     35204  e) gl_cv_func_dirfd_macro=no ;;
     35205esac
     35206fi
     35207rm -rf conftest*
     35208 ;;
     35209esac
     35210fi
     35211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
     35212printf "%s\n" "$gl_cv_func_dirfd_macro" >&6; }
     35213
     35214  # Use the replacement if we have no function or macro with that name,
     35215  # or if OS/2 kLIBC whose dirfd() does not work.
     35216  # Replace only if the system declares dirfd already.
     35217  case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
     35218    no,no,*,yes | *,*,os2*,yes)
     35219      REPLACE_DIRFD=1
     35220
     35221printf "%s\n" "#define REPLACE_DIRFD 1" >>confdefs.h
     35222;;
     35223  esac
     35224
     35225
     35226     if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1; then
     35227  GL_COND_OBJ_DIRFD_TRUE=
     35228  GL_COND_OBJ_DIRFD_FALSE='#'
    763035229else
    7631   ac_cv_gnu_library_2_1=no
    7632 fi
    7633 rm -f conftest*
    7634 
    7635 
    7636 
    7637 fi
    7638 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
    7639 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
    7640 
    7641     GLIBC21="$ac_cv_gnu_library_2_1"
     35230  GL_COND_OBJ_DIRFD_TRUE='#'
     35231  GL_COND_OBJ_DIRFD_FALSE=
     35232fi
     35233:
     35234    if test -z "${GL_COND_OBJ_DIRFD_TRUE}" && test -z "${GL_COND_OBJ_DIRFD_FALSE}"; then
     35235    GL_COND_OBJ_DIRFD_TRUE='#'
     35236    GL_COND_OBJ_DIRFD_FALSE='#'
     35237  fi
     35238
     35239  if test -z "$GL_COND_OBJ_DIRFD_TRUE"; then :
     35240
     35241
     35242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
     35243printf %s "checking how to get the file descriptor associated with an open DIR*... " >&6; }
     35244if test ${gl_cv_sys_dir_fd_member_name+y}
     35245then :
     35246  printf %s "(cached) " >&6
     35247else case e in #(
     35248  e)
     35249      dirfd_save_CFLAGS=$CFLAGS
     35250      for ac_expr in d_fd dd_fd; do
     35251
     35252        CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
     35253        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35254/* end confdefs.h.  */
     35255
     35256           #include <sys/types.h>
     35257           #include <dirent.h>
     35258int
     35259main (void)
     35260{
     35261DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
     35262  ;
     35263  return 0;
     35264}
     35265_ACEOF
     35266if ac_fn_c_try_compile "$LINENO"
     35267then :
     35268  dir_fd_found=yes
     35269
     35270fi
     35271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     35272        CFLAGS=$dirfd_save_CFLAGS
     35273        test "$dir_fd_found" = yes && break
     35274      done
     35275      test "$dir_fd_found" = yes || ac_expr=no_such_member
     35276
     35277      gl_cv_sys_dir_fd_member_name=$ac_expr
     35278
     35279   ;;
     35280esac
     35281fi
     35282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
     35283printf "%s\n" "$gl_cv_sys_dir_fd_member_name" >&6; }
     35284  if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
     35285
     35286printf "%s\n" "#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name" >>confdefs.h
     35287
     35288  fi
     35289
     35290
     35291
     35292fi
     35293
     35294
     35295
     35296
     35297
     35298
     35299
     35300
     35301
     35302    if test "$GL_GNULIB_DIRFD" != 1; then
     35303        if test "$GL_GNULIB_DIRFD" = 0; then
     35304      GL_GNULIB_DIRFD=$gl_module_indicator_condition
     35305    else
     35306      GL_GNULIB_DIRFD="($GL_GNULIB_DIRFD || $gl_module_indicator_condition)"
     35307    fi
     35308  fi
     35309
     35310
     35311
     35312
     35313
     35314printf "%s\n" "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
     35315
     35316
     35317
     35318
     35319
     35320
     35321
     35322
     35323
     35324
     35325
     35326
     35327
     35328    if test "$GL_GNULIB_ENVIRON" != 1; then
     35329        if test "$GL_GNULIB_ENVIRON" = 0; then
     35330      GL_GNULIB_ENVIRON=$gl_module_indicator_condition
     35331    else
     35332      GL_GNULIB_ENVIRON="($GL_GNULIB_ENVIRON || $gl_module_indicator_condition)"
     35333    fi
     35334  fi
     35335
     35336
     35337
     35338
     35339
     35340printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
     35341
     35342
     35343
     35344
     35345
     35346
     35347
     35348
     35349
     35350  if test $ac_cv_func_explicit_bzero = no; then
     35351    HAVE_EXPLICIT_BZERO=0
     35352  fi
     35353
     35354
     35355     if test $HAVE_EXPLICIT_BZERO = 0; then
     35356  GL_COND_OBJ_EXPLICIT_BZERO_TRUE=
     35357  GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
     35358else
     35359  GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
     35360  GL_COND_OBJ_EXPLICIT_BZERO_FALSE=
     35361fi
     35362:
     35363    if test -z "${GL_COND_OBJ_EXPLICIT_BZERO_TRUE}" && test -z "${GL_COND_OBJ_EXPLICIT_BZERO_FALSE}"; then
     35364    GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
     35365    GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
     35366  fi
     35367
     35368  if test -z "$GL_COND_OBJ_EXPLICIT_BZERO_TRUE"; then :
     35369
     35370
     35371  ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
     35372if test "x$ac_cv_func_explicit_memset" = xyes
     35373then :
     35374  printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
     35375
     35376fi
     35377
     35378
     35379
     35380
     35381fi
     35382
     35383
     35384
     35385
     35386
     35387
     35388
     35389
     35390
     35391
     35392
     35393
     35394
     35395
     35396    if test "$GL_GNULIB_EXPLICIT_BZERO" != 1; then
     35397        if test "$GL_GNULIB_EXPLICIT_BZERO" = 0; then
     35398      GL_GNULIB_EXPLICIT_BZERO=$gl_module_indicator_condition
     35399    else
     35400      GL_GNULIB_EXPLICIT_BZERO="($GL_GNULIB_EXPLICIT_BZERO || $gl_module_indicator_condition)"
     35401    fi
     35402  fi
     35403
     35404
     35405
     35406
     35407
     35408printf "%s\n" "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
     35409
     35410
     35411
     35412
     35413
     35414
     35415
     35416    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
     35417      REPLACE_FDOPEN=1
     35418    fi
     35419
     35420  if test $REPLACE_FDOPEN = 0; then
     35421        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
     35422printf %s "checking whether fdopen sets errno... " >&6; }
     35423if test ${gl_cv_func_fdopen_works+y}
     35424then :
     35425  printf %s "(cached) " >&6
     35426else case e in #(
     35427  e)
     35428        if test "$cross_compiling" = yes
     35429then :
     35430  case "$host_os" in
     35431             mingw*) gl_cv_func_fdopen_works="guessing no" ;;
     35432             *)      gl_cv_func_fdopen_works="guessing yes" ;;
     35433           esac
     35434
     35435else case e in #(
     35436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35437/* end confdefs.h.  */
     35438
     35439#include <stdio.h>
     35440#include <errno.h>
     35441
     35442
     35443$gl_mda_defines
     35444
     35445int
     35446main (void)
     35447{
     35448  FILE *fp;
     35449  errno = 0;
     35450  fp = fdopen (-1, "r");
     35451  if (fp == NULL && errno == 0)
     35452    return 1;
     35453  return 0;
     35454}
     35455_ACEOF
     35456if ac_fn_c_try_run "$LINENO"
     35457then :
     35458  gl_cv_func_fdopen_works=yes
     35459else case e in #(
     35460  e) gl_cv_func_fdopen_works=no ;;
     35461esac
     35462fi
     35463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     35464  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     35465esac
     35466fi
     35467
     35468       ;;
     35469esac
     35470fi
     35471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
     35472printf "%s\n" "$gl_cv_func_fdopen_works" >&6; }
     35473    case "$gl_cv_func_fdopen_works" in
     35474      *no) REPLACE_FDOPEN=1 ;;
     35475    esac
     35476  fi
     35477
     35478
     35479     if test $REPLACE_FDOPEN = 1; then
     35480  GL_COND_OBJ_FDOPEN_TRUE=
     35481  GL_COND_OBJ_FDOPEN_FALSE='#'
     35482else
     35483  GL_COND_OBJ_FDOPEN_TRUE='#'
     35484  GL_COND_OBJ_FDOPEN_FALSE=
     35485fi
     35486:
     35487    if test -z "${GL_COND_OBJ_FDOPEN_TRUE}" && test -z "${GL_COND_OBJ_FDOPEN_FALSE}"; then
     35488    GL_COND_OBJ_FDOPEN_TRUE='#'
     35489    GL_COND_OBJ_FDOPEN_FALSE='#'
     35490  fi
     35491
     35492  if test -z "$GL_COND_OBJ_FDOPEN_TRUE"; then :
     35493
     35494
     35495
     35496fi
     35497
     35498
     35499
     35500
     35501
     35502
     35503
     35504
     35505
     35506    if test "$GL_GNULIB_FDOPEN" != 1; then
     35507        if test "$GL_GNULIB_FDOPEN" = 0; then
     35508      GL_GNULIB_FDOPEN=$gl_module_indicator_condition
     35509    else
     35510      GL_GNULIB_FDOPEN="($GL_GNULIB_FDOPEN || $gl_module_indicator_condition)"
     35511    fi
     35512  fi
     35513
     35514
     35515
     35516
     35517
     35518printf "%s\n" "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
     35519
     35520
     35521
     35522
     35523
     35524
     35525
     35526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
     35527printf %s "checking whether fflush works on input streams... " >&6; }
     35528if test ${gl_cv_func_fflush_stdin+y}
     35529then :
     35530  printf %s "(cached) " >&6
     35531else case e in #(
     35532  e) echo hello world > conftest.txt
     35533     if test "$cross_compiling" = yes
     35534then :
     35535  case "$host_os" in
     35536                  # Guess no on native Windows.
     35537          mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
     35538          *)      gl_cv_func_fflush_stdin=cross ;;
     35539        esac
     35540
     35541else case e in #(
     35542  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35543/* end confdefs.h.  */
     35544
     35545#include <stdio.h>
     35546#if HAVE_UNISTD_H
     35547# include <unistd.h>
     35548#else /* on Windows with MSVC */
     35549# include <io.h>
     35550#endif
     35551
     35552
     35553$gl_mda_defines
     35554
     35555int
     35556main (void)
     35557{
     35558FILE *f = fopen ("conftest.txt", "r");
     35559         char buffer[10];
     35560         int fd;
     35561         int c;
     35562         if (f == NULL)
     35563           return 1;
     35564         fd = fileno (f);
     35565         if (fd < 0 || fread (buffer, 1, 5, f) != 5)
     35566           { fclose (f); return 2; }
     35567         /* For deterministic results, ensure f read a bigger buffer.  */
     35568         if (lseek (fd, 0, SEEK_CUR) == 5)
     35569           { fclose (f); return 3; }
     35570         /* POSIX requires fflush-fseek to set file offset of fd.  This fails
     35571            on BSD systems and on mingw.  */
     35572         if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
     35573           { fclose (f); return 4; }
     35574         if (lseek (fd, 0, SEEK_CUR) != 5)
     35575           { fclose (f); return 5; }
     35576         /* Verify behaviour of fflush after ungetc. See
     35577            <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
     35578         /* Verify behaviour of fflush after a backup ungetc.  This fails on
     35579            mingw.  */
     35580         c = fgetc (f);
     35581         ungetc (c, f);
     35582         fflush (f);
     35583         if (fgetc (f) != c)
     35584           { fclose (f); return 6; }
     35585         /* Verify behaviour of fflush after a non-backup ungetc.  This fails
     35586            on glibc 2.8 and on BSD systems.  */
     35587         c = fgetc (f);
     35588         ungetc ('@', f);
     35589         fflush (f);
     35590         if (fgetc (f) != c)
     35591           { fclose (f); return 7; }
     35592         fclose (f);
     35593         return 0;
     35594
     35595  ;
     35596  return 0;
     35597}
     35598_ACEOF
     35599if ac_fn_c_try_run "$LINENO"
     35600then :
     35601  gl_cv_func_fflush_stdin=yes
     35602else case e in #(
     35603  e) gl_cv_func_fflush_stdin=no ;;
     35604esac
     35605fi
     35606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     35607  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     35608esac
     35609fi
     35610
     35611     rm conftest.txt
     35612     ;;
     35613esac
     35614fi
     35615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
     35616printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
     35617  case "$gl_cv_func_fflush_stdin" in
     35618    *yes) gl_func_fflush_stdin=1 ;;
     35619    *no)  gl_func_fflush_stdin=0 ;;
     35620    *)    gl_func_fflush_stdin='(-1)' ;;
     35621  esac
     35622
     35623printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
     35624
     35625
     35626  case "$gl_cv_func_fflush_stdin" in
     35627    *yes) ;;
     35628    *) REPLACE_FFLUSH=1 ;;
     35629  esac
     35630
     35631
     35632     if test $REPLACE_FFLUSH = 1; then
     35633  GL_COND_OBJ_FFLUSH_TRUE=
     35634  GL_COND_OBJ_FFLUSH_FALSE='#'
     35635else
     35636  GL_COND_OBJ_FFLUSH_TRUE='#'
     35637  GL_COND_OBJ_FFLUSH_FALSE=
     35638fi
     35639:
     35640    if test -z "${GL_COND_OBJ_FFLUSH_TRUE}" && test -z "${GL_COND_OBJ_FFLUSH_FALSE}"; then
     35641    GL_COND_OBJ_FFLUSH_TRUE='#'
     35642    GL_COND_OBJ_FFLUSH_FALSE='#'
     35643  fi
     35644
     35645  if test -z "$GL_COND_OBJ_FFLUSH_TRUE"; then :
     35646
     35647    :
     35648
     35649fi
     35650
     35651
     35652printf "%s\n" "#define GNULIB_FFLUSH $gl_module_indicator_condition" >>confdefs.h
     35653
     35654
     35655
     35656
     35657
     35658
     35659
     35660
     35661
     35662
     35663
     35664    if test "$GL_GNULIB_FFLUSH" != 1; then
     35665        if test "$GL_GNULIB_FFLUSH" = 0; then
     35666      GL_GNULIB_FFLUSH=$gl_module_indicator_condition
     35667    else
     35668      GL_GNULIB_FFLUSH="($GL_GNULIB_FFLUSH || $gl_module_indicator_condition)"
     35669    fi
     35670  fi
     35671
     35672
     35673
     35674
     35675
     35676printf "%s\n" "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h
     35677
     35678
     35679
     35680
     35681
     35682  if test "$enable_acl" != no; then
     35683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getxattr with XATTR_NAME_POSIX_ACL macros" >&5
     35684printf %s "checking for getxattr with XATTR_NAME_POSIX_ACL macros... " >&6; }
     35685if test ${gl_cv_getxattr_with_posix_acls+y}
     35686then :
     35687  printf %s "(cached) " >&6
     35688else case e in #(
     35689  e) gl_cv_getxattr_with_posix_acls=no
     35690       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35691/* end confdefs.h.  */
     35692#include <sys/types.h>
     35693              #include <sys/xattr.h>
     35694              #include <linux/xattr.h>
     35695
     35696int
     35697main (void)
     35698{
     35699ssize_t a = getxattr (".", XATTR_NAME_POSIX_ACL_ACCESS, 0, 0);
     35700              ssize_t b = getxattr (".", XATTR_NAME_POSIX_ACL_DEFAULT, 0, 0);
     35701              return a < 0 || b < 0;
     35702
     35703  ;
     35704  return 0;
     35705}
     35706_ACEOF
     35707if ac_fn_c_try_link "$LINENO"
     35708then :
     35709  gl_cv_getxattr_with_posix_acls=yes
     35710fi
     35711rm -f core conftest.err conftest.$ac_objext conftest.beam \
     35712    conftest$ac_exeext conftest.$ac_ext ;;
     35713esac
     35714fi
     35715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_getxattr_with_posix_acls" >&5
     35716printf "%s\n" "$gl_cv_getxattr_with_posix_acls" >&6; }
     35717  fi
     35718  if test "$gl_cv_getxattr_with_posix_acls" = yes; then
     35719    LIB_HAS_ACL=
     35720
     35721printf "%s\n" "#define GETXATTR_WITH_POSIX_ACLS 1" >>confdefs.h
     35722
     35723  else
     35724            gl_need_lib_has_acl=1
     35725    LIB_HAS_ACL=$LIB_ACL
     35726  fi
     35727
     35728
     35729
     35730
     35731
     35732
     35733  case "$host_os" in
     35734    mingw* | pw*)
     35735            REPLACE_FOPEN=1
     35736            gl_cv_func_fopen_slash="guessing no"
     35737      ;;
     35738    *)
     35739                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
     35740printf %s "checking whether fopen recognizes a trailing slash... " >&6; }
     35741if test ${gl_cv_func_fopen_slash+y}
     35742then :
     35743  printf %s "(cached) " >&6
     35744else case e in #(
     35745  e)
     35746          if test "$cross_compiling" = yes
     35747then :
     35748
     35749             case "$host_os" in
     35750               aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
     35751                 gl_cv_func_fopen_slash="guessing no" ;;
     35752               *)
     35753                 gl_cv_func_fopen_slash="guessing yes" ;;
     35754             esac
     35755
     35756else case e in #(
     35757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35758/* end confdefs.h.  */
     35759
     35760#include <stddef.h>
     35761#include <stdio.h>
     35762int main ()
     35763{
     35764  FILE *fp = fopen ("conftest.sl/", "w");
     35765  int result = (fp != NULL);
     35766  if (fp != NULL)
     35767    fclose (fp);
     35768  return result;
     35769}
     35770_ACEOF
     35771if ac_fn_c_try_run "$LINENO"
     35772then :
     35773  gl_cv_func_fopen_slash=yes
     35774else case e in #(
     35775  e) gl_cv_func_fopen_slash=no ;;
     35776esac
     35777fi
     35778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     35779  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     35780esac
     35781fi
     35782
     35783          rm -f conftest.sl
     35784         ;;
     35785esac
     35786fi
     35787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
     35788printf "%s\n" "$gl_cv_func_fopen_slash" >&6; }
     35789      ;;
     35790  esac
     35791  case "$gl_cv_func_fopen_slash" in
     35792    *no)
     35793
     35794printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
     35795
     35796      REPLACE_FOPEN=1
     35797      ;;
     35798  esac
     35799
     35800  if test $REPLACE_FOPEN = 1; then
     35801
     35802
     35803
     35804
     35805
     35806
     35807
     35808
     35809  gltests_LIBOBJS="$gltests_LIBOBJS fopen.$ac_objext"
     35810
     35811    :
     35812  fi
     35813
     35814
     35815
     35816
     35817
     35818
     35819
     35820
     35821
     35822    if test "$GL_GNULIB_FOPEN" != 1; then
     35823        if test "$GL_GNULIB_FOPEN" = 0; then
     35824      GL_GNULIB_FOPEN=$gl_module_indicator_condition
     35825    else
     35826      GL_GNULIB_FOPEN="($GL_GNULIB_FOPEN || $gl_module_indicator_condition)"
     35827    fi
     35828  fi
     35829
     35830
     35831
     35832
     35833
     35834printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
     35835
     35836
     35837
     35838
     35839
     35840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
     35841printf %s "checking whether fopen supports the mode character 'x'... " >&6; }
     35842if test ${gl_cv_func_fopen_mode_x+y}
     35843then :
     35844  printf %s "(cached) " >&6
     35845else case e in #(
     35846  e) rm -f conftest.x
     35847     if test "$cross_compiling" = yes
     35848then :
     35849  case "$host_os" in
     35850          # Guess yes on glibc and musl systems.
     35851          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
     35852            gl_cv_func_fopen_mode_x="guessing yes" ;;
     35853          # If we don't know, obey --enable-cross-guesses.
     35854          *)
     35855            gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
     35856        esac
     35857
     35858else case e in #(
     35859  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35860/* end confdefs.h.  */
     35861
     35862#include <stdio.h>
     35863#include <errno.h>
     35864int main ()
     35865{
     35866  FILE *fp;
     35867  fp = fopen ("conftest.x", "w");
     35868  fclose (fp);
     35869  fp = fopen ("conftest.x", "wx");
     35870  if (fp != NULL)
     35871    /* 'x' ignored */
     35872    return 1;
     35873  else if (errno == EEXIST)
     35874    return 0;
     35875  else
     35876    /* 'x' rejected */
     35877    return 2;
     35878}
     35879_ACEOF
     35880if ac_fn_c_try_run "$LINENO"
     35881then :
     35882  gl_cv_func_fopen_mode_x=yes
     35883else case e in #(
     35884  e) gl_cv_func_fopen_mode_x=no ;;
     35885esac
     35886fi
     35887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     35888  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     35889esac
     35890fi
     35891
     35892     rm -f conftest.x
     35893     ;;
     35894esac
     35895fi
     35896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
     35897printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; }
     35898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
     35899printf %s "checking whether fopen supports the mode character 'e'... " >&6; }
     35900if test ${gl_cv_func_fopen_mode_e+y}
     35901then :
     35902  printf %s "(cached) " >&6
     35903else case e in #(
     35904  e) echo foo > conftest.x
     35905     if test "$cross_compiling" = yes
     35906then :
     35907  case "$host_os" in
     35908          # Guess yes on glibc and musl systems.
     35909          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
     35910            gl_cv_func_fopen_mode_e="guessing yes" ;;
     35911          # Guess no on native Windows.
     35912          mingw*)
     35913            gl_cv_func_fopen_mode_e="guessing no" ;;
     35914          # If we don't know, obey --enable-cross-guesses.
     35915          *)
     35916            gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
     35917        esac
     35918
     35919else case e in #(
     35920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     35921/* end confdefs.h.  */
     35922
     35923#include <stdio.h>
     35924#include <errno.h>
     35925#include <fcntl.h>
     35926
     35927
     35928$gl_mda_defines
     35929
     35930int main ()
     35931{
     35932  FILE *fp = fopen ("conftest.x", "re");
     35933  if (fp != NULL)
     35934    {
     35935      if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
     35936        return 0;
     35937      else
     35938        /* 'e' ignored */
     35939        return 1;
     35940    }
     35941  else
     35942    /* 'e' rejected */
     35943    return 2;
     35944}
     35945_ACEOF
     35946if ac_fn_c_try_run "$LINENO"
     35947then :
     35948  gl_cv_func_fopen_mode_e=yes
     35949else case e in #(
     35950  e) gl_cv_func_fopen_mode_e=no ;;
     35951esac
     35952fi
     35953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     35954  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     35955esac
     35956fi
     35957
     35958     rm -f conftest.x
     35959     ;;
     35960esac
     35961fi
     35962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
     35963printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; }
     35964  REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN"
     35965  case "$gl_cv_func_fopen_mode_x" in
     35966    *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
     35967  esac
     35968  case "$gl_cv_func_fopen_mode_e" in
     35969    *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
     35970  esac
     35971
     35972  if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
     35973
     35974
     35975
     35976
     35977
     35978
     35979
     35980
     35981  gltests_LIBOBJS="$gltests_LIBOBJS fopen.$ac_objext"
     35982
     35983    :
     35984  fi
     35985
     35986
     35987printf "%s\n" "#define GNULIB_FOPEN_GNU $gl_module_indicator_condition" >>confdefs.h
     35988
     35989
     35990
     35991
     35992
     35993
     35994
     35995
     35996
     35997
     35998
     35999    if test "$GL_GNULIB_FOPEN_GNU" != 1; then
     36000        if test "$GL_GNULIB_FOPEN_GNU" = 0; then
     36001      GL_GNULIB_FOPEN_GNU=$gl_module_indicator_condition
     36002    else
     36003      GL_GNULIB_FOPEN_GNU="($GL_GNULIB_FOPEN_GNU || $gl_module_indicator_condition)"
     36004    fi
     36005  fi
     36006
     36007
     36008
     36009
     36010
     36011printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h
     36012
     36013
     36014
     36015
     36016
     36017
     36018
     36019
     36020  ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
     36021" "$ac_c_undeclared_builtin_options" "CFLAGS"
     36022if test "x$ac_cv_have_decl_fpurge" = xyes
     36023then :
     36024  ac_have_decl=1
     36025else case e in #(
     36026  e) ac_have_decl=0 ;;
     36027esac
     36028fi
     36029printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
     36030
     36031  if test "x$ac_cv_func_fpurge" = xyes; then
     36032    HAVE_FPURGE=1
     36033    # Detect BSD bug.  Only cygwin 1.7 and musl are known to be immune.
     36034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5
     36035printf %s "checking whether fpurge works... " >&6; }
     36036if test ${gl_cv_func_fpurge_works+y}
     36037then :
     36038  printf %s "(cached) " >&6
     36039else case e in #(
     36040  e) if test "$cross_compiling" = yes
     36041then :
     36042  case "$host_os" in
     36043                     # Guess yes on musl systems.
     36044            *-musl*) gl_cv_func_fpurge_works="guessing yes" ;;
     36045                     # Otherwise obey --enable-cross-guesses.
     36046            *)       gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;;
     36047          esac
     36048
     36049else case e in #(
     36050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36051/* end confdefs.h.  */
     36052#include <stdio.h>
     36053
     36054int
     36055main (void)
     36056{
     36057FILE *f = fopen ("conftest.txt", "w+");
     36058              if (!f)
     36059                return 1;
     36060              if (fputc ('a', f) != 'a')
     36061                { fclose (f); return 2; }
     36062              rewind (f);
     36063              if (fgetc (f) != 'a')
     36064                { fclose (f); return 3; }
     36065              if (fgetc (f) != EOF)
     36066                { fclose (f); return 4; }
     36067              if (fpurge (f) != 0)
     36068                { fclose (f); return 5; }
     36069              if (putc ('b', f) != 'b')
     36070                { fclose (f); return 6; }
     36071              if (fclose (f) != 0)
     36072                return 7;
     36073              if ((f = fopen ("conftest.txt", "r")) == NULL)
     36074                return 8;
     36075              if (fgetc (f) != 'a')
     36076                { fclose (f); return 9; }
     36077              if (fgetc (f) != 'b')
     36078                { fclose (f); return 10; }
     36079              if (fgetc (f) != EOF)
     36080                { fclose (f); return 11; }
     36081              if (fclose (f) != 0)
     36082                return 12;
     36083              if (remove ("conftest.txt") != 0)
     36084                return 13;
     36085              return 0;
     36086
     36087  ;
     36088  return 0;
     36089}
     36090_ACEOF
     36091if ac_fn_c_try_run "$LINENO"
     36092then :
     36093  gl_cv_func_fpurge_works=yes
     36094else case e in #(
     36095  e) gl_cv_func_fpurge_works=no ;;
     36096esac
     36097fi
     36098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     36099  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     36100esac
     36101fi
     36102
     36103       ;;
     36104esac
     36105fi
     36106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5
     36107printf "%s\n" "$gl_cv_func_fpurge_works" >&6; }
     36108    case "$gl_cv_func_fpurge_works" in
     36109      *yes) ;;
     36110      *) REPLACE_FPURGE=1 ;;
     36111    esac
     36112  else
     36113    HAVE_FPURGE=0
     36114  fi
     36115  if test "x$ac_cv_have_decl_fpurge" = xno; then
     36116    HAVE_DECL_FPURGE=0
     36117  fi
     36118
     36119
     36120     if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
     36121  GL_COND_OBJ_FPURGE_TRUE=
     36122  GL_COND_OBJ_FPURGE_FALSE='#'
     36123else
     36124  GL_COND_OBJ_FPURGE_TRUE='#'
     36125  GL_COND_OBJ_FPURGE_FALSE=
     36126fi
     36127:
     36128    if test -z "${GL_COND_OBJ_FPURGE_TRUE}" && test -z "${GL_COND_OBJ_FPURGE_FALSE}"; then
     36129    GL_COND_OBJ_FPURGE_TRUE='#'
     36130    GL_COND_OBJ_FPURGE_FALSE='#'
     36131  fi
     36132
     36133
     36134
     36135
     36136
     36137
     36138
     36139
     36140
     36141
     36142    if test "$GL_GNULIB_FPURGE" != 1; then
     36143        if test "$GL_GNULIB_FPURGE" = 0; then
     36144      GL_GNULIB_FPURGE=$gl_module_indicator_condition
     36145    else
     36146      GL_GNULIB_FPURGE="($GL_GNULIB_FPURGE || $gl_module_indicator_condition)"
     36147    fi
     36148  fi
     36149
     36150
     36151
     36152
     36153
     36154printf "%s\n" "#define GNULIB_TEST_FPURGE 1" >>confdefs.h
     36155
     36156
     36157
     36158
     36159
     36160
     36161
     36162
     36163
     36164
     36165    if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
     36166    REPLACE_FSEEK=1
     36167  fi
     36168
     36169
     36170     if test $REPLACE_FSEEK = 1; then
     36171  GL_COND_OBJ_FSEEK_TRUE=
     36172  GL_COND_OBJ_FSEEK_FALSE='#'
     36173else
     36174  GL_COND_OBJ_FSEEK_TRUE='#'
     36175  GL_COND_OBJ_FSEEK_FALSE=
     36176fi
     36177:
     36178    if test -z "${GL_COND_OBJ_FSEEK_TRUE}" && test -z "${GL_COND_OBJ_FSEEK_FALSE}"; then
     36179    GL_COND_OBJ_FSEEK_TRUE='#'
     36180    GL_COND_OBJ_FSEEK_FALSE='#'
     36181  fi
     36182
     36183
     36184
     36185
     36186
     36187
     36188
     36189
     36190
     36191
     36192    if test "$GL_GNULIB_FSEEK" != 1; then
     36193        if test "$GL_GNULIB_FSEEK" = 0; then
     36194      GL_GNULIB_FSEEK=$gl_module_indicator_condition
     36195    else
     36196      GL_GNULIB_FSEEK="($GL_GNULIB_FSEEK || $gl_module_indicator_condition)"
     36197    fi
     36198  fi
     36199
     36200
     36201
     36202
     36203
     36204printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
     36205
     36206
     36207
     36208
     36209
     36210
     36211
     36212
     36213
     36214
     36215
     36216
     36217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
     36218printf %s "checking for fseeko... " >&6; }
     36219if test ${gl_cv_func_fseeko+y}
     36220then :
     36221  printf %s "(cached) " >&6
     36222else case e in #(
     36223  e)
     36224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36225/* end confdefs.h.  */
     36226#include <stdio.h>
     36227
     36228int
     36229main (void)
     36230{
     36231fseeko (stdin, 0, 0);
     36232  ;
     36233  return 0;
     36234}
     36235_ACEOF
     36236if ac_fn_c_try_link "$LINENO"
     36237then :
     36238  gl_cv_func_fseeko=yes
     36239else case e in #(
     36240  e) gl_cv_func_fseeko=no ;;
     36241esac
     36242fi
     36243rm -f core conftest.err conftest.$ac_objext conftest.beam \
     36244    conftest$ac_exeext conftest.$ac_ext
     36245     ;;
     36246esac
     36247fi
     36248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
     36249printf "%s\n" "$gl_cv_func_fseeko" >&6; }
     36250
     36251
     36252  if test $ac_cv_have_decl_fseeko = no; then
     36253    HAVE_DECL_FSEEKO=0
     36254  fi
     36255
     36256  if test $gl_cv_func_fseeko = no; then
     36257    HAVE_FSEEKO=0
     36258  else
     36259    if test $WINDOWS_64_BIT_OFF_T = 1; then
     36260      REPLACE_FSEEKO=1
     36261    fi
     36262    if test $gl_cv_var_stdin_large_offset = no; then
     36263      REPLACE_FSEEKO=1
     36264    fi
     36265
     36266
     36267
     36268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
     36269printf %s "checking whether fflush works on input streams... " >&6; }
     36270if test ${gl_cv_func_fflush_stdin+y}
     36271then :
     36272  printf %s "(cached) " >&6
     36273else case e in #(
     36274  e) echo hello world > conftest.txt
     36275     if test "$cross_compiling" = yes
     36276then :
     36277  case "$host_os" in
     36278                  # Guess no on native Windows.
     36279          mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
     36280          *)      gl_cv_func_fflush_stdin=cross ;;
     36281        esac
     36282
     36283else case e in #(
     36284  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36285/* end confdefs.h.  */
     36286
     36287#include <stdio.h>
     36288#if HAVE_UNISTD_H
     36289# include <unistd.h>
     36290#else /* on Windows with MSVC */
     36291# include <io.h>
     36292#endif
     36293
     36294
     36295$gl_mda_defines
     36296
     36297int
     36298main (void)
     36299{
     36300FILE *f = fopen ("conftest.txt", "r");
     36301         char buffer[10];
     36302         int fd;
     36303         int c;
     36304         if (f == NULL)
     36305           return 1;
     36306         fd = fileno (f);
     36307         if (fd < 0 || fread (buffer, 1, 5, f) != 5)
     36308           { fclose (f); return 2; }
     36309         /* For deterministic results, ensure f read a bigger buffer.  */
     36310         if (lseek (fd, 0, SEEK_CUR) == 5)
     36311           { fclose (f); return 3; }
     36312         /* POSIX requires fflush-fseek to set file offset of fd.  This fails
     36313            on BSD systems and on mingw.  */
     36314         if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
     36315           { fclose (f); return 4; }
     36316         if (lseek (fd, 0, SEEK_CUR) != 5)
     36317           { fclose (f); return 5; }
     36318         /* Verify behaviour of fflush after ungetc. See
     36319            <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
     36320         /* Verify behaviour of fflush after a backup ungetc.  This fails on
     36321            mingw.  */
     36322         c = fgetc (f);
     36323         ungetc (c, f);
     36324         fflush (f);
     36325         if (fgetc (f) != c)
     36326           { fclose (f); return 6; }
     36327         /* Verify behaviour of fflush after a non-backup ungetc.  This fails
     36328            on glibc 2.8 and on BSD systems.  */
     36329         c = fgetc (f);
     36330         ungetc ('@', f);
     36331         fflush (f);
     36332         if (fgetc (f) != c)
     36333           { fclose (f); return 7; }
     36334         fclose (f);
     36335         return 0;
     36336
     36337  ;
     36338  return 0;
     36339}
     36340_ACEOF
     36341if ac_fn_c_try_run "$LINENO"
     36342then :
     36343  gl_cv_func_fflush_stdin=yes
     36344else case e in #(
     36345  e) gl_cv_func_fflush_stdin=no ;;
     36346esac
     36347fi
     36348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     36349  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     36350esac
     36351fi
     36352
     36353     rm conftest.txt
     36354     ;;
     36355esac
     36356fi
     36357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
     36358printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
     36359  case "$gl_cv_func_fflush_stdin" in
     36360    *yes) gl_func_fflush_stdin=1 ;;
     36361    *no)  gl_func_fflush_stdin=0 ;;
     36362    *)    gl_func_fflush_stdin='(-1)' ;;
     36363  esac
     36364
     36365printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
     36366
     36367
     36368      case "$gl_cv_func_fflush_stdin" in
     36369        *yes) ;;
     36370        *) REPLACE_FSEEKO=1 ;;
     36371      esac
     36372
     36373  fi
     36374
     36375
     36376     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
     36377  GL_COND_OBJ_FSEEKO_TRUE=
     36378  GL_COND_OBJ_FSEEKO_FALSE='#'
     36379else
     36380  GL_COND_OBJ_FSEEKO_TRUE='#'
     36381  GL_COND_OBJ_FSEEKO_FALSE=
     36382fi
     36383:
     36384    if test -z "${GL_COND_OBJ_FSEEKO_TRUE}" && test -z "${GL_COND_OBJ_FSEEKO_FALSE}"; then
     36385    GL_COND_OBJ_FSEEKO_TRUE='#'
     36386    GL_COND_OBJ_FSEEKO_FALSE='#'
     36387  fi
     36388
     36389  if test -z "$GL_COND_OBJ_FSEEKO_TRUE"; then :
     36390
     36391
     36392      ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
     36393if test "x$ac_cv_func__fseeki64" = xyes
     36394then :
     36395  printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
     36396
     36397fi
     36398
     36399  if test $ac_cv_func__fseeki64 = yes; then
     36400    ac_fn_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     36401if test "x$ac_cv_have_decl__fseeki64" = xyes
     36402then :
     36403  ac_have_decl=1
     36404else case e in #(
     36405  e) ac_have_decl=0 ;;
     36406esac
     36407fi
     36408printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h
     36409
     36410  fi
     36411
     36412
     36413fi
     36414
     36415
     36416
     36417
     36418
     36419
     36420
     36421
     36422
     36423    if test "$GL_GNULIB_FSEEKO" != 1; then
     36424        if test "$GL_GNULIB_FSEEKO" = 0; then
     36425      GL_GNULIB_FSEEKO=$gl_module_indicator_condition
     36426    else
     36427      GL_GNULIB_FSEEKO="($GL_GNULIB_FSEEKO || $gl_module_indicator_condition)"
     36428    fi
     36429  fi
     36430
     36431
     36432
     36433
     36434
     36435printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
     36436
     36437
     36438
     36439
     36440
     36441
     36442
     36443    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
     36444    REPLACE_FTELL=1
     36445  fi
     36446
     36447
     36448     if test $REPLACE_FTELL = 1; then
     36449  GL_COND_OBJ_FTELL_TRUE=
     36450  GL_COND_OBJ_FTELL_FALSE='#'
     36451else
     36452  GL_COND_OBJ_FTELL_TRUE='#'
     36453  GL_COND_OBJ_FTELL_FALSE=
     36454fi
     36455:
     36456    if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then
     36457    GL_COND_OBJ_FTELL_TRUE='#'
     36458    GL_COND_OBJ_FTELL_FALSE='#'
     36459  fi
     36460
     36461
     36462
     36463
     36464
     36465
     36466
     36467
     36468
     36469
     36470    if test "$GL_GNULIB_FTELL" != 1; then
     36471        if test "$GL_GNULIB_FTELL" = 0; then
     36472      GL_GNULIB_FTELL=$gl_module_indicator_condition
     36473    else
     36474      GL_GNULIB_FTELL="($GL_GNULIB_FTELL || $gl_module_indicator_condition)"
     36475    fi
     36476  fi
     36477
     36478
     36479
     36480
     36481
     36482printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h
     36483
     36484
     36485
     36486
     36487
     36488
     36489
     36490
     36491
     36492
     36493
     36494
     36495
     36496  if test $ac_cv_have_decl_ftello = no; then
     36497    HAVE_DECL_FTELLO=0
     36498  fi
     36499
     36500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
     36501printf %s "checking for ftello... " >&6; }
     36502if test ${gl_cv_func_ftello+y}
     36503then :
     36504  printf %s "(cached) " >&6
     36505else case e in #(
     36506  e)
     36507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36508/* end confdefs.h.  */
     36509#include <stdio.h>
     36510int
     36511main (void)
     36512{
     36513ftello (stdin);
     36514  ;
     36515  return 0;
     36516}
     36517_ACEOF
     36518if ac_fn_c_try_link "$LINENO"
     36519then :
     36520  gl_cv_func_ftello=yes
     36521else case e in #(
     36522  e) gl_cv_func_ftello=no ;;
     36523esac
     36524fi
     36525rm -f core conftest.err conftest.$ac_objext conftest.beam \
     36526    conftest$ac_exeext conftest.$ac_ext
     36527     ;;
     36528esac
     36529fi
     36530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
     36531printf "%s\n" "$gl_cv_func_ftello" >&6; }
     36532  if test $gl_cv_func_ftello = no; then
     36533    HAVE_FTELLO=0
     36534  else
     36535    if test $WINDOWS_64_BIT_OFF_T = 1; then
     36536      REPLACE_FTELLO=1
     36537    fi
     36538    if test $gl_cv_var_stdin_large_offset = no; then
     36539      REPLACE_FTELLO=1
     36540    fi
     36541    if test $REPLACE_FTELLO = 0; then
     36542
     36543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
     36544printf %s "checking whether ftello works... " >&6; }
     36545if test ${gl_cv_func_ftello_works+y}
     36546then :
     36547  printf %s "(cached) " >&6
     36548else case e in #(
     36549  e)
     36550                              case "$host_os" in
     36551                      # Guess no on Solaris.
     36552            solaris*) gl_cv_func_ftello_works="guessing no" ;;
     36553                      # Guess yes on native Windows.
     36554            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
     36555                      # Guess yes otherwise.
     36556            *)        gl_cv_func_ftello_works="guessing yes" ;;
     36557          esac
     36558          if test "$cross_compiling" = yes
     36559then :
     36560  :
     36561else case e in #(
     36562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36563/* end confdefs.h.  */
     36564
     36565#include <stdio.h>
     36566#include <stdlib.h>
     36567#include <string.h>
     36568#define TESTFILE "conftest.tmp"
     36569int
     36570main (void)
     36571{
     36572  FILE *fp;
     36573
     36574  /* Create a file with some contents.  */
     36575  fp = fopen (TESTFILE, "w");
     36576  if (fp == NULL)
     36577    return 70;
     36578  if (fwrite ("foogarsh", 1, 8, fp) < 8)
     36579    { fclose (fp); return 71; }
     36580  if (fclose (fp))
     36581    return 72;
     36582
     36583  /* The file's contents is now "foogarsh".  */
     36584
     36585  /* Try writing after reading to EOF.  */
     36586  fp = fopen (TESTFILE, "r+");
     36587  if (fp == NULL)
     36588    return 73;
     36589  if (fseek (fp, -1, SEEK_END))
     36590    { fclose (fp); return 74; }
     36591  if (!(getc (fp) == 'h'))
     36592    { fclose (fp); return 1; }
     36593  if (!(getc (fp) == EOF))
     36594    { fclose (fp); return 2; }
     36595  if (!(ftell (fp) == 8))
     36596    { fclose (fp); return 3; }
     36597  if (!(ftell (fp) == 8))
     36598    { fclose (fp); return 4; }
     36599  if (!(putc ('!', fp) == '!'))
     36600    { fclose (fp); return 5; }
     36601  if (!(ftell (fp) == 9))
     36602    { fclose (fp); return 6; }
     36603  if (!(fclose (fp) == 0))
     36604    return 7;
     36605  fp = fopen (TESTFILE, "r");
     36606  if (fp == NULL)
     36607    return 75;
     36608  {
     36609    char buf[10];
     36610    if (!(fread (buf, 1, 10, fp) == 9))
     36611      { fclose (fp); return 10; }
     36612    if (!(memcmp (buf, "foogarsh!", 9) == 0))
     36613      { fclose (fp); return 11; }
     36614  }
     36615  if (!(fclose (fp) == 0))
     36616    return 12;
     36617
     36618  /* The file's contents is now "foogarsh!".  */
     36619
     36620  return 0;
     36621}
     36622_ACEOF
     36623if ac_fn_c_try_run "$LINENO"
     36624then :
     36625  gl_cv_func_ftello_works=yes
     36626else case e in #(
     36627  e) gl_cv_func_ftello_works=no ;;
     36628esac
     36629fi
     36630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     36631  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     36632esac
     36633fi
     36634
     36635         ;;
     36636esac
     36637fi
     36638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
     36639printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
     36640      case "$gl_cv_func_ftello_works" in
     36641        *yes) ;;
     36642        *)
     36643          REPLACE_FTELLO=1
     36644
     36645printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
     36646
     36647          ;;
     36648      esac
     36649    fi
     36650    if test $REPLACE_FTELLO = 0; then
     36651
     36652      if test $gl_ftello_broken_after_ungetc = yes; then
     36653        REPLACE_FTELLO=1
     36654
     36655printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
     36656
     36657      fi
     36658    fi
     36659  fi
     36660
     36661
     36662     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
     36663  GL_COND_OBJ_FTELLO_TRUE=
     36664  GL_COND_OBJ_FTELLO_FALSE='#'
     36665else
     36666  GL_COND_OBJ_FTELLO_TRUE='#'
     36667  GL_COND_OBJ_FTELLO_FALSE=
     36668fi
     36669:
     36670    if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then
     36671    GL_COND_OBJ_FTELLO_TRUE='#'
     36672    GL_COND_OBJ_FTELLO_FALSE='#'
     36673  fi
     36674
     36675  if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then :
     36676
     36677
     36678      ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
     36679if test "x$ac_cv_func__ftelli64" = xyes
     36680then :
     36681  printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
     36682
     36683fi
     36684
     36685
     36686
     36687fi
     36688
     36689
     36690
     36691
     36692
     36693
     36694
     36695
     36696
     36697    if test "$GL_GNULIB_FTELLO" != 1; then
     36698        if test "$GL_GNULIB_FTELLO" = 0; then
     36699      GL_GNULIB_FTELLO=$gl_module_indicator_condition
     36700    else
     36701      GL_GNULIB_FTELLO="($GL_GNULIB_FTELLO || $gl_module_indicator_condition)"
     36702    fi
     36703  fi
     36704
     36705
     36706
     36707
     36708
     36709printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
     36710
     36711
     36712
     36713
     36714
     36715
     36716
     36717  if test $ac_cv_func_ftruncate = yes; then
     36718
     36719
     36720      case "$host_os" in
     36721        mingw*)
     36722                                                                      REPLACE_FTRUNCATE=1
     36723          ;;
     36724      esac
     36725
     36726  else
     36727    HAVE_FTRUNCATE=0
     36728  fi
     36729
     36730
     36731     if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
     36732  GL_COND_OBJ_FTRUNCATE_TRUE=
     36733  GL_COND_OBJ_FTRUNCATE_FALSE='#'
     36734else
     36735  GL_COND_OBJ_FTRUNCATE_TRUE='#'
     36736  GL_COND_OBJ_FTRUNCATE_FALSE=
     36737fi
     36738:
     36739    if test -z "${GL_COND_OBJ_FTRUNCATE_TRUE}" && test -z "${GL_COND_OBJ_FTRUNCATE_FALSE}"; then
     36740    GL_COND_OBJ_FTRUNCATE_TRUE='#'
     36741    GL_COND_OBJ_FTRUNCATE_FALSE='#'
     36742  fi
     36743
     36744  if test -z "$GL_COND_OBJ_FTRUNCATE_TRUE"; then :
     36745
     36746
     36747  ac_fn_c_check_func "$LINENO" "_chsize" "ac_cv_func__chsize"
     36748if test "x$ac_cv_func__chsize" = xyes
     36749then :
     36750  printf "%s\n" "#define HAVE__CHSIZE 1" >>confdefs.h
     36751
     36752fi
     36753
     36754
     36755
     36756fi
     36757
     36758
     36759
     36760
     36761
     36762
     36763
     36764
     36765
     36766    if test "$GL_GNULIB_FTRUNCATE" != 1; then
     36767        if test "$GL_GNULIB_FTRUNCATE" = 0; then
     36768      GL_GNULIB_FTRUNCATE=$gl_module_indicator_condition
     36769    else
     36770      GL_GNULIB_FTRUNCATE="($GL_GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
     36771    fi
     36772  fi
     36773
     36774
     36775
     36776
     36777
     36778printf "%s\n" "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
     36779
     36780
     36781
     36782
     36783
     36784
     36785
     36786
     36787  case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
     36788  *yes,yes) ;;
     36789  *)
     36790        REPLACE_GETCWD=1
     36791    ;;
     36792  esac
     36793
     36794
     36795     if test $REPLACE_GETCWD = 1; then
     36796  GL_COND_OBJ_GETCWD_LGPL_TRUE=
     36797  GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
     36798else
     36799  GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
     36800  GL_COND_OBJ_GETCWD_LGPL_FALSE=
     36801fi
     36802:
     36803    if test -z "${GL_COND_OBJ_GETCWD_LGPL_TRUE}" && test -z "${GL_COND_OBJ_GETCWD_LGPL_FALSE}"; then
     36804    GL_COND_OBJ_GETCWD_LGPL_TRUE='#'
     36805    GL_COND_OBJ_GETCWD_LGPL_FALSE='#'
     36806  fi
     36807
     36808
     36809
     36810
     36811
     36812
     36813
     36814
     36815
     36816
     36817    if test "$GL_GNULIB_GETCWD" != 1; then
     36818        if test "$GL_GNULIB_GETCWD" = 0; then
     36819      GL_GNULIB_GETCWD=$gl_module_indicator_condition
     36820    else
     36821      GL_GNULIB_GETCWD="($GL_GNULIB_GETCWD || $gl_module_indicator_condition)"
     36822    fi
     36823  fi
     36824
     36825
     36826
     36827
     36828
     36829printf "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
     36830
     36831
     36832
     36833
     36834
     36835
     36836
     36837      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
     36838printf %s "checking for getpagesize... " >&6; }
     36839if test ${gl_cv_func_getpagesize+y}
     36840then :
     36841  printf %s "(cached) " >&6
     36842else case e in #(
     36843  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36844/* end confdefs.h.  */
     36845#include <unistd.h>
     36846int
     36847main (void)
     36848{
     36849return getpagesize();
     36850  ;
     36851  return 0;
     36852}
     36853
     36854_ACEOF
     36855if ac_fn_c_try_link "$LINENO"
     36856then :
     36857  gl_cv_func_getpagesize=yes
     36858else case e in #(
     36859  e) gl_cv_func_getpagesize=no ;;
     36860esac
     36861fi
     36862rm -f core conftest.err conftest.$ac_objext conftest.beam \
     36863    conftest$ac_exeext conftest.$ac_ext
     36864     ;;
     36865esac
     36866fi
     36867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
     36868printf "%s\n" "$gl_cv_func_getpagesize" >&6; }
     36869
     36870  if test $gl_cv_func_getpagesize = no; then
     36871    HAVE_GETPAGESIZE=0
     36872    ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
     36873if test "x$ac_cv_header_OS_h" = xyes
     36874then :
     36875  printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h
     36876
     36877fi
     36878
     36879    if test $ac_cv_header_OS_h = yes; then
     36880      HAVE_OS_H=1
     36881    fi
     36882    ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
     36883if test "x$ac_cv_header_sys_param_h" = xyes
     36884then :
     36885  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
     36886
     36887fi
     36888
     36889    if test $ac_cv_header_sys_param_h = yes; then
     36890      HAVE_SYS_PARAM_H=1
     36891    fi
     36892  fi
     36893  case "$host_os" in
     36894    mingw*)
     36895      REPLACE_GETPAGESIZE=1
     36896      ;;
     36897  esac
     36898      ac_fn_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     36899if test "x$ac_cv_have_decl_getpagesize" = xyes
     36900then :
     36901
     36902else case e in #(
     36903  e) HAVE_DECL_GETPAGESIZE=0 ;;
     36904esac
     36905fi
     36906
     36907
     36908     if test $REPLACE_GETPAGESIZE = 1; then
     36909  GL_COND_OBJ_GETPAGESIZE_TRUE=
     36910  GL_COND_OBJ_GETPAGESIZE_FALSE='#'
     36911else
     36912  GL_COND_OBJ_GETPAGESIZE_TRUE='#'
     36913  GL_COND_OBJ_GETPAGESIZE_FALSE=
     36914fi
     36915:
     36916    if test -z "${GL_COND_OBJ_GETPAGESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETPAGESIZE_FALSE}"; then
     36917    GL_COND_OBJ_GETPAGESIZE_TRUE='#'
     36918    GL_COND_OBJ_GETPAGESIZE_FALSE='#'
     36919  fi
     36920
     36921
     36922
     36923
     36924
     36925
     36926
     36927
     36928
     36929
     36930    if test "$GL_GNULIB_GETPAGESIZE" != 1; then
     36931        if test "$GL_GNULIB_GETPAGESIZE" = 0; then
     36932      GL_GNULIB_GETPAGESIZE=$gl_module_indicator_condition
     36933    else
     36934      GL_GNULIB_GETPAGESIZE="($GL_GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
     36935    fi
     36936  fi
     36937
     36938
     36939
     36940
     36941
     36942printf "%s\n" "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
     36943
     36944
     36945
     36946
     36947
     36948
     36949
     36950
     36951
     36952
     36953  gl_gettimeofday_timezone=void
     36954  if test $ac_cv_func_gettimeofday != yes; then
     36955    HAVE_GETTIMEOFDAY=0
     36956  else
     36957    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
     36958printf %s "checking for gettimeofday with POSIX signature... " >&6; }
     36959if test ${gl_cv_func_gettimeofday_posix_signature+y}
     36960then :
     36961  printf %s "(cached) " >&6
     36962else case e in #(
     36963  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36964/* end confdefs.h.  */
     36965#include <sys/time.h>
     36966              struct timeval c;
     36967              int gettimeofday (struct timeval *restrict, void *restrict);
     36968
     36969int
     36970main (void)
     36971{
     36972/* glibc uses struct timezone * rather than the POSIX void *
     36973                 if _GNU_SOURCE is defined.  However, since the only portable
     36974                 use of gettimeofday uses NULL as the second parameter, and
     36975                 since the glibc definition is actually more typesafe, it is
     36976                 not worth wrapping this to get a compliant signature.  */
     36977              int (*f) (struct timeval *restrict, void *restrict)
     36978                = gettimeofday;
     36979              int x = f (&c, 0);
     36980              return !(x | c.tv_sec | c.tv_usec);
     36981
     36982  ;
     36983  return 0;
     36984}
     36985_ACEOF
     36986if ac_fn_c_try_compile "$LINENO"
     36987then :
     36988  gl_cv_func_gettimeofday_posix_signature=yes
     36989else case e in #(
     36990  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     36991/* end confdefs.h.  */
     36992#include <sys/time.h>
     36993int gettimeofday (struct timeval *restrict, struct timezone *restrict);
     36994
     36995int
     36996main (void)
     36997{
     36998
     36999  ;
     37000  return 0;
     37001}
     37002_ACEOF
     37003if ac_fn_c_try_compile "$LINENO"
     37004then :
     37005  gl_cv_func_gettimeofday_posix_signature=almost
     37006else case e in #(
     37007  e) gl_cv_func_gettimeofday_posix_signature=no ;;
     37008esac
     37009fi
     37010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     37011esac
     37012fi
     37013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     37014esac
     37015fi
     37016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
     37017printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; }
     37018    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
     37019      gl_gettimeofday_timezone='struct timezone'
     37020    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
     37021      REPLACE_GETTIMEOFDAY=1
     37022    fi
     37023        if test $REPLACE_STRUCT_TIMEVAL = 1; then
     37024      REPLACE_GETTIMEOFDAY=1
     37025    fi
     37026            case "$host_os" in
     37027      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
     37028    esac
     37029  fi
     37030
     37031printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h
     37032
     37033
     37034
     37035     if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
     37036  GL_COND_OBJ_GETTIMEOFDAY_TRUE=
     37037  GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
     37038else
     37039  GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
     37040  GL_COND_OBJ_GETTIMEOFDAY_FALSE=
     37041fi
     37042:
     37043    if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then
     37044    GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
     37045    GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
     37046  fi
     37047
     37048  if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then :
     37049
     37050    :
     37051
     37052fi
     37053
     37054
     37055
     37056
     37057
     37058
     37059
     37060
     37061
     37062    if test "$GL_GNULIB_GETTIMEOFDAY" != 1; then
     37063        if test "$GL_GNULIB_GETTIMEOFDAY" = 0; then
     37064      GL_GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition
     37065    else
     37066      GL_GNULIB_GETTIMEOFDAY="($GL_GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)"
     37067    fi
     37068  fi
     37069
     37070
     37071
     37072
     37073
     37074printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
     37075
     37076
     37077
     37078
     37079
     37080
     37081
     37082
     37083
     37084
     37085
     37086
     37087                HAVE_INET_PTON=1
     37088  INET_PTON_LIB=
     37089
     37090
     37091
     37092
     37093  if test $ac_cv_header_sys_socket_h != yes; then
     37094                    ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
     37095if test "x$ac_cv_header_winsock2_h" = xyes
     37096then :
     37097  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
     37098
     37099fi
     37100
     37101  fi
     37102  if test "$ac_cv_header_winsock2_h" = yes; then
     37103    HAVE_WINSOCK2_H=1
     37104    UNISTD_H_HAVE_WINSOCK2_H=1
     37105    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
     37106  else
     37107    HAVE_WINSOCK2_H=0
     37108  fi
     37109
     37110
     37111  if test $HAVE_WINSOCK2_H = 1; then
     37112                    REPLACE_INET_PTON=1
     37113    ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
     37114" "$ac_c_undeclared_builtin_options" "CFLAGS"
     37115if test "x$ac_cv_have_decl_inet_pton" = xyes
     37116then :
     37117  ac_have_decl=1
     37118else case e in #(
     37119  e) ac_have_decl=0 ;;
     37120esac
     37121fi
     37122printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
     37123
     37124    if test $ac_cv_have_decl_inet_pton = yes; then
     37125      INET_PTON_LIB="-lws2_32"
     37126    else
     37127      HAVE_DECL_INET_PTON=0
     37128    fi
     37129  else
     37130    gl_save_LIBS=$LIBS
     37131    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
     37132printf %s "checking for library containing inet_pton... " >&6; }
     37133if test ${ac_cv_search_inet_pton+y}
     37134then :
     37135  printf %s "(cached) " >&6
     37136else case e in #(
     37137  e) ac_func_search_save_LIBS=$LIBS
     37138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37139/* end confdefs.h.  */
     37140
     37141/* Override any GCC internal prototype to avoid an error.
     37142   Use char because int might match the return type of a GCC
     37143   builtin and then its argument prototype would still apply.
     37144   The 'extern "C"' is for builds by C++ compilers;
     37145   although this is not generally supported in C code, supporting it here
     37146   has little cost and some practical benefit (sr 110532).  */
     37147#ifdef __cplusplus
     37148extern "C"
     37149#endif
     37150char inet_pton (void);
     37151int
     37152main (void)
     37153{
     37154return inet_pton ();
     37155  ;
     37156  return 0;
     37157}
     37158_ACEOF
     37159for ac_lib in '' nsl resolv network
     37160do
     37161  if test -z "$ac_lib"; then
     37162    ac_res="none required"
     37163  else
     37164    ac_res=-l$ac_lib
     37165    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     37166  fi
     37167  if ac_fn_c_try_link "$LINENO"
     37168then :
     37169  ac_cv_search_inet_pton=$ac_res
     37170fi
     37171rm -f core conftest.err conftest.$ac_objext conftest.beam \
     37172    conftest$ac_exeext
     37173  if test ${ac_cv_search_inet_pton+y}
     37174then :
     37175  break
     37176fi
     37177done
     37178if test ${ac_cv_search_inet_pton+y}
     37179then :
     37180
     37181else case e in #(
     37182  e) ac_cv_search_inet_pton=no ;;
     37183esac
     37184fi
     37185rm conftest.$ac_ext
     37186LIBS=$ac_func_search_save_LIBS ;;
     37187esac
     37188fi
     37189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
     37190printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
     37191ac_res=$ac_cv_search_inet_pton
     37192if test "$ac_res" != no
     37193then :
     37194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     37195
     37196else case e in #(
     37197  e) ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
     37198if test "x$ac_cv_func_inet_pton" = xyes
     37199then :
     37200  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
     37201
     37202fi
     37203
     37204       if test $ac_cv_func_inet_pton = no; then
     37205         HAVE_INET_PTON=0
     37206       fi
     37207       ;;
     37208esac
     37209fi
     37210
     37211    LIBS=$gl_save_LIBS
     37212
     37213    if test "$ac_cv_search_inet_pton" != "no" \
     37214       && test "$ac_cv_search_inet_pton" != "none required"; then
     37215      INET_PTON_LIB="$ac_cv_search_inet_pton"
     37216    fi
     37217
     37218
     37219    ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
     37220        #if HAVE_NETDB_H
     37221        # include <netdb.h>
     37222        #endif
     37223
     37224" "$ac_c_undeclared_builtin_options" "CFLAGS"
     37225if test "x$ac_cv_have_decl_inet_pton" = xyes
     37226then :
     37227  ac_have_decl=1
     37228else case e in #(
     37229  e) ac_have_decl=0 ;;
     37230esac
     37231fi
     37232printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
     37233
     37234    if test $ac_cv_have_decl_inet_pton = no; then
     37235      HAVE_DECL_INET_PTON=0
     37236    fi
     37237  fi
     37238
     37239
     37240
     37241     if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
     37242  GL_COND_OBJ_INET_PTON_TRUE=
     37243  GL_COND_OBJ_INET_PTON_FALSE='#'
     37244else
     37245  GL_COND_OBJ_INET_PTON_TRUE='#'
     37246  GL_COND_OBJ_INET_PTON_FALSE=
     37247fi
     37248:
     37249    if test -z "${GL_COND_OBJ_INET_PTON_TRUE}" && test -z "${GL_COND_OBJ_INET_PTON_FALSE}"; then
     37250    GL_COND_OBJ_INET_PTON_TRUE='#'
     37251    GL_COND_OBJ_INET_PTON_FALSE='#'
     37252  fi
     37253
     37254  if test -z "$GL_COND_OBJ_INET_PTON_TRUE"; then :
     37255
     37256
     37257
     37258
     37259
     37260fi
     37261
     37262
     37263
     37264
     37265
     37266
     37267
     37268
     37269
     37270    if test "$GL_GNULIB_INET_PTON" != 1; then
     37271        if test "$GL_GNULIB_INET_PTON" = 0; then
     37272      GL_GNULIB_INET_PTON=$gl_module_indicator_condition
     37273    else
     37274      GL_GNULIB_INET_PTON="($GL_GNULIB_INET_PTON || $gl_module_indicator_condition)"
     37275    fi
     37276  fi
     37277
     37278
     37279
     37280
     37281   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     37282printf %s "checking whether byte ordering is bigendian... " >&6; }
     37283if test ${ac_cv_c_bigendian+y}
     37284then :
     37285  printf %s "(cached) " >&6
     37286else case e in #(
     37287  e) ac_cv_c_bigendian=unknown
     37288    # See if we're dealing with a universal compiler.
     37289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37290/* end confdefs.h.  */
     37291#ifndef __APPLE_CC__
     37292               not a universal capable compiler
     37293             #endif
     37294             typedef int dummy;
     37295
     37296_ACEOF
     37297if ac_fn_c_try_compile "$LINENO"
     37298then :
     37299
     37300        # Check for potential -arch flags.  It is not universal unless
     37301        # there are at least two -arch flags with different values.
     37302        ac_arch=
     37303        ac_prev=
     37304        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     37305         if test -n "$ac_prev"; then
     37306           case $ac_word in
     37307             i?86 | x86_64 | ppc | ppc64)
     37308               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     37309                 ac_arch=$ac_word
     37310               else
     37311                 ac_cv_c_bigendian=universal
     37312                 break
     37313               fi
     37314               ;;
     37315           esac
     37316           ac_prev=
     37317         elif test "x$ac_word" = "x-arch"; then
     37318           ac_prev=arch
     37319         fi
     37320       done
     37321fi
     37322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37323    if test $ac_cv_c_bigendian = unknown; then
     37324      # See if sys/param.h defines the BYTE_ORDER macro.
     37325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37326/* end confdefs.h.  */
     37327#include <sys/types.h>
     37328             #include <sys/param.h>
     37329
     37330int
     37331main (void)
     37332{
     37333#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
     37334                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
     37335                     && LITTLE_ENDIAN)
     37336              bogus endian macros
     37337             #endif
     37338
     37339  ;
     37340  return 0;
     37341}
     37342_ACEOF
     37343if ac_fn_c_try_compile "$LINENO"
     37344then :
     37345  # It does; now see whether it defined to BIG_ENDIAN or not.
     37346         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37347/* end confdefs.h.  */
     37348#include <sys/types.h>
     37349                #include <sys/param.h>
     37350
     37351int
     37352main (void)
     37353{
     37354#if BYTE_ORDER != BIG_ENDIAN
     37355                 not big endian
     37356                #endif
     37357
     37358  ;
     37359  return 0;
     37360}
     37361_ACEOF
     37362if ac_fn_c_try_compile "$LINENO"
     37363then :
     37364  ac_cv_c_bigendian=yes
     37365else case e in #(
     37366  e) ac_cv_c_bigendian=no ;;
     37367esac
     37368fi
     37369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37370fi
     37371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37372    fi
     37373    if test $ac_cv_c_bigendian = unknown; then
     37374      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     37375      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37376/* end confdefs.h.  */
     37377#include <limits.h>
     37378
     37379int
     37380main (void)
     37381{
     37382#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     37383              bogus endian macros
     37384             #endif
     37385
     37386  ;
     37387  return 0;
     37388}
     37389_ACEOF
     37390if ac_fn_c_try_compile "$LINENO"
     37391then :
     37392  # It does; now see whether it defined to _BIG_ENDIAN or not.
     37393         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37394/* end confdefs.h.  */
     37395#include <limits.h>
     37396
     37397int
     37398main (void)
     37399{
     37400#ifndef _BIG_ENDIAN
     37401                 not big endian
     37402                #endif
     37403
     37404  ;
     37405  return 0;
     37406}
     37407_ACEOF
     37408if ac_fn_c_try_compile "$LINENO"
     37409then :
     37410  ac_cv_c_bigendian=yes
     37411else case e in #(
     37412  e) ac_cv_c_bigendian=no ;;
     37413esac
     37414fi
     37415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37416fi
     37417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37418    fi
     37419    if test $ac_cv_c_bigendian = unknown; then
     37420      # Compile a test program.
     37421      if test "$cross_compiling" = yes
     37422then :
     37423  # Try to guess by grepping values from an object file.
     37424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37425/* end confdefs.h.  */
     37426unsigned short int ascii_mm[] =
     37427                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     37428                unsigned short int ascii_ii[] =
     37429                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     37430                int use_ascii (int i) {
     37431                  return ascii_mm[i] + ascii_ii[i];
     37432                }
     37433                unsigned short int ebcdic_ii[] =
     37434                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     37435                unsigned short int ebcdic_mm[] =
     37436                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     37437                int use_ebcdic (int i) {
     37438                  return ebcdic_mm[i] + ebcdic_ii[i];
     37439                }
     37440                int
     37441                main (int argc, char **argv)
     37442                {
     37443                  /* Intimidate the compiler so that it does not
     37444                     optimize the arrays away.  */
     37445                  char *p = argv[0];
     37446                  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
     37447                  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
     37448                  return use_ascii (argc) == use_ebcdic (*p);
     37449                }
     37450_ACEOF
     37451if ac_fn_c_try_link "$LINENO"
     37452then :
     37453  if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
     37454              ac_cv_c_bigendian=yes
     37455            fi
     37456            if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
     37457              if test "$ac_cv_c_bigendian" = unknown; then
     37458                ac_cv_c_bigendian=no
     37459              else
     37460                # finding both strings is unlikely to happen, but who knows?
     37461                ac_cv_c_bigendian=unknown
     37462              fi
     37463            fi
     37464fi
     37465rm -f core conftest.err conftest.$ac_objext conftest.beam \
     37466    conftest$ac_exeext conftest.$ac_ext
     37467else case e in #(
     37468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37469/* end confdefs.h.  */
     37470$ac_includes_default
     37471int
     37472main (void)
     37473{
     37474
     37475             /* Are we little or big endian?  From Harbison&Steele.  */
     37476             union
     37477             {
     37478               long int l;
     37479               char c[sizeof (long int)];
     37480             } u;
     37481             u.l = 1;
     37482             return u.c[sizeof (long int) - 1] == 1;
     37483
     37484  ;
     37485  return 0;
     37486}
     37487_ACEOF
     37488if ac_fn_c_try_run "$LINENO"
     37489then :
     37490  ac_cv_c_bigendian=no
     37491else case e in #(
     37492  e) ac_cv_c_bigendian=yes ;;
     37493esac
     37494fi
     37495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     37496  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     37497esac
     37498fi
     37499
     37500    fi ;;
     37501esac
     37502fi
     37503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     37504printf "%s\n" "$ac_cv_c_bigendian" >&6; }
     37505 case $ac_cv_c_bigendian in #(
     37506   yes)
     37507     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
     37508;; #(
     37509   no)
     37510      ;; #(
     37511   universal)
     37512
     37513printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     37514
     37515     ;; #(
     37516   *)
     37517     as_fn_error $? "unknown endianness
     37518 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
     37519 esac
     37520
     37521
     37522
     37523
     37524
     37525  HAVE_IOCTL=1
     37526  if test "$ac_cv_header_winsock2_h" = yes; then
     37527                HAVE_IOCTL=0
     37528  else
     37529    ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
     37530if test "x$ac_cv_func_ioctl" = xyes
     37531then :
     37532  printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
     37533
     37534fi
     37535
     37536                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
     37537printf %s "checking for ioctl with POSIX signature... " >&6; }
     37538if test ${gl_cv_func_ioctl_posix_signature+y}
     37539then :
     37540  printf %s "(cached) " >&6
     37541else case e in #(
     37542  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37543/* end confdefs.h.  */
     37544#include <sys/ioctl.h>
     37545              /* On some platforms, ioctl() is declared in <unistd.h>.  */
     37546              #include <unistd.h>
     37547
     37548int
     37549main (void)
     37550{
     37551extern
     37552              #ifdef __cplusplus
     37553              "C"
     37554              #endif
     37555              int ioctl (int, int, ...);
     37556
     37557  ;
     37558  return 0;
     37559}
     37560
     37561_ACEOF
     37562if ac_fn_c_try_compile "$LINENO"
     37563then :
     37564  gl_cv_func_ioctl_posix_signature=yes
     37565else case e in #(
     37566  e) gl_cv_func_ioctl_posix_signature=no ;;
     37567esac
     37568fi
     37569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37570       ;;
     37571esac
     37572fi
     37573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
     37574printf "%s\n" "$gl_cv_func_ioctl_posix_signature" >&6; }
     37575    if test $gl_cv_func_ioctl_posix_signature != yes; then
     37576      REPLACE_IOCTL=1
     37577    fi
     37578  fi
     37579
     37580
     37581     if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
     37582  GL_COND_OBJ_IOCTL_TRUE=
     37583  GL_COND_OBJ_IOCTL_FALSE='#'
     37584else
     37585  GL_COND_OBJ_IOCTL_TRUE='#'
     37586  GL_COND_OBJ_IOCTL_FALSE=
     37587fi
     37588:
     37589    if test -z "${GL_COND_OBJ_IOCTL_TRUE}" && test -z "${GL_COND_OBJ_IOCTL_FALSE}"; then
     37590    GL_COND_OBJ_IOCTL_TRUE='#'
     37591    GL_COND_OBJ_IOCTL_FALSE='#'
     37592  fi
     37593
     37594
     37595
     37596
     37597
     37598
     37599
     37600
     37601
     37602
     37603    if test "$GL_GNULIB_IOCTL" != 1; then
     37604        if test "$GL_GNULIB_IOCTL" = 0; then
     37605      GL_GNULIB_IOCTL=$gl_module_indicator_condition
     37606    else
     37607      GL_GNULIB_IOCTL="($GL_GNULIB_IOCTL || $gl_module_indicator_condition)"
     37608    fi
     37609  fi
     37610
     37611
     37612
     37613
     37614
     37615printf "%s\n" "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
     37616
     37617
     37618
     37619
     37620
     37621
     37622
     37623
     37624  if test $ac_cv_func_isblank = no; then
     37625    HAVE_ISBLANK=0
     37626  fi
     37627
     37628
     37629     if test $HAVE_ISBLANK = 0; then
     37630  GL_COND_OBJ_ISBLANK_TRUE=
     37631  GL_COND_OBJ_ISBLANK_FALSE='#'
     37632else
     37633  GL_COND_OBJ_ISBLANK_TRUE='#'
     37634  GL_COND_OBJ_ISBLANK_FALSE=
     37635fi
     37636:
     37637    if test -z "${GL_COND_OBJ_ISBLANK_TRUE}" && test -z "${GL_COND_OBJ_ISBLANK_FALSE}"; then
     37638    GL_COND_OBJ_ISBLANK_TRUE='#'
     37639    GL_COND_OBJ_ISBLANK_FALSE='#'
     37640  fi
     37641
     37642
     37643
     37644printf "%s\n" "#define GNULIB_ISBLANK $gl_module_indicator_condition" >>confdefs.h
     37645
     37646
     37647
     37648
     37649
     37650
     37651
     37652
     37653
     37654
     37655
     37656    if test "$GL_GNULIB_ISBLANK" != 1; then
     37657        if test "$GL_GNULIB_ISBLANK" = 0; then
     37658      GL_GNULIB_ISBLANK=$gl_module_indicator_condition
     37659    else
     37660      GL_GNULIB_ISBLANK="($GL_GNULIB_ISBLANK || $gl_module_indicator_condition)"
     37661    fi
     37662  fi
     37663
     37664
     37665
     37666
     37667
     37668
     37669
     37670  if test $ac_cv_func_link = no; then
     37671    HAVE_LINK=0
     37672  else
     37673    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether link obeys POSIX" >&5
     37674printf %s "checking whether link obeys POSIX... " >&6; }
     37675if test ${gl_cv_func_link_works+y}
     37676then :
     37677  printf %s "(cached) " >&6
     37678else case e in #(
     37679  e) touch conftest.a
     37680       # Assume that if we have lstat, we can also check symlinks.
     37681       if test $ac_cv_func_lstat = yes; then
     37682         ln -s conftest.a conftest.lnk
     37683       fi
     37684       if test "$cross_compiling" = yes
     37685then :
     37686  case "$host_os" in
     37687                             # Guess yes on Linux systems.
     37688            linux-* | linux) gl_cv_func_link_works="guessing yes" ;;
     37689                             # Guess yes on glibc systems.
     37690            *-gnu* | gnu*)   gl_cv_func_link_works="guessing yes" ;;
     37691                             # If we don't know, obey --enable-cross-guesses.
     37692            *)               gl_cv_func_link_works="$gl_cross_guess_normal" ;;
     37693          esac
     37694
     37695else case e in #(
     37696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37697/* end confdefs.h.  */
     37698#include <unistd.h>
     37699             #include <stdio.h>
     37700
     37701int
     37702main (void)
     37703{
     37704int result = 0;
     37705             if (!link ("conftest.a", "conftest.b/"))
     37706               result |= 1;
     37707#if HAVE_LSTAT
     37708             if (!link ("conftest.lnk/", "conftest.b"))
     37709               result |= 2;
     37710             if (rename ("conftest.a", "conftest.b"))
     37711               result |= 4;
     37712             if (!link ("conftest.b", "conftest.lnk"))
     37713               result |= 8;
     37714#endif
     37715             return result;
     37716
     37717  ;
     37718  return 0;
     37719}
     37720_ACEOF
     37721if ac_fn_c_try_run "$LINENO"
     37722then :
     37723  gl_cv_func_link_works=yes
     37724else case e in #(
     37725  e) gl_cv_func_link_works=no ;;
     37726esac
     37727fi
     37728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     37729  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     37730esac
     37731fi
     37732
     37733       rm -f conftest.a conftest.b conftest.lnk ;;
     37734esac
     37735fi
     37736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_link_works" >&5
     37737printf "%s\n" "$gl_cv_func_link_works" >&6; }
     37738    case "$gl_cv_func_link_works" in
     37739      *yes) ;;
     37740      *)
     37741        REPLACE_LINK=1
     37742        ;;
     37743    esac
     37744  fi
     37745
     37746
     37747     if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
     37748  GL_COND_OBJ_LINK_TRUE=
     37749  GL_COND_OBJ_LINK_FALSE='#'
     37750else
     37751  GL_COND_OBJ_LINK_TRUE='#'
     37752  GL_COND_OBJ_LINK_FALSE=
     37753fi
     37754:
     37755    if test -z "${GL_COND_OBJ_LINK_TRUE}" && test -z "${GL_COND_OBJ_LINK_FALSE}"; then
     37756    GL_COND_OBJ_LINK_TRUE='#'
     37757    GL_COND_OBJ_LINK_FALSE='#'
     37758  fi
     37759
     37760
     37761
     37762
     37763
     37764
     37765
     37766
     37767
     37768
     37769    if test "$GL_GNULIB_LINK" != 1; then
     37770        if test "$GL_GNULIB_LINK" = 0; then
     37771      GL_GNULIB_LINK=$gl_module_indicator_condition
     37772    else
     37773      GL_GNULIB_LINK="($GL_GNULIB_LINK || $gl_module_indicator_condition)"
     37774    fi
     37775  fi
     37776
     37777
     37778
     37779
     37780
     37781printf "%s\n" "#define GNULIB_TEST_LINK 1" >>confdefs.h
     37782
     37783
     37784
     37785
     37786
     37787     if test "$ac_cv_header_winsock2_h" = yes; then
     37788  GL_COND_OBJ_LISTEN_TRUE=
     37789  GL_COND_OBJ_LISTEN_FALSE='#'
     37790else
     37791  GL_COND_OBJ_LISTEN_TRUE='#'
     37792  GL_COND_OBJ_LISTEN_FALSE=
     37793fi
     37794:
     37795    if test -z "${GL_COND_OBJ_LISTEN_TRUE}" && test -z "${GL_COND_OBJ_LISTEN_FALSE}"; then
     37796    GL_COND_OBJ_LISTEN_TRUE='#'
     37797    GL_COND_OBJ_LISTEN_FALSE='#'
     37798  fi
     37799
     37800
     37801
     37802
     37803
     37804
     37805
     37806
     37807
     37808
     37809    if test "$GL_GNULIB_LISTEN" != 1; then
     37810        if test "$GL_GNULIB_LISTEN" = 0; then
     37811      GL_GNULIB_LISTEN=$gl_module_indicator_condition
     37812    else
     37813      GL_GNULIB_LISTEN="($GL_GNULIB_LISTEN || $gl_module_indicator_condition)"
     37814    fi
     37815  fi
     37816
     37817
     37818
     37819
     37820
     37821printf "%s\n" "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
     37822
     37823
     37824
     37825
     37826
     37827
     37828
     37829
     37830
     37831
     37832
     37833  if test $HAVE_LOCALE_T = 1; then
     37834
     37835    gl_func_newlocale="$ac_cv_func_newlocale"
     37836    gl_func_duplocale="$ac_cv_func_duplocale"
     37837    gl_func_freelocale="$ac_cv_func_freelocale"
     37838  else
     37839            gl_func_newlocale=no
     37840    gl_func_duplocale=no
     37841    gl_func_freelocale=no
     37842  fi
     37843  if test $gl_func_newlocale != yes; then
     37844    HAVE_NEWLOCALE=0
     37845  fi
     37846  if test $gl_func_duplocale != yes; then
     37847    HAVE_DUPLOCALE=0
     37848  fi
     37849  if test $gl_func_freelocale != yes; then
     37850    HAVE_FREELOCALE=0
     37851  fi
     37852  if test $gt_localename_enhances_locale_funcs = yes; then
     37853    REPLACE_NEWLOCALE=1
     37854    REPLACE_DUPLOCALE=1
     37855    REPLACE_FREELOCALE=1
     37856  fi
     37857
     37858
     37859
     37860
     37861
     37862
     37863
     37864
     37865
     37866
     37867    if test "$GL_GNULIB_LOCALENAME" != 1; then
     37868        if test "$GL_GNULIB_LOCALENAME" = 0; then
     37869      GL_GNULIB_LOCALENAME=$gl_module_indicator_condition
     37870    else
     37871      GL_GNULIB_LOCALENAME="($GL_GNULIB_LOCALENAME || $gl_module_indicator_condition)"
     37872    fi
     37873  fi
     37874
     37875
     37876
     37877
     37878
     37879printf "%s\n" "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h
     37880
     37881
     37882
     37883
     37884
     37885
     37886
     37887
     37888
     37889
     37890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
     37891printf %s "checking whether lseek detects pipes... " >&6; }
     37892if test ${gl_cv_func_lseek_pipe+y}
     37893then :
     37894  printf %s "(cached) " >&6
     37895else case e in #(
     37896  e) case "$host_os" in
     37897       mingw*)
     37898                                                               gl_cv_func_lseek_pipe=no
     37899         ;;
     37900       *)
     37901         if test $cross_compiling = no; then
     37902           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37903/* end confdefs.h.  */
     37904
     37905#include <sys/types.h> /* for off_t */
     37906#include <stdio.h> /* for SEEK_CUR */
     37907#if HAVE_UNISTD_H
     37908# include <unistd.h>
     37909#else /* on Windows with MSVC */
     37910# include <io.h>
     37911#endif
     37912
     37913
     37914$gl_mda_defines
     37915
     37916int
     37917main (void)
     37918{
     37919
     37920  /* Exit with success only if stdin is seekable.  */
     37921  return lseek (0, (off_t)0, SEEK_CUR) < 0;
     37922
     37923  ;
     37924  return 0;
     37925}
     37926_ACEOF
     37927if ac_fn_c_try_link "$LINENO"
     37928then :
     37929  if test -s conftest$ac_exeext \
     37930                 && ./conftest$ac_exeext < conftest.$ac_ext \
     37931                 && test 1 = "`echo hi \
     37932                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
     37933                gl_cv_func_lseek_pipe=yes
     37934              else
     37935                gl_cv_func_lseek_pipe=no
     37936              fi
     37937
     37938else case e in #(
     37939  e) gl_cv_func_lseek_pipe=no ;;
     37940esac
     37941fi
     37942rm -f core conftest.err conftest.$ac_objext conftest.beam \
     37943    conftest$ac_exeext conftest.$ac_ext
     37944         else
     37945           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     37946/* end confdefs.h.  */
     37947
     37948#if defined __BEOS__
     37949/* BeOS mistakenly return 0 when trying to seek on pipes.  */
     37950  Choke me.
     37951#endif
     37952_ACEOF
     37953if ac_fn_c_try_compile "$LINENO"
     37954then :
     37955  gl_cv_func_lseek_pipe=yes
     37956else case e in #(
     37957  e) gl_cv_func_lseek_pipe=no ;;
     37958esac
     37959fi
     37960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     37961         fi
     37962         ;;
     37963     esac
     37964     ;;
     37965esac
     37966fi
     37967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
     37968printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; }
     37969  if test "$gl_cv_func_lseek_pipe" = no; then
     37970    REPLACE_LSEEK=1
     37971
     37972printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
     37973
     37974  fi
     37975
     37976
     37977  if test $WINDOWS_64_BIT_OFF_T = 1; then
     37978    REPLACE_LSEEK=1
     37979  fi
     37980
     37981    case $host_os in
     37982    darwin*)
     37983      REPLACE_LSEEK=1;;
     37984  esac
     37985
     37986
     37987     if test $REPLACE_LSEEK = 1; then
     37988  GL_COND_OBJ_LSEEK_TRUE=
     37989  GL_COND_OBJ_LSEEK_FALSE='#'
     37990else
     37991  GL_COND_OBJ_LSEEK_TRUE='#'
     37992  GL_COND_OBJ_LSEEK_FALSE=
     37993fi
     37994:
     37995    if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then
     37996    GL_COND_OBJ_LSEEK_TRUE='#'
     37997    GL_COND_OBJ_LSEEK_FALSE='#'
     37998  fi
     37999
     38000
     38001
     38002
     38003
     38004
     38005
     38006
     38007
     38008
     38009    if test "$GL_GNULIB_LSEEK" != 1; then
     38010        if test "$GL_GNULIB_LSEEK" = 0; then
     38011      GL_GNULIB_LSEEK=$gl_module_indicator_condition
     38012    else
     38013      GL_GNULIB_LSEEK="($GL_GNULIB_LSEEK || $gl_module_indicator_condition)"
     38014    fi
     38015  fi
     38016
     38017
     38018
     38019
     38020
     38021printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
     38022
     38023
     38024
     38025
     38026
     38027
     38028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     38029printf %s "checking for a traditional french locale... " >&6; }
     38030if test ${gt_cv_locale_fr+y}
     38031then :
     38032  printf %s "(cached) " >&6
     38033else case e in #(
     38034  e)
     38035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38036/* end confdefs.h.  */
     38037
     38038#include <locale.h>
     38039#include <time.h>
     38040#if HAVE_LANGINFO_CODESET
     38041# include <langinfo.h>
     38042#endif
     38043#include <stdlib.h>
     38044#include <string.h>
     38045struct tm t;
     38046char buf[16];
     38047int main () {
     38048  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     38049     imitates locale dependent behaviour by looking at the environment
     38050     variables, and all locales use the UTF-8 encoding.  */
     38051#if defined __BEOS__ || defined __HAIKU__
     38052  return 1;
     38053#else
     38054  /* Check whether the given locale name is recognized by the system.  */
     38055# if defined _WIN32 && !defined __CYGWIN__
     38056  /* On native Windows, setlocale(category, "") looks at the system settings,
     38057     not at the environment variables.  Also, when an encoding suffix such
     38058     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     38059     category of the locale to "C".  */
     38060  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     38061      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     38062    return 1;
     38063# else
     38064  if (setlocale (LC_ALL, "") == NULL) return 1;
     38065# endif
     38066  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     38067     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     38068     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     38069     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     38070     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     38071     some unit tests fail.
     38072     On MirBSD 10, when an unsupported locale is specified, setlocale()
     38073     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     38074# if HAVE_LANGINFO_CODESET
     38075  {
     38076    const char *cs = nl_langinfo (CODESET);
     38077    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     38078        || strcmp (cs, "UTF-8") == 0)
     38079      return 1;
     38080  }
     38081# endif
     38082# ifdef __CYGWIN__
     38083  /* On Cygwin, avoid locale names without encoding suffix, because the
     38084     locale_charset() function relies on the encoding suffix.  Note that
     38085     LC_ALL is set on the command line.  */
     38086  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     38087# endif
     38088  /* Check whether in the abbreviation of the second month, the second
     38089     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     38090     one byte long. This excludes the UTF-8 encoding.  */
     38091  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     38092  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     38093# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     38094  /* Check whether the decimal separator is a comma.
     38095     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     38096     are nl_langinfo(RADIXCHAR) are both ".".  */
     38097  if (localeconv () ->decimal_point[0] != ',') return 1;
     38098# endif
     38099  return 0;
     38100#endif
     38101}
     38102
     38103_ACEOF
     38104    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     38105  (eval $ac_link) 2>&5
     38106  ac_status=$?
     38107  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     38108  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     38109      case "$host_os" in
     38110        # Handle native Windows specially, because there setlocale() interprets
     38111        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     38112        # "fr" or "fra" as "French" or "French_France.1252",
     38113        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     38114        # "ja" as "Japanese" or "Japanese_Japan.932",
     38115        # and similar.
     38116        mingw*)
     38117          # Test for the native Windows locale name.
     38118          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38119            gt_cv_locale_fr=French_France.1252
     38120          else
     38121            # None found.
     38122            gt_cv_locale_fr=none
     38123          fi
     38124          ;;
     38125        *)
     38126          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     38127          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     38128          # configure script would override the LC_ALL setting. Likewise for
     38129          # LC_CTYPE, which is also set at the beginning of the configure script.
     38130          # Test for the usual locale name.
     38131          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38132            gt_cv_locale_fr=fr_FR
     38133          else
     38134            # Test for the locale name with explicit encoding suffix.
     38135            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38136              gt_cv_locale_fr=fr_FR.ISO-8859-1
     38137            else
     38138              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     38139              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38140                gt_cv_locale_fr=fr_FR.ISO8859-1
     38141              else
     38142                # Test for the HP-UX locale name.
     38143                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38144                  gt_cv_locale_fr=fr_FR.iso88591
     38145                else
     38146                  # Test for the Solaris 7 locale name.
     38147                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38148                    gt_cv_locale_fr=fr
     38149                  else
     38150                    # None found.
     38151                    gt_cv_locale_fr=none
     38152                  fi
     38153                fi
     38154              fi
     38155            fi
     38156          fi
     38157          ;;
     38158      esac
     38159    fi
     38160    rm -fr conftest*
     38161   ;;
     38162esac
     38163fi
     38164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     38165printf "%s\n" "$gt_cv_locale_fr" >&6; }
     38166  LOCALE_FR=$gt_cv_locale_fr
     38167
     38168
     38169
     38170
     38171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     38172printf %s "checking for a french Unicode locale... " >&6; }
     38173if test ${gt_cv_locale_fr_utf8+y}
     38174then :
     38175  printf %s "(cached) " >&6
     38176else case e in #(
     38177  e)
     38178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38179/* end confdefs.h.  */
     38180
     38181#include <locale.h>
     38182#include <time.h>
     38183#if HAVE_LANGINFO_CODESET
     38184# include <langinfo.h>
     38185#endif
     38186#include <stdlib.h>
     38187#include <string.h>
     38188struct tm t;
     38189char buf[16];
     38190int main () {
     38191  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     38192     imitates locale dependent behaviour by looking at the environment
     38193     variables, and all locales use the UTF-8 encoding.  */
     38194#if !(defined __BEOS__ || defined __HAIKU__)
     38195  /* Check whether the given locale name is recognized by the system.  */
     38196# if defined _WIN32 && !defined __CYGWIN__
     38197  /* On native Windows, setlocale(category, "") looks at the system settings,
     38198     not at the environment variables.  Also, when an encoding suffix such
     38199     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     38200     category of the locale to "C".  */
     38201  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     38202      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     38203    return 1;
     38204# else
     38205  if (setlocale (LC_ALL, "") == NULL) return 1;
     38206# endif
     38207  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     38208     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     38209     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     38210     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     38211     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     38212     some unit tests fail.  */
     38213# if HAVE_LANGINFO_CODESET
     38214  {
     38215    const char *cs = nl_langinfo (CODESET);
     38216    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     38217      return 1;
     38218  }
     38219# endif
     38220# ifdef __CYGWIN__
     38221  /* On Cygwin, avoid locale names without encoding suffix, because the
     38222     locale_charset() function relies on the encoding suffix.  Note that
     38223     LC_ALL is set on the command line.  */
     38224  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     38225# endif
     38226  /* Check whether in the abbreviation of the second month, the second
     38227     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     38228     two bytes long, with UTF-8 encoding.  */
     38229  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     38230  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     38231      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     38232    return 1;
     38233#endif
     38234#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     38235  /* Check whether the decimal separator is a comma.
     38236     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     38237     are nl_langinfo(RADIXCHAR) are both ".".  */
     38238  if (localeconv () ->decimal_point[0] != ',') return 1;
     38239#endif
     38240  return 0;
     38241}
     38242
     38243_ACEOF
     38244    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     38245  (eval $ac_link) 2>&5
     38246  ac_status=$?
     38247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     38248  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     38249      case "$host_os" in
     38250        # Handle native Windows specially, because there setlocale() interprets
     38251        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     38252        # "fr" or "fra" as "French" or "French_France.1252",
     38253        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     38254        # "ja" as "Japanese" or "Japanese_Japan.932",
     38255        # and similar.
     38256        mingw*)
     38257          # Test for the hypothetical native Windows locale name.
     38258          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38259            gt_cv_locale_fr_utf8=French_France.65001
     38260          else
     38261            # None found.
     38262            gt_cv_locale_fr_utf8=none
     38263          fi
     38264          ;;
     38265        *)
     38266          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     38267          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     38268          # configure script would override the LC_ALL setting. Likewise for
     38269          # LC_CTYPE, which is also set at the beginning of the configure script.
     38270          # Test for the usual locale name.
     38271          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38272            gt_cv_locale_fr_utf8=fr_FR
     38273          else
     38274            # Test for the locale name with explicit encoding suffix.
     38275            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38276              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     38277            else
     38278              # Test for the Solaris 7 locale name.
     38279              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38280                gt_cv_locale_fr_utf8=fr.UTF-8
     38281              else
     38282                # None found.
     38283                gt_cv_locale_fr_utf8=none
     38284              fi
     38285            fi
     38286          fi
     38287          ;;
     38288      esac
     38289    fi
     38290    rm -fr conftest*
     38291   ;;
     38292esac
     38293fi
     38294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     38295printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     38296  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     38297
     38298
     38299
     38300
     38301
     38302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
     38303printf %s "checking for a traditional japanese locale... " >&6; }
     38304if test ${gt_cv_locale_ja+y}
     38305then :
     38306  printf %s "(cached) " >&6
     38307else case e in #(
     38308  e)
     38309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38310/* end confdefs.h.  */
     38311
     38312#include <locale.h>
     38313#include <time.h>
     38314#if HAVE_LANGINFO_CODESET
     38315# include <langinfo.h>
     38316#endif
     38317#include <stdlib.h>
     38318#include <string.h>
     38319struct tm t;
     38320char buf[16];
     38321int main ()
     38322{
     38323  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     38324     imitates locale dependent behaviour by looking at the environment
     38325     variables, and all locales use the UTF-8 encoding.  */
     38326#if defined __BEOS__ || defined __HAIKU__
     38327  return 1;
     38328#else
     38329  /* Check whether the given locale name is recognized by the system.  */
     38330# if defined _WIN32 && !defined __CYGWIN__
     38331  /* On native Windows, setlocale(category, "") looks at the system settings,
     38332     not at the environment variables.  Also, when an encoding suffix such
     38333     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     38334     category of the locale to "C".  */
     38335  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     38336      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     38337    return 1;
     38338# else
     38339  if (setlocale (LC_ALL, "") == NULL) return 1;
     38340# endif
     38341  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     38342     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     38343     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     38344     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     38345     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     38346     some unit tests fail.
     38347     On MirBSD 10, when an unsupported locale is specified, setlocale()
     38348     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     38349# if HAVE_LANGINFO_CODESET
     38350  {
     38351    const char *cs = nl_langinfo (CODESET);
     38352    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     38353        || strcmp (cs, "UTF-8") == 0)
     38354      return 1;
     38355  }
     38356# endif
     38357# ifdef __CYGWIN__
     38358  /* On Cygwin, avoid locale names without encoding suffix, because the
     38359     locale_charset() function relies on the encoding suffix.  Note that
     38360     LC_ALL is set on the command line.  */
     38361  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     38362# endif
     38363  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
     38364     on Cygwin 1.5.x.  */
     38365  if (MB_CUR_MAX == 1)
     38366    return 1;
     38367  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     38368     This excludes the UTF-8 encoding (except on MirBSD).  */
     38369  {
     38370    const char *p;
     38371    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     38372    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     38373    for (p = buf; *p != '\0'; p++)
     38374      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     38375        return 1;
     38376  }
     38377  return 0;
     38378#endif
     38379}
     38380
     38381_ACEOF
     38382    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     38383  (eval $ac_link) 2>&5
     38384  ac_status=$?
     38385  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     38386  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     38387      case "$host_os" in
     38388        # Handle native Windows specially, because there setlocale() interprets
     38389        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     38390        # "fr" or "fra" as "French" or "French_France.1252",
     38391        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     38392        # "ja" as "Japanese" or "Japanese_Japan.932",
     38393        # and similar.
     38394        mingw*)
     38395          # Note that on native Windows, the Japanese locale is
     38396          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
     38397          # cannot use it here.
     38398          gt_cv_locale_ja=none
     38399          ;;
     38400        *)
     38401          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     38402          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     38403          # configure script would override the LC_ALL setting. Likewise for
     38404          # LC_CTYPE, which is also set at the beginning of the configure script.
     38405          # Test for the AIX locale name.
     38406          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38407            gt_cv_locale_ja=ja_JP
     38408          else
     38409            # Test for the locale name with explicit encoding suffix.
     38410            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38411              gt_cv_locale_ja=ja_JP.EUC-JP
     38412            else
     38413              # Test for the HP-UX, OSF/1, NetBSD locale name.
     38414              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38415                gt_cv_locale_ja=ja_JP.eucJP
     38416              else
     38417                # Test for the IRIX, FreeBSD locale name.
     38418                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38419                  gt_cv_locale_ja=ja_JP.EUC
     38420                else
     38421                  # Test for the Solaris 7 locale name.
     38422                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38423                    gt_cv_locale_ja=ja
     38424                  else
     38425                    # Special test for NetBSD 1.6.
     38426                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
     38427                      gt_cv_locale_ja=ja_JP.eucJP
     38428                    else
     38429                      # None found.
     38430                      gt_cv_locale_ja=none
     38431                    fi
     38432                  fi
     38433                fi
     38434              fi
     38435            fi
     38436          fi
     38437          ;;
     38438      esac
     38439    fi
     38440    rm -fr conftest*
     38441   ;;
     38442esac
     38443fi
     38444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
     38445printf "%s\n" "$gt_cv_locale_ja" >&6; }
     38446  LOCALE_JA=$gt_cv_locale_ja
     38447
     38448
     38449
     38450
     38451
     38452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
     38453printf %s "checking for a transitional chinese locale... " >&6; }
     38454if test ${gt_cv_locale_zh_CN+y}
     38455then :
     38456  printf %s "(cached) " >&6
     38457else case e in #(
     38458  e)
     38459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38460/* end confdefs.h.  */
     38461
     38462#include <locale.h>
     38463#include <stdlib.h>
     38464#include <time.h>
     38465#if HAVE_LANGINFO_CODESET
     38466# include <langinfo.h>
     38467#endif
     38468#include <stdlib.h>
     38469#include <string.h>
     38470struct tm t;
     38471char buf[16];
     38472int main ()
     38473{
     38474  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     38475     imitates locale dependent behaviour by looking at the environment
     38476     variables, and all locales use the UTF-8 encoding.  */
     38477#if defined __BEOS__ || defined __HAIKU__
     38478  return 1;
     38479#else
     38480  /* Check whether the given locale name is recognized by the system.  */
     38481# if defined _WIN32 && !defined __CYGWIN__
     38482  /* On native Windows, setlocale(category, "") looks at the system settings,
     38483     not at the environment variables.  Also, when an encoding suffix such
     38484     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     38485     category of the locale to "C".  */
     38486  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     38487      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     38488    return 1;
     38489# else
     38490  if (setlocale (LC_ALL, "") == NULL) return 1;
     38491# endif
     38492  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     38493     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     38494     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     38495     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     38496     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     38497     some unit tests fail.
     38498     On MirBSD 10, when an unsupported locale is specified, setlocale()
     38499     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     38500# if HAVE_LANGINFO_CODESET
     38501  {
     38502    const char *cs = nl_langinfo (CODESET);
     38503    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     38504        || strcmp (cs, "UTF-8") == 0)
     38505      return 1;
     38506  }
     38507# endif
     38508# ifdef __CYGWIN__
     38509  /* On Cygwin, avoid locale names without encoding suffix, because the
     38510     locale_charset() function relies on the encoding suffix.  Note that
     38511     LC_ALL is set on the command line.  */
     38512  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     38513# endif
     38514  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     38515     This excludes the UTF-8 encoding (except on MirBSD).  */
     38516  {
     38517    const char *p;
     38518    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     38519    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     38520    for (p = buf; *p != '\0'; p++)
     38521      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     38522        return 1;
     38523  }
     38524  /* Check whether a typical GB18030 multibyte sequence is recognized as a
     38525     single wide character.  This excludes the GB2312 and GBK encodings.  */
     38526  if (mblen ("\203\062\332\066", 5) != 4)
     38527    return 1;
     38528  return 0;
     38529#endif
     38530}
     38531
     38532_ACEOF
     38533    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     38534  (eval $ac_link) 2>&5
     38535  ac_status=$?
     38536  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     38537  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     38538      case "$host_os" in
     38539        # Handle native Windows specially, because there setlocale() interprets
     38540        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     38541        # "fr" or "fra" as "French" or "French_France.1252",
     38542        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     38543        # "ja" as "Japanese" or "Japanese_Japan.932",
     38544        # and similar.
     38545        mingw*)
     38546          # Test for the hypothetical native Windows locale name.
     38547          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38548            gt_cv_locale_zh_CN=Chinese_China.54936
     38549          else
     38550            # None found.
     38551            gt_cv_locale_zh_CN=none
     38552          fi
     38553          ;;
     38554        solaris2.8)
     38555          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
     38556          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
     38557          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
     38558          gt_cv_locale_zh_CN=none
     38559          ;;
     38560        *)
     38561          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     38562          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     38563          # configure script would override the LC_ALL setting. Likewise for
     38564          # LC_CTYPE, which is also set at the beginning of the configure script.
     38565          # Test for the locale name without encoding suffix.
     38566          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38567            gt_cv_locale_zh_CN=zh_CN
     38568          else
     38569            # Test for the locale name with explicit encoding suffix.
     38570            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38571              gt_cv_locale_zh_CN=zh_CN.GB18030
     38572            else
     38573              # None found.
     38574              gt_cv_locale_zh_CN=none
     38575            fi
     38576          fi
     38577          ;;
     38578      esac
     38579    else
     38580      # If there was a link error, due to mblen(), the system is so old that
     38581      # it certainly doesn't have a chinese locale.
     38582      gt_cv_locale_zh_CN=none
     38583    fi
     38584    rm -fr conftest*
     38585   ;;
     38586esac
     38587fi
     38588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
     38589printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
     38590  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
     38591
     38592
     38593
     38594
     38595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     38596printf %s "checking for a french Unicode locale... " >&6; }
     38597if test ${gt_cv_locale_fr_utf8+y}
     38598then :
     38599  printf %s "(cached) " >&6
     38600else case e in #(
     38601  e)
     38602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38603/* end confdefs.h.  */
     38604
     38605#include <locale.h>
     38606#include <time.h>
     38607#if HAVE_LANGINFO_CODESET
     38608# include <langinfo.h>
     38609#endif
     38610#include <stdlib.h>
     38611#include <string.h>
     38612struct tm t;
     38613char buf[16];
     38614int main () {
     38615  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     38616     imitates locale dependent behaviour by looking at the environment
     38617     variables, and all locales use the UTF-8 encoding.  */
     38618#if !(defined __BEOS__ || defined __HAIKU__)
     38619  /* Check whether the given locale name is recognized by the system.  */
     38620# if defined _WIN32 && !defined __CYGWIN__
     38621  /* On native Windows, setlocale(category, "") looks at the system settings,
     38622     not at the environment variables.  Also, when an encoding suffix such
     38623     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     38624     category of the locale to "C".  */
     38625  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     38626      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     38627    return 1;
     38628# else
     38629  if (setlocale (LC_ALL, "") == NULL) return 1;
     38630# endif
     38631  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     38632     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     38633     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     38634     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     38635     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     38636     some unit tests fail.  */
     38637# if HAVE_LANGINFO_CODESET
     38638  {
     38639    const char *cs = nl_langinfo (CODESET);
     38640    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     38641      return 1;
     38642  }
     38643# endif
     38644# ifdef __CYGWIN__
     38645  /* On Cygwin, avoid locale names without encoding suffix, because the
     38646     locale_charset() function relies on the encoding suffix.  Note that
     38647     LC_ALL is set on the command line.  */
     38648  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     38649# endif
     38650  /* Check whether in the abbreviation of the second month, the second
     38651     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     38652     two bytes long, with UTF-8 encoding.  */
     38653  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     38654  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     38655      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     38656    return 1;
     38657#endif
     38658#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     38659  /* Check whether the decimal separator is a comma.
     38660     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     38661     are nl_langinfo(RADIXCHAR) are both ".".  */
     38662  if (localeconv () ->decimal_point[0] != ',') return 1;
     38663#endif
     38664  return 0;
     38665}
     38666
     38667_ACEOF
     38668    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     38669  (eval $ac_link) 2>&5
     38670  ac_status=$?
     38671  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     38672  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     38673      case "$host_os" in
     38674        # Handle native Windows specially, because there setlocale() interprets
     38675        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     38676        # "fr" or "fra" as "French" or "French_France.1252",
     38677        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     38678        # "ja" as "Japanese" or "Japanese_Japan.932",
     38679        # and similar.
     38680        mingw*)
     38681          # Test for the hypothetical native Windows locale name.
     38682          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38683            gt_cv_locale_fr_utf8=French_France.65001
     38684          else
     38685            # None found.
     38686            gt_cv_locale_fr_utf8=none
     38687          fi
     38688          ;;
     38689        *)
     38690          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     38691          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     38692          # configure script would override the LC_ALL setting. Likewise for
     38693          # LC_CTYPE, which is also set at the beginning of the configure script.
     38694          # Test for the usual locale name.
     38695          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38696            gt_cv_locale_fr_utf8=fr_FR
     38697          else
     38698            # Test for the locale name with explicit encoding suffix.
     38699            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38700              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     38701            else
     38702              # Test for the Solaris 7 locale name.
     38703              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     38704                gt_cv_locale_fr_utf8=fr.UTF-8
     38705              else
     38706                # None found.
     38707                gt_cv_locale_fr_utf8=none
     38708              fi
     38709            fi
     38710          fi
     38711          ;;
     38712      esac
     38713    fi
     38714    rm -fr conftest*
     38715   ;;
     38716esac
     38717fi
     38718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     38719printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     38720  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     38721
     38722
     38723
     38724
     38725
     38726
     38727
     38728
     38729
     38730
     38731
     38732
     38733
     38734
     38735
     38736 nanosleep_save_libs=$LIBS
     38737
     38738 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
     38739 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
     38740 LIB_NANOSLEEP=
     38741
     38742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
     38743printf %s "checking for library containing nanosleep... " >&6; }
     38744if test ${ac_cv_search_nanosleep+y}
     38745then :
     38746  printf %s "(cached) " >&6
     38747else case e in #(
     38748  e) ac_func_search_save_LIBS=$LIBS
     38749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38750/* end confdefs.h.  */
     38751
     38752/* Override any GCC internal prototype to avoid an error.
     38753   Use char because int might match the return type of a GCC
     38754   builtin and then its argument prototype would still apply.
     38755   The 'extern "C"' is for builds by C++ compilers;
     38756   although this is not generally supported in C code, supporting it here
     38757   has little cost and some practical benefit (sr 110532).  */
     38758#ifdef __cplusplus
     38759extern "C"
     38760#endif
     38761char nanosleep (void);
     38762int
     38763main (void)
     38764{
     38765return nanosleep ();
     38766  ;
     38767  return 0;
     38768}
     38769_ACEOF
     38770for ac_lib in '' rt posix4
     38771do
     38772  if test -z "$ac_lib"; then
     38773    ac_res="none required"
     38774  else
     38775    ac_res=-l$ac_lib
     38776    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     38777  fi
     38778  if ac_fn_c_try_link "$LINENO"
     38779then :
     38780  ac_cv_search_nanosleep=$ac_res
     38781fi
     38782rm -f core conftest.err conftest.$ac_objext conftest.beam \
     38783    conftest$ac_exeext
     38784  if test ${ac_cv_search_nanosleep+y}
     38785then :
     38786  break
     38787fi
     38788done
     38789if test ${ac_cv_search_nanosleep+y}
     38790then :
     38791
     38792else case e in #(
     38793  e) ac_cv_search_nanosleep=no ;;
     38794esac
     38795fi
     38796rm conftest.$ac_ext
     38797LIBS=$ac_func_search_save_LIBS ;;
     38798esac
     38799fi
     38800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
     38801printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
     38802ac_res=$ac_cv_search_nanosleep
     38803if test "$ac_res" != no
     38804then :
     38805  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     38806  test "$ac_cv_search_nanosleep" = "none required" ||
     38807                 LIB_NANOSLEEP=$ac_cv_search_nanosleep
     38808fi
     38809
     38810 if test "x$ac_cv_search_nanosleep" != xno; then
     38811
     38812
     38813   if test $APPLE_UNIVERSAL_BUILD = 1; then
     38814     # A universal build on Apple Mac OS X platforms.
     38815     # The test result would be 'no (mishandles large arguments)' in 64-bit
     38816     # mode but 'yes' in 32-bit mode. But we need a configuration result that
     38817     # is valid in both modes.
     38818     gl_cv_func_nanosleep='no (mishandles large arguments)'
     38819   fi
     38820
     38821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
     38822printf %s "checking for working nanosleep... " >&6; }
     38823if test ${gl_cv_func_nanosleep+y}
     38824then :
     38825  printf %s "(cached) " >&6
     38826else case e in #(
     38827  e)
     38828     if test "$cross_compiling" = yes
     38829then :
     38830  case "$host_os" in
     38831          linux*) # Guess it halfway works when the kernel is Linux.
     38832            gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
     38833          mingw*) # Guess no on native Windows.
     38834            gl_cv_func_nanosleep='guessing no' ;;
     38835          *)      # If we don't know, obey --enable-cross-guesses.
     38836            gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
     38837        esac
     38838
     38839else case e in #(
     38840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38841/* end confdefs.h.  */
     38842
     38843          #include <errno.h>
     38844          #include <limits.h>
     38845          #include <signal.h>
     38846          #include <time.h>
     38847          #include <unistd.h>
     38848          #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
     38849          #define TYPE_MAXIMUM(t) \
     38850            ((t) (! TYPE_SIGNED (t) \
     38851                  ? (t) -1 \
     38852                  : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
     38853
     38854          #if HAVE_DECL_ALARM
     38855          static void
     38856          check_for_SIGALRM (int sig)
     38857          {
     38858            if (sig != SIGALRM)
     38859              _exit (1);
     38860          }
     38861          #endif
     38862
     38863          int
     38864          main ()
     38865          {
     38866            static struct timespec ts_sleep;
     38867            static struct timespec ts_remaining;
     38868            /* Test for major problems first.  */
     38869            if (! nanosleep)
     38870              return 2;
     38871            ts_sleep.tv_sec = 0;
     38872            ts_sleep.tv_nsec = 1;
     38873            #if HAVE_DECL_ALARM
     38874            {
     38875              static struct sigaction act;
     38876              act.sa_handler = check_for_SIGALRM;
     38877              sigemptyset (&act.sa_mask);
     38878              sigaction (SIGALRM, &act, NULL);
     38879              alarm (1);
     38880              if (nanosleep (&ts_sleep, NULL) != 0)
     38881                return 3;
     38882              /* Test for a minor problem: the handling of large arguments.  */
     38883              ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
     38884              ts_sleep.tv_nsec = 999999999;
     38885              alarm (1);
     38886              if (nanosleep (&ts_sleep, &ts_remaining) != -1)
     38887                return 4;
     38888              if (errno != EINTR)
     38889                return 5;
     38890              if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
     38891                return 6;
     38892            }
     38893            #else /* A simpler test for native Windows.  */
     38894            if (nanosleep (&ts_sleep, &ts_remaining) < 0)
     38895              return 3;
     38896            /* Test for 32-bit mingw bug: negative nanosecond values do not
     38897               cause failure.  */
     38898            ts_sleep.tv_sec = 1;
     38899            ts_sleep.tv_nsec = -1;
     38900            if (nanosleep (&ts_sleep, &ts_remaining) != -1)
     38901              return 7;
     38902            #endif
     38903            return 0;
     38904          }
     38905_ACEOF
     38906if ac_fn_c_try_run "$LINENO"
     38907then :
     38908  gl_cv_func_nanosleep=yes
     38909else case e in #(
     38910  e) case $? in
     38911        4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)' ;;
     38912        7)     gl_cv_func_nanosleep='no (mishandles negative tv_nsec)' ;;
     38913        *)     gl_cv_func_nanosleep=no ;;
     38914        esac ;;
     38915esac
     38916fi
     38917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     38918  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     38919esac
     38920fi
     38921
     38922     ;;
     38923esac
     38924fi
     38925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
     38926printf "%s\n" "$gl_cv_func_nanosleep" >&6; }
     38927   case "$gl_cv_func_nanosleep" in
     38928     *yes)
     38929       REPLACE_NANOSLEEP=0
     38930       ;;
     38931     *)
     38932       REPLACE_NANOSLEEP=1
     38933       case "$gl_cv_func_nanosleep" in
     38934         *"mishandles large arguments"*)
     38935
     38936printf "%s\n" "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
     38937
     38938           ;;
     38939       esac
     38940       ;;
     38941   esac
     38942 else
     38943   HAVE_NANOSLEEP=0
     38944 fi
     38945 LIBS=$nanosleep_save_libs
     38946
     38947
     38948     if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
     38949  GL_COND_OBJ_NANOSLEEP_TRUE=
     38950  GL_COND_OBJ_NANOSLEEP_FALSE='#'
     38951else
     38952  GL_COND_OBJ_NANOSLEEP_TRUE='#'
     38953  GL_COND_OBJ_NANOSLEEP_FALSE=
     38954fi
     38955:
     38956    if test -z "${GL_COND_OBJ_NANOSLEEP_TRUE}" && test -z "${GL_COND_OBJ_NANOSLEEP_FALSE}"; then
     38957    GL_COND_OBJ_NANOSLEEP_TRUE='#'
     38958    GL_COND_OBJ_NANOSLEEP_FALSE='#'
     38959  fi
     38960
     38961
     38962
     38963
     38964
     38965
     38966
     38967
     38968
     38969
     38970    if test "$GL_GNULIB_NANOSLEEP" != 1; then
     38971        if test "$GL_GNULIB_NANOSLEEP" = 0; then
     38972      GL_GNULIB_NANOSLEEP=$gl_module_indicator_condition
     38973    else
     38974      GL_GNULIB_NANOSLEEP="($GL_GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
     38975    fi
     38976  fi
     38977
     38978
     38979
     38980
     38981
     38982printf "%s\n" "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
     38983
     38984
     38985
     38986
     38987
     38988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
     38989printf %s "checking whether <netinet/in.h> is self-contained... " >&6; }
     38990if test ${gl_cv_header_netinet_in_h_selfcontained+y}
     38991then :
     38992  printf %s "(cached) " >&6
     38993else case e in #(
     38994  e)
     38995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     38996/* end confdefs.h.  */
     38997#include <netinet/in.h>
     38998int
     38999main (void)
     39000{
     39001
     39002  ;
     39003  return 0;
     39004}
     39005_ACEOF
     39006if ac_fn_c_try_compile "$LINENO"
     39007then :
     39008  gl_cv_header_netinet_in_h_selfcontained=yes
     39009else case e in #(
     39010  e) gl_cv_header_netinet_in_h_selfcontained=no ;;
     39011esac
     39012fi
     39013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     39014     ;;
     39015esac
     39016fi
     39017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
     39018printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
     39019  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
     39020    GL_GENERATE_NETINET_IN_H=false
     39021  else
     39022    GL_GENERATE_NETINET_IN_H=true
     39023    ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
     39024if test "x$ac_cv_header_netinet_in_h" = xyes
     39025then :
     39026  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
     39027
     39028fi
     39029
     39030
     39031
     39032
     39033
     39034
     39035
     39036
     39037
     39038
     39039     if test $gl_cv_have_include_next = yes; then
     39040       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
     39041     else
     39042       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
     39043printf %s "checking absolute name of <netinet/in.h>... " >&6; }
     39044if test ${gl_cv_next_netinet_in_h+y}
     39045then :
     39046  printf %s "(cached) " >&6
     39047else case e in #(
     39048  e)
     39049             if test $ac_cv_header_netinet_in_h = yes; then
     39050
     39051
     39052
     39053
     39054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39055/* end confdefs.h.  */
     39056#include <netinet/in.h>
     39057_ACEOF
     39058                case "$host_os" in
     39059    aix*) gl_absname_cpp="$ac_cpp -C" ;;
     39060    *)    gl_absname_cpp="$ac_cpp" ;;
     39061  esac
     39062
     39063  case "$host_os" in
     39064    mingw*)
     39065                                          gl_dirsep_regex='[/\\]'
     39066      ;;
     39067    *)
     39068      gl_dirsep_regex='\/'
     39069      ;;
     39070  esac
     39071      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
     39072  gl_header_literal_regex=`echo 'netinet/in.h' \
     39073                           | sed -e "$gl_make_literal_regex_sed"`
     39074  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
     39075      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
     39076      s|^/[^/]|//&|
     39077      p
     39078      q
     39079    }'
     39080
     39081        gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
     39082  sed -n "$gl_absolute_header_sed"`
     39083
     39084          gl_header=$gl_cv_absolute_netinet_in_h
     39085          gl_cv_next_netinet_in_h='"'$gl_header'"'
     39086          else
     39087               gl_cv_next_netinet_in_h='<'netinet/in.h'>'
     39088             fi
     39089
     39090          ;;
     39091esac
     39092fi
     39093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
     39094printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; }
     39095     fi
     39096     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
     39097
     39098     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
     39099       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
     39100       gl_next_as_first_directive='<'netinet/in.h'>'
     39101     else
     39102       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
     39103       gl_next_as_first_directive=$gl_cv_next_netinet_in_h
     39104     fi
     39105     NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
     39106
     39107
     39108
     39109
     39110    if test $ac_cv_header_netinet_in_h = yes; then
     39111      HAVE_NETINET_IN_H=1
     39112    else
     39113      HAVE_NETINET_IN_H=0
     39114    fi
     39115
     39116  fi
     39117
     39118
     39119
     39120
     39121
     39122  case "$GL_GENERATE_NETINET_IN_H" in
     39123    false) NETINET_IN_H='' ;;
     39124    true)
     39125                  if test -z "$NETINET_IN_H"; then
     39126        NETINET_IN_H="${gl_source_base_prefix}netinet/in.h"
     39127      fi
     39128      ;;
     39129    *) echo "*** GL_GENERATE_NETINET_IN_H is not set correctly" 1>&2; exit 1 ;;
     39130  esac
     39131
     39132
     39133     if $GL_GENERATE_NETINET_IN_H; then
     39134  GL_GENERATE_NETINET_IN_H_TRUE=
     39135  GL_GENERATE_NETINET_IN_H_FALSE='#'
     39136else
     39137  GL_GENERATE_NETINET_IN_H_TRUE='#'
     39138  GL_GENERATE_NETINET_IN_H_FALSE=
     39139fi
     39140:
     39141    if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
     39142    GL_GENERATE_NETINET_IN_H_TRUE='#'
     39143    GL_GENERATE_NETINET_IN_H_FALSE='#'
     39144  fi
     39145
     39146
     39147
     39148
     39149
     39150
     39151
     39152
     39153
     39154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     39155printf %s "checking for a traditional french locale... " >&6; }
     39156if test ${gt_cv_locale_fr+y}
     39157then :
     39158  printf %s "(cached) " >&6
     39159else case e in #(
     39160  e)
     39161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39162/* end confdefs.h.  */
     39163
     39164#include <locale.h>
     39165#include <time.h>
     39166#if HAVE_LANGINFO_CODESET
     39167# include <langinfo.h>
     39168#endif
     39169#include <stdlib.h>
     39170#include <string.h>
     39171struct tm t;
     39172char buf[16];
     39173int main () {
     39174  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     39175     imitates locale dependent behaviour by looking at the environment
     39176     variables, and all locales use the UTF-8 encoding.  */
     39177#if defined __BEOS__ || defined __HAIKU__
     39178  return 1;
     39179#else
     39180  /* Check whether the given locale name is recognized by the system.  */
     39181# if defined _WIN32 && !defined __CYGWIN__
     39182  /* On native Windows, setlocale(category, "") looks at the system settings,
     39183     not at the environment variables.  Also, when an encoding suffix such
     39184     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     39185     category of the locale to "C".  */
     39186  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     39187      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     39188    return 1;
     39189# else
     39190  if (setlocale (LC_ALL, "") == NULL) return 1;
     39191# endif
     39192  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     39193     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     39194     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     39195     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     39196     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     39197     some unit tests fail.
     39198     On MirBSD 10, when an unsupported locale is specified, setlocale()
     39199     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     39200# if HAVE_LANGINFO_CODESET
     39201  {
     39202    const char *cs = nl_langinfo (CODESET);
     39203    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     39204        || strcmp (cs, "UTF-8") == 0)
     39205      return 1;
     39206  }
     39207# endif
     39208# ifdef __CYGWIN__
     39209  /* On Cygwin, avoid locale names without encoding suffix, because the
     39210     locale_charset() function relies on the encoding suffix.  Note that
     39211     LC_ALL is set on the command line.  */
     39212  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     39213# endif
     39214  /* Check whether in the abbreviation of the second month, the second
     39215     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     39216     one byte long. This excludes the UTF-8 encoding.  */
     39217  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     39218  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     39219# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     39220  /* Check whether the decimal separator is a comma.
     39221     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     39222     are nl_langinfo(RADIXCHAR) are both ".".  */
     39223  if (localeconv () ->decimal_point[0] != ',') return 1;
     39224# endif
     39225  return 0;
     39226#endif
     39227}
     39228
     39229_ACEOF
     39230    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     39231  (eval $ac_link) 2>&5
     39232  ac_status=$?
     39233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     39234  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     39235      case "$host_os" in
     39236        # Handle native Windows specially, because there setlocale() interprets
     39237        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     39238        # "fr" or "fra" as "French" or "French_France.1252",
     39239        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     39240        # "ja" as "Japanese" or "Japanese_Japan.932",
     39241        # and similar.
     39242        mingw*)
     39243          # Test for the native Windows locale name.
     39244          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39245            gt_cv_locale_fr=French_France.1252
     39246          else
     39247            # None found.
     39248            gt_cv_locale_fr=none
     39249          fi
     39250          ;;
     39251        *)
     39252          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     39253          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     39254          # configure script would override the LC_ALL setting. Likewise for
     39255          # LC_CTYPE, which is also set at the beginning of the configure script.
     39256          # Test for the usual locale name.
     39257          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39258            gt_cv_locale_fr=fr_FR
     39259          else
     39260            # Test for the locale name with explicit encoding suffix.
     39261            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39262              gt_cv_locale_fr=fr_FR.ISO-8859-1
     39263            else
     39264              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     39265              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39266                gt_cv_locale_fr=fr_FR.ISO8859-1
     39267              else
     39268                # Test for the HP-UX locale name.
     39269                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39270                  gt_cv_locale_fr=fr_FR.iso88591
     39271                else
     39272                  # Test for the Solaris 7 locale name.
     39273                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39274                    gt_cv_locale_fr=fr
     39275                  else
     39276                    # None found.
     39277                    gt_cv_locale_fr=none
     39278                  fi
     39279                fi
     39280              fi
     39281            fi
     39282          fi
     39283          ;;
     39284      esac
     39285    fi
     39286    rm -fr conftest*
     39287   ;;
     39288esac
     39289fi
     39290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     39291printf "%s\n" "$gt_cv_locale_fr" >&6; }
     39292  LOCALE_FR=$gt_cv_locale_fr
     39293
     39294
     39295
     39296
     39297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     39298printf %s "checking for a french Unicode locale... " >&6; }
     39299if test ${gt_cv_locale_fr_utf8+y}
     39300then :
     39301  printf %s "(cached) " >&6
     39302else case e in #(
     39303  e)
     39304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39305/* end confdefs.h.  */
     39306
     39307#include <locale.h>
     39308#include <time.h>
     39309#if HAVE_LANGINFO_CODESET
     39310# include <langinfo.h>
     39311#endif
     39312#include <stdlib.h>
     39313#include <string.h>
     39314struct tm t;
     39315char buf[16];
     39316int main () {
     39317  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     39318     imitates locale dependent behaviour by looking at the environment
     39319     variables, and all locales use the UTF-8 encoding.  */
     39320#if !(defined __BEOS__ || defined __HAIKU__)
     39321  /* Check whether the given locale name is recognized by the system.  */
     39322# if defined _WIN32 && !defined __CYGWIN__
     39323  /* On native Windows, setlocale(category, "") looks at the system settings,
     39324     not at the environment variables.  Also, when an encoding suffix such
     39325     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     39326     category of the locale to "C".  */
     39327  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     39328      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     39329    return 1;
     39330# else
     39331  if (setlocale (LC_ALL, "") == NULL) return 1;
     39332# endif
     39333  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     39334     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     39335     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     39336     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     39337     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     39338     some unit tests fail.  */
     39339# if HAVE_LANGINFO_CODESET
     39340  {
     39341    const char *cs = nl_langinfo (CODESET);
     39342    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     39343      return 1;
     39344  }
     39345# endif
     39346# ifdef __CYGWIN__
     39347  /* On Cygwin, avoid locale names without encoding suffix, because the
     39348     locale_charset() function relies on the encoding suffix.  Note that
     39349     LC_ALL is set on the command line.  */
     39350  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     39351# endif
     39352  /* Check whether in the abbreviation of the second month, the second
     39353     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     39354     two bytes long, with UTF-8 encoding.  */
     39355  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     39356  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     39357      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     39358    return 1;
     39359#endif
     39360#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     39361  /* Check whether the decimal separator is a comma.
     39362     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     39363     are nl_langinfo(RADIXCHAR) are both ".".  */
     39364  if (localeconv () ->decimal_point[0] != ',') return 1;
     39365#endif
     39366  return 0;
     39367}
     39368
     39369_ACEOF
     39370    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     39371  (eval $ac_link) 2>&5
     39372  ac_status=$?
     39373  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     39374  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     39375      case "$host_os" in
     39376        # Handle native Windows specially, because there setlocale() interprets
     39377        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     39378        # "fr" or "fra" as "French" or "French_France.1252",
     39379        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     39380        # "ja" as "Japanese" or "Japanese_Japan.932",
     39381        # and similar.
     39382        mingw*)
     39383          # Test for the hypothetical native Windows locale name.
     39384          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39385            gt_cv_locale_fr_utf8=French_France.65001
     39386          else
     39387            # None found.
     39388            gt_cv_locale_fr_utf8=none
     39389          fi
     39390          ;;
     39391        *)
     39392          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     39393          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     39394          # configure script would override the LC_ALL setting. Likewise for
     39395          # LC_CTYPE, which is also set at the beginning of the configure script.
     39396          # Test for the usual locale name.
     39397          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39398            gt_cv_locale_fr_utf8=fr_FR
     39399          else
     39400            # Test for the locale name with explicit encoding suffix.
     39401            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39402              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     39403            else
     39404              # Test for the Solaris 7 locale name.
     39405              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     39406                gt_cv_locale_fr_utf8=fr.UTF-8
     39407              else
     39408                # None found.
     39409                gt_cv_locale_fr_utf8=none
     39410              fi
     39411            fi
     39412          fi
     39413          ;;
     39414      esac
     39415    fi
     39416    rm -fr conftest*
     39417   ;;
     39418esac
     39419fi
     39420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     39421printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     39422  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     39423
     39424
     39425
     39426
     39427
     39428  ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
     39429if test "x$ac_cv_func_opendir" = xyes
     39430then :
     39431  printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
     39432
     39433fi
     39434
     39435  if test $ac_cv_func_opendir = no; then
     39436    HAVE_OPENDIR=0
     39437  fi
     39438
     39439      case $host_os,$HAVE_OPENDIR in
     39440    os2*,1)
     39441      REPLACE_OPENDIR=1;;
     39442  esac
     39443
     39444
     39445     if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
     39446  GL_COND_OBJ_OPENDIR_TRUE=
     39447  GL_COND_OBJ_OPENDIR_FALSE='#'
     39448else
     39449  GL_COND_OBJ_OPENDIR_TRUE='#'
     39450  GL_COND_OBJ_OPENDIR_FALSE=
     39451fi
     39452:
     39453    if test -z "${GL_COND_OBJ_OPENDIR_TRUE}" && test -z "${GL_COND_OBJ_OPENDIR_FALSE}"; then
     39454    GL_COND_OBJ_OPENDIR_TRUE='#'
     39455    GL_COND_OBJ_OPENDIR_FALSE='#'
     39456  fi
     39457
     39458
     39459
     39460
     39461
     39462
     39463
     39464
     39465
     39466
     39467    if test "$GL_GNULIB_OPENDIR" != 1; then
     39468        if test "$GL_GNULIB_OPENDIR" = 0; then
     39469      GL_GNULIB_OPENDIR=$gl_module_indicator_condition
     39470    else
     39471      GL_GNULIB_OPENDIR="($GL_GNULIB_OPENDIR || $gl_module_indicator_condition)"
     39472    fi
     39473  fi
     39474
     39475
     39476
     39477
     39478
     39479printf "%s\n" "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
     39480
     39481
     39482
     39483
     39484
     39485
     39486
     39487
     39488             if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" != false:0; then
     39489            REPLACE_PERROR=1
     39490  fi
     39491  case ${gl_cv_func_strerror_r_works-unset} in
     39492    unset|*yes)
     39493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
     39494printf %s "checking whether perror matches strerror... " >&6; }
     39495if test ${gl_cv_func_perror_works+y}
     39496then :
     39497  printf %s "(cached) " >&6
     39498else case e in #(
     39499  e) if test "$cross_compiling" = yes
     39500then :
     39501  case "$host_os" in
     39502                       # Guess yes on musl systems.
     39503              *-musl*) gl_cv_func_perror_works="guessing yes" ;;
     39504                       # Guess yes on native Windows.
     39505              mingw*)  gl_cv_func_perror_works="guessing yes" ;;
     39506                       # Otherwise obey --enable-cross-guesses.
     39507              *)       gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
     39508            esac
     39509
     39510else case e in #(
     39511  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39512/* end confdefs.h.  */
     39513#include <errno.h>
     39514                #include <stdio.h>
     39515                #include <stdlib.h>
     39516                #include <string.h>
     39517
     39518int
     39519main (void)
     39520{
     39521char *str = strerror (-1);
     39522                if (!getenv("CONFTEST_OUTPUT")) return 0;
     39523                if (!str) str = "";
     39524                puts (str);
     39525                errno = -1;
     39526                perror ("");
     39527                return 0;
     39528
     39529  ;
     39530  return 0;
     39531}
     39532_ACEOF
     39533if ac_fn_c_try_run "$LINENO"
     39534then :
     39535  if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
     39536               && cmp conftest.txt1 conftest.txt2 >/dev/null; then
     39537              gl_cv_func_perror_works=yes
     39538            else
     39539              gl_cv_func_perror_works=no
     39540            fi
     39541            rm -rf conftest.txt1 conftest.txt2
     39542else case e in #(
     39543  e) gl_cv_func_perror_works=no ;;
     39544esac
     39545fi
     39546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     39547  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     39548esac
     39549fi
     39550
     39551         ;;
     39552esac
     39553fi
     39554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
     39555printf "%s\n" "$gl_cv_func_perror_works" >&6; }
     39556      case "$gl_cv_func_perror_works" in
     39557        *yes) ;;
     39558        *) REPLACE_PERROR=1 ;;
     39559      esac
     39560      ;;
     39561    *)
     39562                  REPLACE_PERROR=1
     39563      ;;
     39564  esac
     39565
     39566
     39567     if test $REPLACE_PERROR = 1; then
     39568  GL_COND_OBJ_PERROR_TRUE=
     39569  GL_COND_OBJ_PERROR_FALSE='#'
     39570else
     39571  GL_COND_OBJ_PERROR_TRUE='#'
     39572  GL_COND_OBJ_PERROR_FALSE=
     39573fi
     39574:
     39575    if test -z "${GL_COND_OBJ_PERROR_TRUE}" && test -z "${GL_COND_OBJ_PERROR_FALSE}"; then
     39576    GL_COND_OBJ_PERROR_TRUE='#'
     39577    GL_COND_OBJ_PERROR_FALSE='#'
     39578  fi
     39579
     39580
     39581
     39582
     39583
     39584
     39585
     39586
     39587
     39588
     39589
     39590
     39591
     39592
     39593
     39594    if test "$GL_GNULIB_PERROR" != 1; then
     39595        if test "$GL_GNULIB_PERROR" = 0; then
     39596      GL_GNULIB_PERROR=$gl_module_indicator_condition
     39597    else
     39598      GL_GNULIB_PERROR="($GL_GNULIB_PERROR || $gl_module_indicator_condition)"
     39599    fi
     39600  fi
     39601
     39602
     39603
     39604
     39605
     39606printf "%s\n" "#define GNULIB_TEST_PERROR 1" >>confdefs.h
     39607
     39608
     39609
     39610
     39611
     39612
     39613
     39614  if test $ac_cv_func_pipe != yes; then
     39615    HAVE_PIPE=0
     39616  fi
     39617
     39618
     39619     if test $HAVE_PIPE = 0; then
     39620  GL_COND_OBJ_PIPE_TRUE=
     39621  GL_COND_OBJ_PIPE_FALSE='#'
     39622else
     39623  GL_COND_OBJ_PIPE_TRUE='#'
     39624  GL_COND_OBJ_PIPE_FALSE=
     39625fi
     39626:
     39627    if test -z "${GL_COND_OBJ_PIPE_TRUE}" && test -z "${GL_COND_OBJ_PIPE_FALSE}"; then
     39628    GL_COND_OBJ_PIPE_TRUE='#'
     39629    GL_COND_OBJ_PIPE_FALSE='#'
     39630  fi
     39631
     39632
     39633
     39634
     39635
     39636
     39637
     39638
     39639
     39640
     39641    if test "$GL_GNULIB_PIPE" != 1; then
     39642        if test "$GL_GNULIB_PIPE" = 0; then
     39643      GL_GNULIB_PIPE=$gl_module_indicator_condition
     39644    else
     39645      GL_GNULIB_PIPE="($GL_GNULIB_PIPE || $gl_module_indicator_condition)"
     39646    fi
     39647  fi
     39648
     39649
     39650
     39651
     39652
     39653printf "%s\n" "#define GNULIB_TEST_PIPE 1" >>confdefs.h
     39654
     39655
     39656
     39657
     39658
     39659
     39660
     39661
     39662  if test $ac_cv_func_pselect = yes; then
     39663    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
     39664printf %s "checking whether signature of pselect conforms to POSIX... " >&6; }
     39665if test ${gl_cv_sig_pselect+y}
     39666then :
     39667  printf %s "(cached) " >&6
     39668else case e in #(
     39669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39670/* end confdefs.h.  */
     39671#include <sys/select.h>
     39672
     39673int
     39674main (void)
     39675{
     39676int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
     39677                          struct timespec const *restrict,
     39678                          sigset_t const *restrict) = pselect;
     39679                return !p;
     39680  ;
     39681  return 0;
     39682}
     39683_ACEOF
     39684if ac_fn_c_try_link "$LINENO"
     39685then :
     39686  gl_cv_sig_pselect=yes
     39687else case e in #(
     39688  e) gl_cv_sig_pselect=no ;;
     39689esac
     39690fi
     39691rm -f core conftest.err conftest.$ac_objext conftest.beam \
     39692    conftest$ac_exeext conftest.$ac_ext ;;
     39693esac
     39694fi
     39695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
     39696printf "%s\n" "$gl_cv_sig_pselect" >&6; }
     39697
     39698        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
     39699printf %s "checking whether pselect detects invalid fds... " >&6; }
     39700if test ${gl_cv_func_pselect_detects_ebadf+y}
     39701then :
     39702  printf %s "(cached) " >&6
     39703else case e in #(
     39704  e)
     39705        if test "$cross_compiling" = yes
     39706then :
     39707
     39708           case "$host_os" in
     39709                             # Guess yes on Linux systems.
     39710            linux-* | linux) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
     39711                             # Guess yes on glibc systems.
     39712            *-gnu* | gnu*)   gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
     39713                             # If we don't know, obey --enable-cross-guesses.
     39714            *)               gl_cv_func_pselect_detects_ebadf="$gl_cross_guess_normal" ;;
     39715           esac
     39716
     39717else case e in #(
     39718  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39719/* end confdefs.h.  */
     39720
     39721#include <sys/types.h>
     39722#include <sys/time.h>
     39723#if HAVE_SYS_SELECT_H
     39724# include <sys/select.h>
     39725#endif
     39726#include <unistd.h>
     39727#include <errno.h>
     39728
     39729
     39730$gl_mda_defines
     39731
     39732int
     39733main (void)
     39734{
     39735
     39736  fd_set set;
     39737  dup2(0, 16);
     39738  FD_ZERO(&set);
     39739  FD_SET(16, &set);
     39740  close(16);
     39741  struct timespec timeout;
     39742  timeout.tv_sec = 0;
     39743  timeout.tv_nsec = 5000;
     39744  return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
     39745
     39746  ;
     39747  return 0;
     39748}
     39749_ACEOF
     39750if ac_fn_c_try_run "$LINENO"
     39751then :
     39752  gl_cv_func_pselect_detects_ebadf=yes
     39753else case e in #(
     39754  e) gl_cv_func_pselect_detects_ebadf=no ;;
     39755esac
     39756fi
     39757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     39758  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     39759esac
     39760fi
     39761
     39762       ;;
     39763esac
     39764fi
     39765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
     39766printf "%s\n" "$gl_cv_func_pselect_detects_ebadf" >&6; }
     39767    case $gl_cv_func_pselect_detects_ebadf in
     39768      *yes) ;;
     39769      *) REPLACE_PSELECT=1 ;;
     39770    esac
     39771  fi
     39772
     39773  if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
     39774    REPLACE_PSELECT=1
     39775  fi
     39776
     39777
     39778     if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
     39779  GL_COND_OBJ_PSELECT_TRUE=
     39780  GL_COND_OBJ_PSELECT_FALSE='#'
     39781else
     39782  GL_COND_OBJ_PSELECT_TRUE='#'
     39783  GL_COND_OBJ_PSELECT_FALSE=
     39784fi
     39785:
     39786    if test -z "${GL_COND_OBJ_PSELECT_TRUE}" && test -z "${GL_COND_OBJ_PSELECT_FALSE}"; then
     39787    GL_COND_OBJ_PSELECT_TRUE='#'
     39788    GL_COND_OBJ_PSELECT_FALSE='#'
     39789  fi
     39790
     39791
     39792
     39793
     39794
     39795
     39796
     39797
     39798
     39799
     39800    if test "$GL_GNULIB_PSELECT" != 1; then
     39801        if test "$GL_GNULIB_PSELECT" = 0; then
     39802      GL_GNULIB_PSELECT=$gl_module_indicator_condition
     39803    else
     39804      GL_GNULIB_PSELECT="($GL_GNULIB_PSELECT || $gl_module_indicator_condition)"
     39805    fi
     39806  fi
     39807
     39808
     39809
     39810
     39811
     39812printf "%s\n" "#define GNULIB_TEST_PSELECT 1" >>confdefs.h
     39813
     39814
     39815
     39816
     39817
     39818
     39819
     39820
     39821
     39822
     39823
     39824
     39825
     39826
     39827
     39828  if { case "$host_os" in mingw*) true;; *) false;; esac; } \
     39829     && test $gl_threads_api = windows; then
     39830            REPLACE_PTHREAD_CREATE=1
     39831    REPLACE_PTHREAD_ATTR_INIT=1
     39832    REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1
     39833    REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1
     39834    REPLACE_PTHREAD_ATTR_DESTROY=1
     39835    REPLACE_PTHREAD_SELF=1
     39836    REPLACE_PTHREAD_EQUAL=1
     39837    REPLACE_PTHREAD_DETACH=1
     39838    REPLACE_PTHREAD_JOIN=1
     39839    REPLACE_PTHREAD_EXIT=1
     39840  else
     39841    if test $HAVE_PTHREAD_H = 0; then
     39842      HAVE_PTHREAD_CREATE=0
     39843      HAVE_PTHREAD_ATTR_INIT=0
     39844      HAVE_PTHREAD_ATTR_GETDETACHSTATE=0
     39845      HAVE_PTHREAD_ATTR_SETDETACHSTATE=0
     39846      HAVE_PTHREAD_ATTR_DESTROY=0
     39847      HAVE_PTHREAD_SELF=0
     39848      HAVE_PTHREAD_EQUAL=0
     39849      HAVE_PTHREAD_DETACH=0
     39850      HAVE_PTHREAD_JOIN=0
     39851      HAVE_PTHREAD_EXIT=0
     39852    else
     39853                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5
     39854printf %s "checking whether pthread_create exists as a global function... " >&6; }
     39855if test ${gl_cv_func_pthread_create+y}
     39856then :
     39857  printf %s "(cached) " >&6
     39858else case e in #(
     39859  e) saved_LIBS="$LIBS"
     39860         LIBS="$LIBS $LIBPMULTITHREAD"
     39861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39862/* end confdefs.h.  */
     39863extern
     39864                #ifdef __cplusplus
     39865                "C"
     39866                #endif
     39867                int pthread_create (void);
     39868                int main ()
     39869                {
     39870                  return pthread_create ();
     39871                }
     39872
     39873_ACEOF
     39874if ac_fn_c_try_link "$LINENO"
     39875then :
     39876  gl_cv_func_pthread_create=yes
     39877else case e in #(
     39878  e) gl_cv_func_pthread_create=no ;;
     39879esac
     39880fi
     39881rm -f core conftest.err conftest.$ac_objext conftest.beam \
     39882    conftest$ac_exeext conftest.$ac_ext
     39883         LIBS="$saved_LIBS"
     39884         ;;
     39885esac
     39886fi
     39887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5
     39888printf "%s\n" "$gl_cv_func_pthread_create" >&6; }
     39889      if test $gl_cv_func_pthread_create = no; then
     39890        REPLACE_PTHREAD_CREATE=1
     39891        REPLACE_PTHREAD_ATTR_INIT=1
     39892
     39893printf "%s\n" "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h
     39894
     39895      fi
     39896    fi
     39897  fi
     39898
     39899
     39900     if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
     39901  GL_COND_OBJ_PTHREAD_THREAD_TRUE=
     39902  GL_COND_OBJ_PTHREAD_THREAD_FALSE='#'
     39903else
     39904  GL_COND_OBJ_PTHREAD_THREAD_TRUE='#'
     39905  GL_COND_OBJ_PTHREAD_THREAD_FALSE=
     39906fi
     39907:
     39908    if test -z "${GL_COND_OBJ_PTHREAD_THREAD_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_THREAD_FALSE}"; then
     39909    GL_COND_OBJ_PTHREAD_THREAD_TRUE='#'
     39910    GL_COND_OBJ_PTHREAD_THREAD_FALSE='#'
     39911  fi
     39912
     39913
     39914
     39915
     39916
     39917
     39918
     39919
     39920
     39921
     39922    if test "$GL_GNULIB_PTHREAD_THREAD" != 1; then
     39923        if test "$GL_GNULIB_PTHREAD_THREAD" = 0; then
     39924      GL_GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition
     39925    else
     39926      GL_GNULIB_PTHREAD_THREAD="($GL_GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)"
     39927    fi
     39928  fi
     39929
     39930
     39931
     39932
     39933
     39934printf "%s\n" "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h
     39935
     39936
     39937
     39938
     39939
     39940
     39941
     39942
     39943      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5
     39944printf %s "checking whether pthread_sigmask is a macro... " >&6; }
     39945if test ${gl_cv_func_pthread_sigmask_macro+y}
     39946then :
     39947  printf %s "(cached) " >&6
     39948else case e in #(
     39949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39950/* end confdefs.h.  */
     39951
     39952#include <pthread.h>
     39953#include <signal.h>
     39954#ifdef pthread_sigmask
     39955 headers_define_pthread_sigmask
     39956#endif
     39957_ACEOF
     39958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     39959  $EGREP_TRADITIONAL "headers_define_pthread_sigmask" >/dev/null 2>&1
     39960then :
     39961  gl_cv_func_pthread_sigmask_macro=yes
     39962else case e in #(
     39963  e) gl_cv_func_pthread_sigmask_macro=no ;;
     39964esac
     39965fi
     39966rm -rf conftest*
     39967
     39968     ;;
     39969esac
     39970fi
     39971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5
     39972printf "%s\n" "$gl_cv_func_pthread_sigmask_macro" >&6; }
     39973
     39974  LIB_PTHREAD_SIGMASK=
     39975
     39976  if test $gl_cv_func_pthread_sigmask_macro = yes; then
     39977        HAVE_PTHREAD_SIGMASK=0
     39978        REPLACE_PTHREAD_SIGMASK=1
     39979  else
     39980
     39981
     39982
     39983      if test "$gl_threads_api" = posix; then
     39984        if test $ac_cv_func_pthread_sigmask = yes; then
     39985                    :
     39986        else
     39987          if test -n "$LIBMULTITHREAD"; then
     39988            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
     39989printf %s "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
     39990if test ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+y}
     39991then :
     39992  printf %s "(cached) " >&6
     39993else case e in #(
     39994  e) gl_save_LIBS="$LIBS"
     39995               LIBS="$LIBS $LIBMULTITHREAD"
     39996               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     39997/* end confdefs.h.  */
     39998#include <pthread.h>
     39999                      #include <signal.h>
     40000
     40001int
     40002main (void)
     40003{
     40004return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
     40005  ;
     40006  return 0;
     40007}
     40008
     40009_ACEOF
     40010if ac_fn_c_try_link "$LINENO"
     40011then :
     40012  gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
     40013else case e in #(
     40014  e) gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no ;;
     40015esac
     40016fi
     40017rm -f core conftest.err conftest.$ac_objext conftest.beam \
     40018    conftest$ac_exeext conftest.$ac_ext
     40019               LIBS="$gl_save_LIBS"
     40020               ;;
     40021esac
     40022fi
     40023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
     40024printf "%s\n" "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
     40025            if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
     40026                            LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
     40027            else
     40028                            HAVE_PTHREAD_SIGMASK=0
     40029            fi
     40030          else
     40031                        HAVE_PTHREAD_SIGMASK=0
     40032          fi
     40033        fi
     40034      else
     40035                        if test $ac_cv_func_pthread_sigmask = yes; then
     40036          REPLACE_PTHREAD_SIGMASK=1
     40037        else
     40038          HAVE_PTHREAD_SIGMASK=0
     40039        fi
     40040      fi
     40041
     40042  fi
     40043
     40044
     40045
     40046    if test $HAVE_PTHREAD_SIGMASK = 1; then
     40047
     40048
     40049                if test -z "$LIB_PTHREAD_SIGMASK"; then
     40050      case " $LIBS " in
     40051        *' -pthread '*) ;;
     40052        *' -lpthread '*) ;;
     40053        *)
     40054          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
     40055printf %s "checking whether pthread_sigmask works without -lpthread... " >&6; }
     40056if test ${gl_cv_func_pthread_sigmask_in_libc_works+y}
     40057then :
     40058  printf %s "(cached) " >&6
     40059else case e in #(
     40060  e)
     40061              if test "$cross_compiling" = yes
     40062then :
     40063
     40064                                  case "$host_os" in
     40065                   freebsd* | midnightbsd* | hpux* | solaris | solaris2.[2-9]*)
     40066                     gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
     40067                   *)
     40068                     gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
     40069                 esac
     40070
     40071else case e in #(
     40072  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40073/* end confdefs.h.  */
     40074
     40075                   #include <pthread.h>
     40076                   #include <signal.h>
     40077                   #include <stddef.h>
     40078                   int main ()
     40079                   {
     40080                     sigset_t set;
     40081                     sigemptyset (&set);
     40082                     return pthread_sigmask (1729, &set, NULL) != 0;
     40083                   }
     40084_ACEOF
     40085if ac_fn_c_try_run "$LINENO"
     40086then :
     40087  gl_cv_func_pthread_sigmask_in_libc_works=no
     40088else case e in #(
     40089  e) gl_cv_func_pthread_sigmask_in_libc_works=yes ;;
     40090esac
     40091fi
     40092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40093  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40094esac
     40095fi
     40096
     40097             ;;
     40098esac
     40099fi
     40100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
     40101printf "%s\n" "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
     40102          case "$gl_cv_func_pthread_sigmask_in_libc_works" in
     40103            *no)
     40104              REPLACE_PTHREAD_SIGMASK=1
     40105
     40106printf "%s\n" "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
     40107
     40108              ;;
     40109          esac;;
     40110      esac
     40111    fi
     40112
     40113            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
     40114printf %s "checking whether pthread_sigmask returns error numbers... " >&6; }
     40115if test ${gl_cv_func_pthread_sigmask_return_works+y}
     40116then :
     40117  printf %s "(cached) " >&6
     40118else case e in #(
     40119  e)
     40120        gl_save_LIBS="$LIBS"
     40121        LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
     40122        if test "$cross_compiling" = yes
     40123then :
     40124  case "$host_os" in
     40125             cygwin*)
     40126               gl_cv_func_pthread_sigmask_return_works="guessing no";;
     40127             *)
     40128               gl_cv_func_pthread_sigmask_return_works="guessing yes";;
     40129           esac
     40130
     40131else case e in #(
     40132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40133/* end confdefs.h.  */
     40134
     40135#include <pthread.h>
     40136#include <signal.h>
     40137#include <stddef.h>
     40138int main ()
     40139{
     40140  sigset_t set;
     40141  sigemptyset (&set);
     40142  if (pthread_sigmask (1729, &set, NULL) == -1)
     40143    return 1;
     40144  return 0;
     40145}
     40146_ACEOF
     40147if ac_fn_c_try_run "$LINENO"
     40148then :
     40149  gl_cv_func_pthread_sigmask_return_works=yes
     40150else case e in #(
     40151  e) gl_cv_func_pthread_sigmask_return_works=no ;;
     40152esac
     40153fi
     40154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40155  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40156esac
     40157fi
     40158
     40159        LIBS="$gl_save_LIBS"
     40160       ;;
     40161esac
     40162fi
     40163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
     40164printf "%s\n" "$gl_cv_func_pthread_sigmask_return_works" >&6; }
     40165    case "$gl_cv_func_pthread_sigmask_return_works" in
     40166      *no)
     40167        REPLACE_PTHREAD_SIGMASK=1
     40168
     40169printf "%s\n" "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
     40170
     40171        ;;
     40172    esac
     40173
     40174                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
     40175printf %s "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
     40176if test ${gl_cv_func_pthread_sigmask_unblock_works+y}
     40177then :
     40178  printf %s "(cached) " >&6
     40179else case e in #(
     40180  e)
     40181        case "$host_os" in
     40182          irix*)
     40183            gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
     40184          *)
     40185            gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
     40186        esac
     40187                                         gl_save_LIBS=$LIBS
     40188           LIBS="$LIBS $LIBMULTITHREAD"
     40189        if test "$cross_compiling" = yes
     40190then :
     40191  :
     40192else case e in #(
     40193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40194/* end confdefs.h.  */
     40195
     40196#include <pthread.h>
     40197#include <signal.h>
     40198#include <stdio.h>
     40199#include <stdlib.h>
     40200#include <unistd.h>
     40201
     40202
     40203$gl_mda_defines
     40204
     40205static volatile int sigint_occurred;
     40206static void
     40207sigint_handler (int sig)
     40208{
     40209  sigint_occurred++;
     40210}
     40211int main ()
     40212{
     40213  sigset_t set;
     40214  int pid = getpid ();
     40215  char command[80];
     40216  signal (SIGINT, sigint_handler);
     40217  sigemptyset (&set);
     40218  sigaddset (&set, SIGINT);
     40219  if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
     40220    return 1;
     40221  sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
     40222  if (!(system (command) == 0))
     40223    return 2;
     40224  sleep (2);
     40225  if (!(sigint_occurred == 0))
     40226    return 3;
     40227  if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
     40228    return 4;
     40229  if (!(sigint_occurred == 1)) /* This fails on IRIX.  */
     40230    return 5;
     40231  return 0;
     40232}
     40233_ACEOF
     40234if ac_fn_c_try_run "$LINENO"
     40235then :
     40236  :
     40237else case e in #(
     40238  e) gl_cv_func_pthread_sigmask_unblock_works=no ;;
     40239esac
     40240fi
     40241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40242  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40243esac
     40244fi
     40245
     40246        LIBS=$gl_save_LIBS
     40247       ;;
     40248esac
     40249fi
     40250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
     40251printf "%s\n" "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
     40252    case "$gl_cv_func_pthread_sigmask_unblock_works" in
     40253      *no)
     40254        REPLACE_PTHREAD_SIGMASK=1
     40255
     40256printf "%s\n" "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
     40257
     40258        ;;
     40259    esac
     40260  fi
     40261
     40262
     40263     if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
     40264  GL_COND_OBJ_PTHREAD_SIGMASK_TRUE=
     40265  GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#'
     40266else
     40267  GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#'
     40268  GL_COND_OBJ_PTHREAD_SIGMASK_FALSE=
     40269fi
     40270:
     40271    if test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_FALSE}"; then
     40272    GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#'
     40273    GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#'
     40274  fi
     40275
     40276  if test -z "$GL_COND_OBJ_PTHREAD_SIGMASK_TRUE"; then :
     40277
     40278
     40279  if test $HAVE_PTHREAD_SIGMASK = 1; then
     40280
     40281printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
     40282
     40283  fi
     40284
     40285
     40286fi
     40287
     40288
     40289
     40290
     40291
     40292
     40293
     40294
     40295
     40296    if test "$GL_GNULIB_PTHREAD_SIGMASK" != 1; then
     40297        if test "$GL_GNULIB_PTHREAD_SIGMASK" = 0; then
     40298      GL_GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition
     40299    else
     40300      GL_GNULIB_PTHREAD_SIGMASK="($GL_GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)"
     40301    fi
     40302  fi
     40303
     40304
     40305
     40306
     40307
     40308printf "%s\n" "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
     40309
     40310
     40311
     40312
     40313
     40314     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
     40315printf %s "checking for putenv compatible with GNU and SVID... " >&6; }
     40316if test ${gl_cv_func_svid_putenv+y}
     40317then :
     40318  printf %s "(cached) " >&6
     40319else case e in #(
     40320  e) if test "$cross_compiling" = yes
     40321then :
     40322          case "$host_os" in
     40323                         # Guess yes on glibc systems.
     40324          *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
     40325                         # Guess yes on musl systems.
     40326          *-musl*)       gl_cv_func_svid_putenv="guessing yes" ;;
     40327                         # Guess no on native Windows.
     40328          mingw*)        gl_cv_func_svid_putenv="guessing no" ;;
     40329                         # If we don't know, obey --enable-cross-guesses.
     40330          *)             gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
     40331        esac
     40332
     40333else case e in #(
     40334  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40335/* end confdefs.h.  */
     40336$ac_includes_default
     40337
     40338
     40339$gl_mda_defines
     40340
     40341int
     40342main (void)
     40343{
     40344
     40345            /* Put it in env.  */
     40346            if (putenv ("CONFTEST_putenv=val"))
     40347              return 1;
     40348
     40349            /* Try to remove it.  */
     40350            if (putenv ("CONFTEST_putenv"))
     40351              return 2;
     40352
     40353            /* Make sure it was deleted.  */
     40354            if (getenv ("CONFTEST_putenv") != 0)
     40355              return 3;
     40356
     40357            return 0;
     40358
     40359  ;
     40360  return 0;
     40361}
     40362_ACEOF
     40363if ac_fn_c_try_run "$LINENO"
     40364then :
     40365  gl_cv_func_svid_putenv=yes
     40366else case e in #(
     40367  e) gl_cv_func_svid_putenv=no ;;
     40368esac
     40369fi
     40370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40371  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40372esac
     40373fi
     40374
     40375     ;;
     40376esac
     40377fi
     40378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
     40379printf "%s\n" "$gl_cv_func_svid_putenv" >&6; }
     40380  case "$gl_cv_func_svid_putenv" in
     40381    *yes) ;;
     40382    *)
     40383      REPLACE_PUTENV=1
     40384      ;;
     40385  esac
     40386
     40387
     40388     if test $REPLACE_PUTENV = 1; then
     40389  GL_COND_OBJ_PUTENV_TRUE=
     40390  GL_COND_OBJ_PUTENV_FALSE='#'
     40391else
     40392  GL_COND_OBJ_PUTENV_TRUE='#'
     40393  GL_COND_OBJ_PUTENV_FALSE=
     40394fi
     40395:
     40396    if test -z "${GL_COND_OBJ_PUTENV_TRUE}" && test -z "${GL_COND_OBJ_PUTENV_FALSE}"; then
     40397    GL_COND_OBJ_PUTENV_TRUE='#'
     40398    GL_COND_OBJ_PUTENV_FALSE='#'
     40399  fi
     40400
     40401  if test -z "$GL_COND_OBJ_PUTENV_TRUE"; then :
     40402
     40403
     40404  ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
     40405if test "x$ac_cv_have_decl__putenv" = xyes
     40406then :
     40407  ac_have_decl=1
     40408else case e in #(
     40409  e) ac_have_decl=0 ;;
     40410esac
     40411fi
     40412printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h
     40413
     40414
     40415
     40416fi
     40417
     40418
     40419
     40420
     40421
     40422
     40423
     40424
     40425
     40426    if test "$GL_GNULIB_PUTENV" != 1; then
     40427        if test "$GL_GNULIB_PUTENV" = 0; then
     40428      GL_GNULIB_PUTENV=$gl_module_indicator_condition
     40429    else
     40430      GL_GNULIB_PUTENV="($GL_GNULIB_PUTENV || $gl_module_indicator_condition)"
     40431    fi
     40432  fi
     40433
     40434
     40435
     40436
     40437
     40438printf "%s\n" "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
     40439
     40440
     40441
     40442
     40443
     40444
     40445
     40446
     40447
     40448  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
     40449if test "x$ac_cv_func_raise" = xyes
     40450then :
     40451  printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
     40452
     40453fi
     40454
     40455  if test $ac_cv_func_raise = no; then
     40456    HAVE_RAISE=0
     40457  else
     40458
     40459
     40460      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
     40461        REPLACE_RAISE=1
     40462      fi
     40463
     40464
     40465
     40466
     40467
     40468  HAVE_POSIX_SIGNALBLOCKING=0
     40469  if test "$gl_cv_type_sigset_t" = yes; then
     40470    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
     40471if test "x$ac_cv_func_sigprocmask" = xyes
     40472then :
     40473  HAVE_POSIX_SIGNALBLOCKING=1
     40474fi
     40475
     40476  fi
     40477
     40478      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
     40479        :
     40480      fi
     40481
     40482  fi
     40483
     40484
     40485     if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
     40486  GL_COND_OBJ_RAISE_TRUE=
     40487  GL_COND_OBJ_RAISE_FALSE='#'
     40488else
     40489  GL_COND_OBJ_RAISE_TRUE='#'
     40490  GL_COND_OBJ_RAISE_FALSE=
     40491fi
     40492:
     40493    if test -z "${GL_COND_OBJ_RAISE_TRUE}" && test -z "${GL_COND_OBJ_RAISE_FALSE}"; then
     40494    GL_COND_OBJ_RAISE_TRUE='#'
     40495    GL_COND_OBJ_RAISE_FALSE='#'
     40496  fi
     40497
     40498  if test -z "$GL_COND_OBJ_RAISE_TRUE"; then :
     40499
     40500    :
     40501
     40502fi
     40503
     40504
     40505
     40506
     40507
     40508
     40509
     40510
     40511
     40512    if test "$GL_GNULIB_RAISE" != 1; then
     40513        if test "$GL_GNULIB_RAISE" = 0; then
     40514      GL_GNULIB_RAISE=$gl_module_indicator_condition
     40515    else
     40516      GL_GNULIB_RAISE="($GL_GNULIB_RAISE || $gl_module_indicator_condition)"
     40517    fi
     40518  fi
     40519
     40520
     40521
     40522
     40523
     40524printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
     40525
     40526
     40527
     40528
     40529
     40530
     40531  :
     40532
     40533
     40534
     40535  ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
     40536if test "x$ac_cv_func_readdir" = xyes
     40537then :
     40538  printf "%s\n" "#define HAVE_READDIR 1" >>confdefs.h
     40539
     40540fi
     40541
     40542  if test $ac_cv_func_readdir = no; then
     40543    HAVE_READDIR=0
     40544  fi
     40545
     40546
     40547     if test $HAVE_READDIR = 0; then
     40548  GL_COND_OBJ_READDIR_TRUE=
     40549  GL_COND_OBJ_READDIR_FALSE='#'
     40550else
     40551  GL_COND_OBJ_READDIR_TRUE='#'
     40552  GL_COND_OBJ_READDIR_FALSE=
     40553fi
     40554:
     40555    if test -z "${GL_COND_OBJ_READDIR_TRUE}" && test -z "${GL_COND_OBJ_READDIR_FALSE}"; then
     40556    GL_COND_OBJ_READDIR_TRUE='#'
     40557    GL_COND_OBJ_READDIR_FALSE='#'
     40558  fi
     40559
     40560
     40561
     40562
     40563
     40564
     40565
     40566
     40567
     40568
     40569    if test "$GL_GNULIB_READDIR" != 1; then
     40570        if test "$GL_GNULIB_READDIR" = 0; then
     40571      GL_GNULIB_READDIR=$gl_module_indicator_condition
     40572    else
     40573      GL_GNULIB_READDIR="($GL_GNULIB_READDIR || $gl_module_indicator_condition)"
     40574    fi
     40575  fi
     40576
     40577
     40578
     40579
     40580
     40581printf "%s\n" "#define GNULIB_TEST_READDIR 1" >>confdefs.h
     40582
     40583
     40584
     40585
     40586
     40587
     40588
     40589
     40590
     40591
     40592
     40593
     40594
     40595
     40596  if test "$ac_cv_header_winsock2_h" = yes; then
     40597    REPLACE_SELECT=1
     40598  else
     40599
     40600    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
     40601printf %s "checking whether select supports a 0 argument... " >&6; }
     40602if test ${gl_cv_func_select_supports0+y}
     40603then :
     40604  printf %s "(cached) " >&6
     40605else case e in #(
     40606  e)
     40607        if test "$cross_compiling" = yes
     40608then :
     40609
     40610           case "$host_os" in
     40611                       # Guess no on Interix.
     40612             interix*) gl_cv_func_select_supports0="guessing no";;
     40613                       # Guess yes otherwise.
     40614             *)        gl_cv_func_select_supports0="guessing yes";;
     40615           esac
     40616
     40617else case e in #(
     40618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40619/* end confdefs.h.  */
     40620
     40621#include <sys/types.h>
     40622#include <sys/time.h>
     40623#if HAVE_SYS_SELECT_H
     40624#include <sys/select.h>
     40625#endif
     40626int main ()
     40627{
     40628  struct timeval timeout;
     40629  timeout.tv_sec = 0;
     40630  timeout.tv_usec = 5;
     40631  return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
     40632}
     40633_ACEOF
     40634if ac_fn_c_try_run "$LINENO"
     40635then :
     40636  gl_cv_func_select_supports0=yes
     40637else case e in #(
     40638  e) gl_cv_func_select_supports0=no ;;
     40639esac
     40640fi
     40641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40642  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40643esac
     40644fi
     40645
     40646       ;;
     40647esac
     40648fi
     40649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
     40650printf "%s\n" "$gl_cv_func_select_supports0" >&6; }
     40651    case "$gl_cv_func_select_supports0" in
     40652      *yes) ;;
     40653      *) REPLACE_SELECT=1 ;;
     40654    esac
     40655
     40656        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
     40657printf %s "checking whether select detects invalid fds... " >&6; }
     40658if test ${gl_cv_func_select_detects_ebadf+y}
     40659then :
     40660  printf %s "(cached) " >&6
     40661else case e in #(
     40662  e)
     40663        if test "$cross_compiling" = yes
     40664then :
     40665
     40666           case "$host_os" in
     40667                             # Guess yes on Linux systems.
     40668            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
     40669                             # Guess yes on glibc systems.
     40670            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
     40671                             # If we don't know, obey --enable-cross-guesses.
     40672            *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
     40673           esac
     40674
     40675else case e in #(
     40676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40677/* end confdefs.h.  */
     40678
     40679#include <sys/types.h>
     40680#include <sys/time.h>
     40681#if HAVE_SYS_SELECT_H
     40682# include <sys/select.h>
     40683#endif
     40684#include <unistd.h>
     40685#include <errno.h>
     40686
     40687
     40688$gl_mda_defines
     40689
     40690int
     40691main (void)
     40692{
     40693
     40694  fd_set set;
     40695  dup2(0, 16);
     40696  FD_ZERO(&set);
     40697  FD_SET(16, &set);
     40698  close(16);
     40699  struct timeval timeout;
     40700  timeout.tv_sec = 0;
     40701  timeout.tv_usec = 5;
     40702  return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
     40703
     40704  ;
     40705  return 0;
     40706}
     40707_ACEOF
     40708if ac_fn_c_try_run "$LINENO"
     40709then :
     40710  gl_cv_func_select_detects_ebadf=yes
     40711else case e in #(
     40712  e) gl_cv_func_select_detects_ebadf=no ;;
     40713esac
     40714fi
     40715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40716  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40717esac
     40718fi
     40719
     40720       ;;
     40721esac
     40722fi
     40723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
     40724printf "%s\n" "$gl_cv_func_select_detects_ebadf" >&6; }
     40725    case $gl_cv_func_select_detects_ebadf in
     40726      *yes) ;;
     40727      *) REPLACE_SELECT=1 ;;
     40728    esac
     40729  fi
     40730
     40731    LIB_SELECT="$LIBSOCKET"
     40732  if test $REPLACE_SELECT = 1; then
     40733    case "$host_os" in
     40734      mingw*)
     40735                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40736/* end confdefs.h.  */
     40737
     40738#define WIN32_LEAN_AND_MEAN
     40739#include <windows.h>
     40740int
     40741main ()
     40742{
     40743  MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
     40744  return 0;
     40745}
     40746_ACEOF
     40747if ac_fn_c_try_link "$LINENO"
     40748then :
     40749
     40750else case e in #(
     40751  e) LIB_SELECT="$LIB_SELECT -luser32" ;;
     40752esac
     40753fi
     40754rm -f core conftest.err conftest.$ac_objext conftest.beam \
     40755    conftest$ac_exeext conftest.$ac_ext
     40756        ;;
     40757    esac
     40758  fi
     40759
     40760
     40761
     40762     if test $REPLACE_SELECT = 1; then
     40763  GL_COND_OBJ_SELECT_TRUE=
     40764  GL_COND_OBJ_SELECT_FALSE='#'
     40765else
     40766  GL_COND_OBJ_SELECT_TRUE='#'
     40767  GL_COND_OBJ_SELECT_FALSE=
     40768fi
     40769:
     40770    if test -z "${GL_COND_OBJ_SELECT_TRUE}" && test -z "${GL_COND_OBJ_SELECT_FALSE}"; then
     40771    GL_COND_OBJ_SELECT_TRUE='#'
     40772    GL_COND_OBJ_SELECT_FALSE='#'
     40773  fi
     40774
     40775
     40776
     40777
     40778
     40779
     40780
     40781
     40782
     40783
     40784    if test "$GL_GNULIB_SELECT" != 1; then
     40785        if test "$GL_GNULIB_SELECT" = 0; then
     40786      GL_GNULIB_SELECT=$gl_module_indicator_condition
     40787    else
     40788      GL_GNULIB_SELECT="($GL_GNULIB_SELECT || $gl_module_indicator_condition)"
     40789    fi
     40790  fi
     40791
     40792
     40793
     40794
     40795
     40796printf "%s\n" "#define GNULIB_TEST_SELECT 1" >>confdefs.h
     40797
     40798
     40799
     40800
     40801
     40802
     40803     if test $ac_cv_func_setenv = no; then
     40804    HAVE_SETENV=0
     40805  else
     40806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
     40807printf %s "checking whether setenv validates arguments... " >&6; }
     40808if test ${gl_cv_func_setenv_works+y}
     40809then :
     40810  printf %s "(cached) " >&6
     40811else case e in #(
     40812  e) if test "$cross_compiling" = yes
     40813then :
     40814  case "$host_os" in
     40815                        # Guess yes on glibc systems.
     40816         *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
     40817                        # Guess yes on musl systems.
     40818         *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
     40819                        # If we don't know, obey --enable-cross-guesses.
     40820         *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
     40821       esac
     40822
     40823else case e in #(
     40824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40825/* end confdefs.h.  */
     40826
     40827       #include <stdlib.h>
     40828       #include <errno.h>
     40829       #include <string.h>
     40830
     40831int
     40832main (void)
     40833{
     40834
     40835       int result = 0;
     40836       {
     40837         if (setenv ("", "", 0) != -1)
     40838           result |= 1;
     40839         else if (errno != EINVAL)
     40840           result |= 2;
     40841       }
     40842       {
     40843         if (setenv ("a", "=", 1) != 0)
     40844           result |= 4;
     40845         else if (strcmp (getenv ("a"), "=") != 0)
     40846           result |= 8;
     40847       }
     40848       return result;
     40849
     40850  ;
     40851  return 0;
     40852}
     40853_ACEOF
     40854if ac_fn_c_try_run "$LINENO"
     40855then :
     40856  gl_cv_func_setenv_works=yes
     40857else case e in #(
     40858  e) gl_cv_func_setenv_works=no ;;
     40859esac
     40860fi
     40861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40862  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40863esac
     40864fi
     40865 ;;
     40866esac
     40867fi
     40868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
     40869printf "%s\n" "$gl_cv_func_setenv_works" >&6; }
     40870    case "$gl_cv_func_setenv_works" in
     40871      *yes) ;;
     40872      *)
     40873        REPLACE_SETENV=1
     40874        ;;
     40875    esac
     40876  fi
     40877
     40878
     40879     if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
     40880  GL_COND_OBJ_SETENV_TRUE=
     40881  GL_COND_OBJ_SETENV_FALSE='#'
     40882else
     40883  GL_COND_OBJ_SETENV_TRUE='#'
     40884  GL_COND_OBJ_SETENV_FALSE=
     40885fi
     40886:
     40887    if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then
     40888    GL_COND_OBJ_SETENV_TRUE='#'
     40889    GL_COND_OBJ_SETENV_FALSE='#'
     40890  fi
     40891
     40892
     40893
     40894
     40895
     40896
     40897
     40898
     40899
     40900
     40901    if test "$GL_GNULIB_SETENV" != 1; then
     40902        if test "$GL_GNULIB_SETENV" = 0; then
     40903      GL_GNULIB_SETENV=$gl_module_indicator_condition
     40904    else
     40905      GL_GNULIB_SETENV="($GL_GNULIB_SETENV || $gl_module_indicator_condition)"
     40906    fi
     40907  fi
     40908
     40909
     40910
     40911
     40912
     40913printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h
     40914
     40915
     40916
     40917
     40918
     40919
     40920
     40921
     40922    NEED_SETLOCALE_IMPROVED=0
     40923  case "$host_os" in
     40924            mingw*) NEED_SETLOCALE_IMPROVED=1 ;;
     40925            cygwin*)
     40926      case `uname -r` in
     40927        1.5.*) NEED_SETLOCALE_IMPROVED=1 ;;
     40928      esac
     40929      ;;
     40930        *)
     40931      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5
     40932printf %s "checking whether setlocale supports the C locale... " >&6; }
     40933if test ${gl_cv_func_setlocale_works+y}
     40934then :
     40935  printf %s "(cached) " >&6
     40936else case e in #(
     40937  e) if test "$cross_compiling" = yes
     40938then :
     40939  case "$host_os" in
     40940                               # Guess no on Android.
     40941              linux*-android*) gl_cv_func_setlocale_works="guessing no";;
     40942                               # Guess yes otherwise.
     40943              *)               gl_cv_func_setlocale_works="guessing yes";;
     40944            esac
     40945
     40946else case e in #(
     40947  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     40948/* end confdefs.h.  */
     40949
     40950#include <locale.h>
     40951int main ()
     40952{
     40953  return setlocale (LC_ALL, "C") == NULL;
     40954}
     40955_ACEOF
     40956if ac_fn_c_try_run "$LINENO"
     40957then :
     40958  gl_cv_func_setlocale_works=yes
     40959else case e in #(
     40960  e) gl_cv_func_setlocale_works=no ;;
     40961esac
     40962fi
     40963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     40964  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     40965esac
     40966fi
     40967
     40968         ;;
     40969esac
     40970fi
     40971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5
     40972printf "%s\n" "$gl_cv_func_setlocale_works" >&6; }
     40973      case "$gl_cv_func_setlocale_works" in
     40974        *yes) ;;
     40975        *) NEED_SETLOCALE_IMPROVED=1 ;;
     40976      esac
     40977      ;;
     40978  esac
     40979
     40980printf "%s\n" "#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED" >>confdefs.h
     40981
     40982
     40983    NEED_SETLOCALE_MTSAFE=0
     40984  if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
     40985    NEED_SETLOCALE_MTSAFE=1
     40986  fi
     40987
     40988printf "%s\n" "#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE" >>confdefs.h
     40989
     40990
     40991  if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then
     40992    REPLACE_SETLOCALE=1
     40993  fi
     40994
     40995  if test $NEED_SETLOCALE_MTSAFE = 1; then
     40996    LIB_SETLOCALE="$LIB_SETLOCALE_NULL"
     40997  else
     40998    LIB_SETLOCALE=
     40999  fi
     41000
     41001
     41002
     41003     if test $REPLACE_SETLOCALE = 1; then
     41004  GL_COND_OBJ_SETLOCALE_TRUE=
     41005  GL_COND_OBJ_SETLOCALE_FALSE='#'
     41006else
     41007  GL_COND_OBJ_SETLOCALE_TRUE='#'
     41008  GL_COND_OBJ_SETLOCALE_FALSE=
     41009fi
     41010:
     41011    if test -z "${GL_COND_OBJ_SETLOCALE_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_FALSE}"; then
     41012    GL_COND_OBJ_SETLOCALE_TRUE='#'
     41013    GL_COND_OBJ_SETLOCALE_FALSE='#'
     41014  fi
     41015
     41016  if test -z "$GL_COND_OBJ_SETLOCALE_TRUE"; then :
     41017
     41018
     41019        :
     41020
     41021
     41022fi
     41023
     41024
     41025
     41026
     41027
     41028
     41029
     41030
     41031
     41032    if test "$GL_GNULIB_SETLOCALE" != 1; then
     41033        if test "$GL_GNULIB_SETLOCALE" = 0; then
     41034      GL_GNULIB_SETLOCALE=$gl_module_indicator_condition
     41035    else
     41036      GL_GNULIB_SETLOCALE="($GL_GNULIB_SETLOCALE || $gl_module_indicator_condition)"
     41037    fi
     41038  fi
     41039
     41040
     41041
     41042
     41043
     41044printf "%s\n" "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
     41045
     41046
     41047
     41048
     41049
     41050
     41051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     41052printf %s "checking for a traditional french locale... " >&6; }
     41053if test ${gt_cv_locale_fr+y}
     41054then :
     41055  printf %s "(cached) " >&6
     41056else case e in #(
     41057  e)
     41058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41059/* end confdefs.h.  */
     41060
     41061#include <locale.h>
     41062#include <time.h>
     41063#if HAVE_LANGINFO_CODESET
     41064# include <langinfo.h>
     41065#endif
     41066#include <stdlib.h>
     41067#include <string.h>
     41068struct tm t;
     41069char buf[16];
     41070int main () {
     41071  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     41072     imitates locale dependent behaviour by looking at the environment
     41073     variables, and all locales use the UTF-8 encoding.  */
     41074#if defined __BEOS__ || defined __HAIKU__
     41075  return 1;
     41076#else
     41077  /* Check whether the given locale name is recognized by the system.  */
     41078# if defined _WIN32 && !defined __CYGWIN__
     41079  /* On native Windows, setlocale(category, "") looks at the system settings,
     41080     not at the environment variables.  Also, when an encoding suffix such
     41081     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     41082     category of the locale to "C".  */
     41083  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     41084      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     41085    return 1;
     41086# else
     41087  if (setlocale (LC_ALL, "") == NULL) return 1;
     41088# endif
     41089  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     41090     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     41091     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     41092     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     41093     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     41094     some unit tests fail.
     41095     On MirBSD 10, when an unsupported locale is specified, setlocale()
     41096     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     41097# if HAVE_LANGINFO_CODESET
     41098  {
     41099    const char *cs = nl_langinfo (CODESET);
     41100    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     41101        || strcmp (cs, "UTF-8") == 0)
     41102      return 1;
     41103  }
     41104# endif
     41105# ifdef __CYGWIN__
     41106  /* On Cygwin, avoid locale names without encoding suffix, because the
     41107     locale_charset() function relies on the encoding suffix.  Note that
     41108     LC_ALL is set on the command line.  */
     41109  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     41110# endif
     41111  /* Check whether in the abbreviation of the second month, the second
     41112     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     41113     one byte long. This excludes the UTF-8 encoding.  */
     41114  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     41115  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     41116# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     41117  /* Check whether the decimal separator is a comma.
     41118     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     41119     are nl_langinfo(RADIXCHAR) are both ".".  */
     41120  if (localeconv () ->decimal_point[0] != ',') return 1;
     41121# endif
     41122  return 0;
     41123#endif
     41124}
     41125
     41126_ACEOF
     41127    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     41128  (eval $ac_link) 2>&5
     41129  ac_status=$?
     41130  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     41131  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     41132      case "$host_os" in
     41133        # Handle native Windows specially, because there setlocale() interprets
     41134        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     41135        # "fr" or "fra" as "French" or "French_France.1252",
     41136        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     41137        # "ja" as "Japanese" or "Japanese_Japan.932",
     41138        # and similar.
     41139        mingw*)
     41140          # Test for the native Windows locale name.
     41141          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41142            gt_cv_locale_fr=French_France.1252
     41143          else
     41144            # None found.
     41145            gt_cv_locale_fr=none
     41146          fi
     41147          ;;
     41148        *)
     41149          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     41150          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     41151          # configure script would override the LC_ALL setting. Likewise for
     41152          # LC_CTYPE, which is also set at the beginning of the configure script.
     41153          # Test for the usual locale name.
     41154          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41155            gt_cv_locale_fr=fr_FR
     41156          else
     41157            # Test for the locale name with explicit encoding suffix.
     41158            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41159              gt_cv_locale_fr=fr_FR.ISO-8859-1
     41160            else
     41161              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     41162              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41163                gt_cv_locale_fr=fr_FR.ISO8859-1
     41164              else
     41165                # Test for the HP-UX locale name.
     41166                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41167                  gt_cv_locale_fr=fr_FR.iso88591
     41168                else
     41169                  # Test for the Solaris 7 locale name.
     41170                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41171                    gt_cv_locale_fr=fr
     41172                  else
     41173                    # None found.
     41174                    gt_cv_locale_fr=none
     41175                  fi
     41176                fi
     41177              fi
     41178            fi
     41179          fi
     41180          ;;
     41181      esac
     41182    fi
     41183    rm -fr conftest*
     41184   ;;
     41185esac
     41186fi
     41187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     41188printf "%s\n" "$gt_cv_locale_fr" >&6; }
     41189  LOCALE_FR=$gt_cv_locale_fr
     41190
     41191
     41192
     41193
     41194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     41195printf %s "checking for a french Unicode locale... " >&6; }
     41196if test ${gt_cv_locale_fr_utf8+y}
     41197then :
     41198  printf %s "(cached) " >&6
     41199else case e in #(
     41200  e)
     41201    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41202/* end confdefs.h.  */
     41203
     41204#include <locale.h>
     41205#include <time.h>
     41206#if HAVE_LANGINFO_CODESET
     41207# include <langinfo.h>
     41208#endif
     41209#include <stdlib.h>
     41210#include <string.h>
     41211struct tm t;
     41212char buf[16];
     41213int main () {
     41214  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     41215     imitates locale dependent behaviour by looking at the environment
     41216     variables, and all locales use the UTF-8 encoding.  */
     41217#if !(defined __BEOS__ || defined __HAIKU__)
     41218  /* Check whether the given locale name is recognized by the system.  */
     41219# if defined _WIN32 && !defined __CYGWIN__
     41220  /* On native Windows, setlocale(category, "") looks at the system settings,
     41221     not at the environment variables.  Also, when an encoding suffix such
     41222     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     41223     category of the locale to "C".  */
     41224  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     41225      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     41226    return 1;
     41227# else
     41228  if (setlocale (LC_ALL, "") == NULL) return 1;
     41229# endif
     41230  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     41231     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     41232     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     41233     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     41234     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     41235     some unit tests fail.  */
     41236# if HAVE_LANGINFO_CODESET
     41237  {
     41238    const char *cs = nl_langinfo (CODESET);
     41239    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     41240      return 1;
     41241  }
     41242# endif
     41243# ifdef __CYGWIN__
     41244  /* On Cygwin, avoid locale names without encoding suffix, because the
     41245     locale_charset() function relies on the encoding suffix.  Note that
     41246     LC_ALL is set on the command line.  */
     41247  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     41248# endif
     41249  /* Check whether in the abbreviation of the second month, the second
     41250     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     41251     two bytes long, with UTF-8 encoding.  */
     41252  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     41253  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     41254      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     41255    return 1;
     41256#endif
     41257#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     41258  /* Check whether the decimal separator is a comma.
     41259     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     41260     are nl_langinfo(RADIXCHAR) are both ".".  */
     41261  if (localeconv () ->decimal_point[0] != ',') return 1;
     41262#endif
     41263  return 0;
     41264}
     41265
     41266_ACEOF
     41267    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     41268  (eval $ac_link) 2>&5
     41269  ac_status=$?
     41270  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     41271  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     41272      case "$host_os" in
     41273        # Handle native Windows specially, because there setlocale() interprets
     41274        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     41275        # "fr" or "fra" as "French" or "French_France.1252",
     41276        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     41277        # "ja" as "Japanese" or "Japanese_Japan.932",
     41278        # and similar.
     41279        mingw*)
     41280          # Test for the hypothetical native Windows locale name.
     41281          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41282            gt_cv_locale_fr_utf8=French_France.65001
     41283          else
     41284            # None found.
     41285            gt_cv_locale_fr_utf8=none
     41286          fi
     41287          ;;
     41288        *)
     41289          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     41290          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     41291          # configure script would override the LC_ALL setting. Likewise for
     41292          # LC_CTYPE, which is also set at the beginning of the configure script.
     41293          # Test for the usual locale name.
     41294          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41295            gt_cv_locale_fr_utf8=fr_FR
     41296          else
     41297            # Test for the locale name with explicit encoding suffix.
     41298            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41299              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     41300            else
     41301              # Test for the Solaris 7 locale name.
     41302              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41303                gt_cv_locale_fr_utf8=fr.UTF-8
     41304              else
     41305                # None found.
     41306                gt_cv_locale_fr_utf8=none
     41307              fi
     41308            fi
     41309          fi
     41310          ;;
     41311      esac
     41312    fi
     41313    rm -fr conftest*
     41314   ;;
     41315esac
     41316fi
     41317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     41318printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     41319  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     41320
     41321
     41322
     41323
     41324
     41325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
     41326printf %s "checking for a traditional japanese locale... " >&6; }
     41327if test ${gt_cv_locale_ja+y}
     41328then :
     41329  printf %s "(cached) " >&6
     41330else case e in #(
     41331  e)
     41332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41333/* end confdefs.h.  */
     41334
     41335#include <locale.h>
     41336#include <time.h>
     41337#if HAVE_LANGINFO_CODESET
     41338# include <langinfo.h>
     41339#endif
     41340#include <stdlib.h>
     41341#include <string.h>
     41342struct tm t;
     41343char buf[16];
     41344int main ()
     41345{
     41346  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     41347     imitates locale dependent behaviour by looking at the environment
     41348     variables, and all locales use the UTF-8 encoding.  */
     41349#if defined __BEOS__ || defined __HAIKU__
     41350  return 1;
     41351#else
     41352  /* Check whether the given locale name is recognized by the system.  */
     41353# if defined _WIN32 && !defined __CYGWIN__
     41354  /* On native Windows, setlocale(category, "") looks at the system settings,
     41355     not at the environment variables.  Also, when an encoding suffix such
     41356     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     41357     category of the locale to "C".  */
     41358  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     41359      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     41360    return 1;
     41361# else
     41362  if (setlocale (LC_ALL, "") == NULL) return 1;
     41363# endif
     41364  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     41365     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     41366     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     41367     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     41368     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     41369     some unit tests fail.
     41370     On MirBSD 10, when an unsupported locale is specified, setlocale()
     41371     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     41372# if HAVE_LANGINFO_CODESET
     41373  {
     41374    const char *cs = nl_langinfo (CODESET);
     41375    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     41376        || strcmp (cs, "UTF-8") == 0)
     41377      return 1;
     41378  }
     41379# endif
     41380# ifdef __CYGWIN__
     41381  /* On Cygwin, avoid locale names without encoding suffix, because the
     41382     locale_charset() function relies on the encoding suffix.  Note that
     41383     LC_ALL is set on the command line.  */
     41384  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     41385# endif
     41386  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
     41387     on Cygwin 1.5.x.  */
     41388  if (MB_CUR_MAX == 1)
     41389    return 1;
     41390  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     41391     This excludes the UTF-8 encoding (except on MirBSD).  */
     41392  {
     41393    const char *p;
     41394    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     41395    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     41396    for (p = buf; *p != '\0'; p++)
     41397      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     41398        return 1;
     41399  }
     41400  return 0;
     41401#endif
     41402}
     41403
     41404_ACEOF
     41405    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     41406  (eval $ac_link) 2>&5
     41407  ac_status=$?
     41408  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     41409  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     41410      case "$host_os" in
     41411        # Handle native Windows specially, because there setlocale() interprets
     41412        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     41413        # "fr" or "fra" as "French" or "French_France.1252",
     41414        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     41415        # "ja" as "Japanese" or "Japanese_Japan.932",
     41416        # and similar.
     41417        mingw*)
     41418          # Note that on native Windows, the Japanese locale is
     41419          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
     41420          # cannot use it here.
     41421          gt_cv_locale_ja=none
     41422          ;;
     41423        *)
     41424          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     41425          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     41426          # configure script would override the LC_ALL setting. Likewise for
     41427          # LC_CTYPE, which is also set at the beginning of the configure script.
     41428          # Test for the AIX locale name.
     41429          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41430            gt_cv_locale_ja=ja_JP
     41431          else
     41432            # Test for the locale name with explicit encoding suffix.
     41433            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41434              gt_cv_locale_ja=ja_JP.EUC-JP
     41435            else
     41436              # Test for the HP-UX, OSF/1, NetBSD locale name.
     41437              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41438                gt_cv_locale_ja=ja_JP.eucJP
     41439              else
     41440                # Test for the IRIX, FreeBSD locale name.
     41441                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41442                  gt_cv_locale_ja=ja_JP.EUC
     41443                else
     41444                  # Test for the Solaris 7 locale name.
     41445                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41446                    gt_cv_locale_ja=ja
     41447                  else
     41448                    # Special test for NetBSD 1.6.
     41449                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
     41450                      gt_cv_locale_ja=ja_JP.eucJP
     41451                    else
     41452                      # None found.
     41453                      gt_cv_locale_ja=none
     41454                    fi
     41455                  fi
     41456                fi
     41457              fi
     41458            fi
     41459          fi
     41460          ;;
     41461      esac
     41462    fi
     41463    rm -fr conftest*
     41464   ;;
     41465esac
     41466fi
     41467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
     41468printf "%s\n" "$gt_cv_locale_ja" >&6; }
     41469  LOCALE_JA=$gt_cv_locale_ja
     41470
     41471
     41472
     41473
     41474
     41475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
     41476printf %s "checking for a transitional chinese locale... " >&6; }
     41477if test ${gt_cv_locale_zh_CN+y}
     41478then :
     41479  printf %s "(cached) " >&6
     41480else case e in #(
     41481  e)
     41482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41483/* end confdefs.h.  */
     41484
     41485#include <locale.h>
     41486#include <stdlib.h>
     41487#include <time.h>
     41488#if HAVE_LANGINFO_CODESET
     41489# include <langinfo.h>
     41490#endif
     41491#include <stdlib.h>
     41492#include <string.h>
     41493struct tm t;
     41494char buf[16];
     41495int main ()
     41496{
     41497  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     41498     imitates locale dependent behaviour by looking at the environment
     41499     variables, and all locales use the UTF-8 encoding.  */
     41500#if defined __BEOS__ || defined __HAIKU__
     41501  return 1;
     41502#else
     41503  /* Check whether the given locale name is recognized by the system.  */
     41504# if defined _WIN32 && !defined __CYGWIN__
     41505  /* On native Windows, setlocale(category, "") looks at the system settings,
     41506     not at the environment variables.  Also, when an encoding suffix such
     41507     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     41508     category of the locale to "C".  */
     41509  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     41510      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     41511    return 1;
     41512# else
     41513  if (setlocale (LC_ALL, "") == NULL) return 1;
     41514# endif
     41515  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     41516     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     41517     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     41518     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     41519     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     41520     some unit tests fail.
     41521     On MirBSD 10, when an unsupported locale is specified, setlocale()
     41522     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     41523# if HAVE_LANGINFO_CODESET
     41524  {
     41525    const char *cs = nl_langinfo (CODESET);
     41526    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     41527        || strcmp (cs, "UTF-8") == 0)
     41528      return 1;
     41529  }
     41530# endif
     41531# ifdef __CYGWIN__
     41532  /* On Cygwin, avoid locale names without encoding suffix, because the
     41533     locale_charset() function relies on the encoding suffix.  Note that
     41534     LC_ALL is set on the command line.  */
     41535  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     41536# endif
     41537  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     41538     This excludes the UTF-8 encoding (except on MirBSD).  */
     41539  {
     41540    const char *p;
     41541    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     41542    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     41543    for (p = buf; *p != '\0'; p++)
     41544      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     41545        return 1;
     41546  }
     41547  /* Check whether a typical GB18030 multibyte sequence is recognized as a
     41548     single wide character.  This excludes the GB2312 and GBK encodings.  */
     41549  if (mblen ("\203\062\332\066", 5) != 4)
     41550    return 1;
     41551  return 0;
     41552#endif
     41553}
     41554
     41555_ACEOF
     41556    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     41557  (eval $ac_link) 2>&5
     41558  ac_status=$?
     41559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     41560  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     41561      case "$host_os" in
     41562        # Handle native Windows specially, because there setlocale() interprets
     41563        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     41564        # "fr" or "fra" as "French" or "French_France.1252",
     41565        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     41566        # "ja" as "Japanese" or "Japanese_Japan.932",
     41567        # and similar.
     41568        mingw*)
     41569          # Test for the hypothetical native Windows locale name.
     41570          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41571            gt_cv_locale_zh_CN=Chinese_China.54936
     41572          else
     41573            # None found.
     41574            gt_cv_locale_zh_CN=none
     41575          fi
     41576          ;;
     41577        solaris2.8)
     41578          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
     41579          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
     41580          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
     41581          gt_cv_locale_zh_CN=none
     41582          ;;
     41583        *)
     41584          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     41585          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     41586          # configure script would override the LC_ALL setting. Likewise for
     41587          # LC_CTYPE, which is also set at the beginning of the configure script.
     41588          # Test for the locale name without encoding suffix.
     41589          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41590            gt_cv_locale_zh_CN=zh_CN
     41591          else
     41592            # Test for the locale name with explicit encoding suffix.
     41593            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     41594              gt_cv_locale_zh_CN=zh_CN.GB18030
     41595            else
     41596              # None found.
     41597              gt_cv_locale_zh_CN=none
     41598            fi
     41599          fi
     41600          ;;
     41601      esac
     41602    else
     41603      # If there was a link error, due to mblen(), the system is so old that
     41604      # it certainly doesn't have a chinese locale.
     41605      gt_cv_locale_zh_CN=none
     41606    fi
     41607    rm -fr conftest*
     41608   ;;
     41609esac
     41610fi
     41611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
     41612printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
     41613  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
     41614
     41615
     41616
     41617
     41618     if test "$ac_cv_header_winsock2_h" = yes; then
     41619  GL_COND_OBJ_SETSOCKOPT_TRUE=
     41620  GL_COND_OBJ_SETSOCKOPT_FALSE='#'
     41621else
     41622  GL_COND_OBJ_SETSOCKOPT_TRUE='#'
     41623  GL_COND_OBJ_SETSOCKOPT_FALSE=
     41624fi
     41625:
     41626    if test -z "${GL_COND_OBJ_SETSOCKOPT_TRUE}" && test -z "${GL_COND_OBJ_SETSOCKOPT_FALSE}"; then
     41627    GL_COND_OBJ_SETSOCKOPT_TRUE='#'
     41628    GL_COND_OBJ_SETSOCKOPT_FALSE='#'
     41629  fi
     41630
     41631
     41632
     41633
     41634
     41635
     41636
     41637
     41638
     41639
     41640    if test "$GL_GNULIB_SETSOCKOPT" != 1; then
     41641        if test "$GL_GNULIB_SETSOCKOPT" = 0; then
     41642      GL_GNULIB_SETSOCKOPT=$gl_module_indicator_condition
     41643    else
     41644      GL_GNULIB_SETSOCKOPT="($GL_GNULIB_SETSOCKOPT || $gl_module_indicator_condition)"
     41645    fi
     41646  fi
     41647
     41648
     41649
     41650
     41651
     41652printf "%s\n" "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
     41653
     41654
     41655
     41656
     41657
     41658
     41659
     41660
     41661
     41662
     41663
     41664
     41665
     41666  HAVE_POSIX_SIGNALBLOCKING=0
     41667  if test "$gl_cv_type_sigset_t" = yes; then
     41668    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
     41669if test "x$ac_cv_func_sigprocmask" = xyes
     41670then :
     41671  HAVE_POSIX_SIGNALBLOCKING=1
     41672fi
     41673
     41674  fi
     41675
     41676
     41677     if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
     41678  GL_COND_OBJ_SIGPROCMASK_TRUE=
     41679  GL_COND_OBJ_SIGPROCMASK_FALSE='#'
     41680else
     41681  GL_COND_OBJ_SIGPROCMASK_TRUE='#'
     41682  GL_COND_OBJ_SIGPROCMASK_FALSE=
     41683fi
     41684:
     41685    if test -z "${GL_COND_OBJ_SIGPROCMASK_TRUE}" && test -z "${GL_COND_OBJ_SIGPROCMASK_FALSE}"; then
     41686    GL_COND_OBJ_SIGPROCMASK_TRUE='#'
     41687    GL_COND_OBJ_SIGPROCMASK_FALSE='#'
     41688  fi
     41689
     41690  if test -z "$GL_COND_OBJ_SIGPROCMASK_TRUE"; then :
     41691
     41692    :
     41693
     41694fi
     41695
     41696
     41697
     41698
     41699
     41700
     41701
     41702
     41703
     41704    if test "$GL_GNULIB_SIGPROCMASK" != 1; then
     41705        if test "$GL_GNULIB_SIGPROCMASK" = 0; then
     41706      GL_GNULIB_SIGPROCMASK=$gl_module_indicator_condition
     41707    else
     41708      GL_GNULIB_SIGPROCMASK="($GL_GNULIB_SIGPROCMASK || $gl_module_indicator_condition)"
     41709    fi
     41710  fi
     41711
     41712
     41713
     41714
     41715
     41716printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
     41717
     41718
     41719
     41720
     41721
     41722               ac_fn_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
     41723" "$ac_c_undeclared_builtin_options" "CFLAGS"
     41724if test "x$ac_cv_have_decl_sleep" = xyes
     41725then :
     41726  ac_have_decl=1
     41727else case e in #(
     41728  e) ac_have_decl=0 ;;
     41729esac
     41730fi
     41731printf "%s\n" "#define HAVE_DECL_SLEEP $ac_have_decl" >>confdefs.h
     41732
     41733
     41734  if test $ac_cv_have_decl_sleep != yes; then
     41735    HAVE_SLEEP=0
     41736  else
     41737        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
     41738printf %s "checking for working sleep... " >&6; }
     41739if test ${gl_cv_func_sleep_works+y}
     41740then :
     41741  printf %s "(cached) " >&6
     41742else case e in #(
     41743  e) if test "$cross_compiling" = yes
     41744then :
     41745  case "$host_os" in
     41746                        # Guess yes on glibc systems.
     41747         *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
     41748                        # Guess yes on musl systems.
     41749         *-musl*)       gl_cv_func_sleep_works="guessing yes" ;;
     41750                        # Guess no on native Windows.
     41751         mingw*)        gl_cv_func_sleep_works="guessing no" ;;
     41752                        # If we don't know, obey --enable-cross-guesses.
     41753         *)             gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
     41754       esac
     41755
     41756else case e in #(
     41757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41758/* end confdefs.h.  */
     41759
     41760#include <errno.h>
     41761#include <unistd.h>
     41762#include <signal.h>
     41763static void
     41764handle_alarm (int sig)
     41765{
     41766  if (sig != SIGALRM)
     41767    _exit (2);
     41768}
     41769
     41770int
     41771main (void)
     41772{
     41773
     41774    /* Failure to compile this test due to missing alarm is okay,
     41775       since all such platforms (mingw) also lack sleep.  */
     41776    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
     41777    unsigned int remaining;
     41778    signal (SIGALRM, handle_alarm);
     41779    alarm (1);
     41780    remaining = sleep (pentecost);
     41781    if (remaining > pentecost)
     41782      return 3;
     41783    if (remaining <= pentecost - 10)
     41784      return 4;
     41785    return 0;
     41786
     41787  ;
     41788  return 0;
     41789}
     41790_ACEOF
     41791if ac_fn_c_try_run "$LINENO"
     41792then :
     41793  gl_cv_func_sleep_works=yes
     41794else case e in #(
     41795  e) gl_cv_func_sleep_works=no ;;
     41796esac
     41797fi
     41798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     41799  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     41800esac
     41801fi
     41802 ;;
     41803esac
     41804fi
     41805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
     41806printf "%s\n" "$gl_cv_func_sleep_works" >&6; }
     41807    case "$gl_cv_func_sleep_works" in
     41808      *yes) ;;
     41809      *)
     41810        REPLACE_SLEEP=1
     41811        ;;
     41812    esac
     41813  fi
     41814
     41815
     41816     if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
     41817  GL_COND_OBJ_SLEEP_TRUE=
     41818  GL_COND_OBJ_SLEEP_FALSE='#'
     41819else
     41820  GL_COND_OBJ_SLEEP_TRUE='#'
     41821  GL_COND_OBJ_SLEEP_FALSE=
     41822fi
     41823:
     41824    if test -z "${GL_COND_OBJ_SLEEP_TRUE}" && test -z "${GL_COND_OBJ_SLEEP_FALSE}"; then
     41825    GL_COND_OBJ_SLEEP_TRUE='#'
     41826    GL_COND_OBJ_SLEEP_FALSE='#'
     41827  fi
     41828
     41829
     41830
     41831
     41832
     41833
     41834
     41835
     41836
     41837
     41838    if test "$GL_GNULIB_SLEEP" != 1; then
     41839        if test "$GL_GNULIB_SLEEP" = 0; then
     41840      GL_GNULIB_SLEEP=$gl_module_indicator_condition
     41841    else
     41842      GL_GNULIB_SLEEP="($GL_GNULIB_SLEEP || $gl_module_indicator_condition)"
     41843    fi
     41844  fi
     41845
     41846
     41847
     41848
     41849
     41850printf "%s\n" "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
     41851
     41852
     41853
     41854
     41855
     41856
     41857     if test "$ac_cv_header_winsock2_h" = yes; then
     41858  GL_COND_OBJ_SOCKET_TRUE=
     41859  GL_COND_OBJ_SOCKET_FALSE='#'
     41860else
     41861  GL_COND_OBJ_SOCKET_TRUE='#'
     41862  GL_COND_OBJ_SOCKET_FALSE=
     41863fi
     41864:
     41865    if test -z "${GL_COND_OBJ_SOCKET_TRUE}" && test -z "${GL_COND_OBJ_SOCKET_FALSE}"; then
     41866    GL_COND_OBJ_SOCKET_TRUE='#'
     41867    GL_COND_OBJ_SOCKET_FALSE='#'
     41868  fi
     41869
     41870  # When this module is used, sockets may actually occur as file descriptors,
     41871  # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
     41872
     41873
     41874
     41875
     41876
     41877
     41878
     41879
     41880
     41881
     41882
     41883  if test "$ac_cv_header_winsock2_h" = yes; then
     41884    UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
     41885    SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
     41886  fi
     41887
     41888
     41889
     41890
     41891
     41892
     41893
     41894
     41895
     41896    if test "$GL_GNULIB_SOCKET" != 1; then
     41897        if test "$GL_GNULIB_SOCKET" = 0; then
     41898      GL_GNULIB_SOCKET=$gl_module_indicator_condition
     41899    else
     41900      GL_GNULIB_SOCKET="($GL_GNULIB_SOCKET || $gl_module_indicator_condition)"
     41901    fi
     41902  fi
     41903
     41904
     41905
     41906
     41907
     41908printf "%s\n" "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
     41909
     41910
     41911
     41912
     41913
     41914     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
     41915/* <sys/types.h> is not needed according to POSIX, but the
     41916   <sys/socket.h> in i386-unknown-freebsd4.10 and
     41917   powerpc-apple-darwin5.5 required it. */
     41918#include <sys/types.h>
     41919#if HAVE_SYS_SOCKET_H
     41920# include <sys/socket.h>
     41921#elif HAVE_WS2TCPIP_H
     41922# include <ws2tcpip.h>
     41923#endif
     41924
     41925"
     41926if test "x$ac_cv_type_socklen_t" = xyes
     41927then :
     41928
     41929else case e in #(
     41930  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
     41931printf %s "checking for socklen_t equivalent... " >&6; }
     41932if test ${gl_cv_socklen_t_equiv+y}
     41933then :
     41934  printf %s "(cached) " >&6
     41935else case e in #(
     41936  e) # Systems have either "struct sockaddr *" or
     41937         # "void *" as the second argument to getpeername
     41938         gl_cv_socklen_t_equiv=
     41939         for arg2 in "struct sockaddr" void; do
     41940           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
     41941             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     41942/* end confdefs.h.  */
     41943#include <sys/types.h>
     41944                   #include <sys/socket.h>
     41945
     41946                   int getpeername (int, $arg2 *, $t *);
     41947int
     41948main (void)
     41949{
     41950$t len;
     41951                  getpeername (0, 0, &len);
     41952  ;
     41953  return 0;
     41954}
     41955_ACEOF
     41956if ac_fn_c_try_compile "$LINENO"
     41957then :
     41958  gl_cv_socklen_t_equiv="$t"
     41959fi
     41960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     41961             test "$gl_cv_socklen_t_equiv" != "" && break
     41962           done
     41963           test "$gl_cv_socklen_t_equiv" != "" && break
     41964         done
     41965         if test "$gl_cv_socklen_t_equiv" = ""; then
     41966           as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
     41967         fi
     41968         ;;
     41969esac
     41970fi
     41971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
     41972printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; }
     41973
     41974printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h
     41975 ;;
     41976esac
     41977fi
     41978
     41979
     41980
     41981
     41982
     41983
     41984  if test $gl_cv_func_malloc_posix != yes; then
     41985    REPLACE_STRDUP=1
     41986  fi
     41987
     41988  if test $ac_cv_have_decl_strdup = no; then
     41989    HAVE_DECL_STRDUP=0
     41990  fi
     41991
     41992
     41993     if test $REPLACE_STRDUP = 1; then
     41994  GL_COND_OBJ_STRDUP_TRUE=
     41995  GL_COND_OBJ_STRDUP_FALSE='#'
     41996else
     41997  GL_COND_OBJ_STRDUP_TRUE='#'
     41998  GL_COND_OBJ_STRDUP_FALSE=
     41999fi
     42000:
     42001    if test -z "${GL_COND_OBJ_STRDUP_TRUE}" && test -z "${GL_COND_OBJ_STRDUP_FALSE}"; then
     42002    GL_COND_OBJ_STRDUP_TRUE='#'
     42003    GL_COND_OBJ_STRDUP_FALSE='#'
     42004  fi
     42005
     42006  if test -z "$GL_COND_OBJ_STRDUP_TRUE"; then :
     42007
     42008    :
     42009
     42010fi
     42011
     42012
     42013
     42014
     42015
     42016
     42017
     42018
     42019
     42020
     42021
     42022
     42023
     42024
     42025    if test "$GL_GNULIB_STRDUP" != 1; then
     42026        if test "$GL_GNULIB_STRDUP" = 0; then
     42027      GL_GNULIB_STRDUP=$gl_module_indicator_condition
     42028    else
     42029      GL_GNULIB_STRDUP="($GL_GNULIB_STRDUP || $gl_module_indicator_condition)"
     42030    fi
     42031  fi
     42032
     42033
     42034
     42035
     42036
     42037printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
     42038
     42039
     42040
     42041
     42042
     42043
     42044
     42045
     42046  if test $ac_cv_have_decl_strerror_r = no; then
     42047    HAVE_DECL_STRERROR_R=0
     42048  fi
     42049
     42050  if test $ac_cv_func_strerror_r = yes; then
     42051    if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
     42052      if test $gl_cv_func_strerror_r_posix_signature = yes; then
     42053        case "$gl_cv_func_strerror_r_works" in
     42054                    *no) REPLACE_STRERROR_R=1 ;;
     42055        esac
     42056      else
     42057                REPLACE_STRERROR_R=1
     42058      fi
     42059    else
     42060                  REPLACE_STRERROR_R=1
     42061    fi
     42062  fi
     42063
     42064  if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1
     42065then :
     42066
     42067
     42068
     42069
     42070
     42071
     42072
     42073
     42074
     42075  gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext"
     42076
     42077
     42078
     42079
     42080
     42081
     42082
     42083
     42084fi
     42085
     42086
     42087
     42088
     42089
     42090
     42091
     42092
     42093
     42094
     42095
     42096
     42097
     42098
     42099    if test "$GL_GNULIB_STRERROR_R" != 1; then
     42100        if test "$GL_GNULIB_STRERROR_R" = 0; then
     42101      GL_GNULIB_STRERROR_R=$gl_module_indicator_condition
     42102    else
     42103      GL_GNULIB_STRERROR_R="($GL_GNULIB_STRERROR_R || $gl_module_indicator_condition)"
     42104    fi
     42105  fi
     42106
     42107
     42108
     42109
     42110
     42111printf "%s\n" "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
     42112
     42113
     42114
     42115
     42116
     42117printf "%s\n" "#define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition" >>confdefs.h
     42118
     42119
     42120
     42121
     42122
     42123        if test $ac_cv_func_symlink = no; then
     42124    HAVE_SYMLINK=0
     42125  else
     42126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
     42127printf %s "checking whether symlink handles trailing slash correctly... " >&6; }
     42128if test ${gl_cv_func_symlink_works+y}
     42129then :
     42130  printf %s "(cached) " >&6
     42131else case e in #(
     42132  e) if test "$cross_compiling" = yes
     42133then :
     42134  case "$host_os" in
     42135                             # Guess yes on Linux systems.
     42136            linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
     42137                             # Guess yes on glibc systems.
     42138            *-gnu* | gnu*)   gl_cv_func_symlink_works="guessing yes" ;;
     42139                             # If we don't know, obey --enable-cross-guesses.
     42140            *)               gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
     42141          esac
     42142
     42143else case e in #(
     42144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42145/* end confdefs.h.  */
     42146#include <unistd.h>
     42147
     42148int
     42149main (void)
     42150{
     42151int result = 0;
     42152             if (!symlink ("a", "conftest.link/"))
     42153               result |= 1;
     42154             if (symlink ("conftest.f", "conftest.lnk2"))
     42155               result |= 2;
     42156             else if (!symlink ("a", "conftest.lnk2/"))
     42157               result |= 4;
     42158             return result;
     42159
     42160  ;
     42161  return 0;
     42162}
     42163_ACEOF
     42164if ac_fn_c_try_run "$LINENO"
     42165then :
     42166  gl_cv_func_symlink_works=yes
     42167else case e in #(
     42168  e) gl_cv_func_symlink_works=no ;;
     42169esac
     42170fi
     42171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     42172  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     42173esac
     42174fi
     42175
     42176      rm -f conftest.f conftest.link conftest.lnk2 ;;
     42177esac
     42178fi
     42179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
     42180printf "%s\n" "$gl_cv_func_symlink_works" >&6; }
     42181    case "$gl_cv_func_symlink_works" in
     42182      *yes) ;;
     42183      *)
     42184        REPLACE_SYMLINK=1
     42185        ;;
     42186    esac
     42187  fi
     42188
     42189
     42190     if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
     42191  GL_COND_OBJ_SYMLINK_TRUE=
     42192  GL_COND_OBJ_SYMLINK_FALSE='#'
     42193else
     42194  GL_COND_OBJ_SYMLINK_TRUE='#'
     42195  GL_COND_OBJ_SYMLINK_FALSE=
     42196fi
     42197:
     42198    if test -z "${GL_COND_OBJ_SYMLINK_TRUE}" && test -z "${GL_COND_OBJ_SYMLINK_FALSE}"; then
     42199    GL_COND_OBJ_SYMLINK_TRUE='#'
     42200    GL_COND_OBJ_SYMLINK_FALSE='#'
     42201  fi
     42202
     42203
     42204
     42205
     42206
     42207
     42208
     42209
     42210
     42211
     42212    if test "$GL_GNULIB_SYMLINK" != 1; then
     42213        if test "$GL_GNULIB_SYMLINK" = 0; then
     42214      GL_GNULIB_SYMLINK=$gl_module_indicator_condition
     42215    else
     42216      GL_GNULIB_SYMLINK="($GL_GNULIB_SYMLINK || $gl_module_indicator_condition)"
     42217    fi
     42218  fi
     42219
     42220
     42221
     42222
     42223
     42224printf "%s\n" "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
     42225
     42226
     42227
     42228
     42229
     42230
     42231
     42232
     42233
     42234
     42235
     42236
     42237
     42238
     42239
     42240
     42241
     42242
     42243
     42244
     42245
     42246
     42247
     42248
     42249
     42250
     42251
     42252
     42253
     42254
     42255
     42256
     42257
     42258
     42259
     42260
     42261
     42262
     42263
     42264
     42265
     42266
     42267  if test $gl_threads_api = posix; then
     42268    gl_save_LIBS="$LIBS"
     42269    LIBS="$LIBS $LIBMULTITHREAD"
     42270    ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
     42271if test "x$ac_cv_func_pthread_atfork" = xyes
     42272then :
     42273  printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h
     42274
     42275fi
     42276
     42277    LIBS="$gl_save_LIBS"
     42278  fi
     42279
     42280  ac_fn_c_check_header_compile "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default"
     42281if test "x$ac_cv_header_sys_single_threaded_h" = xyes
     42282then :
     42283  printf "%s\n" "#define HAVE_SYS_SINGLE_THREADED_H 1" >>confdefs.h
     42284
     42285fi
     42286
     42287
     42288
     42289
     42290  if test $ac_cv_have_decl_unsetenv = no; then
     42291    HAVE_DECL_UNSETENV=0
     42292  fi
     42293  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
     42294if test "x$ac_cv_func_unsetenv" = xyes
     42295then :
     42296  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
     42297
     42298fi
     42299
     42300  if test $ac_cv_func_unsetenv = no; then
     42301    HAVE_UNSETENV=0
     42302  else
     42303    HAVE_UNSETENV=1
     42304        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
     42305printf %s "checking for unsetenv() return type... " >&6; }
     42306if test ${gt_cv_func_unsetenv_ret+y}
     42307then :
     42308  printf %s "(cached) " >&6
     42309else case e in #(
     42310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42311/* end confdefs.h.  */
     42312
     42313#undef _BSD
     42314#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
     42315#include <stdlib.h>
     42316extern
     42317#ifdef __cplusplus
     42318"C"
     42319#endif
     42320int unsetenv (const char *name);
     42321
     42322int
     42323main (void)
     42324{
     42325
     42326  ;
     42327  return 0;
     42328}
     42329_ACEOF
     42330if ac_fn_c_try_compile "$LINENO"
     42331then :
     42332  gt_cv_func_unsetenv_ret='int'
     42333else case e in #(
     42334  e) gt_cv_func_unsetenv_ret='void' ;;
     42335esac
     42336fi
     42337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     42338esac
     42339fi
     42340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
     42341printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; }
     42342    if test $gt_cv_func_unsetenv_ret = 'void'; then
     42343
     42344printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h
     42345
     42346      REPLACE_UNSETENV=1
     42347    fi
     42348
     42349                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
     42350printf %s "checking whether unsetenv obeys POSIX... " >&6; }
     42351if test ${gl_cv_func_unsetenv_works+y}
     42352then :
     42353  printf %s "(cached) " >&6
     42354else case e in #(
     42355  e) if test "$cross_compiling" = yes
     42356then :
     42357  case "$host_os" in
     42358                    # Guess yes on glibc systems.
     42359            *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
     42360                    # If we don't know, obey --enable-cross-guesses.
     42361            *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
     42362          esac
     42363
     42364else case e in #(
     42365  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42366/* end confdefs.h.  */
     42367
     42368            #include <stdlib.h>
     42369            #include <errno.h>
     42370            extern char **environ;
     42371
     42372
     42373$gl_mda_defines
     42374
     42375int
     42376main (void)
     42377{
     42378
     42379            char entry1[] = "a=1";
     42380            char entry2[] = "b=2";
     42381            char *env[] = { entry1, entry2, NULL };
     42382            if (putenv ((char *) "a=1")) return 1;
     42383            if (putenv (entry2)) return 2;
     42384            entry2[0] = 'a';
     42385            unsetenv ("a");
     42386            if (getenv ("a")) return 3;
     42387            if (!unsetenv ("") || errno != EINVAL) return 4;
     42388            entry2[0] = 'b';
     42389            environ = env;
     42390            if (!getenv ("a")) return 5;
     42391            entry2[0] = 'a';
     42392            unsetenv ("a");
     42393            if (getenv ("a")) return 6;
     42394
     42395  ;
     42396  return 0;
     42397}
     42398_ACEOF
     42399if ac_fn_c_try_run "$LINENO"
     42400then :
     42401  gl_cv_func_unsetenv_works=yes
     42402else case e in #(
     42403  e) gl_cv_func_unsetenv_works=no ;;
     42404esac
     42405fi
     42406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     42407  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     42408esac
     42409fi
     42410
     42411       ;;
     42412esac
     42413fi
     42414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
     42415printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; }
     42416    case "$gl_cv_func_unsetenv_works" in
     42417      *yes) ;;
     42418      *)
     42419        REPLACE_UNSETENV=1
     42420        ;;
     42421    esac
     42422  fi
     42423
     42424
     42425     if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
     42426  GL_COND_OBJ_UNSETENV_TRUE=
     42427  GL_COND_OBJ_UNSETENV_FALSE='#'
     42428else
     42429  GL_COND_OBJ_UNSETENV_TRUE='#'
     42430  GL_COND_OBJ_UNSETENV_FALSE=
     42431fi
     42432:
     42433    if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then
     42434    GL_COND_OBJ_UNSETENV_TRUE='#'
     42435    GL_COND_OBJ_UNSETENV_FALSE='#'
     42436  fi
     42437
     42438  if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then :
     42439
     42440
     42441
     42442
     42443
     42444
     42445fi
     42446
     42447
     42448
     42449
     42450
     42451
     42452
     42453
     42454
     42455    if test "$GL_GNULIB_UNSETENV" != 1; then
     42456        if test "$GL_GNULIB_UNSETENV" = 0; then
     42457      GL_GNULIB_UNSETENV=$gl_module_indicator_condition
     42458    else
     42459      GL_GNULIB_UNSETENV="($GL_GNULIB_UNSETENV || $gl_module_indicator_condition)"
     42460    fi
     42461  fi
     42462
     42463
     42464
     42465
     42466
     42467printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
     42468
     42469
     42470
     42471  abs_aux_dir=`cd "$ac_aux_dir"; pwd`
     42472
     42473  abs_aux_dir=`cd "$ac_aux_dir"; pwd`
     42474
     42475
     42476
     42477
     42478
     42479
     42480
     42481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
     42482printf %s "checking for a traditional french locale... " >&6; }
     42483if test ${gt_cv_locale_fr+y}
     42484then :
     42485  printf %s "(cached) " >&6
     42486else case e in #(
     42487  e)
     42488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42489/* end confdefs.h.  */
     42490
     42491#include <locale.h>
     42492#include <time.h>
     42493#if HAVE_LANGINFO_CODESET
     42494# include <langinfo.h>
     42495#endif
     42496#include <stdlib.h>
     42497#include <string.h>
     42498struct tm t;
     42499char buf[16];
     42500int main () {
     42501  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     42502     imitates locale dependent behaviour by looking at the environment
     42503     variables, and all locales use the UTF-8 encoding.  */
     42504#if defined __BEOS__ || defined __HAIKU__
     42505  return 1;
     42506#else
     42507  /* Check whether the given locale name is recognized by the system.  */
     42508# if defined _WIN32 && !defined __CYGWIN__
     42509  /* On native Windows, setlocale(category, "") looks at the system settings,
     42510     not at the environment variables.  Also, when an encoding suffix such
     42511     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     42512     category of the locale to "C".  */
     42513  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     42514      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     42515    return 1;
     42516# else
     42517  if (setlocale (LC_ALL, "") == NULL) return 1;
     42518# endif
     42519  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     42520     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     42521     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     42522     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     42523     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     42524     some unit tests fail.
     42525     On MirBSD 10, when an unsupported locale is specified, setlocale()
     42526     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     42527# if HAVE_LANGINFO_CODESET
     42528  {
     42529    const char *cs = nl_langinfo (CODESET);
     42530    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     42531        || strcmp (cs, "UTF-8") == 0)
     42532      return 1;
     42533  }
     42534# endif
     42535# ifdef __CYGWIN__
     42536  /* On Cygwin, avoid locale names without encoding suffix, because the
     42537     locale_charset() function relies on the encoding suffix.  Note that
     42538     LC_ALL is set on the command line.  */
     42539  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     42540# endif
     42541  /* Check whether in the abbreviation of the second month, the second
     42542     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
     42543     one byte long. This excludes the UTF-8 encoding.  */
     42544  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     42545  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
     42546# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     42547  /* Check whether the decimal separator is a comma.
     42548     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     42549     are nl_langinfo(RADIXCHAR) are both ".".  */
     42550  if (localeconv () ->decimal_point[0] != ',') return 1;
     42551# endif
     42552  return 0;
     42553#endif
     42554}
     42555
     42556_ACEOF
     42557    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     42558  (eval $ac_link) 2>&5
     42559  ac_status=$?
     42560  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     42561  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     42562      case "$host_os" in
     42563        # Handle native Windows specially, because there setlocale() interprets
     42564        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     42565        # "fr" or "fra" as "French" or "French_France.1252",
     42566        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     42567        # "ja" as "Japanese" or "Japanese_Japan.932",
     42568        # and similar.
     42569        mingw*)
     42570          # Test for the native Windows locale name.
     42571          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42572            gt_cv_locale_fr=French_France.1252
     42573          else
     42574            # None found.
     42575            gt_cv_locale_fr=none
     42576          fi
     42577          ;;
     42578        *)
     42579          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     42580          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     42581          # configure script would override the LC_ALL setting. Likewise for
     42582          # LC_CTYPE, which is also set at the beginning of the configure script.
     42583          # Test for the usual locale name.
     42584          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42585            gt_cv_locale_fr=fr_FR
     42586          else
     42587            # Test for the locale name with explicit encoding suffix.
     42588            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42589              gt_cv_locale_fr=fr_FR.ISO-8859-1
     42590            else
     42591              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
     42592              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42593                gt_cv_locale_fr=fr_FR.ISO8859-1
     42594              else
     42595                # Test for the HP-UX locale name.
     42596                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42597                  gt_cv_locale_fr=fr_FR.iso88591
     42598                else
     42599                  # Test for the Solaris 7 locale name.
     42600                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42601                    gt_cv_locale_fr=fr
     42602                  else
     42603                    # None found.
     42604                    gt_cv_locale_fr=none
     42605                  fi
     42606                fi
     42607              fi
     42608            fi
     42609          fi
     42610          ;;
     42611      esac
     42612    fi
     42613    rm -fr conftest*
     42614   ;;
     42615esac
     42616fi
     42617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
     42618printf "%s\n" "$gt_cv_locale_fr" >&6; }
     42619  LOCALE_FR=$gt_cv_locale_fr
     42620
     42621
     42622
     42623
     42624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
     42625printf %s "checking for a french Unicode locale... " >&6; }
     42626if test ${gt_cv_locale_fr_utf8+y}
     42627then :
     42628  printf %s "(cached) " >&6
     42629else case e in #(
     42630  e)
     42631    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42632/* end confdefs.h.  */
     42633
     42634#include <locale.h>
     42635#include <time.h>
     42636#if HAVE_LANGINFO_CODESET
     42637# include <langinfo.h>
     42638#endif
     42639#include <stdlib.h>
     42640#include <string.h>
     42641struct tm t;
     42642char buf[16];
     42643int main () {
     42644  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     42645     imitates locale dependent behaviour by looking at the environment
     42646     variables, and all locales use the UTF-8 encoding.  */
     42647#if !(defined __BEOS__ || defined __HAIKU__)
     42648  /* Check whether the given locale name is recognized by the system.  */
     42649# if defined _WIN32 && !defined __CYGWIN__
     42650  /* On native Windows, setlocale(category, "") looks at the system settings,
     42651     not at the environment variables.  Also, when an encoding suffix such
     42652     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     42653     category of the locale to "C".  */
     42654  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     42655      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     42656    return 1;
     42657# else
     42658  if (setlocale (LC_ALL, "") == NULL) return 1;
     42659# endif
     42660  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     42661     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     42662     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     42663     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     42664     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     42665     some unit tests fail.  */
     42666# if HAVE_LANGINFO_CODESET
     42667  {
     42668    const char *cs = nl_langinfo (CODESET);
     42669    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
     42670      return 1;
     42671  }
     42672# endif
     42673# ifdef __CYGWIN__
     42674  /* On Cygwin, avoid locale names without encoding suffix, because the
     42675     locale_charset() function relies on the encoding suffix.  Note that
     42676     LC_ALL is set on the command line.  */
     42677  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     42678# endif
     42679  /* Check whether in the abbreviation of the second month, the second
     42680     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
     42681     two bytes long, with UTF-8 encoding.  */
     42682  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     42683  if (strftime (buf, sizeof (buf), "%b", &t) < 4
     42684      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
     42685    return 1;
     42686#endif
     42687#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
     42688  /* Check whether the decimal separator is a comma.
     42689     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
     42690     are nl_langinfo(RADIXCHAR) are both ".".  */
     42691  if (localeconv () ->decimal_point[0] != ',') return 1;
     42692#endif
     42693  return 0;
     42694}
     42695
     42696_ACEOF
     42697    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     42698  (eval $ac_link) 2>&5
     42699  ac_status=$?
     42700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     42701  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     42702      case "$host_os" in
     42703        # Handle native Windows specially, because there setlocale() interprets
     42704        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     42705        # "fr" or "fra" as "French" or "French_France.1252",
     42706        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     42707        # "ja" as "Japanese" or "Japanese_Japan.932",
     42708        # and similar.
     42709        mingw*)
     42710          # Test for the hypothetical native Windows locale name.
     42711          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42712            gt_cv_locale_fr_utf8=French_France.65001
     42713          else
     42714            # None found.
     42715            gt_cv_locale_fr_utf8=none
     42716          fi
     42717          ;;
     42718        *)
     42719          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     42720          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     42721          # configure script would override the LC_ALL setting. Likewise for
     42722          # LC_CTYPE, which is also set at the beginning of the configure script.
     42723          # Test for the usual locale name.
     42724          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42725            gt_cv_locale_fr_utf8=fr_FR
     42726          else
     42727            # Test for the locale name with explicit encoding suffix.
     42728            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42729              gt_cv_locale_fr_utf8=fr_FR.UTF-8
     42730            else
     42731              # Test for the Solaris 7 locale name.
     42732              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42733                gt_cv_locale_fr_utf8=fr.UTF-8
     42734              else
     42735                # None found.
     42736                gt_cv_locale_fr_utf8=none
     42737              fi
     42738            fi
     42739          fi
     42740          ;;
     42741      esac
     42742    fi
     42743    rm -fr conftest*
     42744   ;;
     42745esac
     42746fi
     42747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
     42748printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
     42749  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
     42750
     42751
     42752
     42753
     42754
     42755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
     42756printf %s "checking for a traditional japanese locale... " >&6; }
     42757if test ${gt_cv_locale_ja+y}
     42758then :
     42759  printf %s "(cached) " >&6
     42760else case e in #(
     42761  e)
     42762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42763/* end confdefs.h.  */
     42764
     42765#include <locale.h>
     42766#include <time.h>
     42767#if HAVE_LANGINFO_CODESET
     42768# include <langinfo.h>
     42769#endif
     42770#include <stdlib.h>
     42771#include <string.h>
     42772struct tm t;
     42773char buf[16];
     42774int main ()
     42775{
     42776  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     42777     imitates locale dependent behaviour by looking at the environment
     42778     variables, and all locales use the UTF-8 encoding.  */
     42779#if defined __BEOS__ || defined __HAIKU__
     42780  return 1;
     42781#else
     42782  /* Check whether the given locale name is recognized by the system.  */
     42783# if defined _WIN32 && !defined __CYGWIN__
     42784  /* On native Windows, setlocale(category, "") looks at the system settings,
     42785     not at the environment variables.  Also, when an encoding suffix such
     42786     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     42787     category of the locale to "C".  */
     42788  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     42789      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     42790    return 1;
     42791# else
     42792  if (setlocale (LC_ALL, "") == NULL) return 1;
     42793# endif
     42794  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     42795     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     42796     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     42797     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     42798     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     42799     some unit tests fail.
     42800     On MirBSD 10, when an unsupported locale is specified, setlocale()
     42801     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     42802# if HAVE_LANGINFO_CODESET
     42803  {
     42804    const char *cs = nl_langinfo (CODESET);
     42805    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     42806        || strcmp (cs, "UTF-8") == 0)
     42807      return 1;
     42808  }
     42809# endif
     42810# ifdef __CYGWIN__
     42811  /* On Cygwin, avoid locale names without encoding suffix, because the
     42812     locale_charset() function relies on the encoding suffix.  Note that
     42813     LC_ALL is set on the command line.  */
     42814  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     42815# endif
     42816  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
     42817     on Cygwin 1.5.x.  */
     42818  if (MB_CUR_MAX == 1)
     42819    return 1;
     42820  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     42821     This excludes the UTF-8 encoding (except on MirBSD).  */
     42822  {
     42823    const char *p;
     42824    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     42825    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     42826    for (p = buf; *p != '\0'; p++)
     42827      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     42828        return 1;
     42829  }
     42830  return 0;
     42831#endif
     42832}
     42833
     42834_ACEOF
     42835    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     42836  (eval $ac_link) 2>&5
     42837  ac_status=$?
     42838  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     42839  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     42840      case "$host_os" in
     42841        # Handle native Windows specially, because there setlocale() interprets
     42842        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     42843        # "fr" or "fra" as "French" or "French_France.1252",
     42844        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     42845        # "ja" as "Japanese" or "Japanese_Japan.932",
     42846        # and similar.
     42847        mingw*)
     42848          # Note that on native Windows, the Japanese locale is
     42849          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
     42850          # cannot use it here.
     42851          gt_cv_locale_ja=none
     42852          ;;
     42853        *)
     42854          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     42855          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     42856          # configure script would override the LC_ALL setting. Likewise for
     42857          # LC_CTYPE, which is also set at the beginning of the configure script.
     42858          # Test for the AIX locale name.
     42859          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42860            gt_cv_locale_ja=ja_JP
     42861          else
     42862            # Test for the locale name with explicit encoding suffix.
     42863            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42864              gt_cv_locale_ja=ja_JP.EUC-JP
     42865            else
     42866              # Test for the HP-UX, OSF/1, NetBSD locale name.
     42867              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42868                gt_cv_locale_ja=ja_JP.eucJP
     42869              else
     42870                # Test for the IRIX, FreeBSD locale name.
     42871                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42872                  gt_cv_locale_ja=ja_JP.EUC
     42873                else
     42874                  # Test for the Solaris 7 locale name.
     42875                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     42876                    gt_cv_locale_ja=ja
     42877                  else
     42878                    # Special test for NetBSD 1.6.
     42879                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
     42880                      gt_cv_locale_ja=ja_JP.eucJP
     42881                    else
     42882                      # None found.
     42883                      gt_cv_locale_ja=none
     42884                    fi
     42885                  fi
     42886                fi
     42887              fi
     42888            fi
     42889          fi
     42890          ;;
     42891      esac
     42892    fi
     42893    rm -fr conftest*
     42894   ;;
     42895esac
     42896fi
     42897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
     42898printf "%s\n" "$gt_cv_locale_ja" >&6; }
     42899  LOCALE_JA=$gt_cv_locale_ja
     42900
     42901
     42902
     42903
     42904
     42905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
     42906printf %s "checking for a transitional chinese locale... " >&6; }
     42907if test ${gt_cv_locale_zh_CN+y}
     42908then :
     42909  printf %s "(cached) " >&6
     42910else case e in #(
     42911  e)
     42912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     42913/* end confdefs.h.  */
     42914
     42915#include <locale.h>
     42916#include <stdlib.h>
     42917#include <time.h>
     42918#if HAVE_LANGINFO_CODESET
     42919# include <langinfo.h>
     42920#endif
     42921#include <stdlib.h>
     42922#include <string.h>
     42923struct tm t;
     42924char buf[16];
     42925int main ()
     42926{
     42927  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
     42928     imitates locale dependent behaviour by looking at the environment
     42929     variables, and all locales use the UTF-8 encoding.  */
     42930#if defined __BEOS__ || defined __HAIKU__
     42931  return 1;
     42932#else
     42933  /* Check whether the given locale name is recognized by the system.  */
     42934# if defined _WIN32 && !defined __CYGWIN__
     42935  /* On native Windows, setlocale(category, "") looks at the system settings,
     42936     not at the environment variables.  Also, when an encoding suffix such
     42937     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
     42938     category of the locale to "C".  */
     42939  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
     42940      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
     42941    return 1;
     42942# else
     42943  if (setlocale (LC_ALL, "") == NULL) return 1;
     42944# endif
     42945  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
     42946     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
     42947     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
     42948     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
     42949     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
     42950     some unit tests fail.
     42951     On MirBSD 10, when an unsupported locale is specified, setlocale()
     42952     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
     42953# if HAVE_LANGINFO_CODESET
     42954  {
     42955    const char *cs = nl_langinfo (CODESET);
     42956    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
     42957        || strcmp (cs, "UTF-8") == 0)
     42958      return 1;
     42959  }
     42960# endif
     42961# ifdef __CYGWIN__
     42962  /* On Cygwin, avoid locale names without encoding suffix, because the
     42963     locale_charset() function relies on the encoding suffix.  Note that
     42964     LC_ALL is set on the command line.  */
     42965  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
     42966# endif
     42967  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
     42968     This excludes the UTF-8 encoding (except on MirBSD).  */
     42969  {
     42970    const char *p;
     42971    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
     42972    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
     42973    for (p = buf; *p != '\0'; p++)
     42974      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
     42975        return 1;
     42976  }
     42977  /* Check whether a typical GB18030 multibyte sequence is recognized as a
     42978     single wide character.  This excludes the GB2312 and GBK encodings.  */
     42979  if (mblen ("\203\062\332\066", 5) != 4)
     42980    return 1;
     42981  return 0;
     42982#endif
     42983}
     42984
     42985_ACEOF
     42986    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
     42987  (eval $ac_link) 2>&5
     42988  ac_status=$?
     42989  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     42990  test $ac_status = 0; } && test -s conftest$ac_exeext; then
     42991      case "$host_os" in
     42992        # Handle native Windows specially, because there setlocale() interprets
     42993        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
     42994        # "fr" or "fra" as "French" or "French_France.1252",
     42995        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
     42996        # "ja" as "Japanese" or "Japanese_Japan.932",
     42997        # and similar.
     42998        mingw*)
     42999          # Test for the hypothetical native Windows locale name.
     43000          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     43001            gt_cv_locale_zh_CN=Chinese_China.54936
     43002          else
     43003            # None found.
     43004            gt_cv_locale_zh_CN=none
     43005          fi
     43006          ;;
     43007        solaris2.8)
     43008          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
     43009          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
     43010          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
     43011          gt_cv_locale_zh_CN=none
     43012          ;;
     43013        *)
     43014          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
     43015          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
     43016          # configure script would override the LC_ALL setting. Likewise for
     43017          # LC_CTYPE, which is also set at the beginning of the configure script.
     43018          # Test for the locale name without encoding suffix.
     43019          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     43020            gt_cv_locale_zh_CN=zh_CN
     43021          else
     43022            # Test for the locale name with explicit encoding suffix.
     43023            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
     43024              gt_cv_locale_zh_CN=zh_CN.GB18030
     43025            else
     43026              # None found.
     43027              gt_cv_locale_zh_CN=none
     43028            fi
     43029          fi
     43030          ;;
     43031      esac
     43032    else
     43033      # If there was a link error, due to mblen(), the system is so old that
     43034      # it certainly doesn't have a chinese locale.
     43035      gt_cv_locale_zh_CN=none
     43036    fi
     43037    rm -fr conftest*
     43038   ;;
     43039esac
     43040fi
     43041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
     43042printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
     43043  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
     43044
     43045
     43046
     43047
     43048     if case "$host_os" in mingw*) true;; *) false;; esac; then
     43049  GL_COND_OBJ_WINDOWS_THREAD_TRUE=
     43050  GL_COND_OBJ_WINDOWS_THREAD_FALSE='#'
     43051else
     43052  GL_COND_OBJ_WINDOWS_THREAD_TRUE='#'
     43053  GL_COND_OBJ_WINDOWS_THREAD_FALSE=
     43054fi
     43055:
     43056    if test -z "${GL_COND_OBJ_WINDOWS_THREAD_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_THREAD_FALSE}"; then
     43057    GL_COND_OBJ_WINDOWS_THREAD_TRUE='#'
     43058    GL_COND_OBJ_WINDOWS_THREAD_FALSE='#'
     43059  fi
     43060
     43061
     43062
     43063     if case "$host_os" in mingw*) true;; *) false;; esac; then
     43064  GL_COND_OBJ_WINDOWS_TLS_TRUE=
     43065  GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
     43066else
     43067  GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
     43068  GL_COND_OBJ_WINDOWS_TLS_FALSE=
     43069fi
     43070:
     43071    if test -z "${GL_COND_OBJ_WINDOWS_TLS_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_TLS_FALSE}"; then
     43072    GL_COND_OBJ_WINDOWS_TLS_TRUE='#'
     43073    GL_COND_OBJ_WINDOWS_TLS_FALSE='#'
     43074  fi
     43075
     43076
     43077
     43078
     43079
     43080
     43081
     43082
     43083
     43084
     43085
     43086
     43087
     43088
     43089  LIBSED_LIBDEPS="$gl_libdeps"
     43090
     43091  LIBSED_LTLIBDEPS="$gl_ltlibdeps"
     43092
     43093  LIBTESTS_LIBDEPS="$gltests_libdeps"
     43094
     43095
     43096
     43097
     43098
     43099
     43100# Ensure VLAs are not used.
     43101# Note -Wvla is implicitly added by gl_MANYWARN_ALL_GCC
     43102
     43103printf "%s\n" "#define GNULIB_NO_VLA 1" >>confdefs.h
     43104
     43105
     43106# The test suite needs to know if we have a working perl.
     43107 if test "$gl_cv_prog_perl" != no; then
     43108  HAVE_PERL_TRUE=
     43109  HAVE_PERL_FALSE='#'
     43110else
     43111  HAVE_PERL_TRUE='#'
     43112  HAVE_PERL_FALSE=
     43113fi
     43114
     43115
     43116# gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
     43117# ------------------------------------------------
     43118# If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
     43119# Otherwise, run RUN-IF-NOT-FOUND.
     43120
     43121
     43122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"rt\" can be used with fopen" >&5
     43123printf %s "checking whether \"rt\" can be used with fopen... " >&6; }
     43124if test ${sed_cv_fopen_rt+y}
     43125then :
     43126  printf %s "(cached) " >&6
     43127else case e in #(
     43128  e)
     43129if test "$cross_compiling" = yes
     43130then :
     43131  case $host in
     43132       *cygwin* | *mingw*) sed_cv_fopen_rt=yes ;;
     43133       *) sed_cv_fopen_rt='assuming no' ;;
     43134     esac
     43135else case e in #(
     43136  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     43137/* end confdefs.h.  */
     43138
     43139#include <stdio.h>
     43140#include <errno.h>
     43141
     43142int main()
     43143{
     43144  FILE *fp;
     43145  int result;
     43146  errno = 0;
     43147  fp = fopen ("conftest.c", "rt");
     43148  if (fp) fclose (fp);
     43149  return fp ? 0 : 1;
     43150}
     43151_ACEOF
     43152if ac_fn_c_try_run "$LINENO"
     43153then :
     43154  sed_cv_fopen_rt=yes
     43155else case e in #(
     43156  e) sed_cv_fopen_rt=no ;;
     43157esac
     43158fi
     43159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     43160  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     43161esac
     43162fi
     43163 ;;
     43164esac
     43165fi
     43166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sed_cv_fopen_rt" >&5
     43167printf "%s\n" "$sed_cv_fopen_rt" >&6; }
     43168if test "$sed_cv_fopen_rt" = yes; then
     43169
     43170printf "%s\n" "#define HAVE_FOPEN_RT 1" >>confdefs.h
     43171
     43172fi
     43173
     43174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lcP is needed" >&5
     43175printf %s "checking whether -lcP is needed... " >&6; }
     43176if test ${sed_cv_libcp_needed+y}
     43177then :
     43178  printf %s "(cached) " >&6
     43179else case e in #(
     43180  e)
     43181if test "$cross_compiling" = yes
     43182then :
     43183  sed_cv_libcp_needed="assuming no"
     43184else case e in #(
     43185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     43186/* end confdefs.h.  */
     43187
     43188#include <stdio.h>
     43189#include <errno.h>
     43190
     43191int main()
     43192{
     43193  FILE *fp;
     43194  int result;
     43195  errno = 0;
     43196  fp = fopen ("conftest.c", "r");
     43197  if (!fp) return 0;       /* error, assume not needed */
     43198  result = fflush (fp) == EOF && errno == 0;
     43199  fclose (fp);
     43200  return result;
     43201}
     43202_ACEOF
     43203if ac_fn_c_try_run "$LINENO"
     43204then :
     43205  sed_cv_libcp_needed=no
     43206else case e in #(
     43207  e) sed_cv_libcp_needed=yes ;;
     43208esac
     43209fi
     43210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     43211  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     43212esac
     43213fi
     43214
     43215 ;;
     43216esac
     43217fi
     43218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sed_cv_libcp_needed" >&5
     43219printf "%s\n" "$sed_cv_libcp_needed" >&6; }
     43220if test "$sed_cv_libcp_needed" = yes; then
     43221  LIBS="-lcP $LIBS"
     43222fi
     43223
     43224
     43225
     43226
     43227
     43228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     43229printf %s "checking for an ANSI C-conforming const... " >&6; }
     43230if test ${ac_cv_c_const+y}
     43231then :
     43232  printf %s "(cached) " >&6
     43233else case e in #(
     43234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     43235/* end confdefs.h.  */
     43236
     43237int
     43238main (void)
     43239{
     43240
     43241#ifndef __cplusplus
     43242  /* Ultrix mips cc rejects this sort of thing.  */
     43243  typedef int charset[2];
     43244  const charset cs = { 0, 0 };
     43245  /* SunOS 4.1.1 cc rejects this.  */
     43246  char const *const *pcpcc;
     43247  char **ppc;
     43248  /* NEC SVR4.0.2 mips cc rejects this.  */
     43249  struct point {int x, y;};
     43250  static struct point const zero = {0,0};
     43251  /* IBM XL C 1.02.0.0 rejects this.
     43252     It does not let you subtract one const X* pointer from another in
     43253     an arm of an if-expression whose if-part is not a constant
     43254     expression */
     43255  const char *g = "string";
     43256  pcpcc = &g + (g ? g-g : 0);
     43257  /* HPUX 7.0 cc rejects these. */
     43258  ++pcpcc;
     43259  ppc = (char**) pcpcc;
     43260  pcpcc = (char const *const *) ppc;
     43261  { /* SCO 3.2v4 cc rejects this sort of thing.  */
     43262    char tx;
     43263    char *t = &tx;
     43264    char const *s = 0 ? (char *) 0 : (char const *) 0;
     43265
     43266    *t++ = 0;
     43267    if (s) return 0;
     43268  }
     43269  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     43270    int x[] = {25, 17};
     43271    const int *foo = &x[0];
     43272    ++foo;
     43273  }
     43274  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     43275    typedef const int *iptr;
     43276    iptr p = 0;
     43277    ++p;
     43278  }
     43279  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
     43280       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     43281    struct s { int j; const int *ap[3]; } bx;
     43282    struct s *b = &bx; b->j = 5;
     43283  }
     43284  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     43285    const int foo = 10;
     43286    if (!foo) return 0;
     43287  }
     43288  return !cs[0] && !zero.x;
     43289#endif
     43290
     43291  ;
     43292  return 0;
     43293}
     43294_ACEOF
     43295if ac_fn_c_try_compile "$LINENO"
     43296then :
     43297  ac_cv_c_const=yes
     43298else case e in #(
     43299  e) ac_cv_c_const=no ;;
     43300esac
     43301fi
     43302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     43303esac
     43304fi
     43305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     43306printf "%s\n" "$ac_cv_c_const" >&6; }
     43307if test $ac_cv_c_const = no; then
     43308
     43309printf "%s\n" "#define const /**/" >>confdefs.h
     43310
     43311fi
     43312
     43313ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     43314if test "x$ac_cv_type_size_t" = xyes
     43315then :
     43316
     43317else case e in #(
     43318  e)
     43319printf "%s\n" "#define size_t unsigned int" >>confdefs.h
     43320 ;;
     43321esac
     43322fi
     43323
     43324
     43325
     43326
     43327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
     43328printf %s "checking whether NLS is requested... " >&6; }
     43329    # Check whether --enable-nls was given.
     43330if test ${enable_nls+y}
     43331then :
     43332  enableval=$enable_nls; USE_NLS=$enableval
     43333else case e in #(
     43334  e) USE_NLS=yes ;;
     43335esac
     43336fi
     43337
     43338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
     43339printf "%s\n" "$USE_NLS" >&6; }
     43340
     43341
     43342
     43343
     43344      GETTEXT_MACRO_VERSION=0.19
     43345
     43346
     43347
     43348
     43349# Prepare PATH_SEPARATOR.
     43350# The user is always right.
     43351if test "${PATH_SEPARATOR+set}" != set; then
     43352  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
     43353  # contains only /bin. Note that ksh looks also at the FPATH variable,
     43354  # so we have to set that as well for the test.
     43355  PATH_SEPARATOR=:
     43356  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43357    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43358           || PATH_SEPARATOR=';'
     43359       }
     43360fi
     43361
     43362# Find out how to test for executable files. Don't use a zero-byte file,
     43363# as systems may use methods other than mode bits to determine executability.
     43364cat >conf$$.file <<_ASEOF
     43365#! /bin/sh
     43366exit 0
     43367_ASEOF
     43368chmod +x conf$$.file
     43369if test -x conf$$.file >/dev/null 2>&1; then
     43370  ac_executable_p="test -x"
     43371else
     43372  ac_executable_p="test -f"
     43373fi
     43374rm -f conf$$.file
     43375
     43376# Extract the first word of "msgfmt", so it can be a program name with args.
     43377set dummy msgfmt; ac_word=$2
     43378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     43379printf %s "checking for $ac_word... " >&6; }
     43380if test ${ac_cv_path_MSGFMT+y}
     43381then :
     43382  printf %s "(cached) " >&6
     43383else case e in #(
     43384  e) case "$MSGFMT" in
     43385  [\\/]* | ?:[\\/]*)
     43386    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
     43387    ;;
     43388  *)
     43389    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
     43390    for ac_dir in $PATH; do
     43391      IFS="$ac_save_IFS"
     43392      test -z "$ac_dir" && ac_dir=.
     43393      for ac_exec_ext in '' $ac_executable_extensions; do
     43394        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
     43395          echo "$as_me: trying $ac_dir/$ac_word..." >&5
     43396          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
     43397     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
     43398            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
     43399            break 2
     43400          fi
     43401        fi
     43402      done
     43403    done
     43404    IFS="$ac_save_IFS"
     43405  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
     43406    ;;
     43407esac ;;
     43408esac
     43409fi
     43410MSGFMT="$ac_cv_path_MSGFMT"
     43411if test "$MSGFMT" != ":"; then
     43412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
     43413printf "%s\n" "$MSGFMT" >&6; }
     43414else
     43415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     43416printf "%s\n" "no" >&6; }
     43417fi
     43418
     43419  # Extract the first word of "gmsgfmt", so it can be a program name with args.
     43420set dummy gmsgfmt; ac_word=$2
     43421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     43422printf %s "checking for $ac_word... " >&6; }
     43423if test ${ac_cv_path_GMSGFMT+y}
     43424then :
     43425  printf %s "(cached) " >&6
     43426else case e in #(
     43427  e) case $GMSGFMT in
     43428  [\\/]* | ?:[\\/]*)
     43429  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
     43430  ;;
     43431  *)
     43432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     43433for as_dir in $PATH
     43434do
     43435  IFS=$as_save_IFS
     43436  case $as_dir in #(((
     43437    '') as_dir=./ ;;
     43438    */) ;;
     43439    *) as_dir=$as_dir/ ;;
     43440  esac
     43441    for ac_exec_ext in '' $ac_executable_extensions; do
     43442  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     43443    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
     43444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     43445    break 2
     43446  fi
     43447done
     43448  done
     43449IFS=$as_save_IFS
     43450
     43451  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
     43452  ;;
     43453esac ;;
     43454esac
     43455fi
     43456GMSGFMT=$ac_cv_path_GMSGFMT
     43457if test -n "$GMSGFMT"; then
     43458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
     43459printf "%s\n" "$GMSGFMT" >&6; }
     43460else
     43461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     43462printf "%s\n" "no" >&6; }
     43463fi
     43464
     43465
     43466
     43467    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     43468    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
     43469    *) MSGFMT_015=$MSGFMT ;;
     43470  esac
     43471
     43472  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     43473    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
     43474    *) GMSGFMT_015=$GMSGFMT ;;
     43475  esac
     43476
     43477
     43478
     43479# Prepare PATH_SEPARATOR.
     43480# The user is always right.
     43481if test "${PATH_SEPARATOR+set}" != set; then
     43482  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
     43483  # contains only /bin. Note that ksh looks also at the FPATH variable,
     43484  # so we have to set that as well for the test.
     43485  PATH_SEPARATOR=:
     43486  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43487    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43488           || PATH_SEPARATOR=';'
     43489       }
     43490fi
     43491
     43492# Find out how to test for executable files. Don't use a zero-byte file,
     43493# as systems may use methods other than mode bits to determine executability.
     43494cat >conf$$.file <<_ASEOF
     43495#! /bin/sh
     43496exit 0
     43497_ASEOF
     43498chmod +x conf$$.file
     43499if test -x conf$$.file >/dev/null 2>&1; then
     43500  ac_executable_p="test -x"
     43501else
     43502  ac_executable_p="test -f"
     43503fi
     43504rm -f conf$$.file
     43505
     43506# Extract the first word of "xgettext", so it can be a program name with args.
     43507set dummy xgettext; ac_word=$2
     43508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     43509printf %s "checking for $ac_word... " >&6; }
     43510if test ${ac_cv_path_XGETTEXT+y}
     43511then :
     43512  printf %s "(cached) " >&6
     43513else case e in #(
     43514  e) case "$XGETTEXT" in
     43515  [\\/]* | ?:[\\/]*)
     43516    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
     43517    ;;
     43518  *)
     43519    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
     43520    for ac_dir in $PATH; do
     43521      IFS="$ac_save_IFS"
     43522      test -z "$ac_dir" && ac_dir=.
     43523      for ac_exec_ext in '' $ac_executable_extensions; do
     43524        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
     43525          echo "$as_me: trying $ac_dir/$ac_word..." >&5
     43526          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
     43527     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
     43528            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
     43529            break 2
     43530          fi
     43531        fi
     43532      done
     43533    done
     43534    IFS="$ac_save_IFS"
     43535  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
     43536    ;;
     43537esac ;;
     43538esac
     43539fi
     43540XGETTEXT="$ac_cv_path_XGETTEXT"
     43541if test "$XGETTEXT" != ":"; then
     43542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
     43543printf "%s\n" "$XGETTEXT" >&6; }
     43544else
     43545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     43546printf "%s\n" "no" >&6; }
     43547fi
     43548
     43549    rm -f messages.po
     43550
     43551    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     43552    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
     43553    *) XGETTEXT_015=$XGETTEXT ;;
     43554  esac
     43555
     43556
     43557
     43558# Prepare PATH_SEPARATOR.
     43559# The user is always right.
     43560if test "${PATH_SEPARATOR+set}" != set; then
     43561  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
     43562  # contains only /bin. Note that ksh looks also at the FPATH variable,
     43563  # so we have to set that as well for the test.
     43564  PATH_SEPARATOR=:
     43565  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43566    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43567           || PATH_SEPARATOR=';'
     43568       }
     43569fi
     43570
     43571# Find out how to test for executable files. Don't use a zero-byte file,
     43572# as systems may use methods other than mode bits to determine executability.
     43573cat >conf$$.file <<_ASEOF
     43574#! /bin/sh
     43575exit 0
     43576_ASEOF
     43577chmod +x conf$$.file
     43578if test -x conf$$.file >/dev/null 2>&1; then
     43579  ac_executable_p="test -x"
     43580else
     43581  ac_executable_p="test -f"
     43582fi
     43583rm -f conf$$.file
     43584
     43585# Extract the first word of "msgmerge", so it can be a program name with args.
     43586set dummy msgmerge; ac_word=$2
     43587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     43588printf %s "checking for $ac_word... " >&6; }
     43589if test ${ac_cv_path_MSGMERGE+y}
     43590then :
     43591  printf %s "(cached) " >&6
     43592else case e in #(
     43593  e) case "$MSGMERGE" in
     43594  [\\/]* | ?:[\\/]*)
     43595    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
     43596    ;;
     43597  *)
     43598    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
     43599    for ac_dir in $PATH; do
     43600      IFS="$ac_save_IFS"
     43601      test -z "$ac_dir" && ac_dir=.
     43602      for ac_exec_ext in '' $ac_executable_extensions; do
     43603        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
     43604          echo "$as_me: trying $ac_dir/$ac_word..." >&5
     43605          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
     43606            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
     43607            break 2
     43608          fi
     43609        fi
     43610      done
     43611    done
     43612    IFS="$ac_save_IFS"
     43613  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
     43614    ;;
     43615esac ;;
     43616esac
     43617fi
     43618MSGMERGE="$ac_cv_path_MSGMERGE"
     43619if test "$MSGMERGE" != ":"; then
     43620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
     43621printf "%s\n" "$MSGMERGE" >&6; }
     43622else
     43623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     43624printf "%s\n" "no" >&6; }
     43625fi
     43626
     43627
     43628        test -n "$localedir" || localedir='${datadir}/locale'
     43629
     43630
     43631    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
     43632
     43633
     43634  ac_config_commands="$ac_config_commands po-directories"
    764243635
    764343636
     
    765943652
    766043653
    7661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
    7662 if test "${with_gnu_ld+set}" = set; then
    7663   withval="$with_gnu_ld"
    7664   test "$withval" = no || with_gnu_ld=yes
    7665 else
    7666   with_gnu_ld=no
    7667 fi;
     43654
     43655# Check whether --with-gnu-ld was given.
     43656if test ${with_gnu_ld+y}
     43657then :
     43658  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
     43659else case e in #(
     43660  e) with_gnu_ld=no ;;
     43661esac
     43662fi
     43663
     43664# Prepare PATH_SEPARATOR.
     43665# The user is always right.
     43666if test "${PATH_SEPARATOR+set}" != set; then
     43667  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
     43668  # contains only /bin. Note that ksh looks also at the FPATH variable,
     43669  # so we have to set that as well for the test.
     43670  PATH_SEPARATOR=:
     43671  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43672    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
     43673           || PATH_SEPARATOR=';'
     43674       }
     43675fi
     43676
    766843677ac_prog=ld
    766943678if test "$GCC" = yes; then
    767043679  # Check if gcc -print-prog-name=ld gives a path.
    7671   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
    7672 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
     43680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
     43681printf %s "checking for ld used by $CC... " >&6; }
    767343682  case $host in
    767443683  *-*-mingw*)
     
    768043689  case $ac_prog in
    768143690    # Accept absolute paths.
    7682     [\\/]* | [A-Za-z]:[\\/]*)
     43691    [\\/]* | ?:[\\/]*)
    768343692      re_direlt='/[^/][^/]*/\.\./'
    7684       # Canonicalize the path of ld
    7685       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
    7686       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    7687         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
     43693      # Canonicalize the pathname of ld
     43694      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
     43695      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
     43696        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
    768843697      done
    768943698      test -z "$LD" && LD="$ac_prog"
     
    769943708  esac
    770043709elif test "$with_gnu_ld" = yes; then
    7701   echo "$as_me:$LINENO: checking for GNU ld" >&5
    7702 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
     43710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
     43711printf %s "checking for GNU ld... " >&6; }
    770343712else
    7704   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
    7705 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
    7706 fi
    7707 if test "${acl_cv_path_LD+set}" = set; then
    7708   echo $ECHO_N "(cached) $ECHO_C" >&6
    7709 else
    7710   if test -z "$LD"; then
    7711   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
     43713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
     43714printf %s "checking for non-GNU ld... " >&6; }
     43715fi
     43716if test ${acl_cv_path_LD+y}
     43717then :
     43718  printf %s "(cached) " >&6
     43719else case e in #(
     43720  e) if test -z "$LD"; then
     43721  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    771243722  for ac_dir in $PATH; do
     43723    IFS="$acl_save_ifs"
    771343724    test -z "$ac_dir" && ac_dir=.
    771443725    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    771543726      acl_cv_path_LD="$ac_dir/$ac_prog"
    771643727      # Check to see if the program is GNU ld.  I'd rather use --version,
    7717       # but apparently some GNU ld's only accept -v.
     43728      # but apparently some variants of GNU ld only accept -v.
    771843729      # Break only if it was the GNU/non-GNU ld that we prefer.
    7719       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
    7720         test "$with_gnu_ld" != no && break
    7721       else
    7722         test "$with_gnu_ld" != yes && break
    7723       fi
     43730      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
     43731      *GNU* | *'with BFD'*)
     43732        test "$with_gnu_ld" != no && break
     43733        ;;
     43734      *)
     43735        test "$with_gnu_ld" != yes && break
     43736        ;;
     43737      esac
    772443738    fi
    772543739  done
    7726   IFS="$ac_save_ifs"
     43740  IFS="$acl_save_ifs"
    772743741else
    772843742  acl_cv_path_LD="$LD" # Let the user override the test with a path.
    7729 fi
     43743fi ;;
     43744esac
    773043745fi
    773143746
    773243747LD="$acl_cv_path_LD"
    773343748if test -n "$LD"; then
    7734   echo "$as_me:$LINENO: result: $LD" >&5
    7735 echo "${ECHO_T}$LD" >&6
     43749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
     43750printf "%s\n" "$LD" >&6; }
    773643751else
    7737   echo "$as_me:$LINENO: result: no" >&5
    7738 echo "${ECHO_T}no" >&6
    7739 fi
    7740 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
    7741 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
    7742    { (exit 1); exit 1; }; }
    7743 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
    7744 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
    7745 if test "${acl_cv_prog_gnu_ld+set}" = set; then
    7746   echo $ECHO_N "(cached) $ECHO_C" >&6
    7747 else
    7748   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    7749 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
     43752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     43753printf "%s\n" "no" >&6; }
     43754fi
     43755test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
     43756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
     43757printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
     43758if test ${acl_cv_prog_gnu_ld+y}
     43759then :
     43760  printf %s "(cached) " >&6
     43761else case e in #(
     43762  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
     43763case `$LD -v 2>&1 </dev/null` in
     43764*GNU* | *'with BFD'*)
    775043765  acl_cv_prog_gnu_ld=yes
    7751 else
     43766  ;;
     43767*)
    775243768  acl_cv_prog_gnu_ld=no
    7753 fi
    7754 fi
    7755 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
    7756 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
     43769  ;;
     43770esac ;;
     43771esac
     43772fi
     43773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
     43774printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
    775743775with_gnu_ld=$acl_cv_prog_gnu_ld
    775843776
    775943777
    776043778
    7761                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
    7762 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
    7763 if test "${acl_cv_rpath+set}" = set; then
    7764   echo $ECHO_N "(cached) $ECHO_C" >&6
    7765 else
    7766 
     43779
     43780
     43781                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
     43782printf %s "checking for shared library run path origin... " >&6; }
     43783if test ${acl_cv_rpath+y}
     43784then :
     43785  printf %s "(cached) " >&6
     43786else case e in #(
     43787  e)
    776743788    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
    776843789    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
     
    777043791    rm -f ./conftest.sh
    777143792    acl_cv_rpath=done
    7772 
    7773 fi
    7774 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
    7775 echo "${ECHO_T}$acl_cv_rpath" >&6
     43793   ;;
     43794esac
     43795fi
     43796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
     43797printf "%s\n" "$acl_cv_rpath" >&6; }
    777643798  wl="$acl_cv_wl"
    7777   libext="$acl_cv_libext"
    7778   shlibext="$acl_cv_shlibext"
    7779   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
    7780   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
    7781   hardcode_direct="$acl_cv_hardcode_direct"
    7782   hardcode_minus_L="$acl_cv_hardcode_minus_L"
    7783   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
    7784   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
     43799  acl_libext="$acl_cv_libext"
     43800  acl_shlibext="$acl_cv_shlibext"
     43801  acl_libname_spec="$acl_cv_libname_spec"
     43802  acl_library_names_spec="$acl_cv_library_names_spec"
     43803  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
     43804  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
     43805  acl_hardcode_direct="$acl_cv_hardcode_direct"
     43806  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
     43807    # Check whether --enable-rpath was given.
     43808if test ${enable_rpath+y}
     43809then :
     43810  enableval=$enable_rpath; :
     43811else case e in #(
     43812  e) enable_rpath=yes ;;
     43813esac
     43814fi
     43815
     43816
     43817
     43818
     43819  acl_libdirstem=lib
     43820  acl_libdirstem2=
     43821  case "$host_os" in
     43822    solaris*)
     43823                                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
     43824printf %s "checking for 64-bit host... " >&6; }
     43825if test ${gl_cv_solaris_64bit+y}
     43826then :
     43827  printf %s "(cached) " >&6
     43828else case e in #(
     43829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     43830/* end confdefs.h.  */
     43831
     43832#ifdef _LP64
     43833sixtyfour bits
     43834#endif
     43835
     43836_ACEOF
     43837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     43838  $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
     43839then :
     43840  gl_cv_solaris_64bit=yes
     43841else case e in #(
     43842  e) gl_cv_solaris_64bit=no ;;
     43843esac
     43844fi
     43845rm -rf conftest*
     43846
     43847         ;;
     43848esac
     43849fi
     43850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
     43851printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
     43852      if test $gl_cv_solaris_64bit = yes; then
     43853        acl_libdirstem=lib/64
     43854        case "$host_cpu" in
     43855          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
     43856          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
     43857        esac
     43858      fi
     43859      ;;
     43860    *)
     43861      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
     43862      if test -n "$searchpath"; then
     43863        acl_save_IFS="${IFS=    }"; IFS=":"
     43864        for searchdir in $searchpath; do
     43865          if test -d "$searchdir"; then
     43866            case "$searchdir" in
     43867              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
     43868              */../ | */.. )
     43869                # Better ignore directories of this form. They are misleading.
     43870                ;;
     43871              *) searchdir=`cd "$searchdir" && pwd`
     43872                 case "$searchdir" in
     43873                   */lib64 ) acl_libdirstem=lib64 ;;
     43874                 esac ;;
     43875            esac
     43876          fi
     43877        done
     43878        IFS="$acl_save_IFS"
     43879      fi
     43880      ;;
     43881  esac
     43882  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
     43883
     43884
     43885
     43886
    778543887
    778643888
     
    780543907
    780643908
    7807 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
    7808 if test "${with_libiconv_prefix+set}" = set; then
    7809   withval="$with_libiconv_prefix"
    7810 
     43909# Check whether --with-libiconv-prefix was given.
     43910if test ${with_libiconv_prefix+y}
     43911then :
     43912  withval=$with_libiconv_prefix;
    781143913    if test "X$withval" = "Xno"; then
    781243914      use_additional=no
     
    782743929      else
    782843930        additional_includedir="$withval/include"
    7829         additional_libdir="$withval/lib"
     43931        additional_libdir="$withval/$acl_libdirstem"
     43932        if test "$acl_libdirstem2" != "$acl_libdirstem" \
     43933           && ! test -d "$withval/$acl_libdirstem"; then
     43934          additional_libdir="$withval/$acl_libdirstem2"
     43935        fi
    783043936      fi
    783143937    fi
    783243938
    7833 fi;
     43939fi
     43940
    783443941      LIBICONV=
    783543942  LTLIBICONV=
    783643943  INCICONV=
     43944  LIBICONV_PREFIX=
     43945      HAVE_LIBICONV=
    783743946  rpathdirs=
    783843947  ltrpathdirs=
     
    785243961      if test -z "$already_handled"; then
    785343962        names_already_handled="$names_already_handled $name"
    7854                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
     43963                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
    785543964        eval value=\"\$HAVE_LIB$uppername\"
    785643965        if test -n "$value"; then
     
    786843977          found_so=
    786943978          found_a=
     43979          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
     43980          if test -n "$acl_shlibext"; then
     43981            shrext=".$acl_shlibext"             # typically: shrext=.so
     43982          else
     43983            shrext=
     43984          fi
    787043985          if test $use_additional = yes; then
    7871             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
    7872               found_dir="$additional_libdir"
    7873               found_so="$additional_libdir/lib$name.$shlibext"
    7874               if test -f "$additional_libdir/lib$name.la"; then
    7875                 found_la="$additional_libdir/lib$name.la"
     43986            dir="$additional_libdir"
     43987                                    if test -n "$acl_shlibext"; then
     43988              if test -f "$dir/$libname$shrext"; then
     43989                found_dir="$dir"
     43990                found_so="$dir/$libname$shrext"
     43991              else
     43992                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
     43993                  ver=`(cd "$dir" && \
     43994                        for f in "$libname$shrext".*; do echo "$f"; done \
     43995                        | sed -e "s,^$libname$shrext\\\\.,," \
     43996                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
     43997                        | sed 1q ) 2>/dev/null`
     43998                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
     43999                    found_dir="$dir"
     44000                    found_so="$dir/$libname$shrext.$ver"
     44001                  fi
     44002                else
     44003                  eval library_names=\"$acl_library_names_spec\"
     44004                  for f in $library_names; do
     44005                    if test -f "$dir/$f"; then
     44006                      found_dir="$dir"
     44007                      found_so="$dir/$f"
     44008                      break
     44009                    fi
     44010                  done
     44011                fi
    787644012              fi
    7877             else
    7878               if test -f "$additional_libdir/lib$name.$libext"; then
    7879                 found_dir="$additional_libdir"
    7880                 found_a="$additional_libdir/lib$name.$libext"
    7881                 if test -f "$additional_libdir/lib$name.la"; then
    7882                   found_la="$additional_libdir/lib$name.la"
    7883                 fi
     44013            fi
     44014                        if test "X$found_dir" = "X"; then
     44015              if test -f "$dir/$libname.$acl_libext"; then
     44016                found_dir="$dir"
     44017                found_a="$dir/$libname.$acl_libext"
     44018              fi
     44019            fi
     44020            if test "X$found_dir" != "X"; then
     44021              if test -f "$dir/$libname.la"; then
     44022                found_la="$dir/$libname.la"
    788444023              fi
    788544024            fi
     
    789944038                -L*)
    790044039                  dir=`echo "X$x" | sed -e 's/^X-L//'`
    7901                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
    7902                     found_dir="$dir"
    7903                     found_so="$dir/lib$name.$shlibext"
    7904                     if test -f "$dir/lib$name.la"; then
    7905                       found_la="$dir/lib$name.la"
     44040                                    if test -n "$acl_shlibext"; then
     44041                    if test -f "$dir/$libname$shrext"; then
     44042                      found_dir="$dir"
     44043                      found_so="$dir/$libname$shrext"
     44044                    else
     44045                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
     44046                        ver=`(cd "$dir" && \
     44047                              for f in "$libname$shrext".*; do echo "$f"; done \
     44048                              | sed -e "s,^$libname$shrext\\\\.,," \
     44049                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
     44050                              | sed 1q ) 2>/dev/null`
     44051                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
     44052                          found_dir="$dir"
     44053                          found_so="$dir/$libname$shrext.$ver"
     44054                        fi
     44055                      else
     44056                        eval library_names=\"$acl_library_names_spec\"
     44057                        for f in $library_names; do
     44058                          if test -f "$dir/$f"; then
     44059                            found_dir="$dir"
     44060                            found_so="$dir/$f"
     44061                            break
     44062                          fi
     44063                        done
     44064                      fi
    790644065                    fi
    7907                   else
    7908                     if test -f "$dir/lib$name.$libext"; then
     44066                  fi
     44067                                    if test "X$found_dir" = "X"; then
     44068                    if test -f "$dir/$libname.$acl_libext"; then
    790944069                      found_dir="$dir"
    7910                       found_a="$dir/lib$name.$libext"
    7911                       if test -f "$dir/lib$name.la"; then
    7912                         found_la="$dir/lib$name.la"
    7913                       fi
     44070                      found_a="$dir/$libname.$acl_libext"
     44071                    fi
     44072                  fi
     44073                  if test "X$found_dir" != "X"; then
     44074                    if test -f "$dir/$libname.la"; then
     44075                      found_la="$dir/$libname.la"
    791444076                    fi
    791544077                  fi
     
    792444086                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
    792544087            if test "X$found_so" != "X"; then
    7926                                                         if test "X$found_dir" = "X/usr/lib"; then
     44088                                                        if test "$enable_rpath" = no \
     44089                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
     44090                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
    792744091                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
    792844092              else
     
    793744101                  ltrpathdirs="$ltrpathdirs $found_dir"
    793844102                fi
    7939                                 if test "$hardcode_direct" = yes; then
     44103                                if test "$acl_hardcode_direct" = yes; then
    794044104                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
    794144105                else
    7942                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
     44106                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
    794344107                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
    794444108                                                            haveit=
     
    797244136                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
    797344137                    fi
    7974                     if test "$hardcode_minus_L" != no; then
     44138                    if test "$acl_hardcode_minus_L" != no; then
    797544139                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
    797644140                    else
     
    798944153                        additional_includedir=
    799044154            case "$found_dir" in
    7991               */lib | */lib/)
    7992                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
     44155              */$acl_libdirstem | */$acl_libdirstem/)
     44156                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
     44157                if test "$name" = 'iconv'; then
     44158                  LIBICONV_PREFIX="$basedir"
     44159                fi
     44160                additional_includedir="$basedir/include"
     44161                ;;
     44162              */$acl_libdirstem2 | */$acl_libdirstem2/)
     44163                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
     44164                if test "$name" = 'iconv'; then
     44165                  LIBICONV_PREFIX="$basedir"
     44166                fi
    799344167                additional_includedir="$basedir/include"
    799444168                ;;
     
    800044174                  if test -n "$GCC"; then
    800144175                    case $host_os in
    8002                       linux*) haveit=yes;;
     44176                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    800344177                    esac
    800444178                  fi
     
    803944213                  -L*)
    804044214                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
    8041                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
     44215                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
     44216                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
    804244217                      haveit=
    8043                       if test "X$additional_libdir" = "X/usr/local/lib"; then
     44218                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
     44219                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
    804444220                        if test -n "$GCC"; then
    804544221                          case $host_os in
    8046                             linux*) haveit=yes;;
     44222                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    804744223                          esac
    804844224                        fi
     
    809144267                          fi
    809244268                        fi
     44269                      fi
     44270                    fi
     44271                    ;;
     44272                  -R*)
     44273                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
     44274                    if test "$enable_rpath" != no; then
     44275                                                                  haveit=
     44276                      for x in $rpathdirs; do
     44277                        if test "X$x" = "X$dir"; then
     44278                          haveit=yes
     44279                          break
     44280                        fi
     44281                      done
     44282                      if test -z "$haveit"; then
     44283                        rpathdirs="$rpathdirs $dir"
     44284                      fi
     44285                                                                  haveit=
     44286                      for x in $ltrpathdirs; do
     44287                        if test "X$x" = "X$dir"; then
     44288                          haveit=yes
     44289                          break
     44290                        fi
     44291                      done
     44292                      if test -z "$haveit"; then
     44293                        ltrpathdirs="$ltrpathdirs $dir"
    809344294                      fi
    809444295                    fi
     
    811644317  done
    811744318  if test "X$rpathdirs" != "X"; then
    8118     if test -n "$hardcode_libdir_separator"; then
     44319    if test -n "$acl_hardcode_libdir_separator"; then
    811944320                        alldirs=
    812044321      for found_dir in $rpathdirs; do
    8121         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
     44322        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
    812244323      done
    812344324            acl_save_libdir="$libdir"
    812444325      libdir="$alldirs"
    8125       eval flag=\"$hardcode_libdir_flag_spec\"
     44326      eval flag=\"$acl_hardcode_libdir_flag_spec\"
    812644327      libdir="$acl_save_libdir"
    812744328      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
     
    813044331        acl_save_libdir="$libdir"
    813144332        libdir="$found_dir"
    8132         eval flag=\"$hardcode_libdir_flag_spec\"
     44333        eval flag=\"$acl_hardcode_libdir_flag_spec\"
    813344334        libdir="$acl_save_libdir"
    813444335        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
     
    814144342    done
    814244343  fi
     44344
     44345
     44346
     44347
     44348
     44349
     44350
     44351
     44352
     44353
     44354
     44355
     44356
     44357
     44358
     44359
     44360
     44361
     44362
     44363
     44364
     44365
     44366
     44367
     44368
     44369
     44370
     44371
     44372
     44373
     44374
     44375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
     44376printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
     44377if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
     44378then :
     44379  printf %s "(cached) " >&6
     44380else case e in #(
     44381  e) gt_save_LIBS="$LIBS"
     44382     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
     44383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     44384/* end confdefs.h.  */
     44385#include <CoreFoundation/CFPreferences.h>
     44386int
     44387main (void)
     44388{
     44389CFPreferencesCopyAppValue(NULL, NULL)
     44390  ;
     44391  return 0;
     44392}
     44393_ACEOF
     44394if ac_fn_c_try_link "$LINENO"
     44395then :
     44396  gt_cv_func_CFPreferencesCopyAppValue=yes
     44397else case e in #(
     44398  e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
     44399esac
     44400fi
     44401rm -f core conftest.err conftest.$ac_objext conftest.beam \
     44402    conftest$ac_exeext conftest.$ac_ext
     44403     LIBS="$gt_save_LIBS" ;;
     44404esac
     44405fi
     44406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
     44407printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
     44408  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
     44409
     44410printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
     44411
     44412  fi
     44413                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
     44414printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
     44415if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
     44416then :
     44417  printf %s "(cached) " >&6
     44418else case e in #(
     44419  e) gt_save_LIBS="$LIBS"
     44420     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
     44421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     44422/* end confdefs.h.  */
     44423#include <CoreFoundation/CFLocale.h>
     44424int
     44425main (void)
     44426{
     44427CFLocaleCopyPreferredLanguages();
     44428  ;
     44429  return 0;
     44430}
     44431_ACEOF
     44432if ac_fn_c_try_link "$LINENO"
     44433then :
     44434  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
     44435else case e in #(
     44436  e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
     44437esac
     44438fi
     44439rm -f core conftest.err conftest.$ac_objext conftest.beam \
     44440    conftest$ac_exeext conftest.$ac_ext
     44441     LIBS="$gt_save_LIBS" ;;
     44442esac
     44443fi
     44444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
     44445printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
     44446  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
     44447
     44448printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
     44449
     44450  fi
     44451  INTL_MACOSX_LIBS=
     44452  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
     44453     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
     44454    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
     44455  fi
     44456
     44457
     44458
     44459
     44460
     44461
     44462  LIBINTL=
     44463  LTLIBINTL=
     44464  POSUB=
     44465
     44466    case " $gt_needs " in
     44467    *" need-formatstring-macros "*) gt_api_version=3 ;;
     44468    *" need-ngettext "*) gt_api_version=2 ;;
     44469    *) gt_api_version=1 ;;
     44470  esac
     44471  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
     44472  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
     44473
     44474    if test "$USE_NLS" = "yes"; then
     44475    gt_use_preinstalled_gnugettext=no
     44476
     44477
     44478        if test $gt_api_version -ge 3; then
     44479          gt_revision_test_code='
     44480#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
     44481#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
     44482#endif
     44483typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
     44484'
     44485        else
     44486          gt_revision_test_code=
     44487        fi
     44488        if test $gt_api_version -ge 2; then
     44489          gt_expression_test_code=' + * ngettext ("", "", 0)'
     44490        else
     44491          gt_expression_test_code=
     44492        fi
     44493
     44494        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
     44495printf %s "checking for GNU gettext in libc... " >&6; }
     44496if eval test \${$gt_func_gnugettext_libc+y}
     44497then :
     44498  printf %s "(cached) " >&6
     44499else case e in #(
     44500  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     44501/* end confdefs.h.  */
     44502
     44503#include <libintl.h>
     44504$gt_revision_test_code
     44505extern int _nl_msg_cat_cntr;
     44506extern int *_nl_domain_bindings;
     44507
     44508int
     44509main (void)
     44510{
     44511
     44512bindtextdomain ("", "");
     44513return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
     44514
     44515  ;
     44516  return 0;
     44517}
     44518_ACEOF
     44519if ac_fn_c_try_link "$LINENO"
     44520then :
     44521  eval "$gt_func_gnugettext_libc=yes"
     44522else case e in #(
     44523  e) eval "$gt_func_gnugettext_libc=no" ;;
     44524esac
     44525fi
     44526rm -f core conftest.err conftest.$ac_objext conftest.beam \
     44527    conftest$ac_exeext conftest.$ac_ext ;;
     44528esac
     44529fi
     44530eval ac_res=\$$gt_func_gnugettext_libc
     44531               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     44532printf "%s\n" "$ac_res" >&6; }
     44533
     44534        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
     44535
     44536
     44537
    814344538
    814444539
     
    816844563
    816944564
    8170   echo "$as_me:$LINENO: checking for iconv" >&5
    8171 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
    8172 if test "${am_cv_func_iconv+set}" = set; then
    8173   echo $ECHO_N "(cached) $ECHO_C" >&6
    8174 else
    8175 
     44565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
     44566printf %s "checking for iconv... " >&6; }
     44567if test ${am_cv_func_iconv+y}
     44568then :
     44569  printf %s "(cached) " >&6
     44570else case e in #(
     44571  e)
    817644572    am_cv_func_iconv="no, consider installing GNU libiconv"
    817744573    am_cv_lib_iconv=no
    8178     cat >conftest.$ac_ext <<_ACEOF
    8179 /* confdefs.h.  */
    8180 _ACEOF
    8181 cat confdefs.h >>conftest.$ac_ext
    8182 cat >>conftest.$ac_ext <<_ACEOF
     44574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    818344575/* end confdefs.h.  */
     44576
    818444577#include <stdlib.h>
    818544578#include <iconv.h>
     44579
    818644580int
    8187 main ()
     44581main (void)
    818844582{
    818944583iconv_t cd = iconv_open("","");
    8190        iconv(cd,NULL,NULL,NULL,NULL);
    8191        iconv_close(cd);
     44584           iconv(cd,NULL,NULL,NULL,NULL);
     44585           iconv_close(cd);
    819244586  ;
    819344587  return 0;
    819444588}
    819544589_ACEOF
    8196 rm -f conftest.$ac_objext conftest$ac_exeext
    8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8198   (eval $ac_link) 2>conftest.er1
    8199   ac_status=$?
    8200   grep -v '^ *+' conftest.er1 >conftest.err
    8201   rm -f conftest.er1
    8202   cat conftest.err >&5
    8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8204   (exit $ac_status); } &&
    8205          { ac_try='test -z "$ac_c_werror_flag"
    8206                          || test ! -s conftest.err'
    8207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8208   (eval $ac_try) 2>&5
    8209   ac_status=$?
    8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8211   (exit $ac_status); }; } &&
    8212          { ac_try='test -s conftest$ac_exeext'
    8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8214   (eval $ac_try) 2>&5
    8215   ac_status=$?
    8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8217   (exit $ac_status); }; }; then
     44590if ac_fn_c_try_link "$LINENO"
     44591then :
    821844592  am_cv_func_iconv=yes
    8219 else
    8220   echo "$as_me: failed program was:" >&5
    8221 sed 's/^/| /' conftest.$ac_ext >&5
    8222 
    8223 fi
    8224 rm -f conftest.err conftest.$ac_objext \
    8225       conftest$ac_exeext conftest.$ac_ext
     44593fi
     44594rm -f core conftest.err conftest.$ac_objext conftest.beam \
     44595    conftest$ac_exeext conftest.$ac_ext
    822644596    if test "$am_cv_func_iconv" != yes; then
    822744597      am_save_LIBS="$LIBS"
    822844598      LIBS="$LIBS $LIBICONV"
    8229       cat >conftest.$ac_ext <<_ACEOF
    8230 /* confdefs.h.  */
    8231 _ACEOF
    8232 cat confdefs.h >>conftest.$ac_ext
    8233 cat >>conftest.$ac_ext <<_ACEOF
     44599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    823444600/* end confdefs.h.  */
     44601
    823544602#include <stdlib.h>
    823644603#include <iconv.h>
     44604
    823744605int
    8238 main ()
     44606main (void)
    823944607{
    824044608iconv_t cd = iconv_open("","");
    8241          iconv(cd,NULL,NULL,NULL,NULL);
    8242          iconv_close(cd);
     44609             iconv(cd,NULL,NULL,NULL,NULL);
     44610             iconv_close(cd);
    824344611  ;
    824444612  return 0;
    824544613}
    824644614_ACEOF
    8247 rm -f conftest.$ac_objext conftest$ac_exeext
    8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8249   (eval $ac_link) 2>conftest.er1
    8250   ac_status=$?
    8251   grep -v '^ *+' conftest.er1 >conftest.err
    8252   rm -f conftest.er1
    8253   cat conftest.err >&5
    8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8255   (exit $ac_status); } &&
    8256          { ac_try='test -z "$ac_c_werror_flag"
    8257                          || test ! -s conftest.err'
    8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8259   (eval $ac_try) 2>&5
    8260   ac_status=$?
    8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8262   (exit $ac_status); }; } &&
    8263          { ac_try='test -s conftest$ac_exeext'
    8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8265   (eval $ac_try) 2>&5
    8266   ac_status=$?
    8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8268   (exit $ac_status); }; }; then
     44615if ac_fn_c_try_link "$LINENO"
     44616then :
    826944617  am_cv_lib_iconv=yes
    827044618        am_cv_func_iconv=yes
    8271 else
    8272   echo "$as_me: failed program was:" >&5
    8273 sed 's/^/| /' conftest.$ac_ext >&5
    8274 
    8275 fi
    8276 rm -f conftest.err conftest.$ac_objext \
    8277       conftest$ac_exeext conftest.$ac_ext
     44619fi
     44620rm -f core conftest.err conftest.$ac_objext conftest.beam \
     44621    conftest$ac_exeext conftest.$ac_ext
    827844622      LIBS="$am_save_LIBS"
    827944623    fi
    8280 
    8281 fi
    8282 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
    8283 echo "${ECHO_T}$am_cv_func_iconv" >&6
     44624   ;;
     44625esac
     44626fi
     44627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
     44628printf "%s\n" "$am_cv_func_iconv" >&6; }
    828444629  if test "$am_cv_func_iconv" = yes; then
    8285 
    8286 cat >>confdefs.h <<\_ACEOF
    8287 #define HAVE_ICONV 1
     44630    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
     44631printf %s "checking for working iconv... " >&6; }
     44632if test ${am_cv_func_iconv_works+y}
     44633then :
     44634  printf %s "(cached) " >&6
     44635else case e in #(
     44636  e)
     44637                  am_save_LIBS="$LIBS"
     44638      if test $am_cv_lib_iconv = yes; then
     44639        LIBS="$LIBS $LIBICONV"
     44640      fi
     44641      if test "$cross_compiling" = yes
     44642then :
     44643
     44644         case "$host_os" in
     44645           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
     44646           *)            am_cv_func_iconv_works="guessing yes" ;;
     44647         esac
     44648
     44649else case e in #(
     44650  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     44651/* end confdefs.h.  */
     44652
     44653#include <iconv.h>
     44654#include <string.h>
     44655int main ()
     44656{
     44657  int result = 0;
     44658  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
     44659     returns.  */
     44660  {
     44661    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
     44662    if (cd_utf8_to_88591 != (iconv_t)(-1))
     44663      {
     44664        static const char input[] = "\342\202\254"; /* EURO SIGN */
     44665        char buf[10];
     44666        const char *inptr = input;
     44667        size_t inbytesleft = strlen (input);
     44668        char *outptr = buf;
     44669        size_t outbytesleft = sizeof (buf);
     44670        size_t res = iconv (cd_utf8_to_88591,
     44671                            (char **) &inptr, &inbytesleft,
     44672                            &outptr, &outbytesleft);
     44673        if (res == 0)
     44674          result |= 1;
     44675        iconv_close (cd_utf8_to_88591);
     44676      }
     44677  }
     44678  /* Test against Solaris 10 bug: Failures are not distinguishable from
     44679     successful returns.  */
     44680  {
     44681    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
     44682    if (cd_ascii_to_88591 != (iconv_t)(-1))
     44683      {
     44684        static const char input[] = "\263";
     44685        char buf[10];
     44686        const char *inptr = input;
     44687        size_t inbytesleft = strlen (input);
     44688        char *outptr = buf;
     44689        size_t outbytesleft = sizeof (buf);
     44690        size_t res = iconv (cd_ascii_to_88591,
     44691                            (char **) &inptr, &inbytesleft,
     44692                            &outptr, &outbytesleft);
     44693        if (res == 0)
     44694          result |= 2;
     44695        iconv_close (cd_ascii_to_88591);
     44696      }
     44697  }
     44698  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
     44699  {
     44700    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
     44701    if (cd_88591_to_utf8 != (iconv_t)(-1))
     44702      {
     44703        static const char input[] = "\304";
     44704        static char buf[2] = { (char)0xDE, (char)0xAD };
     44705        const char *inptr = input;
     44706        size_t inbytesleft = 1;
     44707        char *outptr = buf;
     44708        size_t outbytesleft = 1;
     44709        size_t res = iconv (cd_88591_to_utf8,
     44710                            (char **) &inptr, &inbytesleft,
     44711                            &outptr, &outbytesleft);
     44712        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
     44713          result |= 4;
     44714        iconv_close (cd_88591_to_utf8);
     44715      }
     44716  }
     44717#if 0 /* This bug could be worked around by the caller.  */
     44718  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
     44719  {
     44720    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
     44721    if (cd_88591_to_utf8 != (iconv_t)(-1))
     44722      {
     44723        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
     44724        char buf[50];
     44725        const char *inptr = input;
     44726        size_t inbytesleft = strlen (input);
     44727        char *outptr = buf;
     44728        size_t outbytesleft = sizeof (buf);
     44729        size_t res = iconv (cd_88591_to_utf8,
     44730                            (char **) &inptr, &inbytesleft,
     44731                            &outptr, &outbytesleft);
     44732        if ((int)res > 0)
     44733          result |= 8;
     44734        iconv_close (cd_88591_to_utf8);
     44735      }
     44736  }
     44737#endif
     44738  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
     44739     provided.  */
     44740  if (/* Try standardized names.  */
     44741      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
     44742      /* Try IRIX, OSF/1 names.  */
     44743      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
     44744      /* Try AIX names.  */
     44745      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
     44746      /* Try HP-UX names.  */
     44747      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
     44748    result |= 16;
     44749  return result;
     44750}
    828844751_ACEOF
     44752if ac_fn_c_try_run "$LINENO"
     44753then :
     44754  am_cv_func_iconv_works=yes
     44755else case e in #(
     44756  e) am_cv_func_iconv_works=no ;;
     44757esac
     44758fi
     44759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     44760  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     44761esac
     44762fi
     44763
     44764      LIBS="$am_save_LIBS"
     44765     ;;
     44766esac
     44767fi
     44768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
     44769printf "%s\n" "$am_cv_func_iconv_works" >&6; }
     44770    case "$am_cv_func_iconv_works" in
     44771      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
     44772      *)   am_func_iconv=yes ;;
     44773    esac
     44774  else
     44775    am_func_iconv=no am_cv_lib_iconv=no
     44776  fi
     44777  if test "$am_func_iconv" = yes; then
     44778
     44779printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
    828944780
    829044781  fi
    829144782  if test "$am_cv_lib_iconv" = yes; then
    8292     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
    8293 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
    8294     echo "$as_me:$LINENO: result: $LIBICONV" >&5
    8295 echo "${ECHO_T}$LIBICONV" >&6
     44783    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
     44784printf %s "checking how to link with libiconv... " >&6; }
     44785    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
     44786printf "%s\n" "$LIBICONV" >&6; }
    829644787  else
    829744788            CPPFLAGS="$am_save_CPPFLAGS"
     
    831044801
    831144802
    8312 
    8313 
    8314 
    8315 
    8316 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
    8317 stdlib.h string.h unistd.h sys/param.h
    8318 do
    8319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    8321   echo "$as_me:$LINENO: checking for $ac_header" >&5
    8322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    8323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    8324   echo $ECHO_N "(cached) $ECHO_C" >&6
    8325 fi
    8326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    8327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    8328 else
    8329   # Is the header compilable?
    8330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    8331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    8332 cat >conftest.$ac_ext <<_ACEOF
    8333 /* confdefs.h.  */
    8334 _ACEOF
    8335 cat confdefs.h >>conftest.$ac_ext
    8336 cat >>conftest.$ac_ext <<_ACEOF
    8337 /* end confdefs.h.  */
    8338 $ac_includes_default
    8339 #include <$ac_header>
    8340 _ACEOF
    8341 rm -f conftest.$ac_objext
    8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8343   (eval $ac_compile) 2>conftest.er1
    8344   ac_status=$?
    8345   grep -v '^ *+' conftest.er1 >conftest.err
    8346   rm -f conftest.er1
    8347   cat conftest.err >&5
    8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8349   (exit $ac_status); } &&
    8350          { ac_try='test -z "$ac_c_werror_flag"
    8351                          || test ! -s conftest.err'
    8352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8353   (eval $ac_try) 2>&5
    8354   ac_status=$?
    8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8356   (exit $ac_status); }; } &&
    8357          { ac_try='test -s conftest.$ac_objext'
    8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8359   (eval $ac_try) 2>&5
    8360   ac_status=$?
    8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8362   (exit $ac_status); }; }; then
    8363   ac_header_compiler=yes
    8364 else
    8365   echo "$as_me: failed program was:" >&5
    8366 sed 's/^/| /' conftest.$ac_ext >&5
    8367 
    8368 ac_header_compiler=no
    8369 fi
    8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    8371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    8372 echo "${ECHO_T}$ac_header_compiler" >&6
    8373 
    8374 # Is the header present?
    8375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    8376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    8377 cat >conftest.$ac_ext <<_ACEOF
    8378 /* confdefs.h.  */
    8379 _ACEOF
    8380 cat confdefs.h >>conftest.$ac_ext
    8381 cat >>conftest.$ac_ext <<_ACEOF
    8382 /* end confdefs.h.  */
    8383 #include <$ac_header>
    8384 _ACEOF
    8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    8386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    8387   ac_status=$?
    8388   grep -v '^ *+' conftest.er1 >conftest.err
    8389   rm -f conftest.er1
    8390   cat conftest.err >&5
    8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8392   (exit $ac_status); } >/dev/null; then
    8393   if test -s conftest.err; then
    8394     ac_cpp_err=$ac_c_preproc_warn_flag
    8395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    8396   else
    8397     ac_cpp_err=
    8398   fi
    8399 else
    8400   ac_cpp_err=yes
    8401 fi
    8402 if test -z "$ac_cpp_err"; then
    8403   ac_header_preproc=yes
    8404 else
    8405   echo "$as_me: failed program was:" >&5
    8406 sed 's/^/| /' conftest.$ac_ext >&5
    8407 
    8408   ac_header_preproc=no
    8409 fi
    8410 rm -f conftest.err conftest.$ac_ext
    8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    8412 echo "${ECHO_T}$ac_header_preproc" >&6
    8413 
    8414 # So?  What about this header?
    8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    8416   yes:no: )
    8417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    8419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    8421     ac_header_preproc=yes
    8422     ;;
    8423   no:yes:* )
    8424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    8426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    8427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    8428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    8430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    8431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    8432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    8434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    8436     (
    8437       cat <<\_ASBOX
    8438 ## ------------------------------ ##
    8439 ## Report this to [email protected] ##
    8440 ## ------------------------------ ##
    8441 _ASBOX
    8442     ) |
    8443       sed "s/^/$as_me: WARNING:     /" >&2
    8444     ;;
    8445 esac
    8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
    8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    8449   echo $ECHO_N "(cached) $ECHO_C" >&6
    8450 else
    8451   eval "$as_ac_Header=\$ac_header_preproc"
    8452 fi
    8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    8455 
    8456 fi
    8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    8458   cat >>confdefs.h <<_ACEOF
    8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    8460 _ACEOF
    8461 
    8462 fi
    8463 
    8464 done
    8465 
    8466 
    8467 
    8468 
    8469 
    8470 
    8471 
    8472 
    8473 
    8474 
    8475 
    8476 
    8477 
    8478 
    8479 
    8480 
    8481 
    8482 
    8483 
    8484 
    8485 
    8486 
    8487 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
    8488 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
    8489 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
    8490 do
    8491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    8492 echo "$as_me:$LINENO: checking for $ac_func" >&5
    8493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    8494 if eval "test \"\${$as_ac_var+set}\" = set"; then
    8495   echo $ECHO_N "(cached) $ECHO_C" >&6
    8496 else
    8497   cat >conftest.$ac_ext <<_ACEOF
    8498 /* confdefs.h.  */
    8499 _ACEOF
    8500 cat confdefs.h >>conftest.$ac_ext
    8501 cat >>conftest.$ac_ext <<_ACEOF
    8502 /* end confdefs.h.  */
    8503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    8504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8505 #define $ac_func innocuous_$ac_func
    8506 
    8507 /* System header to define __stub macros and hopefully few prototypes,
    8508     which can conflict with char $ac_func (); below.
    8509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    8510     <limits.h> exists even on freestanding compilers.  */
    8511 
    8512 #ifdef __STDC__
    8513 # include <limits.h>
    8514 #else
    8515 # include <assert.h>
    8516 #endif
    8517 
    8518 #undef $ac_func
    8519 
    8520 /* Override any gcc2 internal prototype to avoid an error.  */
    8521 #ifdef __cplusplus
    8522 extern "C"
    8523 {
    8524 #endif
    8525 /* We use char because int might match the return type of a gcc2
    8526    builtin and then its argument prototype would still apply.  */
    8527 char $ac_func ();
    8528 /* The GNU C library defines this for functions which it implements
    8529     to always fail with ENOSYS.  Some functions are actually named
    8530     something starting with __ and the normal name is an alias.  */
    8531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    8532 choke me
    8533 #else
    8534 char (*f) () = $ac_func;
    8535 #endif
    8536 #ifdef __cplusplus
    8537 }
    8538 #endif
    8539 
    8540 int
    8541 main ()
    8542 {
    8543 return f != $ac_func;
    8544   ;
    8545   return 0;
    8546 }
    8547 _ACEOF
    8548 rm -f conftest.$ac_objext conftest$ac_exeext
    8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8550   (eval $ac_link) 2>conftest.er1
    8551   ac_status=$?
    8552   grep -v '^ *+' conftest.er1 >conftest.err
    8553   rm -f conftest.er1
    8554   cat conftest.err >&5
    8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8556   (exit $ac_status); } &&
    8557          { ac_try='test -z "$ac_c_werror_flag"
    8558                          || test ! -s conftest.err'
    8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8560   (eval $ac_try) 2>&5
    8561   ac_status=$?
    8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8563   (exit $ac_status); }; } &&
    8564          { ac_try='test -s conftest$ac_exeext'
    8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8566   (eval $ac_try) 2>&5
    8567   ac_status=$?
    8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8569   (exit $ac_status); }; }; then
    8570   eval "$as_ac_var=yes"
    8571 else
    8572   echo "$as_me: failed program was:" >&5
    8573 sed 's/^/| /' conftest.$ac_ext >&5
    8574 
    8575 eval "$as_ac_var=no"
    8576 fi
    8577 rm -f conftest.err conftest.$ac_objext \
    8578       conftest$ac_exeext conftest.$ac_ext
    8579 fi
    8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    8581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    8582 if test `eval echo '${'$as_ac_var'}'` = yes; then
    8583   cat >>confdefs.h <<_ACEOF
    8584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    8585 _ACEOF
    8586 
    8587 fi
    8588 done
    8589 
    8590 
    8591 
    8592 
    8593   if test "$am_cv_func_iconv" = yes; then
    8594     echo "$as_me:$LINENO: checking for iconv declaration" >&5
    8595 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
    8596     if test "${am_cv_proto_iconv+set}" = set; then
    8597   echo $ECHO_N "(cached) $ECHO_C" >&6
    8598 else
    8599 
    8600       cat >conftest.$ac_ext <<_ACEOF
    8601 /* confdefs.h.  */
    8602 _ACEOF
    8603 cat confdefs.h >>conftest.$ac_ext
    8604 cat >>conftest.$ac_ext <<_ACEOF
    8605 /* end confdefs.h.  */
    8606 
    8607 #include <stdlib.h>
    8608 #include <iconv.h>
    8609 extern
    8610 #ifdef __cplusplus
    8611 "C"
    8612 #endif
    8613 #if defined(__STDC__) || defined(__cplusplus)
    8614 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
    8615 #else
    8616 size_t iconv();
    8617 #endif
    8618 
    8619 int
    8620 main ()
    8621 {
    8622 
    8623   ;
    8624   return 0;
    8625 }
    8626 _ACEOF
    8627 rm -f conftest.$ac_objext
    8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8629   (eval $ac_compile) 2>conftest.er1
    8630   ac_status=$?
    8631   grep -v '^ *+' conftest.er1 >conftest.err
    8632   rm -f conftest.er1
    8633   cat conftest.err >&5
    8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8635   (exit $ac_status); } &&
    8636          { ac_try='test -z "$ac_c_werror_flag"
    8637                          || test ! -s conftest.err'
    8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8639   (eval $ac_try) 2>&5
    8640   ac_status=$?
    8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8642   (exit $ac_status); }; } &&
    8643          { ac_try='test -s conftest.$ac_objext'
    8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8645   (eval $ac_try) 2>&5
    8646   ac_status=$?
    8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8648   (exit $ac_status); }; }; then
    8649   am_cv_proto_iconv_arg1=""
    8650 else
    8651   echo "$as_me: failed program was:" >&5
    8652 sed 's/^/| /' conftest.$ac_ext >&5
    8653 
    8654 am_cv_proto_iconv_arg1="const"
    8655 fi
    8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    8657       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
    8658 fi
    8659 
    8660     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
    8661     echo "$as_me:$LINENO: result: ${ac_t:-
    8662          }$am_cv_proto_iconv" >&5
    8663 echo "${ECHO_T}${ac_t:-
    8664          }$am_cv_proto_iconv" >&6
    8665 
    8666 cat >>confdefs.h <<_ACEOF
    8667 #define ICONV_CONST $am_cv_proto_iconv_arg1
    8668 _ACEOF
    8669 
    8670   fi
    8671 
    8672 
    8673   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
    8674 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
    8675 if test "${am_cv_langinfo_codeset+set}" = set; then
    8676   echo $ECHO_N "(cached) $ECHO_C" >&6
    8677 else
    8678   cat >conftest.$ac_ext <<_ACEOF
    8679 /* confdefs.h.  */
    8680 _ACEOF
    8681 cat confdefs.h >>conftest.$ac_ext
    8682 cat >>conftest.$ac_ext <<_ACEOF
    8683 /* end confdefs.h.  */
    8684 #include <langinfo.h>
    8685 int
    8686 main ()
    8687 {
    8688 char* cs = nl_langinfo(CODESET);
    8689   ;
    8690   return 0;
    8691 }
    8692 _ACEOF
    8693 rm -f conftest.$ac_objext conftest$ac_exeext
    8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8695   (eval $ac_link) 2>conftest.er1
    8696   ac_status=$?
    8697   grep -v '^ *+' conftest.er1 >conftest.err
    8698   rm -f conftest.er1
    8699   cat conftest.err >&5
    8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8701   (exit $ac_status); } &&
    8702          { ac_try='test -z "$ac_c_werror_flag"
    8703                          || test ! -s conftest.err'
    8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8705   (eval $ac_try) 2>&5
    8706   ac_status=$?
    8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8708   (exit $ac_status); }; } &&
    8709          { ac_try='test -s conftest$ac_exeext'
    8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8711   (eval $ac_try) 2>&5
    8712   ac_status=$?
    8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8714   (exit $ac_status); }; }; then
    8715   am_cv_langinfo_codeset=yes
    8716 else
    8717   echo "$as_me: failed program was:" >&5
    8718 sed 's/^/| /' conftest.$ac_ext >&5
    8719 
    8720 am_cv_langinfo_codeset=no
    8721 fi
    8722 rm -f conftest.err conftest.$ac_objext \
    8723       conftest$ac_exeext conftest.$ac_ext
    8724 
    8725 fi
    8726 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
    8727 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
    8728   if test $am_cv_langinfo_codeset = yes; then
    8729 
    8730 cat >>confdefs.h <<\_ACEOF
    8731 #define HAVE_LANGINFO_CODESET 1
    8732 _ACEOF
    8733 
    8734   fi
    8735 
    8736   if test $ac_cv_header_locale_h = yes; then
    8737     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
    8738 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
    8739 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
    8740   echo $ECHO_N "(cached) $ECHO_C" >&6
    8741 else
    8742   cat >conftest.$ac_ext <<_ACEOF
    8743 /* confdefs.h.  */
    8744 _ACEOF
    8745 cat confdefs.h >>conftest.$ac_ext
    8746 cat >>conftest.$ac_ext <<_ACEOF
    8747 /* end confdefs.h.  */
    8748 #include <locale.h>
    8749 int
    8750 main ()
    8751 {
    8752 return LC_MESSAGES
    8753   ;
    8754   return 0;
    8755 }
    8756 _ACEOF
    8757 rm -f conftest.$ac_objext conftest$ac_exeext
    8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8759   (eval $ac_link) 2>conftest.er1
    8760   ac_status=$?
    8761   grep -v '^ *+' conftest.er1 >conftest.err
    8762   rm -f conftest.er1
    8763   cat conftest.err >&5
    8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8765   (exit $ac_status); } &&
    8766          { ac_try='test -z "$ac_c_werror_flag"
    8767                          || test ! -s conftest.err'
    8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8769   (eval $ac_try) 2>&5
    8770   ac_status=$?
    8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8772   (exit $ac_status); }; } &&
    8773          { ac_try='test -s conftest$ac_exeext'
    8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8775   (eval $ac_try) 2>&5
    8776   ac_status=$?
    8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8778   (exit $ac_status); }; }; then
    8779   am_cv_val_LC_MESSAGES=yes
    8780 else
    8781   echo "$as_me: failed program was:" >&5
    8782 sed 's/^/| /' conftest.$ac_ext >&5
    8783 
    8784 am_cv_val_LC_MESSAGES=no
    8785 fi
    8786 rm -f conftest.err conftest.$ac_objext \
    8787       conftest$ac_exeext conftest.$ac_ext
    8788 fi
    8789 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
    8790 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
    8791     if test $am_cv_val_LC_MESSAGES = yes; then
    8792 
    8793 cat >>confdefs.h <<\_ACEOF
    8794 #define HAVE_LC_MESSAGES 1
    8795 _ACEOF
    8796 
    8797     fi
    8798   fi
    8799 
    8800                       for ac_prog in bison
    8801 do
    8802   # Extract the first word of "$ac_prog", so it can be a program name with args.
    8803 set dummy $ac_prog; ac_word=$2
    8804 echo "$as_me:$LINENO: checking for $ac_word" >&5
    8805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    8806 if test "${ac_cv_prog_INTLBISON+set}" = set; then
    8807   echo $ECHO_N "(cached) $ECHO_C" >&6
    8808 else
    8809   if test -n "$INTLBISON"; then
    8810   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
    8811 else
    8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8813 for as_dir in $PATH
    8814 do
    8815   IFS=$as_save_IFS
    8816   test -z "$as_dir" && as_dir=.
    8817   for ac_exec_ext in '' $ac_executable_extensions; do
    8818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8819     ac_cv_prog_INTLBISON="$ac_prog"
    8820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    8821     break 2
    8822   fi
    8823 done
    8824 done
    8825 
    8826 fi
    8827 fi
    8828 INTLBISON=$ac_cv_prog_INTLBISON
    8829 if test -n "$INTLBISON"; then
    8830   echo "$as_me:$LINENO: result: $INTLBISON" >&5
    8831 echo "${ECHO_T}$INTLBISON" >&6
    8832 else
    8833   echo "$as_me:$LINENO: result: no" >&5
    8834 echo "${ECHO_T}no" >&6
    8835 fi
    8836 
    8837   test -n "$INTLBISON" && break
    8838 done
    8839 
    8840   if test -z "$INTLBISON"; then
    8841     ac_verc_fail=yes
    8842   else
    8843         echo "$as_me:$LINENO: checking version of bison" >&5
    8844 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
    8845     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
    8846     case $ac_prog_version in
    8847       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
    8848       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
    8849          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
    8850       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
    8851     esac
    8852     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
    8853 echo "${ECHO_T}$ac_prog_version" >&6
    8854   fi
    8855   if test $ac_verc_fail = yes; then
    8856     INTLBISON=:
    8857   fi
    8858 
    8859 
    8860 
    8861 
    8862 
    8863 
    8864 
    8865 
    8866 
    8867 
    8868 
    8869 
    8870 
    8871   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
    8872 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
    8873     # Check whether --enable-nls or --disable-nls was given.
    8874 if test "${enable_nls+set}" = set; then
    8875   enableval="$enable_nls"
    8876   USE_NLS=$enableval
    8877 else
    8878   USE_NLS=yes
    8879 fi;
    8880   echo "$as_me:$LINENO: result: $USE_NLS" >&5
    8881 echo "${ECHO_T}$USE_NLS" >&6
    8882 
    8883 
    8884 
    8885     BUILD_INCLUDED_LIBINTL=no
    8886     USE_INCLUDED_LIBINTL=no
    8887 
    8888   LIBINTL=
    8889   LTLIBINTL=
    8890   POSUB=
    8891 
    8892     if test "$USE_NLS" = "yes"; then
    8893     gt_use_preinstalled_gnugettext=no
    8894 
    8895       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
    8896 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
    8897 
    8898 # Check whether --with-included-gettext or --without-included-gettext was given.
    8899 if test "${with_included_gettext+set}" = set; then
    8900   withval="$with_included_gettext"
    8901   nls_cv_force_use_gnu_gettext=$withval
    8902 else
    8903   nls_cv_force_use_gnu_gettext=no
    8904 fi;
    8905       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
    8906 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
    8907 
    8908       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
    8909       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
    8910 
    8911 
    8912 
    8913 
    8914 
    8915 
    8916         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
    8917 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
    8918 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
    8919   echo $ECHO_N "(cached) $ECHO_C" >&6
    8920 else
    8921   cat >conftest.$ac_ext <<_ACEOF
    8922 /* confdefs.h.  */
    8923 _ACEOF
    8924 cat confdefs.h >>conftest.$ac_ext
    8925 cat >>conftest.$ac_ext <<_ACEOF
    8926 /* end confdefs.h.  */
    8927 #include <libintl.h>
    8928 extern int _nl_msg_cat_cntr;
    8929 int
    8930 main ()
    8931 {
    8932 bindtextdomain ("", "");
    8933 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
    8934   ;
    8935   return 0;
    8936 }
    8937 _ACEOF
    8938 rm -f conftest.$ac_objext conftest$ac_exeext
    8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8940   (eval $ac_link) 2>conftest.er1
    8941   ac_status=$?
    8942   grep -v '^ *+' conftest.er1 >conftest.err
    8943   rm -f conftest.er1
    8944   cat conftest.err >&5
    8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8946   (exit $ac_status); } &&
    8947          { ac_try='test -z "$ac_c_werror_flag"
    8948                          || test ! -s conftest.err'
    8949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8950   (eval $ac_try) 2>&5
    8951   ac_status=$?
    8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8953   (exit $ac_status); }; } &&
    8954          { ac_try='test -s conftest$ac_exeext'
    8955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8956   (eval $ac_try) 2>&5
    8957   ac_status=$?
    8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8959   (exit $ac_status); }; }; then
    8960   gt_cv_func_gnugettext2_libc=yes
    8961 else
    8962   echo "$as_me: failed program was:" >&5
    8963 sed 's/^/| /' conftest.$ac_ext >&5
    8964 
    8965 gt_cv_func_gnugettext2_libc=no
    8966 fi
    8967 rm -f conftest.err conftest.$ac_objext \
    8968       conftest$ac_exeext conftest.$ac_ext
    8969 fi
    8970 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
    8971 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
    8972 
    8973         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
    8974 
    8975 
    8976 
    897744803    use_additional=yes
    897844804
     
    898944815
    899044816
    8991 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
    8992 if test "${with_libintl_prefix+set}" = set; then
    8993   withval="$with_libintl_prefix"
    8994 
     44817# Check whether --with-libintl-prefix was given.
     44818if test ${with_libintl_prefix+y}
     44819then :
     44820  withval=$with_libintl_prefix;
    899544821    if test "X$withval" = "Xno"; then
    899644822      use_additional=no
     
    901144837      else
    901244838        additional_includedir="$withval/include"
    9013         additional_libdir="$withval/lib"
     44839        additional_libdir="$withval/$acl_libdirstem"
     44840        if test "$acl_libdirstem2" != "$acl_libdirstem" \
     44841           && ! test -d "$withval/$acl_libdirstem"; then
     44842          additional_libdir="$withval/$acl_libdirstem2"
     44843        fi
    901444844      fi
    901544845    fi
    901644846
    9017 fi;
     44847fi
     44848
    901844849      LIBINTL=
    901944850  LTLIBINTL=
    902044851  INCINTL=
     44852  LIBINTL_PREFIX=
     44853      HAVE_LIBINTL=
    902144854  rpathdirs=
    902244855  ltrpathdirs=
     
    903644869      if test -z "$already_handled"; then
    903744870        names_already_handled="$names_already_handled $name"
    9038                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
     44871                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
    903944872        eval value=\"\$HAVE_LIB$uppername\"
    904044873        if test -n "$value"; then
     
    905244885          found_so=
    905344886          found_a=
     44887          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
     44888          if test -n "$acl_shlibext"; then
     44889            shrext=".$acl_shlibext"             # typically: shrext=.so
     44890          else
     44891            shrext=
     44892          fi
    905444893          if test $use_additional = yes; then
    9055             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
    9056               found_dir="$additional_libdir"
    9057               found_so="$additional_libdir/lib$name.$shlibext"
    9058               if test -f "$additional_libdir/lib$name.la"; then
    9059                 found_la="$additional_libdir/lib$name.la"
     44894            dir="$additional_libdir"
     44895                                    if test -n "$acl_shlibext"; then
     44896              if test -f "$dir/$libname$shrext"; then
     44897                found_dir="$dir"
     44898                found_so="$dir/$libname$shrext"
     44899              else
     44900                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
     44901                  ver=`(cd "$dir" && \
     44902                        for f in "$libname$shrext".*; do echo "$f"; done \
     44903                        | sed -e "s,^$libname$shrext\\\\.,," \
     44904                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
     44905                        | sed 1q ) 2>/dev/null`
     44906                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
     44907                    found_dir="$dir"
     44908                    found_so="$dir/$libname$shrext.$ver"
     44909                  fi
     44910                else
     44911                  eval library_names=\"$acl_library_names_spec\"
     44912                  for f in $library_names; do
     44913                    if test -f "$dir/$f"; then
     44914                      found_dir="$dir"
     44915                      found_so="$dir/$f"
     44916                      break
     44917                    fi
     44918                  done
     44919                fi
    906044920              fi
    9061             else
    9062               if test -f "$additional_libdir/lib$name.$libext"; then
    9063                 found_dir="$additional_libdir"
    9064                 found_a="$additional_libdir/lib$name.$libext"
    9065                 if test -f "$additional_libdir/lib$name.la"; then
    9066                   found_la="$additional_libdir/lib$name.la"
    9067                 fi
     44921            fi
     44922                        if test "X$found_dir" = "X"; then
     44923              if test -f "$dir/$libname.$acl_libext"; then
     44924                found_dir="$dir"
     44925                found_a="$dir/$libname.$acl_libext"
     44926              fi
     44927            fi
     44928            if test "X$found_dir" != "X"; then
     44929              if test -f "$dir/$libname.la"; then
     44930                found_la="$dir/$libname.la"
    906844931              fi
    906944932            fi
     
    908344946                -L*)
    908444947                  dir=`echo "X$x" | sed -e 's/^X-L//'`
    9085                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
    9086                     found_dir="$dir"
    9087                     found_so="$dir/lib$name.$shlibext"
    9088                     if test -f "$dir/lib$name.la"; then
    9089                       found_la="$dir/lib$name.la"
     44948                                    if test -n "$acl_shlibext"; then
     44949                    if test -f "$dir/$libname$shrext"; then
     44950                      found_dir="$dir"
     44951                      found_so="$dir/$libname$shrext"
     44952                    else
     44953                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
     44954                        ver=`(cd "$dir" && \
     44955                              for f in "$libname$shrext".*; do echo "$f"; done \
     44956                              | sed -e "s,^$libname$shrext\\\\.,," \
     44957                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
     44958                              | sed 1q ) 2>/dev/null`
     44959                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
     44960                          found_dir="$dir"
     44961                          found_so="$dir/$libname$shrext.$ver"
     44962                        fi
     44963                      else
     44964                        eval library_names=\"$acl_library_names_spec\"
     44965                        for f in $library_names; do
     44966                          if test -f "$dir/$f"; then
     44967                            found_dir="$dir"
     44968                            found_so="$dir/$f"
     44969                            break
     44970                          fi
     44971                        done
     44972                      fi
    909044973                    fi
    9091                   else
    9092                     if test -f "$dir/lib$name.$libext"; then
     44974                  fi
     44975                                    if test "X$found_dir" = "X"; then
     44976                    if test -f "$dir/$libname.$acl_libext"; then
    909344977                      found_dir="$dir"
    9094                       found_a="$dir/lib$name.$libext"
    9095                       if test -f "$dir/lib$name.la"; then
    9096                         found_la="$dir/lib$name.la"
    9097                       fi
     44978                      found_a="$dir/$libname.$acl_libext"
     44979                    fi
     44980                  fi
     44981                  if test "X$found_dir" != "X"; then
     44982                    if test -f "$dir/$libname.la"; then
     44983                      found_la="$dir/$libname.la"
    909844984                    fi
    909944985                  fi
     
    910844994                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
    910944995            if test "X$found_so" != "X"; then
    9110                                                         if test "X$found_dir" = "X/usr/lib"; then
     44996                                                        if test "$enable_rpath" = no \
     44997                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
     44998                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
    911144999                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
    911245000              else
     
    912145009                  ltrpathdirs="$ltrpathdirs $found_dir"
    912245010                fi
    9123                                 if test "$hardcode_direct" = yes; then
     45011                                if test "$acl_hardcode_direct" = yes; then
    912445012                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
    912545013                else
    9126                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
     45014                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
    912745015                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
    912845016                                                            haveit=
     
    915645044                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
    915745045                    fi
    9158                     if test "$hardcode_minus_L" != no; then
     45046                    if test "$acl_hardcode_minus_L" != no; then
    915945047                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
    916045048                    else
     
    917345061                        additional_includedir=
    917445062            case "$found_dir" in
    9175               */lib | */lib/)
    9176                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
     45063              */$acl_libdirstem | */$acl_libdirstem/)
     45064                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
     45065                if test "$name" = 'intl'; then
     45066                  LIBINTL_PREFIX="$basedir"
     45067                fi
     45068                additional_includedir="$basedir/include"
     45069                ;;
     45070              */$acl_libdirstem2 | */$acl_libdirstem2/)
     45071                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
     45072                if test "$name" = 'intl'; then
     45073                  LIBINTL_PREFIX="$basedir"
     45074                fi
    917745075                additional_includedir="$basedir/include"
    917845076                ;;
     
    918445082                  if test -n "$GCC"; then
    918545083                    case $host_os in
    9186                       linux*) haveit=yes;;
     45084                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    918745085                    esac
    918845086                  fi
     
    922345121                  -L*)
    922445122                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
    9225                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
     45123                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
     45124                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
    922645125                      haveit=
    9227                       if test "X$additional_libdir" = "X/usr/local/lib"; then
     45126                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
     45127                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
    922845128                        if test -n "$GCC"; then
    922945129                          case $host_os in
    9230                             linux*) haveit=yes;;
     45130                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    923145131                          esac
    923245132                        fi
     
    927545175                          fi
    927645176                        fi
     45177                      fi
     45178                    fi
     45179                    ;;
     45180                  -R*)
     45181                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
     45182                    if test "$enable_rpath" != no; then
     45183                                                                  haveit=
     45184                      for x in $rpathdirs; do
     45185                        if test "X$x" = "X$dir"; then
     45186                          haveit=yes
     45187                          break
     45188                        fi
     45189                      done
     45190                      if test -z "$haveit"; then
     45191                        rpathdirs="$rpathdirs $dir"
     45192                      fi
     45193                                                                  haveit=
     45194                      for x in $ltrpathdirs; do
     45195                        if test "X$x" = "X$dir"; then
     45196                          haveit=yes
     45197                          break
     45198                        fi
     45199                      done
     45200                      if test -z "$haveit"; then
     45201                        ltrpathdirs="$ltrpathdirs $dir"
    927745202                      fi
    927845203                    fi
     
    930045225  done
    930145226  if test "X$rpathdirs" != "X"; then
    9302     if test -n "$hardcode_libdir_separator"; then
     45227    if test -n "$acl_hardcode_libdir_separator"; then
    930345228                        alldirs=
    930445229      for found_dir in $rpathdirs; do
    9305         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
     45230        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
    930645231      done
    930745232            acl_save_libdir="$libdir"
    930845233      libdir="$alldirs"
    9309       eval flag=\"$hardcode_libdir_flag_spec\"
     45234      eval flag=\"$acl_hardcode_libdir_flag_spec\"
    931045235      libdir="$acl_save_libdir"
    931145236      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
     
    931445239        acl_save_libdir="$libdir"
    931545240        libdir="$found_dir"
    9316         eval flag=\"$hardcode_libdir_flag_spec\"
     45241        eval flag=\"$acl_hardcode_libdir_flag_spec\"
    931745242        libdir="$acl_save_libdir"
    931845243        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
     
    932645251  fi
    932745252
    9328           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
    9329 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
    9330 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
    9331   echo $ECHO_N "(cached) $ECHO_C" >&6
    9332 else
    9333   gt_save_CPPFLAGS="$CPPFLAGS"
     45253
     45254
     45255
     45256
     45257
     45258          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
     45259printf %s "checking for GNU gettext in libintl... " >&6; }
     45260if eval test \${$gt_func_gnugettext_libintl+y}
     45261then :
     45262  printf %s "(cached) " >&6
     45263else case e in #(
     45264  e) gt_save_CPPFLAGS="$CPPFLAGS"
    933445265            CPPFLAGS="$CPPFLAGS $INCINTL"
    933545266            gt_save_LIBS="$LIBS"
    933645267            LIBS="$LIBS $LIBINTL"
    9337                         cat >conftest.$ac_ext <<_ACEOF
    9338 /* confdefs.h.  */
    9339 _ACEOF
    9340 cat confdefs.h >>conftest.$ac_ext
    9341 cat >>conftest.$ac_ext <<_ACEOF
     45268                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    934245269/* end confdefs.h.  */
     45270
    934345271#include <libintl.h>
     45272$gt_revision_test_code
    934445273extern int _nl_msg_cat_cntr;
     45274extern
     45275#ifdef __cplusplus
     45276"C"
     45277#endif
     45278const char *_nl_expand_alias (const char *);
     45279
    934545280int
    9346 main ()
     45281main (void)
    934745282{
     45283
    934845284bindtextdomain ("", "");
    9349 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
     45285return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
     45286
    935045287  ;
    935145288  return 0;
    935245289}
    935345290_ACEOF
    9354 rm -f conftest.$ac_objext conftest$ac_exeext
    9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9356   (eval $ac_link) 2>conftest.er1
    9357   ac_status=$?
    9358   grep -v '^ *+' conftest.er1 >conftest.err
    9359   rm -f conftest.er1
    9360   cat conftest.err >&5
    9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9362   (exit $ac_status); } &&
    9363          { ac_try='test -z "$ac_c_werror_flag"
    9364                          || test ! -s conftest.err'
    9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9366   (eval $ac_try) 2>&5
    9367   ac_status=$?
    9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9369   (exit $ac_status); }; } &&
    9370          { ac_try='test -s conftest$ac_exeext'
    9371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9372   (eval $ac_try) 2>&5
    9373   ac_status=$?
    9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9375   (exit $ac_status); }; }; then
    9376   gt_cv_func_gnugettext2_libintl=yes
    9377 else
    9378   echo "$as_me: failed program was:" >&5
    9379 sed 's/^/| /' conftest.$ac_ext >&5
    9380 
    9381 gt_cv_func_gnugettext2_libintl=no
    9382 fi
    9383 rm -f conftest.err conftest.$ac_objext \
    9384       conftest$ac_exeext conftest.$ac_ext
    9385                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
     45291if ac_fn_c_try_link "$LINENO"
     45292then :
     45293  eval "$gt_func_gnugettext_libintl=yes"
     45294else case e in #(
     45295  e) eval "$gt_func_gnugettext_libintl=no" ;;
     45296esac
     45297fi
     45298rm -f core conftest.err conftest.$ac_objext conftest.beam \
     45299    conftest$ac_exeext conftest.$ac_ext
     45300                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
    938645301              LIBS="$LIBS $LIBICONV"
    9387               cat >conftest.$ac_ext <<_ACEOF
    9388 /* confdefs.h.  */
    9389 _ACEOF
    9390 cat confdefs.h >>conftest.$ac_ext
    9391 cat >>conftest.$ac_ext <<_ACEOF
     45302              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    939245303/* end confdefs.h.  */
     45304
    939345305#include <libintl.h>
     45306$gt_revision_test_code
    939445307extern int _nl_msg_cat_cntr;
     45308extern
     45309#ifdef __cplusplus
     45310"C"
     45311#endif
     45312const char *_nl_expand_alias (const char *);
     45313
    939545314int
    9396 main ()
     45315main (void)
    939745316{
     45317
    939845318bindtextdomain ("", "");
    9399 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
     45319return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
     45320
    940045321  ;
    940145322  return 0;
    940245323}
    940345324_ACEOF
    9404 rm -f conftest.$ac_objext conftest$ac_exeext
    9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9406   (eval $ac_link) 2>conftest.er1
    9407   ac_status=$?
    9408   grep -v '^ *+' conftest.er1 >conftest.err
    9409   rm -f conftest.er1
    9410   cat conftest.err >&5
    9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9412   (exit $ac_status); } &&
    9413          { ac_try='test -z "$ac_c_werror_flag"
    9414                          || test ! -s conftest.err'
    9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9416   (eval $ac_try) 2>&5
    9417   ac_status=$?
    9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9419   (exit $ac_status); }; } &&
    9420          { ac_try='test -s conftest$ac_exeext'
    9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9422   (eval $ac_try) 2>&5
    9423   ac_status=$?
    9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9425   (exit $ac_status); }; }; then
     45325if ac_fn_c_try_link "$LINENO"
     45326then :
    942645327  LIBINTL="$LIBINTL $LIBICONV"
    9427                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
    9428                 gt_cv_func_gnugettext2_libintl=yes
    9429 
    9430 else
    9431   echo "$as_me: failed program was:" >&5
    9432 sed 's/^/| /' conftest.$ac_ext >&5
    9433 
    9434 fi
    9435 rm -f conftest.err conftest.$ac_objext \
    9436       conftest$ac_exeext conftest.$ac_ext
     45328                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
     45329                 eval "$gt_func_gnugettext_libintl=yes"
     45330
     45331fi
     45332rm -f core conftest.err conftest.$ac_objext conftest.beam \
     45333    conftest$ac_exeext conftest.$ac_ext
    943745334            fi
    943845335            CPPFLAGS="$gt_save_CPPFLAGS"
    9439             LIBS="$gt_save_LIBS"
    9440 fi
    9441 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
    9442 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
     45336            LIBS="$gt_save_LIBS" ;;
     45337esac
     45338fi
     45339eval ac_res=\$$gt_func_gnugettext_libintl
     45340               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     45341printf "%s\n" "$ac_res" >&6; }
    944345342        fi
    944445343
    9445                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
    9446            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
    9447                 && test "$PACKAGE" != gettext; }; then
     45344                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
     45345           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
     45346                && test "$PACKAGE" != gettext-runtime \
     45347                && test "$PACKAGE" != gettext-tools; }; then
    944845348          gt_use_preinstalled_gnugettext=yes
     45349        else
     45350                    LIBINTL=
     45351          LTLIBINTL=
     45352          INCINTL=
    944945353        fi
    945045354
    945145355
    9452         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
    9453                               nls_cv_use_gnu_gettext=yes
    9454         fi
    9455       fi
    9456 
    9457       if test "$nls_cv_use_gnu_gettext" = "yes"; then
    9458                 INTLOBJS="\$(GETTOBJS)"
    9459         BUILD_INCLUDED_LIBINTL=yes
    9460         USE_INCLUDED_LIBINTL=yes
    9461         LIBINTL="../intl/libintl.a $LIBICONV"
    9462         LTLIBINTL="../intl/libintl.a $LTLIBICONV"
    9463         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
    9464       fi
    9465 
     45356
     45357    if test -n "$INTL_MACOSX_LIBS"; then
    946645358      if test "$gt_use_preinstalled_gnugettext" = "yes" \
    946745359         || test "$nls_cv_use_gnu_gettext" = "yes"; then
    9468                 CATOBJEXT=.gmo
     45360                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
     45361        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
    946945362      fi
    9470 
     45363    fi
    947145364
    947245365    if test "$gt_use_preinstalled_gnugettext" = "yes" \
    947345366       || test "$nls_cv_use_gnu_gettext" = "yes"; then
    947445367
    9475 cat >>confdefs.h <<\_ACEOF
    9476 #define ENABLE_NLS 1
    9477 _ACEOF
     45368printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
    947845369
    947945370    else
     
    948245373  fi
    948345374
     45375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
     45376printf %s "checking whether to use NLS... " >&6; }
     45377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
     45378printf "%s\n" "$USE_NLS" >&6; }
    948445379  if test "$USE_NLS" = "yes"; then
    9485 
     45380    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
     45381printf %s "checking where the gettext function comes from... " >&6; }
    948645382    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
    9487       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
    9488         echo "$as_me:$LINENO: checking how to link with libintl" >&5
    9489 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
    9490         echo "$as_me:$LINENO: result: $LIBINTL" >&5
    9491 echo "${ECHO_T}$LIBINTL" >&6
     45383      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
     45384        gt_source="external libintl"
     45385      else
     45386        gt_source="libc"
     45387      fi
     45388    else
     45389      gt_source="included intl directory"
     45390    fi
     45391    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
     45392printf "%s\n" "$gt_source" >&6; }
     45393  fi
     45394
     45395  if test "$USE_NLS" = "yes"; then
     45396
     45397    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
     45398      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
     45399        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
     45400printf %s "checking how to link with libintl... " >&6; }
     45401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
     45402printf "%s\n" "$LIBINTL" >&6; }
    949245403
    949345404  for element in $INCINTL; do
     
    951645427
    951745428
    9518 cat >>confdefs.h <<\_ACEOF
    9519 #define HAVE_GETTEXT 1
     45429printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
     45430
     45431
     45432printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
     45433
     45434    fi
     45435
     45436        POSUB=po
     45437  fi
     45438
     45439
     45440
     45441    INTLLIBS="$LIBINTL"
     45442
     45443
     45444
     45445
     45446
     45447
     45448
     45449
     45450
     45451
     45452
     45453
     45454
     45455
     45456
     45457
     45458
     45459
     45460 if test "$ac_cv_func_readlink" = yes; then
     45461  TEST_SYMLINKS_TRUE=
     45462  TEST_SYMLINKS_FALSE='#'
     45463else
     45464  TEST_SYMLINKS_TRUE='#'
     45465  TEST_SYMLINKS_FALSE=
     45466fi
     45467
     45468
     45469# Check whether --enable-i18n was given.
     45470if test ${enable_i18n+y}
     45471then :
     45472  enableval=$enable_i18n;
     45473else case e in #(
     45474  e) enable_i18n=yes ;;
     45475esac
     45476fi
     45477
     45478if test "x$enable_i18n" = xno; then
     45479  ac_cv_func_wcscoll=no
     45480fi
     45481
     45482
     45483# Determine whether we should run UTF-8 tests by checking if cyrillic
     45484# letters are case-folded properly.  The test for UTF-8 locales (both
     45485# in general and specifically for a Russian one) is a bit weak, but it
     45486# should match exactly what is done in the testsuite.  In fact, sed's
     45487# logic is portable (though testing it requires care) so it is enough to
     45488# have a couple of platforms where these tests pass.  Right now, only
     45489# Windows and HP/UX do not support the tests.
     45490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTF-8 case folding tests should pass" >&5
     45491printf %s "checking whether UTF-8 case folding tests should pass... " >&6; }
     45492if test "$cross_compiling" = yes
     45493then :
     45494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't care (cross compiling)" >&5
     45495printf "%s\n" "don't care (cross compiling)" >&6; }; XFAIL_TESTS=
     45496else case e in #(
     45497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45498/* end confdefs.h.  */
     45499
     45500#include <locale.h>
     45501#include <string.h>
     45502#include <stdlib.h>
     45503#include <wchar.h>
     45504#ifdef HAVE_WCTYPE_H
     45505#include <wctype.h>
     45506#endif
     45507
     45508int test(void)
     45509{
     45510  char in[] = "\xD0\xB4";
     45511  char good[] = "\xD0\x94";
     45512  char out[10];
     45513  wchar_t in_wc, good_wc;
     45514  if (mbtowc (&in_wc, in, 3) == -1)
     45515    return 0;
     45516  if (mbtowc (&good_wc, good, 3) == -1)
     45517    return 0;
     45518  if (towupper (in_wc) != good_wc)
     45519    return 0;
     45520  if (wctomb (out, good_wc) != 2)
     45521    return 0;
     45522  if (memcmp (out, good, 2))
     45523    return 0;
     45524  return 1;
     45525}
     45526
     45527int main()
     45528{
     45529  char *old;
     45530  int len;
     45531
     45532  /* Try hardcoding a Russian UTF-8 locale.  If the name "ru_RU.UTF-8"
     45533     is invalid, use setlocale again just to get the current locale.  */
     45534  old = setlocale (LC_CTYPE, "ru_RU.UTF-8");
     45535  if (old)
     45536    {
     45537      if (test())
     45538        exit (0);
     45539    }
     45540  else
     45541    old = setlocale (LC_CTYPE, "C");
     45542
     45543  /* Maybe cyrillic case folding is implemented for all UTF-8 locales.
     45544     If the current locale is not UTF-8, the test will be skipped.  */
     45545  len = strlen (old);
     45546  if ((len > 6 && !strcmp (old + len - 6, ".UTF-8"))
     45547      || (len > 6 && !strcmp (old + len - 6, ".utf-8"))
     45548      || (len > 5 && !strcmp (old + len - 5, ".UTF8"))
     45549      || (len > 5 && !strcmp (old + len - 5, ".utf8")))
     45550
     45551    /* ok */
     45552    ;
     45553  else
     45554    exit (1);
     45555
     45556  /* Run the test in the detected UTF-8 locale.  */
     45557  setlocale (LC_CTYPE, old);
     45558  exit (!test ());
     45559}
     45560
    952045561_ACEOF
    9521 
    9522 
    9523 cat >>confdefs.h <<\_ACEOF
    9524 #define HAVE_DCGETTEXT 1
     45562if ac_fn_c_try_run "$LINENO"
     45563then :
     45564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     45565printf "%s\n" "yes" >&6; }; XFAIL_TESTS=
     45566else case e in #(
     45567  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     45568printf "%s\n" "no" >&6; }; XFAIL_TESTS='testsuite/utf8-1 testsuite/utf8-2 \
     45569                                      testsuite/utf8-3 testsuite/utf8-4' ;;
     45570esac
     45571fi
     45572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     45573  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     45574esac
     45575fi
     45576
     45577
     45578# Under MinGW, the bsd.sh test fails because of the EOF character (^Z).
     45579case $host in
     45580  *mingw*) XFAIL_TESTS="$XFAIL_TESTS bsd" ;;
     45581  *) ;;
     45582esac
     45583
     45584
     45585# Check whether --enable-gcc-warnings was given.
     45586if test ${enable_gcc_warnings+y}
     45587then :
     45588  enableval=$enable_gcc_warnings; case $enableval in
     45589     yes|no) ;;
     45590     *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
     45591   esac
     45592   gl_gcc_warnings=$enableval
     45593else case e in #(
     45594  e)
     45595   # GCC provides fine-grained control over diagnostics which
     45596   # is used in gnulib for example to suppress warnings from
     45597   # certain sections of code.  So if this is available and
     45598   # we're running from a git repo, then auto enable the warnings.
     45599   gl_gcc_warnings=no
     45600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45601/* end confdefs.h.  */
     45602
     45603#if (4) < __GNUC__ || ((4) == __GNUC__ && (6) <= __GNUC_MINOR__)
     45604/* ok */
     45605#else
     45606# error "your version of gcc is older than 4.6"
     45607#endif
     45608
     45609int
     45610main (void)
     45611{
     45612
     45613  ;
     45614  return 0;
     45615},
     45616
    952545617_ACEOF
    9526 
     45618if ac_fn_c_try_cpp "$LINENO"
     45619then :
     45620  test -d "$srcdir"/.git \
     45621                          && ! test -f "$srcdir"/.tarball-version \
     45622                          && gl_gcc_warnings=yes
     45623fi
     45624rm -f conftest.err conftest.i conftest.$ac_ext
     45625
     45626
     45627 ;;
     45628esac
     45629fi
     45630
     45631
     45632if test "$gl_gcc_warnings" = yes; then
     45633
     45634  ac_ext=c
     45635ac_cpp='$CPP $CPPFLAGS'
     45636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     45637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     45638ac_compiler_gnu=$ac_cv_c_compiler_gnu
     45639
     45640
     45641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
     45642printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
     45643if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
     45644then :
     45645  printf %s "(cached) " >&6
     45646else case e in #(
     45647  e)
     45648  gl_save_compiler_FLAGS="$CFLAGS"
     45649  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
     45650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45651/* end confdefs.h.  */
     45652
     45653int
     45654main (void)
     45655{
     45656
     45657  ;
     45658  return 0;
     45659}
     45660_ACEOF
     45661if ac_fn_c_try_link "$LINENO"
     45662then :
     45663  gl_cv_warn_c__Werror__Wunknown_warning_option=yes
     45664else case e in #(
     45665  e) gl_cv_warn_c__Werror__Wunknown_warning_option=no ;;
     45666esac
     45667fi
     45668rm -f core conftest.err conftest.$ac_objext conftest.beam \
     45669    conftest$ac_exeext conftest.$ac_ext
     45670  CFLAGS="$gl_save_compiler_FLAGS"
     45671 ;;
     45672esac
     45673fi
     45674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
     45675printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
     45676if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
     45677then :
     45678  gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
     45679else case e in #(
     45680  e) gl_unknown_warnings_are_errors= ;;
     45681esac
     45682fi
     45683
     45684  ac_ext=c
     45685ac_cpp='$CPP $CPPFLAGS'
     45686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     45687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     45688ac_compiler_gnu=$ac_cv_c_compiler_gnu
     45689
     45690
     45691
     45692
     45693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
     45694printf %s "checking whether C compiler handles -Werror... " >&6; }
     45695if test ${gl_cv_warn_c__Werror+y}
     45696then :
     45697  printf %s "(cached) " >&6
     45698else case e in #(
     45699  e)
     45700  gl_save_compiler_FLAGS="$CFLAGS"
     45701  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
     45702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45703/* end confdefs.h.  */
     45704
     45705int
     45706main (void)
     45707{
     45708
     45709  ;
     45710  return 0;
     45711}
     45712_ACEOF
     45713if ac_fn_c_try_link "$LINENO"
     45714then :
     45715  gl_cv_warn_c__Werror=yes
     45716else case e in #(
     45717  e) gl_cv_warn_c__Werror=no ;;
     45718esac
     45719fi
     45720rm -f core conftest.err conftest.$ac_objext conftest.beam \
     45721    conftest$ac_exeext conftest.$ac_ext
     45722  CFLAGS="$gl_save_compiler_FLAGS"
     45723 ;;
     45724esac
     45725fi
     45726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
     45727printf "%s\n" "$gl_cv_warn_c__Werror" >&6; }
     45728if test "x$gl_cv_warn_c__Werror" = xyes
     45729then :
     45730  as_fn_append WERROR_CFLAGS " -Werror"
     45731fi
     45732
     45733
     45734
     45735
     45736  nw=
     45737  # This, $nw, is the list of warnings we disable.
     45738  nw="$nw -Wdeclaration-after-statement" # too useful to forbid
     45739  nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
     45740  nw="$nw -Wsign-conversion"        # Too many warnings for now
     45741  nw="$nw -Wformat-nonliteral"      # who.c and pinky.c strftime uses
     45742  nw="$nw -Wswitch-default"         # Too many warnings for now
     45743
     45744
     45745  ac_ext=c
     45746ac_cpp='$CPP $CPPFLAGS'
     45747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     45748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     45749ac_compiler_gnu=$ac_cv_c_compiler_gnu
     45750
     45751
     45752
     45753  if test -n "$GCC"; then
     45754
     45755            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
     45756printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
     45757if test ${gl_cv_cc_nomfi_supported+y}
     45758then :
     45759  printf %s "(cached) " >&6
     45760else case e in #(
     45761  e) gl_save_CFLAGS="$CFLAGS"
     45762       CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
     45763       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45764/* end confdefs.h.  */
     45765
     45766int
     45767main (void)
     45768{
     45769
     45770  ;
     45771  return 0;
     45772}
     45773_ACEOF
     45774if ac_fn_c_try_compile "$LINENO"
     45775then :
     45776  gl_cv_cc_nomfi_supported=yes
     45777else case e in #(
     45778  e) gl_cv_cc_nomfi_supported=no ;;
     45779esac
     45780fi
     45781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     45782       CFLAGS="$gl_save_CFLAGS"
     45783       ;;
     45784esac
     45785fi
     45786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
     45787printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
     45788
     45789    if test "$gl_cv_cc_nomfi_supported" = yes; then
     45790                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
     45791printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
     45792if test ${gl_cv_cc_nomfi_needed+y}
     45793then :
     45794  printf %s "(cached) " >&6
     45795else case e in #(
     45796  e) gl_save_CFLAGS="$CFLAGS"
     45797         CFLAGS="$CFLAGS -Wextra -Werror"
     45798         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45799/* end confdefs.h.  */
     45800int f (void)
     45801                {
     45802                  typedef struct { int a; int b; } s_t;
     45803                  s_t s1 = { 0, };
     45804                  return s1.b;
     45805                }
     45806
     45807int
     45808main (void)
     45809{
     45810
     45811  ;
     45812  return 0;
     45813}
     45814_ACEOF
     45815if ac_fn_c_try_compile "$LINENO"
     45816then :
     45817  gl_cv_cc_nomfi_needed=no
     45818else case e in #(
     45819  e) gl_cv_cc_nomfi_needed=yes ;;
     45820esac
     45821fi
     45822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     45823         CFLAGS="$gl_save_CFLAGS"
     45824         ;;
     45825esac
     45826fi
     45827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
     45828printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
    952745829    fi
    952845830
    9529         POSUB=po
    9530   fi
    9531 
    9532 
    9533             if test "$PACKAGE" = gettext; then
    9534       BUILD_INCLUDED_LIBINTL=yes
    9535     fi
    9536 
    9537 
    9538 
    9539 
    9540 
    9541 
    9542         nls_cv_header_intl=
    9543     nls_cv_header_libgt=
    9544 
    9545         DATADIRNAME=share
    9546 
    9547 
    9548         INSTOBJEXT=.mo
    9549 
    9550 
    9551         GENCAT=gencat
    9552 
    9553 
    9554         INTL_LIBTOOL_SUFFIX_PREFIX=
    9555 
    9556 
    9557 
    9558     INTLLIBS="$LIBINTL"
    9559 
    9560 
    9561 
    9562 
    9563 
    9564 
    9565           ac_config_commands="$ac_config_commands gettext-fix"
    9566 
    9567 
    9568           ac_config_files="$ac_config_files bootstrap.sh"
    9569 
    9570                                                                       ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in intl/Makefile"
     45831                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
     45832printf %s "checking whether -Wuninitialized is supported... " >&6; }
     45833if test ${gl_cv_cc_uninitialized_supported+y}
     45834then :
     45835  printf %s "(cached) " >&6
     45836else case e in #(
     45837  e) gl_save_CFLAGS="$CFLAGS"
     45838       CFLAGS="$CFLAGS -Werror -Wuninitialized"
     45839       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     45840/* end confdefs.h.  */
     45841
     45842int
     45843main (void)
     45844{
     45845
     45846  ;
     45847  return 0;
     45848}
     45849_ACEOF
     45850if ac_fn_c_try_compile "$LINENO"
     45851then :
     45852  gl_cv_cc_uninitialized_supported=yes
     45853else case e in #(
     45854  e) gl_cv_cc_uninitialized_supported=no ;;
     45855esac
     45856fi
     45857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     45858       CFLAGS="$gl_save_CFLAGS"
     45859       ;;
     45860esac
     45861fi
     45862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
     45863printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     45864
     45865  fi
     45866
     45867  # List all gcc warning categories.
     45868  # To compare this list to your installed GCC's, run this Bash command:
     45869  #
     45870  # comm -3 \
     45871  #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
     45872  #     awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \
     45873  #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
     45874
     45875  ws=
     45876  for gl_manywarn_item in -fanalyzer -fno-common \
     45877    -Wall \
     45878    -Warith-conversion \
     45879    -Wbad-function-cast \
     45880    -Wcast-align=strict \
     45881    -Wdate-time \
     45882    -Wdisabled-optimization \
     45883    -Wdouble-promotion \
     45884    -Wduplicated-branches \
     45885    -Wduplicated-cond \
     45886    -Wextra \
     45887    -Wformat-signedness \
     45888    -Winit-self \
     45889    -Winline \
     45890    -Winvalid-pch \
     45891    -Wlogical-op \
     45892    -Wmissing-declarations \
     45893    -Wmissing-include-dirs \
     45894    -Wmissing-prototypes \
     45895    -Wnested-externs \
     45896    -Wnull-dereference \
     45897    -Wold-style-definition \
     45898    -Wopenmp-simd \
     45899    -Woverlength-strings \
     45900    -Wpacked \
     45901    -Wpointer-arith \
     45902    -Wshadow \
     45903    -Wstack-protector \
     45904    -Wstrict-overflow \
     45905    -Wstrict-prototypes \
     45906    -Wsuggest-attribute=cold \
     45907    -Wsuggest-attribute=const \
     45908    -Wsuggest-attribute=format \
     45909    -Wsuggest-attribute=malloc \
     45910    -Wsuggest-attribute=noreturn \
     45911    -Wsuggest-attribute=pure \
     45912    -Wsuggest-final-methods \
     45913    -Wsuggest-final-types \
     45914    -Wsync-nand \
     45915    -Wsystem-headers \
     45916    -Wtrampolines \
     45917    -Wuninitialized \
     45918    -Wunknown-pragmas \
     45919    -Wunsafe-loop-optimizations \
     45920    -Wunused-macros \
     45921    -Wvariadic-macros \
     45922    -Wvector-operation-performance \
     45923    -Wvla \
     45924    -Wwrite-strings \
     45925    \
     45926    ; do
     45927    as_fn_append ws " $gl_manywarn_item"
     45928  done
     45929
     45930  # gcc --help=warnings outputs an unusual form for these options; list
     45931  # them here so that the above 'comm' command doesn't report a false match.
     45932  as_fn_append ws ' -Warray-bounds=2'
     45933  as_fn_append ws ' -Wattribute-alias=2'
     45934  as_fn_append ws ' -Wbidi-chars=any,ucn'
     45935  as_fn_append ws ' -Wformat-overflow=2'
     45936  as_fn_append ws ' -Wformat=2'
     45937  as_fn_append ws ' -Wformat-truncation=2'
     45938  as_fn_append ws ' -Wimplicit-fallthrough=5'
     45939  as_fn_append ws ' -Wshift-overflow=2'
     45940  as_fn_append ws ' -Wuse-after-free=3'
     45941  as_fn_append ws ' -Wunused-const-variable=2'
     45942  as_fn_append ws ' -Wvla-larger-than=4031'
     45943
     45944  # These are needed for older GCC versions.
     45945  if test -n "$GCC"; then
     45946    case `($CC --version) 2>/dev/null` in
     45947      'gcc (GCC) '[0-3].* | \
     45948      'gcc (GCC) '4.[0-7].*)
     45949        as_fn_append ws ' -fdiagnostics-show-option'
     45950        as_fn_append ws ' -funit-at-a-time'
     45951          ;;
     45952    esac
     45953  fi
     45954
     45955  # Disable specific options as needed.
     45956  if test "$gl_cv_cc_nomfi_needed" = yes; then
     45957    as_fn_append ws ' -Wno-missing-field-initializers'
     45958  fi
     45959
     45960  if test "$gl_cv_cc_uninitialized_supported" = no; then
     45961    as_fn_append ws ' -Wno-uninitialized'
     45962  fi
     45963
     45964  # This warning have too many false alarms in GCC 11.2.1.
     45965  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
     45966  as_fn_append ws ' -Wno-analyzer-malloc-leak'
     45967
     45968  ac_ext=c
     45969ac_cpp='$CPP $CPPFLAGS'
     45970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     45971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     45972ac_compiler_gnu=$ac_cv_c_compiler_gnu
     45973
     45974
     45975
     45976  gl_warn_set=
     45977  set x $ws; shift
     45978  for gl_warn_item
     45979  do
     45980    case " $nw " in
     45981      *" $gl_warn_item "*)
     45982        ;;
     45983      *)
     45984        as_fn_append gl_warn_set " $gl_warn_item"
     45985        ;;
     45986    esac
     45987  done
     45988  ws=$gl_warn_set
     45989
     45990  for w in $ws; do
     45991
     45992
     45993as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | sed "$as_sed_sh"`
     45994gl_positive="$w"
     45995case $gl_positive in
     45996  -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
     45997esac
     45998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
     45999printf %s "checking whether C compiler handles $w... " >&6; }
     46000if eval test \${$as_gl_Warn+y}
     46001then :
     46002  printf %s "(cached) " >&6
     46003else case e in #(
     46004  e)
     46005  gl_save_compiler_FLAGS="$CFLAGS"
     46006  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
     46007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46008/* end confdefs.h.  */
     46009
     46010int
     46011main (void)
     46012{
     46013
     46014  ;
     46015  return 0;
     46016}
     46017_ACEOF
     46018if ac_fn_c_try_link "$LINENO"
     46019then :
     46020  eval "$as_gl_Warn=yes"
     46021else case e in #(
     46022  e) eval "$as_gl_Warn=no" ;;
     46023esac
     46024fi
     46025rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46026    conftest$ac_exeext conftest.$ac_ext
     46027  CFLAGS="$gl_save_compiler_FLAGS"
     46028 ;;
     46029esac
     46030fi
     46031eval ac_res=\$$as_gl_Warn
     46032               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     46033printf "%s\n" "$ac_res" >&6; }
     46034if eval test \"x\$"$as_gl_Warn"\" = x"yes"
     46035then :
     46036  as_fn_append WARN_CFLAGS " $w"
     46037fi
     46038
     46039
     46040  done
     46041
     46042
     46043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
     46044printf %s "checking whether C compiler handles -Wno-sign-compare... " >&6; }
     46045if test ${gl_cv_warn_c__Wno_sign_compare+y}
     46046then :
     46047  printf %s "(cached) " >&6
     46048else case e in #(
     46049  e)
     46050  gl_save_compiler_FLAGS="$CFLAGS"
     46051  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
     46052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46053/* end confdefs.h.  */
     46054
     46055int
     46056main (void)
     46057{
     46058
     46059  ;
     46060  return 0;
     46061}
     46062_ACEOF
     46063if ac_fn_c_try_link "$LINENO"
     46064then :
     46065  gl_cv_warn_c__Wno_sign_compare=yes
     46066else case e in #(
     46067  e) gl_cv_warn_c__Wno_sign_compare=no ;;
     46068esac
     46069fi
     46070rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46071    conftest$ac_exeext conftest.$ac_ext
     46072  CFLAGS="$gl_save_compiler_FLAGS"
     46073 ;;
     46074esac
     46075fi
     46076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
     46077printf "%s\n" "$gl_cv_warn_c__Wno_sign_compare" >&6; }
     46078if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes
     46079then :
     46080  as_fn_append WARN_CFLAGS " -Wno-sign-compare"
     46081fi
     46082
     46083     # Too many warnings for now
     46084
     46085  # clang is unduly picky about some things.
     46086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
     46087printf %s "checking whether the compiler is clang... " >&6; }
     46088if test ${utils_cv_clang+y}
     46089then :
     46090  printf %s "(cached) " >&6
     46091else case e in #(
     46092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46093/* end confdefs.h.  */
     46094
     46095            #ifndef __clang__
     46096              #error "not clang"
     46097            #endif
     46098
     46099int
     46100main (void)
     46101{
     46102
     46103  ;
     46104  return 0;
     46105}
     46106_ACEOF
     46107if ac_fn_c_try_compile "$LINENO"
     46108then :
     46109  utils_cv_clang=yes
     46110else case e in #(
     46111  e) utils_cv_clang=no ;;
     46112esac
     46113fi
     46114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
     46115esac
     46116fi
     46117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $utils_cv_clang" >&5
     46118printf "%s\n" "$utils_cv_clang" >&6; }
     46119  if test $utils_cv_clang = yes; then
     46120
     46121
     46122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
     46123printf %s "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
     46124if test ${gl_cv_warn_c__Wno_format_extra_args+y}
     46125then :
     46126  printf %s "(cached) " >&6
     46127else case e in #(
     46128  e)
     46129  gl_save_compiler_FLAGS="$CFLAGS"
     46130  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
     46131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46132/* end confdefs.h.  */
     46133
     46134int
     46135main (void)
     46136{
     46137
     46138  ;
     46139  return 0;
     46140}
     46141_ACEOF
     46142if ac_fn_c_try_link "$LINENO"
     46143then :
     46144  gl_cv_warn_c__Wno_format_extra_args=yes
     46145else case e in #(
     46146  e) gl_cv_warn_c__Wno_format_extra_args=no ;;
     46147esac
     46148fi
     46149rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46150    conftest$ac_exeext conftest.$ac_ext
     46151  CFLAGS="$gl_save_compiler_FLAGS"
     46152 ;;
     46153esac
     46154fi
     46155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
     46156printf "%s\n" "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
     46157if test "x$gl_cv_warn_c__Wno_format_extra_args" = xyes
     46158then :
     46159  as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
     46160fi
     46161
     46162
     46163
     46164
     46165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
     46166printf %s "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
     46167if test ${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+y}
     46168then :
     46169  printf %s "(cached) " >&6
     46170else case e in #(
     46171  e)
     46172  gl_save_compiler_FLAGS="$CFLAGS"
     46173  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
     46174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46175/* end confdefs.h.  */
     46176
     46177int
     46178main (void)
     46179{
     46180
     46181  ;
     46182  return 0;
     46183}
     46184_ACEOF
     46185if ac_fn_c_try_link "$LINENO"
     46186then :
     46187  gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
     46188else case e in #(
     46189  e) gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no ;;
     46190esac
     46191fi
     46192rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46193    conftest$ac_exeext conftest.$ac_ext
     46194  CFLAGS="$gl_save_compiler_FLAGS"
     46195 ;;
     46196esac
     46197fi
     46198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
     46199printf "%s\n" "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
     46200if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = xyes
     46201then :
     46202  as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
     46203fi
     46204
     46205
     46206  fi
     46207
     46208
     46209
     46210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
     46211printf %s "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
     46212if test ${gl_cv_warn_c__fdiagnostics_show_option+y}
     46213then :
     46214  printf %s "(cached) " >&6
     46215else case e in #(
     46216  e)
     46217  gl_save_compiler_FLAGS="$CFLAGS"
     46218  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
     46219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46220/* end confdefs.h.  */
     46221
     46222int
     46223main (void)
     46224{
     46225
     46226  ;
     46227  return 0;
     46228}
     46229_ACEOF
     46230if ac_fn_c_try_link "$LINENO"
     46231then :
     46232  gl_cv_warn_c__fdiagnostics_show_option=yes
     46233else case e in #(
     46234  e) gl_cv_warn_c__fdiagnostics_show_option=no ;;
     46235esac
     46236fi
     46237rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46238    conftest$ac_exeext conftest.$ac_ext
     46239  CFLAGS="$gl_save_compiler_FLAGS"
     46240 ;;
     46241esac
     46242fi
     46243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
     46244printf "%s\n" "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
     46245if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes
     46246then :
     46247  as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
     46248fi
     46249
     46250
     46251
     46252
     46253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
     46254printf %s "checking whether C compiler handles -funit-at-a-time... " >&6; }
     46255if test ${gl_cv_warn_c__funit_at_a_time+y}
     46256then :
     46257  printf %s "(cached) " >&6
     46258else case e in #(
     46259  e)
     46260  gl_save_compiler_FLAGS="$CFLAGS"
     46261  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
     46262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     46263/* end confdefs.h.  */
     46264
     46265int
     46266main (void)
     46267{
     46268
     46269  ;
     46270  return 0;
     46271}
     46272_ACEOF
     46273if ac_fn_c_try_link "$LINENO"
     46274then :
     46275  gl_cv_warn_c__funit_at_a_time=yes
     46276else case e in #(
     46277  e) gl_cv_warn_c__funit_at_a_time=no ;;
     46278esac
     46279fi
     46280rm -f core conftest.err conftest.$ac_objext conftest.beam \
     46281    conftest$ac_exeext conftest.$ac_ext
     46282  CFLAGS="$gl_save_compiler_FLAGS"
     46283 ;;
     46284esac
     46285fi
     46286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
     46287printf "%s\n" "$gl_cv_warn_c__funit_at_a_time" >&6; }
     46288if test "x$gl_cv_warn_c__funit_at_a_time" = xyes
     46289then :
     46290  as_fn_append WARN_CFLAGS " -funit-at-a-time"
     46291fi
     46292
     46293
     46294
     46295
     46296
     46297
     46298printf "%s\n" "#define lint 1" >>confdefs.h
     46299
     46300
     46301
     46302printf "%s\n" "#define GNULIB_PORTCHECK 1" >>confdefs.h
     46303
     46304
     46305  # For gnulib-tests, the set is slightly smaller still.
     46306  nw=
     46307
     46308  gl_warn_set=
     46309  set x $WARN_CFLAGS; shift
     46310  for gl_warn_item
     46311  do
     46312    case " $nw " in
     46313      *" $gl_warn_item "*)
     46314        ;;
     46315      *)
     46316        as_fn_append gl_warn_set " $gl_warn_item"
     46317        ;;
     46318    esac
     46319  done
     46320  GNULIB_TEST_WARN_CFLAGS=$gl_warn_set
     46321
     46322
     46323fi
     46324
     46325# Check whether --enable-bold-man-page-references was given.
     46326if test ${enable_bold_man_page_references+y}
     46327then :
     46328  enableval=$enable_bold_man_page_references; gl_bold_manpages=yes ;
     46329   case $enableval in
     46330     no|yes) gl_bold_manpages=$enableval ;;
     46331     *)      as_fn_error $? "bad value $enableval for bold-man-page-references.
     46332                           Options are: yes, no." "$LINENO" 5 ;;
     46333   esac
     46334else case e in #(
     46335  e) gl_bold_manpages=yes
     46336 ;;
     46337esac
     46338fi
     46339
     46340 if test "$gl_bold_manpages" != no; then
     46341  BOLD_MAN_REFS_TRUE=
     46342  BOLD_MAN_REFS_FALSE='#'
     46343else
     46344  BOLD_MAN_REFS_TRUE='#'
     46345  BOLD_MAN_REFS_FALSE=
     46346fi
     46347
     46348
     46349 if test "$cross_compiling" = yes; then
     46350  CROSS_COMPILING_TRUE=
     46351  CROSS_COMPILING_FALSE='#'
     46352else
     46353  CROSS_COMPILING_TRUE='#'
     46354  CROSS_COMPILING_FALSE=
     46355fi
     46356
     46357
     46358# Perl is needed for help2man
     46359# Extract the first word of "perl", so it can be a program name with args.
     46360set dummy perl; ac_word=$2
     46361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     46362printf %s "checking for $ac_word... " >&6; }
     46363if test ${ac_cv_path_PERL+y}
     46364then :
     46365  printf %s "(cached) " >&6
     46366else case e in #(
     46367  e) case $PERL in
     46368  [\\/]* | ?:[\\/]*)
     46369  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
     46370  ;;
     46371  *)
     46372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     46373for as_dir in $PATH
     46374do
     46375  IFS=$as_save_IFS
     46376  case $as_dir in #(((
     46377    '') as_dir=./ ;;
     46378    */) ;;
     46379    *) as_dir=$as_dir/ ;;
     46380  esac
     46381    for ac_exec_ext in '' $ac_executable_extensions; do
     46382  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
     46383    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
     46384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
     46385    break 2
     46386  fi
     46387done
     46388  done
     46389IFS=$as_save_IFS
     46390
     46391  ;;
     46392esac ;;
     46393esac
     46394fi
     46395PERL=$ac_cv_path_PERL
     46396if test -n "$PERL"; then
     46397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
     46398printf "%s\n" "$PERL" >&6; }
     46399else
     46400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
     46401printf "%s\n" "no" >&6; }
     46402fi
     46403
     46404
     46405
     46406# This is needed when building outside the source dir
     46407# with --disable-dependency-tracking, see https://bugs.gnu.org/25371
     46408as_dir=lib; as_fn_mkdir_p
     46409as_dir=sed; as_fn_mkdir_p
     46410as_dir=doc; as_fn_mkdir_p
     46411as_dir=testsuite; as_fn_mkdir_p
     46412
     46413ac_config_files="$ac_config_files Makefile po/Makefile.in gnulib-tests/Makefile"
    957146414
    957246415cat >confcache <<\_ACEOF
     
    958046423# the --recheck option to rerun configure.
    958146424#
    9582 # `ac_cv_env_foo' variables (set or unset) will be overridden when
    9583 # loading this file, other *unset* `ac_cv_foo' will be assigned the
     46425# 'ac_cv_env_foo' variables (set or unset) will be overridden when
     46426# loading this file, other *unset* 'ac_cv_foo' will be assigned the
    958446427# following values.
    958546428
     
    958846431# The following way of writing the cache mishandles newlines in values,
    958946432# but we know of no workaround that is simple, portable, and efficient.
    9590 # So, don't put newlines in cache variables' values.
     46433# So, we kill variables containing newlines.
    959146434# Ultrix sh set writes to stderr and can't be redirected directly,
    959246435# and sets the high bit in the cache file unless we assign to the vars.
    9593 {
     46436(
     46437  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     46438    eval ac_val=\$$ac_var
     46439    case $ac_val in #(
     46440    *${as_nl}*)
     46441      case $ac_var in #(
     46442      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     46443printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     46444      esac
     46445      case $ac_var in #(
     46446      _ | IFS | as_nl) ;; #(
     46447      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     46448      *) { eval $ac_var=; unset $ac_var;} ;;
     46449      esac ;;
     46450    esac
     46451  done
     46452
    959446453  (set) 2>&1 |
    9595     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    9596     *ac_space=\ *)
    9597       # `set' does not quote correctly, so add quotes (double-quote
    9598       # substitution turns \\\\ into \\, and sed turns \\ into \).
     46454    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     46455    *${as_nl}ac_space=\ *)
     46456      # 'set' does not quote correctly, so add quotes: double-quote
     46457      # substitution turns \\\\ into \\, and sed turns \\ into \.
    959946458      sed -n \
    960046459        "s/'/'\\\\''/g;
    960146460          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     46461      ;; #(
     46462    *)
     46463      # 'set' quotes correctly as required by POSIX, so do not add quotes.
     46464      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    960246465      ;;
    9603     *)
    9604       # `set' quotes correctly as required by POSIX, so do not add quotes.
    9605       sed -n \
    9606         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    9607       ;;
    9608     esac;
    9609 } |
     46466    esac |
     46467    sort
     46468) |
    961046469  sed '
     46470     /^ac_cv_env_/b end
    961146471     t clear
    9612      : clear
    9613      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     46472     :clear
     46473     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
    961446474     t end
    9615      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    9616      : end' >>confcache
    9617 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    9618   if test -w $cache_file; then
    9619     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    9620     cat confcache >$cache_file
     46475     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     46476     :end' >>confcache
     46477if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     46478  if test -w "$cache_file"; then
     46479    if test "x$cache_file" != "x/dev/null"; then
     46480      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     46481printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
     46482      if test ! -f "$cache_file" || test -h "$cache_file"; then
     46483        cat confcache >"$cache_file"
     46484      else
     46485        case $cache_file in #(
     46486        */* | ?:*)
     46487          mv -f confcache "$cache_file"$$ &&
     46488          mv -f "$cache_file"$$ "$cache_file" ;; #(
     46489        *)
     46490          mv -f confcache "$cache_file" ;;
     46491        esac
     46492      fi
     46493    fi
    962146494  else
    9622     echo "not updating unwritable cache $cache_file"
     46495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     46496printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
    962346497  fi
    962446498fi
     
    962946503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    963046504
    9631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    9632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    9633 # trailing colons and then remove the whole line if VPATH becomes empty
    9634 # (actually we leave an empty line to preserve line numbers).
    9635 if test "x$srcdir" = x.; then
    9636   ac_vpsub='/^[  ]*VPATH[        ]*=/{
    9637 s/:*\$(srcdir):*/:/;
    9638 s/:*\${srcdir}:*/:/;
    9639 s/:*@srcdir@:*/:/;
    9640 s/^\([^=]*=[     ]*\):*/\1/;
    9641 s/:*$//;
    9642 s/^[^=]*=[       ]*$//;
    9643 }'
    9644 fi
    9645 
    964646505DEFS=-DHAVE_CONFIG_H
    964746506
    964846507ac_libobjs=
    964946508ac_ltlibobjs=
     46509U=
    965046510for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    965146511  # 1. Remove the extension, and $U if already installed.
    9652   ac_i=`echo "$ac_i" |
    9653          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    9654   # 2. Add them.
    9655   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    9656   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     46512  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     46513  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
     46514  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     46515  #    will be set to the directory where LIBOBJS objects are built.
     46516  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     46517  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    965746518done
    965846519LIBOBJS=$ac_libobjs
     
    966146522
    966246523
     46524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
     46525printf %s "checking that generated files are newer than configure... " >&6; }
     46526   if test -n "$am_sleep_pid"; then
     46527     # Hide warnings about reused PIDs.
     46528     wait $am_sleep_pid 2>/dev/null
     46529   fi
     46530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
     46531printf "%s\n" "done" >&6; }
     46532case $enable_silent_rules in # (((
     46533  yes) AM_DEFAULT_VERBOSITY=0;;
     46534   no) AM_DEFAULT_VERBOSITY=1;;
     46535esac
     46536if test $am_cv_make_support_nested_variables = yes; then
     46537    AM_V='$(V)'
     46538  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
     46539else
     46540  AM_V=$AM_DEFAULT_VERBOSITY
     46541  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
     46542fi
     46543
     46544 if test -n "$EXEEXT"; then
     46545  am__EXEEXT_TRUE=
     46546  am__EXEEXT_FALSE='#'
     46547else
     46548  am__EXEEXT_TRUE='#'
     46549  am__EXEEXT_FALSE=
     46550fi
     46551
    966346552if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    9664   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
    9665 Usually this means the macro was only invoked conditionally." >&5
    9666 echo "$as_me: error: conditional \"AMDEP\" was never defined.
    9667 Usually this means the macro was only invoked conditionally." >&2;}
    9668    { (exit 1); exit 1; }; }
     46553  as_fn_error $? "conditional \"AMDEP\" was never defined.
     46554Usually this means the macro was only invoked conditionally." "$LINENO" 5
    966946555fi
    967046556if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
    9671   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
    9672 Usually this means the macro was only invoked conditionally." >&5
    9673 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
    9674 Usually this means the macro was only invoked conditionally." >&2;}
    9675    { (exit 1); exit 1; }; }
    9676 fi
    9677 if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then
    9678   { { echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined.
    9679 Usually this means the macro was only invoked conditionally." >&5
    9680 echo "$as_me: error: conditional \"TEST_REGEX\" was never defined.
    9681 Usually this means the macro was only invoked conditionally." >&2;}
    9682    { (exit 1); exit 1; }; }
    9683 fi
    9684 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
    9685   { { echo "$as_me:$LINENO: error: conditional \"BUILD_HTML\" was never defined.
    9686 Usually this means the macro was only invoked conditionally." >&5
    9687 echo "$as_me: error: conditional \"BUILD_HTML\" was never defined.
    9688 Usually this means the macro was only invoked conditionally." >&2;}
    9689    { (exit 1); exit 1; }; }
    9690 fi
    9691 if test -z "${MAKEINFO_HTML_TRUE}" && test -z "${MAKEINFO_HTML_FALSE}"; then
    9692   { { echo "$as_me:$LINENO: error: conditional \"MAKEINFO_HTML\" was never defined.
    9693 Usually this means the macro was only invoked conditionally." >&5
    9694 echo "$as_me: error: conditional \"MAKEINFO_HTML\" was never defined.
    9695 Usually this means the macro was only invoked conditionally." >&2;}
    9696    { (exit 1); exit 1; }; }
    9697 fi
    9698 if test -z "${TEXI2HTML_HTML_TRUE}" && test -z "${TEXI2HTML_HTML_FALSE}"; then
    9699   { { echo "$as_me:$LINENO: error: conditional \"TEXI2HTML_HTML\" was never defined.
    9700 Usually this means the macro was only invoked conditionally." >&5
    9701 echo "$as_me: error: conditional \"TEXI2HTML_HTML\" was never defined.
    9702 Usually this means the macro was only invoked conditionally." >&2;}
    9703    { (exit 1); exit 1; }; }
    9704 fi
    9705 
    9706 : ${CONFIG_STATUS=./config.status}
     46557  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
     46558Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46559fi
     46560if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
     46561  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
     46562Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46563fi
     46564CONFIG_INCLUDE=config.h
     46565
     46566
     46567    gl_libobjs=
     46568    gl_ltlibobjs=
     46569    gl_libobjdeps=
     46570    if test -n "$gl_LIBOBJS"; then
     46571      # Remove the extension.
     46572      sed_drop_objext='s/\.o$//;s/\.obj$//'
     46573      sed_dirname1='s,//*,/,g'
     46574      sed_dirname2='s,\(.\)/$,\1,'
     46575      sed_dirname3='s,^[^/]*$,.,'
     46576      sed_dirname4='s,\(.\)/[^/]*$,\1,'
     46577      sed_basename1='s,.*/,,'
     46578      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
     46579        gl_libobjs="$gl_libobjs lib/$i.$ac_objext"
     46580        gl_ltlibobjs="$gl_ltlibobjs lib/$i.lo"
     46581        i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
     46582        i_base=`echo "$i" | sed -e "$sed_basename1"`
     46583        gl_libobjdeps="$gl_libobjdeps lib/$i_dir/\$(DEPDIR)/$i_base.Po"
     46584      done
     46585    fi
     46586    gl_LIBOBJS=$gl_libobjs
     46587
     46588    gl_LTLIBOBJS=$gl_ltlibobjs
     46589
     46590    gl_LIBOBJDEPS=$gl_libobjdeps
     46591
     46592
     46593
     46594
     46595    gltests_libobjs=
     46596    gltests_ltlibobjs=
     46597    gltests_libobjdeps=
     46598    if test -n "$gltests_LIBOBJS"; then
     46599      # Remove the extension.
     46600      sed_drop_objext='s/\.o$//;s/\.obj$//'
     46601      sed_dirname1='s,//*,/,g'
     46602      sed_dirname2='s,\(.\)/$,\1,'
     46603      sed_dirname3='s,^[^/]*$,.,'
     46604      sed_dirname4='s,\(.\)/[^/]*$,\1,'
     46605      sed_basename1='s,.*/,,'
     46606      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
     46607        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
     46608        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
     46609        i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
     46610        i_base=`echo "$i" | sed -e "$sed_basename1"`
     46611        gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
     46612      done
     46613    fi
     46614    gltests_LIBOBJS=$gltests_libobjs
     46615
     46616    gltests_LTLIBOBJS=$gltests_ltlibobjs
     46617
     46618    gltests_LIBOBJDEPS=$gltests_libobjdeps
     46619
     46620
     46621if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
     46622  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
     46623Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46624fi
     46625if test -z "${TEST_SYMLINKS_TRUE}" && test -z "${TEST_SYMLINKS_FALSE}"; then
     46626  as_fn_error $? "conditional \"TEST_SYMLINKS\" was never defined.
     46627Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46628fi
     46629if test -z "${BOLD_MAN_REFS_TRUE}" && test -z "${BOLD_MAN_REFS_FALSE}"; then
     46630  as_fn_error $? "conditional \"BOLD_MAN_REFS\" was never defined.
     46631Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46632fi
     46633if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
     46634  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
     46635Usually this means the macro was only invoked conditionally." "$LINENO" 5
     46636fi
     46637
     46638: "${CONFIG_STATUS=./config.status}"
     46639ac_write_fail=0
    970746640ac_clean_files_save=$ac_clean_files
    970846641ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    9709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    9710 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    9711 cat >$CONFIG_STATUS <<_ACEOF
     46642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     46643printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
     46644as_write_fail=0
     46645cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    971246646#! $SHELL
    971346647# Generated by $as_me.
     
    971946653ac_cs_recheck=false
    972046654ac_cs_silent=false
     46655
    972146656SHELL=\${CONFIG_SHELL-$SHELL}
    9722 _ACEOF
    9723 
    9724 cat >>$CONFIG_STATUS <<\_ACEOF
    9725 ## --------------------- ##
    9726 ## M4sh Initialization.  ##
    9727 ## --------------------- ##
    9728 
    9729 # Be Bourne compatible
    9730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     46657export SHELL
     46658_ASEOF
     46659cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     46660## -------------------- ##
     46661## M4sh Initialization. ##
     46662## -------------------- ##
     46663
     46664# Be more Bourne compatible
     46665DUALCASE=1; export DUALCASE # for MKS sh
     46666if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     46667then :
    973146668  emulate sh
    973246669  NULLCMD=:
    9733   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     46670  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    973446671  # is contrary to our usage.  Disable this feature.
    973546672  alias -g '${1+"$@"}'='"$@"'
    9736 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    9737   set -o posix
    9738 fi
    9739 DUALCASE=1; export DUALCASE # for MKS sh
    9740 
    9741 # Support unset when possible.
    9742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    9743   as_unset=unset
    9744 else
    9745   as_unset=false
    9746 fi
    9747 
    9748 
    9749 # Work around bugs in pre-3.0 UWIN ksh.
    9750 $as_unset ENV MAIL MAILPATH
     46673  setopt NO_GLOB_SUBST
     46674else case e in #(
     46675  e) case `(set -o) 2>/dev/null` in #(
     46676  *posix*) :
     46677    set -o posix ;; #(
     46678  *) :
     46679     ;;
     46680esac ;;
     46681esac
     46682fi
     46683
     46684
     46685
     46686# Reset variables that may have inherited troublesome values from
     46687# the environment.
     46688
     46689# IFS needs to be set, to space, tab, and newline, in precisely that order.
     46690# (If _AS_PATH_WALK were called with IFS unset, it would have the
     46691# side effect of setting IFS to empty, thus disabling word splitting.)
     46692# Quoting is to prevent editors from complaining about space-tab.
     46693as_nl='
     46694'
     46695export as_nl
     46696IFS=" ""        $as_nl"
     46697
    975146698PS1='$ '
    975246699PS2='> '
    975346700PS4='+ '
    975446701
    9755 # NLS nuisances.
    9756 for as_var in \
    9757   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    9758   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    9759   LC_TELEPHONE LC_TIME
     46702# Ensure predictable behavior from utilities with locale-dependent output.
     46703LC_ALL=C
     46704export LC_ALL
     46705LANGUAGE=C
     46706export LANGUAGE
     46707
     46708# We cannot yet rely on "unset" to work, but we need these variables
     46709# to be unset--not just set to an empty or harmless value--now, to
     46710# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     46711# also avoids known problems related to "unset" and subshell syntax
     46712# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     46713for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     46714do eval test \${$as_var+y} \
     46715  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     46716done
     46717
     46718# Ensure that fds 0, 1, and 2 are open.
     46719if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     46720if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     46721if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     46722
     46723# The user is always right.
     46724if ${PATH_SEPARATOR+false} :; then
     46725  PATH_SEPARATOR=:
     46726  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     46727    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     46728      PATH_SEPARATOR=';'
     46729  }
     46730fi
     46731
     46732
     46733# Find who we are.  Look in the path if we contain no directory separator.
     46734as_myself=
     46735case $0 in #((
     46736  *[\\/]* ) as_myself=$0 ;;
     46737  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     46738for as_dir in $PATH
    976046739do
    9761   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    9762     eval $as_var=C; export $as_var
    9763   else
    9764     $as_unset $as_var
    9765   fi
    9766 done
    9767 
    9768 # Required to use basename.
    9769 if expr a : '\(a\)' >/dev/null 2>&1; then
     46740  IFS=$as_save_IFS
     46741  case $as_dir in #(((
     46742    '') as_dir=./ ;;
     46743    */) ;;
     46744    *) as_dir=$as_dir/ ;;
     46745  esac
     46746    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
     46747  done
     46748IFS=$as_save_IFS
     46749
     46750     ;;
     46751esac
     46752# We did not find ourselves, most probably we were run as 'sh COMMAND'
     46753# in which case we are not to be found in the path.
     46754if test "x$as_myself" = x; then
     46755  as_myself=$0
     46756fi
     46757if test ! -f "$as_myself"; then
     46758  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     46759  exit 1
     46760fi
     46761
     46762
     46763
     46764# as_fn_error STATUS ERROR [LINENO LOG_FD]
     46765# ----------------------------------------
     46766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     46767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     46768# script with STATUS, using 1 if that was 0.
     46769as_fn_error ()
     46770{
     46771  as_status=$1; test $as_status -eq 0 && as_status=1
     46772  if test "$4"; then
     46773    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     46774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     46775  fi
     46776  printf "%s\n" "$as_me: error: $2" >&2
     46777  as_fn_exit $as_status
     46778} # as_fn_error
     46779
     46780
     46781# as_fn_set_status STATUS
     46782# -----------------------
     46783# Set $? to STATUS, without forking.
     46784as_fn_set_status ()
     46785{
     46786  return $1
     46787} # as_fn_set_status
     46788
     46789# as_fn_exit STATUS
     46790# -----------------
     46791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     46792as_fn_exit ()
     46793{
     46794  set +e
     46795  as_fn_set_status $1
     46796  exit $1
     46797} # as_fn_exit
     46798
     46799# as_fn_unset VAR
     46800# ---------------
     46801# Portably unset VAR.
     46802as_fn_unset ()
     46803{
     46804  { eval $1=; unset $1;}
     46805}
     46806as_unset=as_fn_unset
     46807
     46808# as_fn_append VAR VALUE
     46809# ----------------------
     46810# Append the text in VALUE to the end of the definition contained in VAR. Take
     46811# advantage of any shell optimizations that allow amortized linear growth over
     46812# repeated appends, instead of the typical quadratic growth present in naive
     46813# implementations.
     46814if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
     46815then :
     46816  eval 'as_fn_append ()
     46817  {
     46818    eval $1+=\$2
     46819  }'
     46820else case e in #(
     46821  e) as_fn_append ()
     46822  {
     46823    eval $1=\$$1\$2
     46824  } ;;
     46825esac
     46826fi # as_fn_append
     46827
     46828# as_fn_arith ARG...
     46829# ------------------
     46830# Perform arithmetic evaluation on the ARGs, and store the result in the
     46831# global $as_val. Take advantage of shells that can avoid forks. The arguments
     46832# must be portable across $(()) and expr.
     46833if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
     46834then :
     46835  eval 'as_fn_arith ()
     46836  {
     46837    as_val=$(( $* ))
     46838  }'
     46839else case e in #(
     46840  e) as_fn_arith ()
     46841  {
     46842    as_val=`expr "$@" || test $? -eq 1`
     46843  } ;;
     46844esac
     46845fi # as_fn_arith
     46846
     46847
     46848if expr a : '\(a\)' >/dev/null 2>&1 &&
     46849   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    977046850  as_expr=expr
    977146851else
     
    977346853fi
    977446854
    9775 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     46855if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    977646856  as_basename=basename
    977746857else
     
    977946859fi
    978046860
    9781 
    9782 # Name of the executable.
    9783 as_me=`$as_basename "$0" ||
     46861if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     46862  as_dirname=dirname
     46863else
     46864  as_dirname=false
     46865fi
     46866
     46867as_me=`$as_basename -- "$0" ||
    978446868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    978546869         X"$0" : 'X\(//\)$' \| \
    9786          X"$0" : 'X\(/\)$' \| \
    9787          .     : '\(.\)' 2>/dev/null ||
    9788 echo X/"$0" |
    9789     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    9790           /^X\/\(\/\/\)$/{ s//\1/; q; }
    9791           /^X\/\(\/\).*/{ s//\1/; q; }
    9792           s/.*/./; q'`
    9793 
    9794 
    9795 # PATH needs CR, and LINENO needs CR and PATH.
     46870         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     46871printf "%s\n" X/"$0" |
     46872    sed '/^.*\/\([^/][^/]*\)\/*$/{
     46873            s//\1/
     46874            q
     46875          }
     46876          /^X\/\(\/\/\)$/{
     46877            s//\1/
     46878            q
     46879          }
     46880          /^X\/\(\/\).*/{
     46881            s//\1/
     46882            q
     46883          }
     46884          s/.*/./; q'`
     46885
    979646886# Avoid depending upon Character Ranges.
    979746887as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    980146891as_cr_alnum=$as_cr_Letters$as_cr_digits
    980246892
    9803 # The user is always right.
    9804 if test "${PATH_SEPARATOR+set}" != set; then
    9805   echo "#! /bin/sh" >conf$$.sh
    9806   echo  "exit 0"   >>conf$$.sh
    9807   chmod +x conf$$.sh
    9808   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    9809     PATH_SEPARATOR=';'
     46893
     46894# Determine whether it's possible to make 'echo' print without a newline.
     46895# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
     46896# for compatibility with existing Makefiles.
     46897ECHO_C= ECHO_N= ECHO_T=
     46898case `echo -n x` in #(((((
     46899-n*)
     46900  case `echo 'xy\c'` in
     46901  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     46902  xy)  ECHO_C='\c';;
     46903  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     46904       ECHO_T=' ';;
     46905  esac;;
     46906*)
     46907  ECHO_N='-n';;
     46908esac
     46909
     46910# For backward compatibility with old third-party macros, we provide
     46911# the shell variables $as_echo and $as_echo_n.  New code should use
     46912# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
     46913as_echo='printf %s\n'
     46914as_echo_n='printf %s'
     46915
     46916rm -f conf$$ conf$$.exe conf$$.file
     46917if test -d conf$$.dir; then
     46918  rm -f conf$$.dir/conf$$.file
     46919else
     46920  rm -f conf$$.dir
     46921  mkdir conf$$.dir 2>/dev/null
     46922fi
     46923if (echo >conf$$.file) 2>/dev/null; then
     46924  if ln -s conf$$.file conf$$ 2>/dev/null; then
     46925    as_ln_s='ln -s'
     46926    # ... but there are two gotchas:
     46927    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
     46928    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
     46929    # In both cases, we have to default to 'cp -pR'.
     46930    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     46931      as_ln_s='cp -pR'
     46932  elif ln conf$$.file conf$$ 2>/dev/null; then
     46933    as_ln_s=ln
    981046934  else
    9811     PATH_SEPARATOR=:
    9812   fi
    9813   rm -f conf$$.sh
    9814 fi
    9815 
    9816 
    9817   as_lineno_1=$LINENO
    9818   as_lineno_2=$LINENO
    9819   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    9820   test "x$as_lineno_1" != "x$as_lineno_2" &&
    9821   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    9822   # Find who we are.  Look in the path if we contain no path at all
    9823   # relative or not.
    9824   case $0 in
    9825     *[\\/]* ) as_myself=$0 ;;
    9826     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9827 for as_dir in $PATH
    9828 do
    9829   IFS=$as_save_IFS
    9830   test -z "$as_dir" && as_dir=.
    9831   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    9832 done
    9833 
    9834        ;;
     46935    as_ln_s='cp -pR'
     46936  fi
     46937else
     46938  as_ln_s='cp -pR'
     46939fi
     46940rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     46941rmdir conf$$.dir 2>/dev/null
     46942
     46943
     46944# as_fn_mkdir_p
     46945# -------------
     46946# Create "$as_dir" as a directory, including parents if necessary.
     46947as_fn_mkdir_p ()
     46948{
     46949
     46950  case $as_dir in #(
     46951  -*) as_dir=./$as_dir;;
    983546952  esac
    9836   # We did not find ourselves, most probably we were run as `sh COMMAND'
    9837   # in which case we are not to be found in the path.
    9838   if test "x$as_myself" = x; then
    9839     as_myself=$0
    9840   fi
    9841   if test ! -f "$as_myself"; then
    9842     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    9843 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    9844    { (exit 1); exit 1; }; }
    9845   fi
    9846   case $CONFIG_SHELL in
    9847   '')
    9848     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9849 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    9850 do
    9851   IFS=$as_save_IFS
    9852   test -z "$as_dir" && as_dir=.
    9853   for as_base in sh bash ksh sh5; do
    9854          case $as_dir in
    9855          /*)
    9856            if ("$as_dir/$as_base" -c '
    9857   as_lineno_1=$LINENO
    9858   as_lineno_2=$LINENO
    9859   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    9860   test "x$as_lineno_1" != "x$as_lineno_2" &&
    9861   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    9862              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    9863              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    9864              CONFIG_SHELL=$as_dir/$as_base
    9865              export CONFIG_SHELL
    9866              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    9867            fi;;
    9868          esac
    9869        done
    9870 done
    9871 ;;
    9872   esac
    9873 
    9874   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    9875   # uniformly replaced by the line number.  The first 'sed' inserts a
    9876   # line-number line before each line; the second 'sed' does the real
    9877   # work.  The second script uses 'N' to pair each line-number line
    9878   # with the numbered line, and appends trailing '-' during
    9879   # substitution so that $LINENO is not a special case at line end.
    9880   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    9881   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    9882   sed '=' <$as_myself |
    9883     sed '
    9884       N
    9885       s,$,-,
    9886       : loop
    9887       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    9888       t loop
    9889       s,-$,,
    9890       s,^['$as_cr_digits']*\n,,
    9891     ' >$as_me.lineno &&
    9892   chmod +x $as_me.lineno ||
    9893     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    9894 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    9895    { (exit 1); exit 1; }; }
    9896 
    9897   # Don't try to exec as it changes $[0], causing all sort of problems
    9898   # (the dirname of $[0] is not the place where we might find the
    9899   # original and so on.  Autoconf is especially sensible to this).
    9900   . ./$as_me.lineno
    9901   # Exit status is that of the last command.
    9902   exit
    9903 }
    9904 
    9905 
    9906 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    9907   *c*,-n*) ECHO_N= ECHO_C='
    9908 ' ECHO_T='      ' ;;
    9909   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    9910   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    9911 esac
    9912 
    9913 if expr a : '\(a\)' >/dev/null 2>&1; then
    9914   as_expr=expr
    9915 else
    9916   as_expr=false
    9917 fi
    9918 
    9919 rm -f conf$$ conf$$.exe conf$$.file
    9920 echo >conf$$.file
    9921 if ln -s conf$$.file conf$$ 2>/dev/null; then
    9922   # We could just check for DJGPP; but this test a) works b) is more generic
    9923   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    9924   if test -f conf$$.exe; then
    9925     # Don't use ln at all; we don't have any links
    9926     as_ln_s='cp -p'
    9927   else
    9928     as_ln_s='ln -s'
    9929   fi
    9930 elif ln conf$$.file conf$$ 2>/dev/null; then
    9931   as_ln_s=ln
    9932 else
    9933   as_ln_s='cp -p'
    9934 fi
    9935 rm -f conf$$ conf$$.exe conf$$.file
    9936 
     46953  test -d "$as_dir" || eval $as_mkdir_p || {
     46954    as_dirs=
     46955    while :; do
     46956      case $as_dir in #(
     46957      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     46958      *) as_qdir=$as_dir;;
     46959      esac
     46960      as_dirs="'$as_qdir' $as_dirs"
     46961      as_dir=`$as_dirname -- "$as_dir" ||
     46962$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     46963         X"$as_dir" : 'X\(//\)[^/]' \| \
     46964         X"$as_dir" : 'X\(//\)$' \| \
     46965         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     46966printf "%s\n" X"$as_dir" |
     46967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     46968            s//\1/
     46969            q
     46970          }
     46971          /^X\(\/\/\)[^/].*/{
     46972            s//\1/
     46973            q
     46974          }
     46975          /^X\(\/\/\)$/{
     46976            s//\1/
     46977            q
     46978          }
     46979          /^X\(\/\).*/{
     46980            s//\1/
     46981            q
     46982          }
     46983          s/.*/./; q'`
     46984      test -d "$as_dir" && break
     46985    done
     46986    test -z "$as_dirs" || eval "mkdir $as_dirs"
     46987  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     46988
     46989
     46990} # as_fn_mkdir_p
    993746991if mkdir -p . 2>/dev/null; then
    9938   as_mkdir_p=:
     46992  as_mkdir_p='mkdir -p "$as_dir"'
    993946993else
    994046994  test -d ./-p && rmdir ./-p
     
    994246996fi
    994346997
    9944 as_executable_p="test -f"
     46998
     46999# as_fn_executable_p FILE
     47000# -----------------------
     47001# Test if FILE is an executable regular file.
     47002as_fn_executable_p ()
     47003{
     47004  test -f "$1" && test -x "$1"
     47005} # as_fn_executable_p
     47006as_test_x='test -x'
     47007as_executable_p=as_fn_executable_p
    994547008
    994647009# Sed expression to map a string onto a valid CPP name.
    9947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     47010as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     47011as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
    994847012
    994947013# Sed expression to map a string onto a valid variable name.
    9950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    9951 
    9952 
    9953 # IFS
    9954 # We need space, tab and new line, in precisely that order.
    9955 as_nl='
    9956 '
    9957 IFS="   $as_nl"
    9958 
    9959 # CDPATH.
    9960 $as_unset CDPATH
     47014as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     47015as_tr_sh="eval sed '$as_sed_sh'" # deprecated
     47016
    996147017
    996247018exec 6>&1
    9963 
    9964 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     47019## ----------------------------------- ##
     47020## Main body of $CONFIG_STATUS script. ##
     47021## ----------------------------------- ##
     47022_ASEOF
     47023test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     47024
     47025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47026# Save the log message, to keep $0 and so on meaningful, and to
    996547027# report actual input values of CONFIG_FILES etc. instead of their
    9966 # values after options handling.  Logging --version etc. is OK.
     47028# values after options handling.
     47029ac_log="
     47030This file was extended by GNU sed $as_me 4.9, which was
     47031generated by GNU Autoconf 2.72a.65-d081.  Invocation command line was
     47032
     47033  CONFIG_FILES    = $CONFIG_FILES
     47034  CONFIG_HEADERS  = $CONFIG_HEADERS
     47035  CONFIG_LINKS    = $CONFIG_LINKS
     47036  CONFIG_COMMANDS = $CONFIG_COMMANDS
     47037  $ $0 $@
     47038
     47039on `(hostname || uname -n) 2>/dev/null | sed 1q`
     47040"
     47041
     47042_ACEOF
     47043
     47044case $ac_config_files in *"
     47045"*) set x $ac_config_files; shift; ac_config_files=$*;;
     47046esac
     47047
     47048case $ac_config_headers in *"
     47049"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     47050esac
     47051
     47052
     47053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47054# Files that config.status was made for.
     47055config_files="$ac_config_files"
     47056config_headers="$ac_config_headers"
     47057config_links="$ac_config_links"
     47058config_commands="$ac_config_commands"
     47059
     47060_ACEOF
     47061
     47062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47063ac_cs_usage="\
     47064'$as_me' instantiates files and other configuration actions
     47065from templates according to the current configuration.  Unless the files
     47066and actions are specified as TAGs, all are instantiated by default.
     47067
     47068Usage: $0 [OPTION]... [TAG]...
     47069
     47070  -h, --help       print this help, then exit
     47071  -V, --version    print version number and configuration settings, then exit
     47072      --config     print configuration, then exit
     47073  -q, --quiet, --silent
     47074                   do not print progress messages
     47075  -d, --debug      don't remove temporary files
     47076      --recheck    update $as_me by reconfiguring in the same conditions
     47077      --file=FILE[:TEMPLATE]
     47078                   instantiate the configuration file FILE
     47079      --header=FILE[:TEMPLATE]
     47080                   instantiate the configuration header FILE
     47081
     47082Configuration files:
     47083$config_files
     47084
     47085Configuration headers:
     47086$config_headers
     47087
     47088Configuration links:
     47089$config_links
     47090
     47091Configuration commands:
     47092$config_commands
     47093
     47094Report bugs to <[email protected]>.
     47095GNU sed home page: <https://www.gnu.org/software/sed/>.
     47096General help using GNU software: <https://www.gnu.org/gethelp/>."
     47097
     47098_ACEOF
     47099ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
     47100ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
     47101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47102ac_cs_config='$ac_cs_config_escaped'
     47103ac_cs_version="\\
     47104GNU sed config.status 4.9
     47105configured by $0, generated by GNU Autoconf 2.72a.65-d081,
     47106  with options \\"\$ac_cs_config\\"
     47107
     47108Copyright (C) 2022 Free Software Foundation, Inc.
     47109This config.status script is free software; the Free Software Foundation
     47110gives unlimited permission to copy, distribute and modify it."
     47111
     47112ac_pwd='$ac_pwd'
     47113srcdir='$srcdir'
     47114INSTALL='$INSTALL'
     47115MKDIR_P='$MKDIR_P'
     47116AWK='$AWK'
     47117test -n "\$AWK" || AWK=awk
     47118_ACEOF
     47119
     47120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47121# The default lists apply if the user does not specify any file.
     47122ac_need_defaults=:
     47123while test $# != 0
     47124do
     47125  case $1 in
     47126  --*=?*)
     47127    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     47128    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     47129    ac_shift=:
     47130    ;;
     47131  --*=)
     47132    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     47133    ac_optarg=
     47134    ac_shift=:
     47135    ;;
     47136  *)
     47137    ac_option=$1
     47138    ac_optarg=$2
     47139    ac_shift=shift
     47140    ;;
     47141  esac
     47142
     47143  case $ac_option in
     47144  # Handling of the options.
     47145  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     47146    ac_cs_recheck=: ;;
     47147  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     47148    printf "%s\n" "$ac_cs_version"; exit ;;
     47149  --config | --confi | --conf | --con | --co | --c )
     47150    printf "%s\n" "$ac_cs_config"; exit ;;
     47151  --debug | --debu | --deb | --de | --d | -d )
     47152    debug=: ;;
     47153  --file | --fil | --fi | --f )
     47154    $ac_shift
     47155    case $ac_optarg in
     47156    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     47157    '') as_fn_error $? "missing file argument" ;;
     47158    esac
     47159    as_fn_append CONFIG_FILES " '$ac_optarg'"
     47160    ac_need_defaults=false;;
     47161  --header | --heade | --head | --hea )
     47162    $ac_shift
     47163    case $ac_optarg in
     47164    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     47165    esac
     47166    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     47167    ac_need_defaults=false;;
     47168  --he | --h)
     47169    # Conflict between --help and --header
     47170    as_fn_error $? "ambiguous option: '$1'
     47171Try '$0 --help' for more information.";;
     47172  --help | --hel | -h )
     47173    printf "%s\n" "$ac_cs_usage"; exit ;;
     47174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     47175  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     47176    ac_cs_silent=: ;;
     47177
     47178  # This is an error.
     47179  -*) as_fn_error $? "unrecognized option: '$1'
     47180Try '$0 --help' for more information." ;;
     47181
     47182  *) as_fn_append ac_config_targets " $1"
     47183     ac_need_defaults=false ;;
     47184
     47185  esac
     47186  shift
     47187done
     47188
     47189ac_configure_extra_args=
     47190
     47191if $ac_cs_silent; then
     47192  exec 6>/dev/null
     47193  ac_configure_extra_args="$ac_configure_extra_args --silent"
     47194fi
     47195
     47196_ACEOF
     47197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47198if \$ac_cs_recheck; then
     47199  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     47200  shift
     47201  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
     47202  CONFIG_SHELL='$SHELL'
     47203  export CONFIG_SHELL
     47204  exec "\$@"
     47205fi
     47206
     47207_ACEOF
     47208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    996747209exec 5>>config.log
    996847210{
     
    997147213## Running $as_me. ##
    997247214_ASBOX
     47215  printf "%s\n" "$ac_log"
    997347216} >&5
    9974 cat >&5 <<_CSEOF
    9975 
    9976 This file was extended by sed $as_me 4.1.5, which was
    9977 generated by GNU Autoconf 2.59.  Invocation command line was
    9978 
    9979   CONFIG_FILES    = $CONFIG_FILES
    9980   CONFIG_HEADERS  = $CONFIG_HEADERS
    9981   CONFIG_LINKS    = $CONFIG_LINKS
    9982   CONFIG_COMMANDS = $CONFIG_COMMANDS
    9983   $ $0 $@
    9984 
    9985 _CSEOF
    9986 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    9987 echo >&5
     47217
    998847218_ACEOF
    9989 
    9990 # Files that config.status was made for.
    9991 if test -n "$ac_config_files"; then
    9992   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    9993 fi
    9994 
    9995 if test -n "$ac_config_headers"; then
    9996   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    9997 fi
    9998 
    9999 if test -n "$ac_config_links"; then
    10000   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    10001 fi
    10002 
    10003 if test -n "$ac_config_commands"; then
    10004   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    10005 fi
    10006 
    10007 cat >>$CONFIG_STATUS <<\_ACEOF
    10008 
    10009 ac_cs_usage="\
    10010 \`$as_me' instantiates files from templates according to the
    10011 current configuration.
    10012 
    10013 Usage: $0 [OPTIONS] [FILE]...
    10014 
    10015   -h, --help       print this help, then exit
    10016   -V, --version    print version number, then exit
    10017   -q, --quiet      do not print progress messages
    10018   -d, --debug      don't remove temporary files
    10019       --recheck    update $as_me by reconfiguring in the same conditions
    10020   --file=FILE[:TEMPLATE]
    10021                    instantiate the configuration file FILE
    10022   --header=FILE[:TEMPLATE]
    10023                    instantiate the configuration header FILE
    10024 
    10025 Configuration files:
    10026 $config_files
    10027 
    10028 Configuration headers:
    10029 $config_headers
    10030 
    10031 Configuration links:
    10032 $config_links
    10033 
    10034 Configuration commands:
    10035 $config_commands
    10036 
    10037 Report bugs to <[email protected]>."
    10038 _ACEOF
    10039 
    10040 cat >>$CONFIG_STATUS <<_ACEOF
    10041 ac_cs_version="\\
    10042 sed config.status 4.1.5
    10043 configured by $0, generated by GNU Autoconf 2.59,
    10044   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    10045 
    10046 Copyright (C) 2003 Free Software Foundation, Inc.
    10047 This config.status script is free software; the Free Software Foundation
    10048 gives unlimited permission to copy, distribute and modify it."
    10049 srcdir=$srcdir
    10050 INSTALL="$INSTALL"
    10051 _ACEOF
    10052 
    10053 cat >>$CONFIG_STATUS <<\_ACEOF
    10054 # If no file are specified by the user, then we need to provide default
    10055 # value.  By we need to know if files were specified by the user.
    10056 ac_need_defaults=:
    10057 while test $# != 0
    10058 do
    10059   case $1 in
    10060   --*=*)
    10061     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    10062     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    10063     ac_shift=:
    10064     ;;
    10065   -*)
    10066     ac_option=$1
    10067     ac_optarg=$2
    10068     ac_shift=shift
    10069     ;;
    10070   *) # This is not an option, so the user has probably given explicit
    10071      # arguments.
    10072      ac_option=$1
    10073      ac_need_defaults=false;;
    10074   esac
    10075 
    10076   case $ac_option in
    10077   # Handling of the options.
    10078 _ACEOF
    10079 cat >>$CONFIG_STATUS <<\_ACEOF
    10080   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    10081     ac_cs_recheck=: ;;
    10082   --version | --vers* | -V )
    10083     echo "$ac_cs_version"; exit 0 ;;
    10084   --he | --h)
    10085     # Conflict between --help and --header
    10086     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    10087 Try \`$0 --help' for more information." >&5
    10088 echo "$as_me: error: ambiguous option: $1
    10089 Try \`$0 --help' for more information." >&2;}
    10090    { (exit 1); exit 1; }; };;
    10091   --help | --hel | -h )
    10092     echo "$ac_cs_usage"; exit 0 ;;
    10093   --debug | --d* | -d )
    10094     debug=: ;;
    10095   --file | --fil | --fi | --f )
    10096     $ac_shift
    10097     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    10098     ac_need_defaults=false;;
    10099   --header | --heade | --head | --hea )
    10100     $ac_shift
    10101     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    10102     ac_need_defaults=false;;
    10103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    10104   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    10105     ac_cs_silent=: ;;
    10106 
    10107   # This is an error.
    10108   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    10109 Try \`$0 --help' for more information." >&5
    10110 echo "$as_me: error: unrecognized option: $1
    10111 Try \`$0 --help' for more information." >&2;}
    10112    { (exit 1); exit 1; }; } ;;
    10113 
    10114   *) ac_config_targets="$ac_config_targets $1" ;;
    10115 
    10116   esac
    10117   shift
    10118 done
    10119 
    10120 ac_configure_extra_args=
    10121 
    10122 if $ac_cs_silent; then
    10123   exec 6>/dev/null
    10124   ac_configure_extra_args="$ac_configure_extra_args --silent"
    10125 fi
    10126 
    10127 _ACEOF
    10128 cat >>$CONFIG_STATUS <<_ACEOF
    10129 if \$ac_cs_recheck; then
    10130   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    10131   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    10132 fi
    10133 
    10134 _ACEOF
    10135 
    10136 cat >>$CONFIG_STATUS <<_ACEOF
     47219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    1013747220#
    10138 # INIT-COMMANDS section.
     47221# INIT-COMMANDS
    1013947222#
    10140 
    10141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
    10142 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
    10143     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
    10144     # from automake.
    10145     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
     47223AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
     47224GNUmakefile=$GNUmakefile
     47225# Capture the value of obsolete ALL_LINGUAS because we need it to compute
     47226    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
     47227    # from automake < 1.5.
     47228    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
    1014647229    # Capture the value of LINGUAS because we need it to compute CATALOGS.
    1014747230    LINGUAS="${LINGUAS-%UNSET%}"
    1014847231
    1014947232
    10150   install_sh="$install_sh"
    10151 
    1015247233_ACEOF
    1015347234
    10154 
    10155 
    10156 cat >>$CONFIG_STATUS <<\_ACEOF
     47235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47236
     47237# Handling of arguments.
    1015747238for ac_config_target in $ac_config_targets
    1015847239do
    10159   case "$ac_config_target" in
    10160   # Handling of arguments.
    10161   "lib/stdbool.h" ) CONFIG_FILES="$CONFIG_FILES lib/stdbool.h:lib/stdbool_.h" ;;
    10162   "bootstrap.sh" ) CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;;
    10163   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    10164   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    10165   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    10166   "sed/Makefile" ) CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;;
    10167   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
    10168   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
    10169   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
    10170   "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex_.h" ;;
    10171   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    10172   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
    10173   "gettext-fix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gettext-fix" ;;
    10174   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
    10175   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    10176 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    10177    { (exit 1); exit 1; }; };;
     47240  case $ac_config_target in
     47241    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
     47242    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     47243    "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
     47244    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
     47245    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     47246    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
     47247    "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
     47248
     47249  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
    1017847250  esac
    1017947251done
     47252
    1018047253
    1018147254# If the user did not use the arguments to specify the items to instantiate,
     
    1018447257# bizarre bug on SunOS 4.1.3.
    1018547258if $ac_need_defaults; then
    10186   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    10187   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    10188   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
    10189   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     47259  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
     47260  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
     47261  test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
     47262  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
    1019047263fi
    1019147264
    1019247265# Have a temporary directory for convenience.  Make it in the build tree
    10193 # simply because there is no reason to put it here, and in addition,
     47266# simply because there is no reason against having it here, and in addition,
    1019447267# creating and moving files from /tmp can sometimes cause problems.
    10195 # Create a temporary directory, and hook for its removal unless debugging.
     47268# Hook for its removal unless debugging.
     47269# Note that there is a small window in which the directory will not be cleaned:
     47270# after its creation but before its name has been assigned to '$tmp'.
    1019647271$debug ||
    1019747272{
    10198   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    10199   trap '{ (exit 1); exit 1; }' 1 2 13 15
     47273  tmp= ac_tmp=
     47274  trap 'exit_status=$?
     47275  : "${ac_tmp:=$tmp}"
     47276  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
     47277' 0
     47278  trap 'as_fn_exit 1' 1 2 13 15
    1020047279}
    10201 
    1020247280# Create a (secure) tmp directory for tmp files.
    1020347281
    1020447282{
    10205   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    10206   test -n "$tmp" && test -d "$tmp"
     47283  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
     47284  test -d "$tmp"
    1020747285}  ||
    1020847286{
    10209   tmp=./confstat$$-$RANDOM
    10210   (umask 077 && mkdir $tmp)
    10211 } ||
     47287  tmp=./conf$$-$RANDOM
     47288  (umask 077 && mkdir "$tmp")
     47289} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     47290ac_tmp=$tmp
     47291
     47292# Set up the scripts for CONFIG_FILES section.
     47293# No need to generate them if there are no CONFIG_FILES.
     47294# This happens for instance with './config.status config.h'.
     47295if test -n "$CONFIG_FILES"; then
     47296
     47297
     47298ac_cr=`echo X | tr X '\015'`
     47299# On cygwin, bash can eat \r inside `` if the user requested igncr.
     47300# But we know of no other shell where ac_cr would be empty at this
     47301# point, so we can use a bashism as a fallback.
     47302if test "x$ac_cr" = x; then
     47303  eval ac_cr=\$\'\\r\'
     47304fi
     47305ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     47306if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     47307  ac_cs_awk_cr='\\r'
     47308else
     47309  ac_cs_awk_cr=$ac_cr
     47310fi
     47311
     47312echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
     47313_ACEOF
     47314
     47315
    1021247316{
    10213    echo "$me: cannot create a temporary directory in ." >&2
    10214    { (exit 1); exit 1; }
     47317  echo "cat >conf$$subs.awk <<_ACEOF" &&
     47318  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     47319  echo "_ACEOF"
     47320} >conf$$subs.sh ||
     47321  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     47322ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     47323ac_delim='%!_!# '
     47324for ac_last_try in false false false false false :; do
     47325  . ./conf$$subs.sh ||
     47326    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     47327
     47328  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     47329  if test $ac_delim_n = $ac_delim_num; then
     47330    break
     47331  elif $ac_last_try; then
     47332    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     47333  else
     47334    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     47335  fi
     47336done
     47337rm -f conf$$subs.sh
     47338
     47339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47340cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
     47341_ACEOF
     47342sed -n '
     47343h
     47344s/^/S["/; s/!.*/"]=/
     47345p
     47346g
     47347s/^[^!]*!//
     47348:repl
     47349t repl
     47350s/'"$ac_delim"'$//
     47351t delim
     47352:nl
     47353h
     47354s/\(.\{148\}\)..*/\1/
     47355t more1
     47356s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     47357p
     47358n
     47359b repl
     47360:more1
     47361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     47362p
     47363g
     47364s/.\{148\}//
     47365t nl
     47366:delim
     47367h
     47368s/\(.\{148\}\)..*/\1/
     47369t more2
     47370s/["\\]/\\&/g; s/^/"/; s/$/"/
     47371p
     47372b
     47373:more2
     47374s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     47375p
     47376g
     47377s/.\{148\}//
     47378t delim
     47379' <conf$$subs.awk | sed '
     47380/^[^""]/{
     47381  N
     47382  s/\n//
    1021547383}
    10216 
     47384' >>$CONFIG_STATUS || ac_write_fail=1
     47385rm -f conf$$subs.awk
     47386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47387_ACAWK
     47388cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
     47389  for (key in S) S_is_set[key] = 1
     47390  FS = ""
     47391
     47392}
     47393{
     47394  line = $ 0
     47395  nfields = split(line, field, "@")
     47396  substed = 0
     47397  len = length(field[1])
     47398  for (i = 2; i < nfields; i++) {
     47399    key = field[i]
     47400    keylen = length(key)
     47401    if (S_is_set[key]) {
     47402      value = S[key]
     47403      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     47404      len += length(value) + length(field[++i])
     47405      substed = 1
     47406    } else
     47407      len += 1 + keylen
     47408  }
     47409
     47410  print line
     47411}
     47412
     47413_ACAWK
    1021747414_ACEOF
    10218 
    10219 cat >>$CONFIG_STATUS <<_ACEOF
    10220 
    10221 #
    10222 # CONFIG_FILES section.
    10223 #
    10224 
    10225 # No need to generate the scripts if there are no CONFIG_FILES.
    10226 # This happens for instance when ./config.status config.h
    10227 if test -n "\$CONFIG_FILES"; then
    10228   # Protect against being on the right side of a sed subst in config.status.
    10229   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    10230    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    10231 s,@SHELL@,$SHELL,;t t
    10232 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    10233 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    10234 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    10235 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    10236 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    10237 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    10238 s,@exec_prefix@,$exec_prefix,;t t
    10239 s,@prefix@,$prefix,;t t
    10240 s,@program_transform_name@,$program_transform_name,;t t
    10241 s,@bindir@,$bindir,;t t
    10242 s,@sbindir@,$sbindir,;t t
    10243 s,@libexecdir@,$libexecdir,;t t
    10244 s,@datadir@,$datadir,;t t
    10245 s,@sysconfdir@,$sysconfdir,;t t
    10246 s,@sharedstatedir@,$sharedstatedir,;t t
    10247 s,@localstatedir@,$localstatedir,;t t
    10248 s,@libdir@,$libdir,;t t
    10249 s,@includedir@,$includedir,;t t
    10250 s,@oldincludedir@,$oldincludedir,;t t
    10251 s,@infodir@,$infodir,;t t
    10252 s,@mandir@,$mandir,;t t
    10253 s,@build_alias@,$build_alias,;t t
    10254 s,@host_alias@,$host_alias,;t t
    10255 s,@target_alias@,$target_alias,;t t
    10256 s,@DEFS@,$DEFS,;t t
    10257 s,@ECHO_C@,$ECHO_C,;t t
    10258 s,@ECHO_N@,$ECHO_N,;t t
    10259 s,@ECHO_T@,$ECHO_T,;t t
    10260 s,@LIBS@,$LIBS,;t t
    10261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    10262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    10263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    10264 s,@CYGPATH_W@,$CYGPATH_W,;t t
    10265 s,@PACKAGE@,$PACKAGE,;t t
    10266 s,@VERSION@,$VERSION,;t t
    10267 s,@ACLOCAL@,$ACLOCAL,;t t
    10268 s,@AUTOCONF@,$AUTOCONF,;t t
    10269 s,@AUTOMAKE@,$AUTOMAKE,;t t
    10270 s,@AUTOHEADER@,$AUTOHEADER,;t t
    10271 s,@MAKEINFO@,$MAKEINFO,;t t
    10272 s,@install_sh@,$install_sh,;t t
    10273 s,@STRIP@,$STRIP,;t t
    10274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
    10275 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
    10276 s,@mkdir_p@,$mkdir_p,;t t
    10277 s,@AWK@,$AWK,;t t
    10278 s,@SET_MAKE@,$SET_MAKE,;t t
    10279 s,@am__leading_dot@,$am__leading_dot,;t t
    10280 s,@AMTAR@,$AMTAR,;t t
    10281 s,@am__tar@,$am__tar,;t t
    10282 s,@am__untar@,$am__untar,;t t
    10283 s,@SED_FEATURE_VERSION@,$SED_FEATURE_VERSION,;t t
    10284 s,@CC@,$CC,;t t
    10285 s,@CFLAGS@,$CFLAGS,;t t
    10286 s,@LDFLAGS@,$LDFLAGS,;t t
    10287 s,@CPPFLAGS@,$CPPFLAGS,;t t
    10288 s,@ac_ct_CC@,$ac_ct_CC,;t t
    10289 s,@EXEEXT@,$EXEEXT,;t t
    10290 s,@OBJEXT@,$OBJEXT,;t t
    10291 s,@DEPDIR@,$DEPDIR,;t t
    10292 s,@am__include@,$am__include,;t t
    10293 s,@am__quote@,$am__quote,;t t
    10294 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
    10295 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
    10296 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
    10297 s,@CCDEPMODE@,$CCDEPMODE,;t t
    10298 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
    10299 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    10300 s,@RANLIB@,$RANLIB,;t t
    10301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    10302 s,@CPP@,$CPP,;t t
    10303 s,@EGREP@,$EGREP,;t t
    10304 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
    10305 s,@ALLOCA@,$ALLOCA,;t t
    10306 s,@LIBOBJS@,$LIBOBJS,;t t
    10307 s,@TEST_REGEX_TRUE@,$TEST_REGEX_TRUE,;t t
    10308 s,@TEST_REGEX_FALSE@,$TEST_REGEX_FALSE,;t t
    10309 s,@BUILD_HTML_TRUE@,$BUILD_HTML_TRUE,;t t
    10310 s,@BUILD_HTML_FALSE@,$BUILD_HTML_FALSE,;t t
    10311 s,@TEXI2HTML@,$TEXI2HTML,;t t
    10312 s,@MAKEINFO_HTML_TRUE@,$MAKEINFO_HTML_TRUE,;t t
    10313 s,@MAKEINFO_HTML_FALSE@,$MAKEINFO_HTML_FALSE,;t t
    10314 s,@TEXI2HTML_HTML_TRUE@,$TEXI2HTML_HTML_TRUE,;t t
    10315 s,@TEXI2HTML_HTML_FALSE@,$TEXI2HTML_HTML_FALSE,;t t
    10316 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
    10317 s,@MSGFMT@,$MSGFMT,;t t
    10318 s,@GMSGFMT@,$GMSGFMT,;t t
    10319 s,@XGETTEXT@,$XGETTEXT,;t t
    10320 s,@MSGMERGE@,$MSGMERGE,;t t
    10321 s,@build@,$build,;t t
    10322 s,@build_cpu@,$build_cpu,;t t
    10323 s,@build_vendor@,$build_vendor,;t t
    10324 s,@build_os@,$build_os,;t t
    10325 s,@host@,$host,;t t
    10326 s,@host_cpu@,$host_cpu,;t t
    10327 s,@host_vendor@,$host_vendor,;t t
    10328 s,@host_os@,$host_os,;t t
    10329 s,@GLIBC21@,$GLIBC21,;t t
    10330 s,@LIBICONV@,$LIBICONV,;t t
    10331 s,@LTLIBICONV@,$LTLIBICONV,;t t
    10332 s,@INTLBISON@,$INTLBISON,;t t
    10333 s,@USE_NLS@,$USE_NLS,;t t
    10334 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
    10335 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
    10336 s,@CATOBJEXT@,$CATOBJEXT,;t t
    10337 s,@INTLOBJS@,$INTLOBJS,;t t
    10338 s,@DATADIRNAME@,$DATADIRNAME,;t t
    10339 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
    10340 s,@GENCAT@,$GENCAT,;t t
    10341 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
    10342 s,@INTLLIBS@,$INTLLIBS,;t t
    10343 s,@LIBINTL@,$LIBINTL,;t t
    10344 s,@LTLIBINTL@,$LTLIBINTL,;t t
    10345 s,@POSUB@,$POSUB,;t t
    10346 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    10347 CEOF
    10348 
     47415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47416if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     47417  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     47418else
     47419  cat
     47420fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
     47421  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    1034947422_ACEOF
    1035047423
    10351   cat >>$CONFIG_STATUS <<\_ACEOF
    10352   # Split the substitutions into bite-sized pieces for seds with
    10353   # small command number limits, like on Digital OSF/1 and HP-UX.
    10354   ac_max_sed_lines=48
    10355   ac_sed_frag=1 # Number of current file.
    10356   ac_beg=1 # First line for current file.
    10357   ac_end=$ac_max_sed_lines # Line after last line for current file.
    10358   ac_more_lines=:
    10359   ac_sed_cmds=
    10360   while $ac_more_lines; do
    10361     if test $ac_beg -gt 1; then
    10362       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    10363     else
    10364       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     47424# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     47425# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     47426# trailing colons and then remove the whole line if VPATH becomes empty
     47427# (actually we leave an empty line to preserve line numbers).
     47428if test "x$srcdir" = x.; then
     47429  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
     47430h
     47431s///
     47432s/^/:/
     47433s/[      ]*$/:/
     47434s/:\$(srcdir):/:/g
     47435s/:\${srcdir}:/:/g
     47436s/:@srcdir@:/:/g
     47437s/^:*//
     47438s/:*$//
     47439x
     47440s/\(=[   ]*\).*/\1/
     47441G
     47442s/\n//
     47443s/^[^=]*=[       ]*$//
     47444}'
     47445fi
     47446
     47447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47448fi # test -n "$CONFIG_FILES"
     47449
     47450# Set up the scripts for CONFIG_HEADERS section.
     47451# No need to generate them if there are no CONFIG_HEADERS.
     47452# This happens for instance with './config.status Makefile'.
     47453if test -n "$CONFIG_HEADERS"; then
     47454cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     47455BEGIN {
     47456_ACEOF
     47457
     47458# Transform confdefs.h into an awk script 'defines.awk', embedded as
     47459# here-document in config.status, that substitutes the proper values into
     47460# config.h.in to produce config.h.
     47461
     47462# Create a delimiter string that does not exist in confdefs.h, to ease
     47463# handling of long lines.
     47464ac_delim='%!_!# '
     47465for ac_last_try in false false :; do
     47466  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     47467  if test -z "$ac_tt"; then
     47468    break
     47469  elif $ac_last_try; then
     47470    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     47471  else
     47472    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     47473  fi
     47474done
     47475
     47476# For the awk script, D is an array of macro values keyed by name,
     47477# likewise P contains macro parameters if any.  Preserve backslash
     47478# newline sequences.
     47479
     47480ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     47481sed -n '
     47482s/.\{148\}/&'"$ac_delim"'/g
     47483t rset
     47484:rset
     47485s/^[     ]*#[    ]*define[       ][      ]*/ /
     47486t def
     47487d
     47488:def
     47489s/\\$//
     47490t bsnl
     47491s/["\\]/\\&/g
     47492s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     47493D["\1"]=" \3"/p
     47494s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
     47495d
     47496:bsnl
     47497s/["\\]/\\&/g
     47498s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     47499D["\1"]=" \3\\\\\\n"\\/p
     47500t cont
     47501s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     47502t cont
     47503d
     47504:cont
     47505n
     47506s/.\{148\}/&'"$ac_delim"'/g
     47507t clear
     47508:clear
     47509s/\\$//
     47510t bsnlc
     47511s/["\\]/\\&/g; s/^/"/; s/$/"/p
     47512d
     47513:bsnlc
     47514s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     47515b cont
     47516' <confdefs.h | sed '
     47517s/'"$ac_delim"'/"\\\
     47518"/g' >>$CONFIG_STATUS || ac_write_fail=1
     47519
     47520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47521  for (key in D) D_is_set[key] = 1
     47522  FS = ""
     47523}
     47524/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     47525  line = \$ 0
     47526  split(line, arg, " ")
     47527  if (arg[1] == "#") {
     47528    defundef = arg[2]
     47529    mac1 = arg[3]
     47530  } else {
     47531    defundef = substr(arg[1], 2)
     47532    mac1 = arg[2]
     47533  }
     47534  split(mac1, mac2, "(") #)
     47535  macro = mac2[1]
     47536  prefix = substr(line, 1, index(line, defundef) - 1)
     47537  if (D_is_set[macro]) {
     47538    # Preserve the white space surrounding the "#".
     47539    print prefix "define", macro P[macro] D[macro]
     47540    next
     47541  } else {
     47542    # Replace #undef with comments.  This is necessary, for example,
     47543    # in the case of _POSIX_SOURCE, which is predefined and required
     47544    # on some systems where configure will not decide to define it.
     47545    if (defundef == "undef") {
     47546      print "/*", prefix defundef, macro, "*/"
     47547      next
     47548    }
     47549  }
     47550}
     47551{ print }
     47552_ACAWK
     47553_ACEOF
     47554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47555  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     47556fi # test -n "$CONFIG_HEADERS"
     47557
     47558
     47559eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
     47560shift
     47561for ac_tag
     47562do
     47563  case $ac_tag in
     47564  :[FHLC]) ac_mode=$ac_tag; continue;;
     47565  esac
     47566  case $ac_mode$ac_tag in
     47567  :[FHL]*:*);;
     47568  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
     47569  :[FH]-) ac_tag=-:-;;
     47570  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     47571  esac
     47572  ac_save_IFS=$IFS
     47573  IFS=:
     47574  set x $ac_tag
     47575  IFS=$ac_save_IFS
     47576  shift
     47577  ac_file=$1
     47578  shift
     47579
     47580  case $ac_mode in
     47581  :L) ac_source=$1;;
     47582  :[FH])
     47583    ac_file_inputs=
     47584    for ac_f
     47585    do
     47586      case $ac_f in
     47587      -) ac_f="$ac_tmp/stdin";;
     47588      *) # Look for the file first in the build tree, then in the source tree
     47589         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     47590         # because $ac_f cannot contain ':'.
     47591         test -f "$ac_f" ||
     47592           case $ac_f in
     47593           [\\/$]*) false;;
     47594           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     47595           esac ||
     47596           as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
     47597      esac
     47598      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     47599      as_fn_append ac_file_inputs " '$ac_f'"
     47600    done
     47601
     47602    # Let's still pretend it is 'configure' which instantiates (i.e., don't
     47603    # use $as_me), people would be surprised to read:
     47604    #    /* config.h.  Generated by config.status.  */
     47605    configure_input='Generated from '`
     47606          printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     47607        `' by configure.'
     47608    if test x"$ac_file" != x-; then
     47609      configure_input="$ac_file.  $configure_input"
     47610      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     47611printf "%s\n" "$as_me: creating $ac_file" >&6;}
    1036547612    fi
    10366     if test ! -s $tmp/subs.frag; then
    10367       ac_more_lines=false
    10368     else
    10369       # The purpose of the label and of the branching condition is to
    10370       # speed up the sed processing (if there are no `@' at all, there
    10371       # is no need to browse any of the substitutions).
    10372       # These are the two extra sed commands mentioned above.
    10373       (echo ':t
    10374   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    10375       if test -z "$ac_sed_cmds"; then
    10376         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    10377       else
    10378         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    10379       fi
    10380       ac_sed_frag=`expr $ac_sed_frag + 1`
    10381       ac_beg=$ac_end
    10382       ac_end=`expr $ac_end + $ac_max_sed_lines`
    10383     fi
    10384   done
    10385   if test -z "$ac_sed_cmds"; then
    10386     ac_sed_cmds=cat
    10387   fi
    10388 fi # test -n "$CONFIG_FILES"
    10389 
    10390 _ACEOF
    10391 cat >>$CONFIG_STATUS <<\_ACEOF
    10392 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    10393   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    10394   case $ac_file in
    10395   - | *:- | *:-:* ) # input from stdin
    10396         cat >$tmp/stdin
    10397         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10398         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    10399   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10400         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    10401   * )   ac_file_in=$ac_file.in ;;
     47613    # Neutralize special characters interpreted by sed in replacement strings.
     47614    case $configure_input in #(
     47615    *\&* | *\|* | *\\* )
     47616       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
     47617       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     47618    *) ac_sed_conf_input=$configure_input;;
     47619    esac
     47620
     47621    case $ac_tag in
     47622    *:-:* | *:-) cat >"$ac_tmp/stdin" \
     47623      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     47624    esac
     47625    ;;
    1040247626  esac
    1040347627
    10404   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    10405   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     47628  ac_dir=`$as_dirname -- "$ac_file" ||
    1040647629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    1040747630         X"$ac_file" : 'X\(//\)[^/]' \| \
    1040847631         X"$ac_file" : 'X\(//\)$' \| \
    10409          X"$ac_file" : 'X\(/\)' \| \
    10410          .     : '\(.\)' 2>/dev/null ||
    10411 echo X"$ac_file" |
    10412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10414           /^X\(\/\/\)$/{ s//\1/; q; }
    10415           /^X\(\/\).*/{ s//\1/; q; }
    10416           s/.*/./; q'`
    10417   { if $as_mkdir_p; then
    10418     mkdir -p "$ac_dir"
    10419   else
    10420     as_dir="$ac_dir"
    10421     as_dirs=
    10422     while test ! -d "$as_dir"; do
    10423       as_dirs="$as_dir $as_dirs"
    10424       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    10425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10426          X"$as_dir" : 'X\(//\)[^/]' \| \
    10427          X"$as_dir" : 'X\(//\)$' \| \
    10428          X"$as_dir" : 'X\(/\)' \| \
    10429          .     : '\(.\)' 2>/dev/null ||
    10430 echo X"$as_dir" |
    10431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10432           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10433           /^X\(\/\/\)$/{ s//\1/; q; }
    10434           /^X\(\/\).*/{ s//\1/; q; }
    10435           s/.*/./; q'`
    10436     done
    10437     test ! -n "$as_dirs" || mkdir $as_dirs
    10438   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    10439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    10440    { (exit 1); exit 1; }; }; }
    10441 
     47632         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     47633printf "%s\n" X"$ac_file" |
     47634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     47635            s//\1/
     47636            q
     47637          }
     47638          /^X\(\/\/\)[^/].*/{
     47639            s//\1/
     47640            q
     47641          }
     47642          /^X\(\/\/\)$/{
     47643            s//\1/
     47644            q
     47645          }
     47646          /^X\(\/\).*/{
     47647            s//\1/
     47648            q
     47649          }
     47650          s/.*/./; q'`
     47651  as_dir="$ac_dir"; as_fn_mkdir_p
    1044247652  ac_builddir=.
    1044347653
    10444 if test "$ac_dir" != .; then
    10445   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    10446   # A "../" for each directory in $ac_dir_suffix.
    10447   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    10448 else
    10449   ac_dir_suffix= ac_top_builddir=
    10450 fi
     47654case "$ac_dir" in
     47655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     47656*)
     47657  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
     47658  # A ".." for each directory in $ac_dir_suffix.
     47659  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     47660  case $ac_top_builddir_sub in
     47661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     47662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     47663  esac ;;
     47664esac
     47665ac_abs_top_builddir=$ac_pwd
     47666ac_abs_builddir=$ac_pwd$ac_dir_suffix
     47667# for backward compatibility:
     47668ac_top_builddir=$ac_top_build_prefix
    1045147669
    1045247670case $srcdir in
    10453   .)  # No --srcdir option.  We are building in place.
     47671  .)  # We are building in place.
    1045447672    ac_srcdir=.
    10455     if test -z "$ac_top_builddir"; then
    10456        ac_top_srcdir=.
    10457     else
    10458        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    10459     fi ;;
    10460   [\\/]* | ?:[\\/]* )  # Absolute path.
     47673    ac_top_srcdir=$ac_top_builddir_sub
     47674    ac_abs_top_srcdir=$ac_pwd ;;
     47675  [\\/]* | ?:[\\/]* )  # Absolute name.
    1046147676    ac_srcdir=$srcdir$ac_dir_suffix;
    10462     ac_top_srcdir=$srcdir ;;
    10463   *) # Relative path.
    10464     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    10465     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    10466 esac
    10467 
    10468 # Do not use `cd foo && pwd` to compute absolute paths, because
    10469 # the directories may not exist.
    10470 case `pwd` in
    10471 .) ac_abs_builddir="$ac_dir";;
    10472 *)
    10473   case "$ac_dir" in
    10474   .) ac_abs_builddir=`pwd`;;
    10475   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    10476   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    10477   esac;;
    10478 esac
    10479 case $ac_abs_builddir in
    10480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    10481 *)
    10482   case ${ac_top_builddir}. in
    10483   .) ac_abs_top_builddir=$ac_abs_builddir;;
    10484   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    10485   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    10486   esac;;
    10487 esac
    10488 case $ac_abs_builddir in
    10489 .) ac_abs_srcdir=$ac_srcdir;;
    10490 *)
    10491   case $ac_srcdir in
    10492   .) ac_abs_srcdir=$ac_abs_builddir;;
    10493   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    10494   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    10495   esac;;
    10496 esac
    10497 case $ac_abs_builddir in
    10498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    10499 *)
    10500   case $ac_top_srcdir in
    10501   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    10502   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    10503   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    10504   esac;;
    10505 esac
    10506 
     47677    ac_top_srcdir=$srcdir
     47678    ac_abs_top_srcdir=$srcdir ;;
     47679  *) # Relative name.
     47680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     47681    ac_top_srcdir=$ac_top_build_prefix$srcdir
     47682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     47683esac
     47684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     47685
     47686
     47687  case $ac_mode in
     47688  :F)
     47689  #
     47690  # CONFIG_FILE
     47691  #
    1050747692
    1050847693  case $INSTALL in
    1050947694  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    10510   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     47695  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    1051147696  esac
    10512 
    10513   if test x"$ac_file" != x-; then
    10514     { echo "$as_me:$LINENO: creating $ac_file" >&5
    10515 echo "$as_me: creating $ac_file" >&6;}
    10516     rm -f "$ac_file"
    10517   fi
    10518   # Let's still pretend it is `configure' which instantiates (i.e., don't
    10519   # use $as_me), people would be surprised to read:
    10520   #    /* config.h.  Generated by config.status.  */
    10521   if test x"$ac_file" = x-; then
    10522     configure_input=
    10523   else
    10524     configure_input="$ac_file.  "
    10525   fi
    10526   configure_input=$configure_input"Generated from `echo $ac_file_in |
    10527                                      sed 's,.*/,,'` by configure."
    10528 
    10529   # First look for the input files in the build tree, otherwise in the
    10530   # src tree.
    10531   ac_file_inputs=`IFS=:
    10532     for f in $ac_file_in; do
    10533       case $f in
    10534       -) echo $tmp/stdin ;;
    10535       [\\/$]*)
    10536          # Absolute (can't be DOS-style, as IFS=:)
    10537          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    10538 echo "$as_me: error: cannot find input file: $f" >&2;}
    10539    { (exit 1); exit 1; }; }
    10540          echo "$f";;
    10541       *) # Relative
    10542          if test -f "$f"; then
    10543            # Build tree
    10544            echo "$f"
    10545          elif test -f "$srcdir/$f"; then
    10546            # Source tree
    10547            echo "$srcdir/$f"
    10548          else
    10549            # /dev/null tree
    10550            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    10551 echo "$as_me: error: cannot find input file: $f" >&2;}
    10552    { (exit 1); exit 1; }; }
    10553          fi;;
    10554       esac
    10555     done` || { (exit 1); exit 1; }
     47697  ac_MKDIR_P=$MKDIR_P
     47698  case $MKDIR_P in
     47699  [\\/$]* | ?:[\\/]* ) ;;
     47700  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
     47701  esac
    1055647702_ACEOF
    10557 cat >>$CONFIG_STATUS <<_ACEOF
    10558   sed "$ac_vpsub
     47703
     47704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     47705# If the template does not know about datarootdir, expand it.
     47706# FIXME: This hack should be removed a few years after 2.60.
     47707ac_datarootdir_hack=; ac_datarootdir_seen=
     47708ac_sed_dataroot='
     47709/datarootdir/ {
     47710  p
     47711  q
     47712}
     47713/@datadir@/p
     47714/@docdir@/p
     47715/@infodir@/p
     47716/@localedir@/p
     47717/@mandir@/p'
     47718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     47719*datarootdir*) ac_datarootdir_seen=yes;;
     47720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     47721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     47722printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     47723_ACEOF
     47724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47725  ac_datarootdir_hack='
     47726  s&@datadir@&$datadir&g
     47727  s&@docdir@&$docdir&g
     47728  s&@infodir@&$infodir&g
     47729  s&@localedir@&$localedir&g
     47730  s&@mandir@&$mandir&g
     47731  s&\\\${datarootdir}&$datarootdir&g' ;;
     47732esac
     47733_ACEOF
     47734
     47735# Neutralize VPATH when '$srcdir' = '.'.
     47736# Shell code in configure.ac might set extrasub.
     47737# FIXME: do we really want to maintain this feature?
     47738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     47739ac_sed_extra="$ac_vpsub
    1055947740$extrasub
    1056047741_ACEOF
    10561 cat >>$CONFIG_STATUS <<\_ACEOF
     47742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    1056247743:t
    1056347744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    10564 s,@configure_input@,$configure_input,;t t
    10565 s,@srcdir@,$ac_srcdir,;t t
    10566 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    10567 s,@top_srcdir@,$ac_top_srcdir,;t t
    10568 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    10569 s,@builddir@,$ac_builddir,;t t
    10570 s,@abs_builddir@,$ac_abs_builddir,;t t
    10571 s,@top_builddir@,$ac_top_builddir,;t t
    10572 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    10573 s,@INSTALL@,$ac_INSTALL,;t t
    10574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    10575   rm -f $tmp/stdin
     47745s|@configure_input@|$ac_sed_conf_input|;t t
     47746s&@top_builddir@&$ac_top_builddir_sub&;t t
     47747s&@top_build_prefix@&$ac_top_build_prefix&;t t
     47748s&@srcdir@&$ac_srcdir&;t t
     47749s&@abs_srcdir@&$ac_abs_srcdir&;t t
     47750s&@top_srcdir@&$ac_top_srcdir&;t t
     47751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     47752s&@builddir@&$ac_builddir&;t t
     47753s&@abs_builddir@&$ac_abs_builddir&;t t
     47754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     47755s&@INSTALL@&$ac_INSTALL&;t t
     47756s&@MKDIR_P@&$ac_MKDIR_P&;t t
     47757$ac_datarootdir_hack
     47758"
     47759eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
     47760  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     47761
     47762test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     47763  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
     47764  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
     47765      "$ac_tmp/out"`; test -z "$ac_out"; } &&
     47766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
     47767which seems to be undefined.  Please make sure it is defined" >&5
     47768printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
     47769which seems to be undefined.  Please make sure it is defined" >&2;}
     47770
     47771  rm -f "$ac_tmp/stdin"
     47772  case $ac_file in
     47773  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
     47774  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
     47775  esac \
     47776  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     47777 ;;
     47778  :H)
     47779  #
     47780  # CONFIG_HEADER
     47781  #
    1057647782  if test x"$ac_file" != x-; then
    10577     mv $tmp/out $ac_file
    10578   else
    10579     cat $tmp/out
    10580     rm -f $tmp/out
    10581   fi
    10582 
    10583   # Run the commands associated with the file.
    10584   case $ac_file in
    10585     bootstrap.sh ) chmod +x bootstrap.sh ;;
    10586   esac
    10587 done
    10588 _ACEOF
    10589 cat >>$CONFIG_STATUS <<\_ACEOF
    10590 
    10591 #
    10592 # CONFIG_HEADER section.
    10593 #
    10594 
    10595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    10596 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    10597 #
    10598 # ac_d sets the value in "#define NAME VALUE" lines.
    10599 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
    10600 ac_dB='[         ].*$,\1#\2'
    10601 ac_dC=' '
    10602 ac_dD=',;t'
    10603 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    10604 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    10605 ac_uB='$,\1#\2define\3'
    10606 ac_uC=' '
    10607 ac_uD=',;t'
    10608 
    10609 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    10610   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    10611   case $ac_file in
    10612   - | *:- | *:-:* ) # input from stdin
    10613         cat >$tmp/stdin
    10614         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10615         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    10616   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10617         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    10618   * )   ac_file_in=$ac_file.in ;;
    10619   esac
    10620 
    10621   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    10622 echo "$as_me: creating $ac_file" >&6;}
    10623 
    10624   # First look for the input files in the build tree, otherwise in the
    10625   # src tree.
    10626   ac_file_inputs=`IFS=:
    10627     for f in $ac_file_in; do
    10628       case $f in
    10629       -) echo $tmp/stdin ;;
    10630       [\\/$]*)
    10631          # Absolute (can't be DOS-style, as IFS=:)
    10632          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    10633 echo "$as_me: error: cannot find input file: $f" >&2;}
    10634    { (exit 1); exit 1; }; }
    10635          # Do quote $f, to prevent DOS paths from being IFS'd.
    10636          echo "$f";;
    10637       *) # Relative
    10638          if test -f "$f"; then
    10639            # Build tree
    10640            echo "$f"
    10641          elif test -f "$srcdir/$f"; then
    10642            # Source tree
    10643            echo "$srcdir/$f"
    10644          else
    10645            # /dev/null tree
    10646            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    10647 echo "$as_me: error: cannot find input file: $f" >&2;}
    10648    { (exit 1); exit 1; }; }
    10649          fi;;
    10650       esac
    10651     done` || { (exit 1); exit 1; }
    10652   # Remove the trailing spaces.
    10653   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
    10654 
    10655 _ACEOF
    10656 
    10657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    10658 # `conftest.undefs', that substitutes the proper values into
    10659 # config.h.in to produce config.h.  The first handles `#define'
    10660 # templates, and the second `#undef' templates.
    10661 # And first: Protect against being on the right side of a sed subst in
    10662 # config.status.  Protect against being in an unquoted here document
    10663 # in config.status.
    10664 rm -f conftest.defines conftest.undefs
    10665 # Using a here document instead of a string reduces the quoting nightmare.
    10666 # Putting comments in sed scripts is not portable.
    10667 #
    10668 # `end' is used to avoid that the second main sed command (meant for
    10669 # 0-ary CPP macros) applies to n-ary macro definitions.
    10670 # See the Autoconf documentation for `clear'.
    10671 cat >confdef2sed.sed <<\_ACEOF
    10672 s/[\\&,]/\\&/g
    10673 s,[\\$`],\\&,g
    10674 t clear
    10675 : clear
    10676 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    10677 t end
    10678 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    10679 : end
    10680 _ACEOF
    10681 # If some macros were called several times there might be several times
    10682 # the same #defines, which is useless.  Nevertheless, we may not want to
    10683 # sort them, since we want the *last* AC-DEFINE to be honored.
    10684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    10685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    10686 rm -f confdef2sed.sed
    10687 
    10688 # This sed command replaces #undef with comments.  This is necessary, for
    10689 # example, in the case of _POSIX_SOURCE, which is predefined and required
    10690 # on some systems where configure will not decide to define it.
    10691 cat >>conftest.undefs <<\_ACEOF
    10692 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    10693 _ACEOF
    10694 
    10695 # Break up conftest.defines because some shells have a limit on the size
    10696 # of here documents, and old seds have small limits too (100 cmds).
    10697 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    10698 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    10699 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    10700 echo '  :' >>$CONFIG_STATUS
    10701 rm -f conftest.tail
    10702 while grep . conftest.defines >/dev/null
    10703 do
    10704   # Write a limited-size here document to $tmp/defines.sed.
    10705   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    10706   # Speed up: don't consider the non `#define' lines.
    10707   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
    10708   # Work around the forget-to-reset-the-flag bug.
    10709   echo 't clr' >>$CONFIG_STATUS
    10710   echo ': clr' >>$CONFIG_STATUS
    10711   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    10712   echo 'CEOF
    10713   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    10714   rm -f $tmp/in
    10715   mv $tmp/out $tmp/in
    10716 ' >>$CONFIG_STATUS
    10717   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    10718   rm -f conftest.defines
    10719   mv conftest.tail conftest.defines
    10720 done
    10721 rm -f conftest.defines
    10722 echo '  fi # grep' >>$CONFIG_STATUS
    10723 echo >>$CONFIG_STATUS
    10724 
    10725 # Break up conftest.undefs because some shells have a limit on the size
    10726 # of here documents, and old seds have small limits too (100 cmds).
    10727 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    10728 rm -f conftest.tail
    10729 while grep . conftest.undefs >/dev/null
    10730 do
    10731   # Write a limited-size here document to $tmp/undefs.sed.
    10732   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    10733   # Speed up: don't consider the non `#undef'
    10734   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    10735   # Work around the forget-to-reset-the-flag bug.
    10736   echo 't clr' >>$CONFIG_STATUS
    10737   echo ': clr' >>$CONFIG_STATUS
    10738   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    10739   echo 'CEOF
    10740   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    10741   rm -f $tmp/in
    10742   mv $tmp/out $tmp/in
    10743 ' >>$CONFIG_STATUS
    10744   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    10745   rm -f conftest.undefs
    10746   mv conftest.tail conftest.undefs
    10747 done
    10748 rm -f conftest.undefs
    10749 
    10750 cat >>$CONFIG_STATUS <<\_ACEOF
    10751   # Let's still pretend it is `configure' which instantiates (i.e., don't
    10752   # use $as_me), people would be surprised to read:
    10753   #    /* config.h.  Generated by config.status.  */
    10754   if test x"$ac_file" = x-; then
    10755     echo "/* Generated by configure.  */" >$tmp/config.h
    10756   else
    10757     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    10758   fi
    10759   cat $tmp/in >>$tmp/config.h
    10760   rm -f $tmp/in
    10761   if test x"$ac_file" != x-; then
    10762     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    10763       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    10764 echo "$as_me: $ac_file is unchanged" >&6;}
     47783    {
     47784      printf "%s\n" "/* $configure_input  */" >&1 \
     47785      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     47786    } >"$ac_tmp/config.h" \
     47787      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     47788    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     47789      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     47790printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
    1076547791    else
    10766       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    10767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10768          X"$ac_file" : 'X\(//\)[^/]' \| \
    10769          X"$ac_file" : 'X\(//\)$' \| \
    10770          X"$ac_file" : 'X\(/\)' \| \
    10771          .     : '\(.\)' 2>/dev/null ||
    10772 echo X"$ac_file" |
    10773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10775           /^X\(\/\/\)$/{ s//\1/; q; }
    10776           /^X\(\/\).*/{ s//\1/; q; }
    10777           s/.*/./; q'`
    10778       { if $as_mkdir_p; then
    10779     mkdir -p "$ac_dir"
    10780   else
    10781     as_dir="$ac_dir"
    10782     as_dirs=
    10783     while test ! -d "$as_dir"; do
    10784       as_dirs="$as_dir $as_dirs"
    10785       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    10786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10787          X"$as_dir" : 'X\(//\)[^/]' \| \
    10788          X"$as_dir" : 'X\(//\)$' \| \
    10789          X"$as_dir" : 'X\(/\)' \| \
    10790          .     : '\(.\)' 2>/dev/null ||
    10791 echo X"$as_dir" |
    10792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10794           /^X\(\/\/\)$/{ s//\1/; q; }
    10795           /^X\(\/\).*/{ s//\1/; q; }
    10796           s/.*/./; q'`
    10797     done
    10798     test ! -n "$as_dirs" || mkdir $as_dirs
    10799   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    10800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    10801    { (exit 1); exit 1; }; }; }
    10802 
    10803       rm -f $ac_file
    10804       mv $tmp/config.h $ac_file
     47792      rm -f "$ac_file"
     47793      mv "$ac_tmp/config.h" "$ac_file" \
     47794        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    1080547795    fi
    1080647796  else
    10807     cat $tmp/config.h
    10808     rm -f $tmp/config.h
    10809   fi
    10810 # Compute $ac_file's index in $config_headers.
     47797    printf "%s\n" "/* $configure_input  */" >&1 \
     47798      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     47799      || as_fn_error $? "could not create -" "$LINENO" 5
     47800  fi
     47801# Compute "$ac_file"'s index in $config_headers.
     47802_am_arg="$ac_file"
    1081147803_am_stamp_count=1
    1081247804for _am_header in $config_headers :; do
    1081347805  case $_am_header in
    10814     $ac_file | $ac_file:* )
     47806    $_am_arg | $_am_arg:* )
    1081547807      break ;;
    1081647808    * )
     
    1081847810  esac
    1081947811done
    10820 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
    10821 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10822          X$ac_file : 'X\(//\)[^/]' \| \
    10823          X$ac_file : 'X\(//\)$' \| \
    10824          X$ac_file : 'X\(/\)' \| \
    10825          .     : '\(.\)' 2>/dev/null ||
    10826 echo X$ac_file |
    10827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10829           /^X\(\/\/\)$/{ s//\1/; q; }
    10830           /^X\(\/\).*/{ s//\1/; q; }
    10831           s/.*/./; q'`/stamp-h$_am_stamp_count
    10832 done
    10833 _ACEOF
    10834 cat >>$CONFIG_STATUS <<\_ACEOF
    10835 
    10836 #
    10837 # CONFIG_LINKS section.
    10838 #
    10839 
    10840 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
    10841   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    10842   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10843 
    10844   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
    10845 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
    10846 
    10847   if test ! -r $srcdir/$ac_source; then
    10848     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
    10849 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
    10850    { (exit 1); exit 1; }; }
    10851   fi
    10852   rm -f $ac_dest
    10853 
    10854   # Make relative symlinks.
    10855   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
    10856 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10857          X"$ac_dest" : 'X\(//\)[^/]' \| \
    10858          X"$ac_dest" : 'X\(//\)$' \| \
    10859          X"$ac_dest" : 'X\(/\)' \| \
    10860          .     : '\(.\)' 2>/dev/null ||
    10861 echo X"$ac_dest" |
    10862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10863           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10864           /^X\(\/\/\)$/{ s//\1/; q; }
    10865           /^X\(\/\).*/{ s//\1/; q; }
    10866           s/.*/./; q'`
    10867   { if $as_mkdir_p; then
    10868     mkdir -p "$ac_dest_dir"
     47812echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
     47813$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     47814         X"$_am_arg" : 'X\(//\)[^/]' \| \
     47815         X"$_am_arg" : 'X\(//\)$' \| \
     47816         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
     47817printf "%s\n" X"$_am_arg" |
     47818    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     47819            s//\1/
     47820            q
     47821          }
     47822          /^X\(\/\/\)[^/].*/{
     47823            s//\1/
     47824            q
     47825          }
     47826          /^X\(\/\/\)$/{
     47827            s//\1/
     47828            q
     47829          }
     47830          /^X\(\/\).*/{
     47831            s//\1/
     47832            q
     47833          }
     47834          s/.*/./; q'`/stamp-h$_am_stamp_count
     47835 ;;
     47836  :L)
     47837  #
     47838  # CONFIG_LINK
     47839  #
     47840
     47841  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
     47842    :
    1086947843  else
    10870     as_dir="$ac_dest_dir"
    10871     as_dirs=
    10872     while test ! -d "$as_dir"; do
    10873       as_dirs="$as_dir $as_dirs"
    10874       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    10875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10876          X"$as_dir" : 'X\(//\)[^/]' \| \
    10877          X"$as_dir" : 'X\(//\)$' \| \
    10878          X"$as_dir" : 'X\(/\)' \| \
    10879          .     : '\(.\)' 2>/dev/null ||
    10880 echo X"$as_dir" |
    10881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10883           /^X\(\/\/\)$/{ s//\1/; q; }
    10884           /^X\(\/\).*/{ s//\1/; q; }
    10885           s/.*/./; q'`
    10886     done
    10887     test ! -n "$as_dirs" || mkdir $as_dirs
    10888   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
    10889 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
    10890    { (exit 1); exit 1; }; }; }
    10891 
    10892   ac_builddir=.
    10893 
    10894 if test "$ac_dest_dir" != .; then
    10895   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
    10896   # A "../" for each directory in $ac_dir_suffix.
    10897   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    10898 else
    10899   ac_dir_suffix= ac_top_builddir=
    10900 fi
    10901 
    10902 case $srcdir in
    10903   .)  # No --srcdir option.  We are building in place.
    10904     ac_srcdir=.
    10905     if test -z "$ac_top_builddir"; then
    10906        ac_top_srcdir=.
    10907     else
    10908        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    10909     fi ;;
    10910   [\\/]* | ?:[\\/]* )  # Absolute path.
    10911     ac_srcdir=$srcdir$ac_dir_suffix;
    10912     ac_top_srcdir=$srcdir ;;
    10913   *) # Relative path.
    10914     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    10915     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    10916 esac
    10917 
    10918 # Do not use `cd foo && pwd` to compute absolute paths, because
    10919 # the directories may not exist.
    10920 case `pwd` in
    10921 .) ac_abs_builddir="$ac_dest_dir";;
    10922 *)
    10923   case "$ac_dest_dir" in
    10924   .) ac_abs_builddir=`pwd`;;
    10925   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
    10926   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
    10927   esac;;
    10928 esac
    10929 case $ac_abs_builddir in
    10930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    10931 *)
    10932   case ${ac_top_builddir}. in
    10933   .) ac_abs_top_builddir=$ac_abs_builddir;;
    10934   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    10935   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    10936   esac;;
    10937 esac
    10938 case $ac_abs_builddir in
    10939 .) ac_abs_srcdir=$ac_srcdir;;
    10940 *)
    10941   case $ac_srcdir in
    10942   .) ac_abs_srcdir=$ac_abs_builddir;;
    10943   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    10944   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    10945   esac;;
    10946 esac
    10947 case $ac_abs_builddir in
    10948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    10949 *)
    10950   case $ac_top_srcdir in
    10951   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    10952   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    10953   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    10954   esac;;
    10955 esac
    10956 
    10957 
    10958   case $srcdir in
    10959   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
    10960       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
     47844    # Prefer the file from the source tree if names are identical.
     47845    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
     47846      ac_source=$srcdir/$ac_source
     47847    fi
     47848
     47849    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
     47850printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
     47851
     47852    if test ! -r "$ac_source"; then
     47853      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
     47854    fi
     47855    rm -f "$ac_file"
     47856
     47857    # Try a relative symlink, then a hard link, then a copy.
     47858    case $ac_source in
     47859    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
     47860        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
     47861    esac
     47862    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
     47863      ln "$ac_source" "$ac_file" 2>/dev/null ||
     47864      cp -p "$ac_source" "$ac_file" ||
     47865      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
     47866  fi
     47867 ;;
     47868  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
     47869printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
     47870 ;;
    1096147871  esac
    1096247872
    10963   # Try a symlink, then a hard link, then a copy.
    10964   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
    10965     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
    10966     cp -p $srcdir/$ac_source $ac_dest ||
    10967     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
    10968 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
    10969    { (exit 1); exit 1; }; }
    10970 done
    10971 _ACEOF
    10972 cat >>$CONFIG_STATUS <<\_ACEOF
    10973 
    10974 #
    10975 # CONFIG_COMMANDS section.
    10976 #
    10977 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    10978   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    10979   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    10980   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
    10981 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    10982          X"$ac_dest" : 'X\(//\)[^/]' \| \
    10983          X"$ac_dest" : 'X\(//\)$' \| \
    10984          X"$ac_dest" : 'X\(/\)' \| \
    10985          .     : '\(.\)' 2>/dev/null ||
    10986 echo X"$ac_dest" |
    10987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    10988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    10989           /^X\(\/\/\)$/{ s//\1/; q; }
    10990           /^X\(\/\).*/{ s//\1/; q; }
    10991           s/.*/./; q'`
    10992   { if $as_mkdir_p; then
    10993     mkdir -p "$ac_dir"
    10994   else
    10995     as_dir="$ac_dir"
    10996     as_dirs=
    10997     while test ! -d "$as_dir"; do
    10998       as_dirs="$as_dir $as_dirs"
    10999       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    11000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11001          X"$as_dir" : 'X\(//\)[^/]' \| \
    11002          X"$as_dir" : 'X\(//\)$' \| \
    11003          X"$as_dir" : 'X\(/\)' \| \
    11004          .     : '\(.\)' 2>/dev/null ||
    11005 echo X"$as_dir" |
    11006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11007           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11008           /^X\(\/\/\)$/{ s//\1/; q; }
    11009           /^X\(\/\).*/{ s//\1/; q; }
    11010           s/.*/./; q'`
    11011     done
    11012     test ! -n "$as_dirs" || mkdir $as_dirs
    11013   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    11014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    11015    { (exit 1); exit 1; }; }; }
    11016 
    11017   ac_builddir=.
    11018 
    11019 if test "$ac_dir" != .; then
    11020   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    11021   # A "../" for each directory in $ac_dir_suffix.
    11022   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    11023 else
    11024   ac_dir_suffix= ac_top_builddir=
    11025 fi
    11026 
    11027 case $srcdir in
    11028   .)  # No --srcdir option.  We are building in place.
    11029     ac_srcdir=.
    11030     if test -z "$ac_top_builddir"; then
    11031        ac_top_srcdir=.
    11032     else
    11033        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    11034     fi ;;
    11035   [\\/]* | ?:[\\/]* )  # Absolute path.
    11036     ac_srcdir=$srcdir$ac_dir_suffix;
    11037     ac_top_srcdir=$srcdir ;;
    11038   *) # Relative path.
    11039     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    11040     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    11041 esac
    11042 
    11043 # Do not use `cd foo && pwd` to compute absolute paths, because
    11044 # the directories may not exist.
    11045 case `pwd` in
    11046 .) ac_abs_builddir="$ac_dir";;
    11047 *)
    11048   case "$ac_dir" in
    11049   .) ac_abs_builddir=`pwd`;;
    11050   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    11051   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    11052   esac;;
    11053 esac
    11054 case $ac_abs_builddir in
    11055 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    11056 *)
    11057   case ${ac_top_builddir}. in
    11058   .) ac_abs_top_builddir=$ac_abs_builddir;;
    11059   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    11060   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    11061   esac;;
    11062 esac
    11063 case $ac_abs_builddir in
    11064 .) ac_abs_srcdir=$ac_srcdir;;
    11065 *)
    11066   case $ac_srcdir in
    11067   .) ac_abs_srcdir=$ac_abs_builddir;;
    11068   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    11069   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    11070   esac;;
    11071 esac
    11072 case $ac_abs_builddir in
    11073 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    11074 *)
    11075   case $ac_top_srcdir in
    11076   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    11077   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    11078   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    11079   esac;;
    11080 esac
    11081 
    11082 
    11083   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
    11084 echo "$as_me: executing $ac_dest commands" >&6;}
    11085   case $ac_dest in
    11086     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
    11087   # Strip MF so we end up with the name of the file.
    11088   mf=`echo "$mf" | sed -e 's/:.*$//'`
    11089   # Check whether this is an Automake generated Makefile or not.
    11090   # We used to match only the files named `Makefile.in', but
    11091   # some people rename them; so instead we look at the file content.
    11092   # Grep'ing the first line is not enough: some people post-process
    11093   # each Makefile.in and add a new line on top of each file to say so.
    11094   # So let's grep whole file.
    11095   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    11096     dirpart=`(dirname "$mf") 2>/dev/null ||
    11097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11098          X"$mf" : 'X\(//\)[^/]' \| \
    11099          X"$mf" : 'X\(//\)$' \| \
    11100          X"$mf" : 'X\(/\)' \| \
    11101          .     : '\(.\)' 2>/dev/null ||
    11102 echo X"$mf" |
    11103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11105           /^X\(\/\/\)$/{ s//\1/; q; }
    11106           /^X\(\/\).*/{ s//\1/; q; }
    11107           s/.*/./; q'`
    11108   else
    11109     continue
    11110   fi
    11111   # Extract the definition of DEPDIR, am__include, and am__quote
    11112   # from the Makefile without running `make'.
    11113   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    11114   test -z "$DEPDIR" && continue
    11115   am__include=`sed -n 's/^am__include = //p' < "$mf"`
    11116   test -z "am__include" && continue
    11117   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    11118   # When using ansi2knr, U may be empty or an underscore; expand it
    11119   U=`sed -n 's/^U = //p' < "$mf"`
    11120   # Find all dependency output files, they are included files with
    11121   # $(DEPDIR) in their names.  We invoke sed twice because it is the
    11122   # simplest approach to changing $(DEPDIR) to its actual value in the
    11123   # expansion.
    11124   for file in `sed -n "
    11125     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
    11126        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    11127     # Make sure the directory exists.
    11128     test -f "$dirpart/$file" && continue
    11129     fdir=`(dirname "$file") 2>/dev/null ||
    11130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11131          X"$file" : 'X\(//\)[^/]' \| \
    11132          X"$file" : 'X\(//\)$' \| \
    11133          X"$file" : 'X\(/\)' \| \
    11134          .     : '\(.\)' 2>/dev/null ||
    11135 echo X"$file" |
    11136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11138           /^X\(\/\/\)$/{ s//\1/; q; }
    11139           /^X\(\/\).*/{ s//\1/; q; }
    11140           s/.*/./; q'`
    11141     { if $as_mkdir_p; then
    11142     mkdir -p $dirpart/$fdir
    11143   else
    11144     as_dir=$dirpart/$fdir
    11145     as_dirs=
    11146     while test ! -d "$as_dir"; do
    11147       as_dirs="$as_dir $as_dirs"
    11148       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    11149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11150          X"$as_dir" : 'X\(//\)[^/]' \| \
    11151          X"$as_dir" : 'X\(//\)$' \| \
    11152          X"$as_dir" : 'X\(/\)' \| \
    11153          .     : '\(.\)' 2>/dev/null ||
    11154 echo X"$as_dir" |
    11155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11156           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11157           /^X\(\/\/\)$/{ s//\1/; q; }
    11158           /^X\(\/\).*/{ s//\1/; q; }
    11159           s/.*/./; q'`
    11160     done
    11161     test ! -n "$as_dirs" || mkdir $as_dirs
    11162   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
    11163 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
    11164    { (exit 1); exit 1; }; }; }
    11165 
    11166     # echo "creating $dirpart/$file"
    11167     echo '# dummy' > "$dirpart/$file"
     47873
     47874  case $ac_file$ac_mode in
     47875    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
     47876  # Older Autoconf quotes --file arguments for eval, but not when files
     47877  # are listed without --file.  Let's play safe and only enable the eval
     47878  # if we detect the quoting.
     47879  # TODO: see whether this extra hack can be removed once we start
     47880  # requiring Autoconf 2.70 or later.
     47881  case $CONFIG_FILES in #(
     47882  *\'*) :
     47883    eval set x "$CONFIG_FILES" ;; #(
     47884  *) :
     47885    set x $CONFIG_FILES ;; #(
     47886  *) :
     47887     ;;
     47888esac
     47889  shift
     47890  # Used to flag and report bootstrapping failures.
     47891  am_rc=0
     47892  for am_mf
     47893  do
     47894    # Strip MF so we end up with the name of the file.
     47895    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
     47896    # Check whether this is an Automake generated Makefile which includes
     47897    # dependency-tracking related rules and includes.
     47898    # Grep'ing the whole file directly is not great: AIX grep has a line
     47899    # limit of 2048, but all sed's we know have understand at least 4000.
     47900    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
     47901      || continue
     47902    am_dirpart=`$as_dirname -- "$am_mf" ||
     47903$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     47904         X"$am_mf" : 'X\(//\)[^/]' \| \
     47905         X"$am_mf" : 'X\(//\)$' \| \
     47906         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
     47907printf "%s\n" X"$am_mf" |
     47908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     47909            s//\1/
     47910            q
     47911          }
     47912          /^X\(\/\/\)[^/].*/{
     47913            s//\1/
     47914            q
     47915          }
     47916          /^X\(\/\/\)$/{
     47917            s//\1/
     47918            q
     47919          }
     47920          /^X\(\/\).*/{
     47921            s//\1/
     47922            q
     47923          }
     47924          s/.*/./; q'`
     47925    am_filepart=`$as_basename -- "$am_mf" ||
     47926$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
     47927         X"$am_mf" : 'X\(//\)$' \| \
     47928         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
     47929printf "%s\n" X/"$am_mf" |
     47930    sed '/^.*\/\([^/][^/]*\)\/*$/{
     47931            s//\1/
     47932            q
     47933          }
     47934          /^X\/\(\/\/\)$/{
     47935            s//\1/
     47936            q
     47937          }
     47938          /^X\/\(\/\).*/{
     47939            s//\1/
     47940            q
     47941          }
     47942          s/.*/./; q'`
     47943    { echo "$as_me:$LINENO: cd "$am_dirpart" \
     47944      && sed -e '/# am--include-marker/d' "$am_filepart" \
     47945        | $MAKE -f - am--depfiles" >&5
     47946   (cd "$am_dirpart" \
     47947      && sed -e '/# am--include-marker/d' "$am_filepart" \
     47948        | $MAKE -f - am--depfiles) >&5 2>&5
     47949   ac_status=$?
     47950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     47951   (exit $ac_status); } || am_rc=$?
    1116847952  done
    11169 done
     47953  if test $am_rc -ne 0; then
     47954    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
     47955printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
     47956as_fn_error $? "Something went wrong bootstrapping makefile fragments
     47957    for automatic dependency tracking.  If GNU make was not used, consider
     47958    re-running the configure script with MAKE=\"gmake\" (or whatever is
     47959    necessary).  You can also try re-running configure with the
     47960    '--disable-dependency-tracking' option to at least be able to build
     47961    the package (albeit without support for automatic dependency tracking).
     47962See 'config.log' for more details" "$LINENO" 5; }
     47963  fi
     47964  { am_dirpart=; unset am_dirpart;}
     47965  { am_filepart=; unset am_filepart;}
     47966  { am_mf=; unset am_mf;}
     47967  { am_rc=; unset am_rc;}
     47968  rm -f conftest-deps.mk
     47969}
    1117047970 ;;
    11171     default-1 )
     47971    "po-directories":C)
    1117247972    for ac_file in $CONFIG_FILES; do
    1117347973      # Support "outfile[:infile[:infile...]]"
     
    1117947979        # Adjust a relative srcdir.
    1118047980        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
    11181         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
     47981        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
    1118247982        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
    1118347983        # In autoconf-2.13 it is called $ac_given_srcdir.
     
    1118947989          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
    1119047990        esac
     47991        # Treat a directory as a PO directory if and only if it has a
     47992        # POTFILES.in file. This allows packages to have multiple PO
     47993        # directories under different names or in different locations.
    1119147994        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
    1119247995          rm -f "$ac_dir/POTFILES"
    1119347996          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
    11194           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
    11195           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
     47997          gt_tab=`printf '\t'`
     47998          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
     47999          POMAKEFILEDEPS="POTFILES.in"
     48000          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
    1119648001          # on $ac_dir but don't depend on user-specified configuration
    1119748002          # parameters.
    1119848003          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
    1119948004            # The LINGUAS file contains the set of available languages.
    11200             if test -n "$ALL_LINGUAS"; then
     48005            if test -n "$OBSOLETE_ALL_LINGUAS"; then
    1120148006              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
    1120248007            fi
    11203             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
    11204             # Hide the ALL_LINGUAS assigment from automake.
     48008            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     48009            # Hide the ALL_LINGUAS assignment from automake < 1.5.
    1120548010            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
     48011            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
     48012          else
     48013            # The set of available languages was given in configure.in.
     48014            # Hide the ALL_LINGUAS assignment from automake < 1.5.
     48015            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
    1120648016          fi
     48017          # Compute POFILES
     48018          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
     48019          # Compute UPDATEPOFILES
     48020          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
     48021          # Compute DUMMYPOFILES
     48022          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
     48023          # Compute GMOFILES
     48024          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
    1120748025          case "$ac_given_srcdir" in
    1120848026            .) srcdirpre= ;;
     
    1121048028          esac
    1121148029          POFILES=
    11212           GMOFILES=
    1121348030          UPDATEPOFILES=
    1121448031          DUMMYPOFILES=
     48032          GMOFILES=
    1121548033          for lang in $ALL_LINGUAS; do
    1121648034            POFILES="$POFILES $srcdirpre$lang.po"
    11217             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
    1121848035            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
    1121948036            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
     48037            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
    1122048038          done
    1122148039          # CATALOGS depends on both $ac_dir and the user's LINGUAS
     
    1125248070          fi
    1125348071          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
    11254           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
     48072          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
    1125548073          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
    1125648074            if test -f "$f"; then
     
    1126548083      esac
    1126648084    done ;;
    11267     gettext-fix )
    11268   sed -e '/^mkinstalldirs *=/a\' \
    11269       -e "install_sh=$install_sh" \
    11270       -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
    11271       intl/Makefile > intl/Makefile.tmp
    11272   mv intl/Makefile.tmp intl/Makefile
    11273   sed -e '/^mkinstalldirs *=/a\' \
    11274       -e "install_sh=$install_sh" \
    11275       -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
    11276       po/Makefile > po/Makefile.tmp
    11277   mv po/Makefile.tmp po/Makefile ;;
     48085
    1127848086  esac
    11279 done
     48087done # for ac_tag
     48088
     48089
     48090as_fn_exit 0
    1128048091_ACEOF
    11281 
    11282 cat >>$CONFIG_STATUS <<\_ACEOF
    11283 
    11284 { (exit 0); exit 0; }
    11285 _ACEOF
    11286 chmod +x $CONFIG_STATUS
    1128748092ac_clean_files=$ac_clean_files_save
     48093
     48094test $ac_write_fail = 0 ||
     48095  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    1128848096
    1128948097
     
    1130648114  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    1130748115  # would make configure fail if this is the last instruction.
    11308   $ac_cs_success || { (exit 1); exit 1; }
    11309 fi
    11310 
     48116  $ac_cs_success || as_fn_exit 1
     48117fi
     48118if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     48119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     48120printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     48121fi
     48122
     48123
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette